Consider the table given below :
Write Answer to (i). Write SQL queries for (ii) to (viii) and output for SQL queries (ix) and (x).
(Table : Salesperson)
Note: Columns SID and DOB contain Sales Person Id and Data of Birth respectively.
(i) Write the data types of SID and DOB columns.
(ii) Display names of Salespersons and their Salaries who have salaries in the range 30000.00 to 40000.00.
(iii) To list Names, Phone numbers and DOB (Date of Birth) of Salespersons who were born before 1st November 1992.
(iv) To display Names and salaries of salespersons in descending order of salary.
(v) To displays areas in which Salespersons are working. Duplicate Areas should not be displayed.
(vi) To display SID, Names along with Salaries increased by 500. (Increase of t 500 is only to be displayed and not to be updated in the table).
(vii) To display Area along with number of Salespersons working in that area.
(viii) To display Names of Salespersons who have the word 'Kumar' anywhere in their names.
(ix) SELECT Name, LENGTH (Name) FROM Salesperson;
(x) SELECT Area, COUNT (*)
GROUP BY Area
HAVING COUNT (*) > 1;