Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mysql subquery
Message
From
20/01/2011 09:28:41
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Mysql subquery
Miscellaneous
Thread ID:
01496682
Message ID:
01496682
Views:
81
Hi

I want a query from this data and I can't seem to get it right

claim_id,claim_date,policy_type,policy_id

the query should give me a total by yearmonth and policy_type where the claim_id has been claimed on in the last 3 months with no result if it hasn't

so if I had

1,21/01/2010,"type one",1000,201001
2,21/01/2010,"type two",2000,201001
3,23/01/2010,"type one",3000,201001
4,22/01/2010,"type one",4000,201001

my output would be

claim_count,policy_type,yearmonth

3,"type one",201001

Thanks

Nick
Next
Reply
Map
View

Click here to load this message in the networking platform