This is my logic.
I have an articles table and a matching images tables. The images are stored in binary format. Each image table has 2 instances of each image, this is because I have 2 sizes. 300 x 200 and 500 x 400 with their rows separated by ImageSize
I want to write a stored procedure that checks if ImageSize=3 is available and if not, then retrieve from ImageSize=2.
How can I set up my stored procedure to do this?
Thanks