Guest User

Untitled

a guest
Jan 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. SELECT Date,
  2.  
  3. IfNULL(sum(CASE WHEN country = 'Japan' AND Competition = 'Export' THEN 金額 END),0) [ExportToJapan],
  4.  
  5. FROM Sales
  6. GROUP BY Date
  7. ORDER BY Date
  8.  
  9. WHERE ExportToJapan > 0
Add Comment
Please, Sign In to add comment