Created
October 29, 2021 08:03
-
-
Save Mr--John-Doe/425648ef8655e0bd7ec16e38ea8b6a8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Store | |
, Client | |
, CASE | |
WHEN client=10 THEN 0 -- Exclude staff store sales | |
ELSE SALES_GBP END AS SALES | |
, ... | |
FROM SOME_TABLE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment