R
rafael.farias.jr
I am fairly new to SQL and am trying to create a database that will
have a querying interface sitting on top of it.
I need the query to perform the first full statement (SELECT, FROM,
WHERE) and if the result is null, then I want the query to proceed to
the next full statement, etc... until I have a result. Once I have a
result I would like to output it.
My limitation is in understanding how to store the results of each
sequenced query within the conditional statement. I have never dealt
with conditional statements in SQL, so I hope they behave similarly to
other languages.
have a querying interface sitting on top of it.
I need the query to perform the first full statement (SELECT, FROM,
WHERE) and if the result is null, then I want the query to proceed to
the next full statement, etc... until I have a result. Once I have a
result I would like to output it.
My limitation is in understanding how to store the results of each
sequenced query within the conditional statement. I have never dealt
with conditional statements in SQL, so I hope they behave similarly to
other languages.