Created
August 9, 2015 06:44
-
-
Save dodangquan/50323d317b3e719ef17b to your computer and use it in GitHub Desktop.
Tìm danh sách môn học chưa đăng ký của sinh viên có MSV = 10
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 * FROM [Mon Hoc] | |
WHERE [Ma Mon Hoc] NOT IN ( | |
SELECT A.[Ma Mon Hoc] | |
FROM ( | |
SELECT S.*, B.[Ma Mon Hoc], B.[Thoi Gian Dang Ky] | |
FROM | |
[Sinh Vien] S RIGHT JOIN [Bang Dang Ky] B ON | |
S.[Ma Sinh Vien] = B.[Ma Sinh Vien] | |
) A | |
WHERE A.[Ma Sinh Vien] = 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment