Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this possible to do quickly with the SQL command?
Message
From
15/04/1998 10:16:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Is this possible to do quickly with the SQL command?
Miscellaneous
Thread ID:
00092144
Message ID:
00092144
Views:
49
Hi,

I have a two tables, cust.dbf and job.dbf. They are linked by the cust_no field. The job table has a field called Priority which can have three values: 1, 2 or 3.

I want to pull a report which will show the customer's cust_no, name, and then 3 other columns called Priority1, Priority2, priority3. Priority1 would be the total # of 1's, Priority2 would be # of 2's and Priority3 would be the number of 3's (for each customer).

Can this be done *quickly* with an sql statement?

Thanks in advance. -Rick
Next
Reply
Map
View

Click here to load this message in the networking platform