Skip to content
Advertisement

Selecting record that fulfills a condition but don’t want to consider the condition, need to consider the other records thats being matched

im practicing with SQL and have created this table in MySQL:

with this insert data

how i can check what other content(PROGRAM_FULL_TITLE) watched those that streamed a program, for example, Loki? based on the 2 last insert(ACCOUNT_ID = ‘6ab3c’) in this case, i mean, i wanna show ‘Avengers End Game’ and not

i was trying something like this:

i search over here but couldnt solve it, please if someone can help me with this. Thanks in advance!

Advertisement

Answer

You have incorrect subquery.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement