Cognizant interview question

Oops ,DBMS,SQL queries,one basic program in known language