Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement Help
Message
 
 
To
02/11/2009 09:47:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
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:
01432695
Views:
39
>>Is this possible with a single SQL statement? If so, can someone please point me in the right direction.
>>
>>Thanks,
>
>I believe this is basically not possible - not with SQL alone - because that is not the way SQL works. Not even with several SELECT statements. You need a UDF that loops through each Drwno and creates the comma-delimited string. Once you have it, it is quite easy to add this as an additional (calculated) field. Make sure to CAST it to type memo.

Right, but it depends on the language. It is possible in SQL Server 2005 and up with simple statement and there is a request to create a concatenate function.

See http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/124023bd-4a3c-4f0a-8dbf-45cd3c16fc07
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