Created
December 6, 2018 05:28
-
-
Save isitavi/c3f4f8484c37a661f0ad89ba1c029448 to your computer and use it in GitHub Desktop.
SQL-Problem4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Select Stdt.name | |
FROM Students Stdt, | |
Friends Frnd,Packages Pkg1,Packages Pkg2 | |
Where Pkg2.Salary > Pkg1.Salary | |
and Pkg2.ID = Frnd.Friend_ID and Pkg1.ID = Stdt.ID and Stdt.ID = Frnd.ID | |
Order by Pkg2.Salary; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment