Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SQL Deep Dive/NULLIF/questions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
* Question: Show NULL when the product is not on special (0)
*/

SELECT *
FROM products
SELECT prod_id, title, price, NULL IF(special,0) as "Special"
from products;