Database for Digital Marketers — 1.2 (Case Statement, Group By & Having)

Kanja Saha
7 min readApr 6, 2020

The definition of the word “case” in Dictionary is “a set of circumstances or conditions” or “an instance of a particular situation” or “occurrence of a particular kind or category”.
I think the case statement in SQL closely resembles the last definition “occurrence of a particular kind or category”.

Let’s take the simple case of Customer Spend. You are starting a marketing campaign post-Christmas and would like to give a discount to your customers based on the spending this year.

--

--

Kanja Saha
0 Followers

I am passionate about integrating predictive analytics in every business function.