Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using having without group by
Message
From
24/12/2000 07:39:43
 
 
To
24/12/2000 04:20:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00456657
Message ID:
00456658
Views:
24
>Using having without group by
>
>Is it OK to use having without group by in SQL SELECT ?
>
>I want to place additional filter to result columns,
>like:
>
>Select ;
> as myvalue, ;
> from mytable ;
> having betw( myvalue, 1,100 )
>
> is a very complex expression and i don't wish to include it to having clause second time.

This is from Help:
A HAVING clause without a GROUP BY clause acts like a WHERE clause. You can use local aliases and field functions in the HAVING clause. Use a WHERE clause for faster performance if your HAVING clause contains no field functions. Note that the HAVING clause should appear before an INTO clause or a syntax error occurs.
Mark
Previous
Reply
Map
View

Click here to load this message in the networking platform