Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgressum when

SUM(CASE WHEN column = value THEN column END) alias

eg

SUM(CASE WHEN car.brand = 'Toyota' THEN sales END) toyota_sales
 
PREVIOUS NEXT
Tagged: #postgressum
ADD COMMENT
Topic
Name
5+9 =