MSC BA OBA-1
MSC BA OBA-1
1. Insert a new column to emp table by name country before DOB column
2. Give a constraint to city column which should contain the cities
Manipal/Mangalore/kochi/Thrissur/pune/Nagpur/Madurai
3. Change the size of Lname column to 10
4. Give constraint to DA column that it should be above 1000 only
5. Add auto increment to deptid which should start from 101
6. Change the column name to DName from Depname in dept table (Delete the constraint first
and then add back the constraint)
7. Add Desig column to the table (Clerk,FManager,SManager,Director,Attender)
8. Change the table name from Salaries to Salary
9. Set the Saldate column as default date
Insert records to all three tables as in page2
10. display the records where employees are from Mangalore or Manipal
11. Write a query to display female employees from state Karnataka or kerala
12. Display employee id, deptid and basic where basic is above 10000 and HRA is below 6000
13. Count the total number of records in salary table
14. Display the records where name starts with N and ends with a
15. Display the rowid 4,5,and 6 from emp table
16. Display the records from salary table by sorting basic column in descending order
Insert following records to tables
Emp
DEPT TABLE
finance
HR
Sales
Marketing
Purchase