Skip to content

Instantly share code, notes, and snippets.

@esthicodes
Created August 3, 2021 14:30
Show Gist options
  • Save esthicodes/aa9842d154bc31b20821b3523206cd8f to your computer and use it in GitHub Desktop.
Save esthicodes/aa9842d154bc31b20821b3523206cd8f to your computer and use it in GitHub Desktop.
SELECT * FROM Apartments where (Price > ( SELECT AVG(PRICE) FROM Apartments)) AND (STATUS = 'Not rented') ORDER BY PRICE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment