SAP HANA SQLScript · Aggregation, Windows, Subqueries & Table Variables

How do COUNT(*), COUNT(col), and COUNT(DISTINCT col) differ?

Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.

Get it on App StoreGet it on Google Play

This is one card from the KnowCard library — thousands more across SAP, Linux, Python and more. In the app you get the answer, AI explanations, and cards that come back right before you would forget them. Free to start on iOS, Android or the web.

More in Aggregation, Windows, Subqueries & Table Variables

Which ROWS frame gives a 3-row moving average centered on the current row?
You find legacy code using CE_ functions (CE_PROJECTION, CE_JOIN...). Should you keep writing them?
You must run a table function once per input row and UNION the results — without an imperative loop. What operator?
What does next_task hold for each row? ``` LEAD(id) OVER ( PARTITION BY project ORDER BY id) AS next_task ```
How does MAP_REDUCE extend MAP_MERGE?
Why does SQLScript push you toward declarative code (SELECT only, no loops) instead of row-by-row logic?

Start learning today

Free to start — download the app or use it in your browser.

Get it on App StoreGet it on Google Play