Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to GROUP BY ON 2 fields in SQL
Message
From
19/11/2008 11:30:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01362746
Message ID:
01362835
Views:
17
>Hi,
>
>I have the following SQL Select code when using VFP database and it works:
>
>
>select Mytable.myfld1 + Mytable.myfld2 as MyGroup from MyTable group by MyGroup
>
>
>When executing this SQL Select against SQL Server it fails. How do I change this SQL Select so that it would work for both VFP and SQL Server?
>
>Thank you in advance.

No way:( You can't create SQL that would work unchanged for VFP and SQL all the time. You are wasting your time trying to make it compatible IMHO. Write them depending on backend.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform