Pro*C COUNT -need help!
From: Eric R Lapp <erlst3+_at_pitt.edu>
Date: 1996/08/08
Message-ID: <4ubcrl$ppt_at_usenet.srv.cis.pitt.edu>#1/1
Date: 1996/08/08
Message-ID: <4ubcrl$ppt_at_usenet.srv.cis.pitt.edu>#1/1
SELECT COUNT(DISTINCT ID, F_NAME, L_Name)
FROM A
I am able to do this in SQL*Plus, but NOT in the Pro*C:
SELECT COUNT(*)
WHERE ID = 1;
I guess after I do the WHERE ID = 1 all that I would need is a count of the
distinct combinations of F_Name and L_Name. I know the above DISTINCT is
wrong...
FROM (SELECT DISTINCT F_Name, L_Name FROM A WHERE ID = 1);
This (I think works), but Pro*C doesn't allow a subquery in the FROM clause.
If anyone can help that would be GREAT!!!! TIA
--Received on Thu Aug 08 1996 - 00:00:00 CEST
******************************************************************************
** Eric R. Lapp E-Mail: erlst3+_at_pitt.edu **
******************************************************************************