You are on page 1of 10

Bessa & mhmd_bakr

column

Equality: =
Inequality: <>, !=
Greater than: >
Less than: <
Greater than or equal to: >=
Less than or equal to: <=

SELECT s.StudName SELECT s.StudName


FROM Student s SELECT DISTINCT s.StudentId, s.StudName FROM Student s
JOIN Enrolled e ON s.StudentId = e.StudentId FROM Student s JOIN Enrolled e ON s.StudentId = e.StudentId
JOIN Course c ON e.CourseId = c.CourseId JOIN Course c ON e.CourseId = c.CourseId
JOIN Enrolled e ON s.StudentId = e.StudentId WHERE c.CourseName = 'Database Systems';
WHERE c.CourseName = 'Database Systems'; WHERE e.Grade IN ('A-', 'A', 'A+');
insert and update

You might also like