Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp to sqlserver codes conversion
Message
From
25/11/2016 13:55:25
 
 
To
25/11/2016 11:37:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01643953
Message ID:
01643956
Views:
55
>Dear Experts,
>
>How to conevert these vfp codes for sqlserver 2008 management studtio?
>
>
>SELECT PADR(LEFT(codes,1),7) as codes,names,SUM(amount) as amount FROM table1 WHERE LEN(ALLTRIM(codes)) = 7 GROUP BY 1,2 
>
>UNION ALL ;
>SELECT PADR(LEFT(codes,2),7) as codes,names,SUM(amount) as amount FROM table1 WHERE LEN(ALLTRIM(codes)) = 7 GROUP BY 1,2 
>
>UNION ALL ;
>SELECT PADR(LEFT(codes,4),7) as codes,names,SUM(amount) as amount FROM table1 WHERE LEN(ALLTRIM(codes)) = 7 GROUP BY 1,2 
>
>UNION ALL ;
>SELECT * FROM table1 WHERE LEN(ALLTRIM(codes)) = 7 ORDER BY 1
>
check out this link: http://fox.wikis.com/wc.dll?Wiki~VFPSQL-TSQL-Mapping
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform