Hi all,
Pls give me query of these following SQL problem.
1. see the below table with the data in it. Make the query to fetch the user name who involved in Banking and Finance projects.
Table name : projectdetails
user project ----- column names
venki Banking
Raju Admin
venki Finance
kishore Finance
Raju Insurance
kishore Insurance
kiran Banking
output should be - venki
2. see the below table with the data in it. Here the managerid is also one of the employee id. Make the query to display empid, empname and managername accordingly
Table name : Employee
Empid Empname Managerid ---- column names
1 venki 3
2 sekhar
3 suresh 4
4 Bhaskar 6
5 Sudhakar 6
6 Janardhan 2
Output sould be in the format below
Empid Empname Managername
1 venki suresh
2 sekhar
3 suresh Bhaskar
4 Bhaskar Janardhan
5 Sudhakar Janardhan
6 Janardhan sekhar
3. see the below table with the data in it
Table name : Numbers
A B C ----column names
1 3 6
2 4 7
2 5 6
output should as below in the descending order
7
6
5
4
3
2
1