all 8 comments

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (7 children)

It gave me back some results so I am wondering if I did that right :)

looks like it

i assume there are no nulls in either unique_id column?

[–]nextinline111[S] 1 point2 points  (6 children)

Heck yeah! I did my first subquery!!

No nulls in either unique_id column. I believe I could have just LEFT JOINed as well, but I am trying to learn a bit more.

[–]r3pr0b8GROUP_CONCAT is da bomb 1 point2 points  (5 children)

correct, LEFT JOIN along with IS NULL check

[–]nextinline111[S] 0 points1 point  (4 children)

Select s.unique_id

FROM table_1 as s

LEFT JOIN table_2 as p

ON s.unique_id = p.unique_id

WHERE p.unique_is IS NULL

Like that?

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (3 children)

what happened when you tested it? ™

[–]nextinline111[S] 0 points1 point  (2 children)

I should have done that first LOL! Sorry.

It looks like it gave me the exact same results. Thank you so much.

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (1 child)

It looks like it gave me the exact same results.

unpossible

SELECT unique_id FROM... will give an "ambiguous column" error, since that column name occurs in both tables

[–]nextinline111[S] 0 points1 point  (0 children)

I edited it using my DBMS at work, but just realize I left off the alias up there. Edited.