Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distinct Count
Message
From
04/01/2007 09:03:19
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01181738
Message ID:
01182180
Views:
12
Dear Sir,

When I run following statment, then I have to face following error message
SQL: DISTINCT is invalid

How to use more than one DISTINCT

Please help
select date1,count(sno)as sno,COUNT(distinct(pcode))as pcode,;
count(distinct(vno))as vno,;
SUM(gswt) as gswt,SUM(trwt)as trwt, SUM(ntwt)as ntwt, SUM(cash)as cash;
	from weights;
	where between(date1,f_date1,t_date1);
	order by date1;
	GROUP BY date1;
	into cursor abcd
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform