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 -> Re: SQL, count and group by

Re: SQL, count and group by

From: Peter Laursen <ptl_at_edbgruppen.dk>
Date: 27 Oct 2000 08:28:43 GMT
Message-ID: <01c03fef$f870f5a0$2c289a0a@apollo>

Small addition:
Table SAMPLE has a colum meter_recnum, which is a foreign key to table METER. In SAMPLE (meter_recnum, sampletime) is unique.
>

SAMPLE (a few million rows)
sample_recnum number primary key
value number
sampletime date not null (has index)
meter_recnum number not null references METER(meter_recnum)

unique(meter_recnum, sampletime)

> Thanks
> Peter Laursen
>
Received on Fri Oct 27 2000 - 03:28:43 CDT

Original text of this message

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