From: Umashankar Kotturu <adityauma@hotmail.com>
To: pgsql-sql@hub.org
Subject: Query on array-elements inside object
Date: Tue, 05 Sep 2000 03:12:29 EDT
Message-ID: <F39Fpihc64cSiIvb47G0000735b@hotmail.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: adityauma@hotmail.com, pgsql-sql@hub.org
Subject: Re: Query on array-elements inside object
In-Reply-To: <F39Fpihc64cSiIvb47G0000735b@hotmail.com>
References: <F39Fpihc64cSiIvb47G0000735b@hotmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox