The document contains SQL code to create a database table called "office" with fields for ID, Name, salary, job description, and city. It then inserts 15 records into the table with details of employees from different cities and jobs. Finally, it runs a select statement to retrieve all records from the office table.
The document contains SQL code to create a database table called "office" with fields for ID, Name, salary, job description, and city. It then inserts 15 records into the table with details of employees from different cities and jobs. Finally, it runs a select statement to retrieve all records from the office table.
ID integer NOT NULL PRIMARY KEY, Name varchar(20) NOT NULL, salary integer NOT NULL, job_desc varchar(30) NOT NULL, city varchar(25) NOT NULL ); insert into office values (1,'Vignesh',68000,’Analyst','Chennai'); insert into office values (2,'Aneesh',60000,'Analust','Chennai'); insert into office values (3,'Akhil',55000,'Accountant','Mumbai'); insert into office values (4,'Varsha',50000,'Accountant','Mumbai'); insert into office values (5,'Ram',65000,'Designer','Kolakata'); insert into office values (6,'Raman',65000,'Analyst','Bangalore'); insert into office values (7,'Sita',35000,'Analyst','Kerala'); insert into office values (8,'Anand',55000,'Cashier','Hyderabad'); insert into office values (9,'Ravi',50000,'cashier','Pune'); insert into office values (10,'Arjun',70000,'Manager','Pune'); insert into office values (11,'Sneha’,30000,'Designer','Gujurat'); insert into office values (12,'Abhi',50000,'cashier','Pune'); insert into office values (13,'Rahul',50000,'cashier','Pune'); insert into office values (14,'Radha',50000,'cashier','Pune'); insert into office values (15,'Sruthy',50000,'cashier','Pune'); select*from office;