Quantcast
Channel: SQL find where two tables does not match (combined key) - Stack Overflow
Viewing all articles
Browse latest Browse all 4

SQL find where two tables does not match (combined key)

$
0
0

I have the following two tables:

Table: user_has_academy_teamColumns:user_id int(11) PKacademy_team_id int(11) PKtimestamp   datetime

Table: user_has_academy_moduleColumns:id  int(11) AI PKuser_id int(11)module_id   int(11)academy_team_id int(11)academy_id  int(11)sort_number int(11)is_complete int(11)score_to_pass   int(11)is_open int(11)deadline    datetimemodule_version_id   int(11)waiting_approval    int(11)

I wish to find all the records in the table user_has_academy_module where academy_team_id and user_id does not match in user_has_academy_team


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>