Professional Documents
Culture Documents
Insert Values
SQL>insert into employee values(id,’&name’,age,’&designation’,salary);
Enter value for id:101
Enter value for name:Ramesh
Enter value for age: 35
Enter value for designation:Manager
Enter value for salary: 45000
1 row created
SQL>/
Table Retrieval
Querries
1. Create a view emp that contains name, age, designation, salary. Also describe the structure
of the view.
SQL>Create view emp as select id, name, age, designation, salary from employee;
View Created
SQL>desc emp;
3. Update the view emp by increasing10% salary of the employees who work as ‘Deputy
Manager’. Also confirm the modifications in employee table.
1 row updated
1 row updated
7. Calculate the annual salary of employees and display with ID, name and designation.