Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select question
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01414630
Message ID:
01414883
Views:
21
>According to the VFP Help HAVING without group by has the same effect as WHERE. Therefore, for me the latter of your suggestions is better. Or dealing with the query cursor in VFP after it is selected in a separate SQL Select.
>
>Thank you.

In other words, we have different behavior in VFP and SQL Server. This works in VFP

CREATE CURSOR curTemp (cField C(30))
INSERT INTO curTemp VALUES ('Test')

SELECT cField as cNewField FROM curTemp HAVING cNewField = 'Test'

but it would not work in SQL Server.

If you want compatibility, use the real field names.
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