Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this be done in SQL?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01296067
Message ID:
01296096
Views:
9
Not really, but you *can* make a function to do it.
How are things in O.P.? Send some Hayward's BBQ!!!! hahaha

>
>CREATE CURSOR states ( st c(2) )
> INSERT into states VALUE('KS')
> INSERT into states VALUE('MO')
>
>CREATE CURSOR widgets (st c(2), misc c(3))
> INSERT INTO widgets values( 'KS', 'ABC')
> INSERT INTO widgets values( 'KS', 'DEF')
> INSERT INTO widgets values( 'KS', 'GHI')
> INSERT INTO widgets values( 'MO', 'ABC')
>
>I want to see the data as follows:
>
>  St    Widgets
>  ---   -----------
>  KS    ABC|DEF|GHI
>  MO    ABC
>
>Can this be done in SQL?
>
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform