Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Concatenate fields in SQL ?
Message
From
22/03/2002 13:38:02
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
22/03/2002 13:16:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00636165
Message ID:
00636179
Views:
20
Bill,

Some of this will depend on what commands your SQL will support. Try using || (pipe) as in SELECT FirstName || LastName AS FullName...



>Is there any way to concatenate character fields from several records in a SQL statement ?
>
>
>Emp    Date        Note
>---------------------------
>1     {1/1/1}      Project 1
>1     {1/2/1}      Assist Kim
>2     {1/1/1}      Sick
>2     {1/2/1}      Project 3
>
>results desired:
>
>Emp   Notes
>---------------------------
>1     Project 1 chr(13) Assist Kim chr(13)
>2     Sick chr(13) Project 3 chr(13)
>
>
>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform