Sagitec Solutions interview question

Some DBMS queries