Say I have a table that looks something like the following:
I use an SQL query to retrieve the records for a given state. If the state requested turns up no records, I want to use the alternate results from 'XX'.
Does anyone know of any way to do this using a single SQL statement?
Thank you!
Code:
State Value
----- -----
FL 1
FL 5
FL 9
AR 2
AR 5
MI 7
MI 8
XX 1
XX 5
Does anyone know of any way to do this using a single SQL statement?
Thank you!