IBM interview question

sql question to fetch data from a database