Last active
September 19, 2022 15:22
-
-
Save max-programming/683dfed0b189059c22599638beffc758 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
student_id | |
FROM | |
studies | |
WHERE | |
subject_id NOT IN (101, 103, 105) | |
SELECT | |
student_id | |
FROM | |
studies | |
WHERE | |
subject_id != 101 | |
AND subject_id != 103 | |
AND subject_id != 105 |
This file contains hidden or 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 | |
subject_id, | |
credit | |
FROM | |
subject | |
WHERE | |
subject_name IN ('Java', 'DBMS', 'WTP') | |
SELECT | |
subject_id, | |
credit | |
FROM | |
subject | |
WHERE | |
subject_name = 'Java' | |
OR subject_name = 'DBMS' | |
OR subject_name = 'WTP' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment