I have to use only SQL not Pl/sql.