SQL Commands
SQL Commands
e) Alter the table Employee so that NULL values are not allowed for the age
column.
f) Write a query to display the names and salaries of those employees whose
salaries are greater than 20000.
g) Write a query to display details of employees who are not getting any bonus.
h) Write a query to display the names of employees whose name contains “a” as
the last alphabet.
Select Employee_Name from Employee where Employee_Name LIKE “%a”;
i) Write a query to display the name and job title of those employees whose
Manager_ID is 1201.
j) Write a query to display the name and job title of those employees whose
Manager is “Amyra”.
OR
Q2. A Railway company uses machines to sell tickets. The machine details and
daily sales information are recorded in two tables: