TCS interview question

SQL queries, syntax for function, oops concepts