A CASE statement evaluates conditions against a query field and returns the result for the first matching branch. In a retail event stream, it converts a purchase total into reward points. section 11.6
Assigning reward points
A ksqlDB stream-stream join selects the customer ID and purchase amount, then uses CASE: totals below 25.00 return 15 points, totals below 50.00 return 50, and all remaining totals return 75. The result is emitted as reward_points.








