Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

In SQL Query: I have three tables A, B, and C, each table having employee and their salary, I want to get the high salary from each table in one table.

Dear all,

Can anyone help me out below the SQL query, please?

I have three tables A, B, and C, each table having employee and their salary, I want to get the high salary from each table in one table.

What is the SQL query for this, below the one example tables.

Ex: Table A

Employee

Salary

David

66000

Michel

60000

Richard

56000

Daniel

72000

Maxwell

80000

Ronald

75000

Table B

Employee

Salary

Raj

90000

Krish

55000

Mohan

71000

Mary

69000

Alex

120000

Soham

92000

Table C

Employee

Salary

Trump

45000

Modi

59000

Greek

76000

Joshi

61000

Kevin

83000

Charlet

74000

Output would be like these

Table D

Employee

Salary

Alex

120000

Kevin

83000

Maxwell

80000

12 Replies
Not applicable
Author

Hi Sunny,

the 1st highest salary will be 120000  Alex, but here shows 

Maxwell 8000

Alex 120000

Kevin 83000

sunny_talwar

That is just the matter of sorting it my friend....

Capture.PNG

Not applicable
Author

Alright.