SELECT DISTINCT(e.ssn), c.class
FROM enrollment e
CROSS JOIN
class c
WHERE NOT EXISTS
(
SELECT *
FROM enrollment e2
);
So, I'm trying to first get a table with the ssn and class attributes in it and then I want to only keep the rows that are not in the enrollment table, I tried this but it doesn't seem to work.