Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> sql help needed -

sql help needed -

From: JBT <bthomas_at_trey-industries.com>
Date: Wed, 30 Sep 1998 14:18:36 GMT
Message-ID: <36123D76.C946C722@trey-industries.com>


Hi there;

I am trying to do the following query and am having a lot of trouble.

Immunization Table = [id#](person who got shot), [type] (type of vaccine give), [date] (date vaccine given)

1)look at all the [id#] who got a shot type "DTaP-Hib" 2)take all the shots they got of [type] = DTP or DTP-Hib or DTaP or DTaP-Hib or DT or Td and order them by ascending date 3)which [id#]s got a shot of type DTaP-Hib as the first or second or third shot

I could do this in procedural code but SQL, tough.

any ideas;
jbt Received on Wed Sep 30 1998 - 09:18:36 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US