Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL display null results.
Message
 
 
To
26/04/2002 12:23:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00649673
Message ID:
00649675
Views:
9
>Here's my query -
>sele dist cellcode, count(cellcode)
>from x where fdisp="01" group by cellcode. What I want this to do is show me ALL the distinct cellcodes along with the counts of FDISPs for each cellcode. If there are 0 fdisps, it needs to show me null or 0 for that cellcode

Try
SELECT cellcode, count(*) ;
  FROM mytable ;
  WHERE fdisp="01" ;
  GROUP BY 1
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform