Write the SQL queries. (10) Employee: Deptno Address Empno Emp_name Salary D1 Rawalpindi D1E1 Ali 5,000 D1 Islamabad D2E2 Alia 10,000 D2 Lahore D3E3 Usman 25,000
Write the SQL queries. (10)
Employee:
Deptno |
Address |
Empno |
Emp_name |
Salary |
D1 |
Rawalpindi |
D1E1 |
Ali |
5,000 |
D1 |
Islamabad |
D2E2 |
Alia |
10,000 |
D2 |
Lahore |
D3E3 |
Usman |
25,000 |
- Display detail of all employees from Employee table.
Answer:
- Display name of employees, who are working in D1.
Answer:
- Add bonus of 500 to all employee’s salary.
Answer:
- As we can see department no. 1 is repeated in the table, display the unique department number.
Answer:
- Display the employee name who are living in Lahore.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)