NULL & three-valued logic
Exercise · SQL & Querying

Predict, then run it

Predict the output

sess(s, bounces, minutes) = (s1,60,10),(s2,5,0). Bounces per minute, safe against the 0-minute session:

SELECT s, bounces / NULLIF(minutes, 0) AS rate FROM sess ORDER BY s;

Predict the exact output.