Created
September 26, 2014 14:48
-
-
Save nmccready/9e92242b043cfa17654c to your computer and use it in GitHub Desktop.
working select case
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 prior_sale_date, | |
CASE | |
WHEN prior_sale_date != '0' | |
then | |
to_date(prior_sale_date:: text,'YYYYMMDD') | |
ELSE | |
NULL | |
END AS date_formatted | |
from flc12021 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment