I'm a little confused about checking values in a database. What I want to do is see if a tuple such as the following exists:
job_num |item_code |invoice_num
------------------------------------
94834 |EFC-ASSOC-01|
The invoice_num is not null, it's blank: " ".
What I want is to find if such an entry exists, where the invoice_num is " " and update it with a number entered into a textbox. I'm a little confused about if statements and cases in SQL, so if someone could point me in the right direction, that would be great!