Cars
Make | Model | Year | Color
Honda | Accord | 12 | Red
Lexus | IS | 14 | Blue
I receive files like these and have to make the sure header row matches the parameters before I send it off to a php script.
I currently have a SELECT CASE WHEN that checks for other errors such as blanks in the code:
SELECT
CASE
WHEN a.Make = '' THEN '**BLANK**'
ELSE a.Make
END as Make,
Is it possible that there's a SELECT within SELECT that I can use to make sure the received files header (and only header) matches our headers?