Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complex SQL problem
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Complex SQL problem
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345309
Message ID:
01345309
Views:
44
Suppose that I have a table called politics and with this folowing fields
delegates: c(20)
City:         c(20)
State:       c(5)
And I want to generate this sort or report. Can it be done with an SQL statement?
(I know how to do it with a do while loop.)
delegate, City
Robert     Phoenix
Smith     Snow Flake
Burns     Snow Flake
etc.
           Az: Delegates: 3

Stevens  San Diego
Jerome   Los Angeles
          Ca:  Delegates 2
etc.
etc.
Thanks
Steve
Next
Reply
Map
View

Click here to load this message in the networking platform