Query on array-elements inside object

From: "Umashankar Kotturu" <adityauma(at)hotmail(dot)com>
To: pgsql-sql(at)hub(dot)org
Subject: Query on array-elements inside object
Date: 2000-09-05 03:12:29
Message-ID: F39Fpihc64cSiIvb47G0000735b@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I am new to Postgres as well as object database. Wondering if one of you can
tell me on how to write a sql query to select an object that has a
particular element in an array.

Example

If I create an object-table with 2 elements.
a) PatientID -> numeric
b) DiseaseArray -> array of text

- This DiseaseArray has elements like "cancer", "tb" etc...

Now how will I write a sql-query to select all patients that have "cancer"

Any pointers will be helpful.

regards,
Uma.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Tille 2000-09-05 06:26:06 Re: Order by in stored functions
Previous Message Craig May 2000-09-04 18:50:11 Re: pg_hba.conf