SQL beginner looking for more efficient code

Printable View