An open API service indexing awesome lists of open source software.

https://github.com/arnab-developer/lesson2scripts

Database problem solution - Lesson2
https://github.com/arnab-developer/lesson2scripts

Last synced: 5 months ago
JSON representation

Database problem solution - Lesson2

Awesome Lists containing this project

README

          

1. Create a table to store employee information with with (Name, Department, Designation and Basic salary)
2. Insert some demo data inside the table for (Name, Dept, Desig, Basic) like:

'Rajat', 'ACCTS', 'MGR', 6500

'Madhurima', 'MKTG', 'MGR', 6000

'Rajnish', 'PERS', 'CLRK', 4500

'Rakhi', 'ACCTS', 'CLRK', 3000

'Sachin', 'MKTG', 'SALES', 2000

'Virat', 'PERS', 'MGR', 7000

'Mukesh', 'ACCTS', 'CLRK', 2500

Now perform the following operaton:

4. Display only the name of employees.
5. Display all records of employees whose designation id 'MGR'.
6. Display only name of employees who are working in 'ACCTS' department.
7. Display those records whose basic salary is more than 5000.
8. Display name and department whose basic salary is between 2000 and 3000.
9. Desplay only the name of employees who are working under 'MKTG' and 'PERS' departments.
10. Display records whose department is 'MKTG' and designation is 'MGR'.
11. Display records whose EmployeeId is 3 and 7.
12. Display records whose name starts with 'R'.
13. Display records other than 'PERS' department and earning basic below 5000.