Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement Help
Message
 
 
To
02/11/2009 09:41:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01432687
Message ID:
01432688
Views:
57
>I have two tables as follows (not all fields listed):
>
>Table 1
>DrwNo  Lastrev  .........
>100         B
>101         C
>102         D
>etc....
>
>
>Table 2
>DrwNo    Revno .....
>100          0
>100          A
>100          B
>101          0
>101          A
>101          B
>101         C
>etc...
>
>
>What I would like to produce is the following cursor:
>
>
>Drwno       Revisions
>100           '0, A, B'
>101           '0, A, B, C'
>102           '0, A, B, C, D'   
>
>
>Is this possible with a single SQL statement? If so, can someone please point me in the right direction.
>
>Thanks,

Is it for VFP or SQL Server - if the later, then it's easy (though depends on your SQL Server version), if the former, you can do this with UDF (same way as in SQL Server 2000), but do you want to go this route?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform