Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using > in SQL Select
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01412630
Message ID:
01412631
Views:
49
>Hi,
>
>What should I use in the SQL Select (from VFP) that has ">" between two fields or field expressions. For example, I get error when using the following:
>
>
>select * from mytable where (field1 > field2)
>
>
>Thank you for any suggestions.

In this particular sample the syntax is correct. Are you sure that both fields are of the same type ? What are the types of these fields, may be > is not allowed for the particular type you're trying it.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform