Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL command - to Combine
Message
From
02/10/2008 07:47:37
 
 
To
02/10/2008 07:39:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01352210
Message ID:
01352212
Views:
25
This message has been marked as the solution to the initial question of the thread.
Create Table testdata (lodger c(3), short c(1), id n(2))
Insert into testdata values ('Test','T',1)
Insert into testdata values ('ABC','A',2)
Insert into testdata values ('UNU','I',3)
Select lodger, id from testdata union all;
select Cast(short as c(3)) as lodger, id from testdata order by 1,2
>i have this data
>
>Ledger Short Id
>Test T 1
>ABC A 2
>UNI I 3
>
>I need
>
>Head Id
>A 2
>ABC 2
>I 3
>T 1
>Test 1
>UNI 3
>
>
>What do i do ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform