Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定の科目のみに入力し、他の科目には入力しなかった学生を選択するためのクエリを支援できる人はいますか。「Eng.Maths」だけで言ったとしましょう。
STUDENT SUBJECT MARK Vels Eng.Maths 60 Vels Data.Mining 65 Stivel Eng.Maths 55 Stivel Data.Mining 69 Raj Eng.Maths 66
SELECT * FROM Table1 t1 WHERE subject = 'Eng.Maths' AND NOT EXISTS (SELECT NULL FROM Table1 t2 WHERE t1.Student = t2.Student AND t2.Subject <> t1.subject)
SqlFiddle