Query question
Posted in 1995
Is there a way to return a count of the unique values in a field in a
single statement? Right now I'm using a temporary table:
SELECT UNIQUE field FROM table INTO TEMP temp_table
SELECT COUNT(*) INTO row_count FROM temp_table
DROP TABLE temp_table
Thanks
--
| . . . . . . . . . 1 . . . . . . . . . 2 . . . . . . . . . 3 . . . . . . . .
Bums Francis Small - M/S 2LRS
Rockies Hewlett-Packard Company
Padres Microwave Instruments Div.
GIANTS 1212 Valley House Dr.
Rohnert Park CA, 94928
707 794 3305
fthes@sad.hp.com
************** Only 109 days left until Opening Day! (we hope) ***************