Lumina Datamatics interview question

1.Sql