Perform in sqlyog ultimate: User_ID User_Name Salary Department 201 William 10000 MRKT 202 Michael 20000 HR 203
Fantastic news! We've Found the answer you've been seeking!
Question:
Perform in sqlyog ultimate:
User_ID | User_Name | Salary | Department |
201 | William | 10000 | MRKT |
202 | Michael | 20000 | HR |
203 | Anthony | 30000 | MRKT |
204 | Aiden | 40000 | HR |
205 | Matthew | 50000 | IT |
Perform the following queries for above table:
- Write a SQL query to display User name who is taking maximum salary.
- Write a SQL query to display second highest salary from user table.
- Find names of user starting with ‘A’.
- Find number of users working in department ‘HR’.
- Print details of users whose name ends with ‘m’ and contains 6 Alphabets.
- Print details of users whose salary between 20000 and 50000.
- How many records do we have?
- write a query to find How many jobs do we have?
- Write a query to find unique jobs from the user table.
- Add Column Bonus Salary in usertable.
Related Book For
Auditing and Assurance Services Understanding the Integrated Audit
ISBN: 978-0471726340
1st edition
Authors: Karen L. Hooks
Posted Date: