What is the difference between Qualify and Having - Teradata
Having can be used only when we can do a group-by clause
Whereas we can use Qualify without having to group anything
is a proprietary extension to filter the result of a Windowed Aggregate Function
QUALIFY
A query is logically processed in a specific order:
- FROM: create the basic result set
- WHERE: remove rows from the previous result set
- GROUP BY: apply aggregate functions on the previous result set
- HAVING: remove rows from the previous result set
- OVER: apply windowed aggregate functions on the previous result set
- QUALIFY: remove rows from the previous result set
nVector
posted on 16 Jul 18Enjoy great content like this and a lot more !
Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds
Post Comment