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
- Host: GitHub
- URL: https://github.com/arnab-developer/lesson2scripts
- Owner: Arnab-Developer
- License: mit
- Created: 2013-07-06T07:30:48.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2021-04-09T11:21:06.000Z (over 4 years ago)
- Last Synced: 2025-03-06T16:54:44.106Z (10 months ago)
- Language: TSQL
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.