I am using Mysql and trying to migrate data from one DB to other. I have not worked on databases earlier.
This query gives me close to 300 results
select distinct internal_id from ratingsapp.hotel03
But this one returns no results and has no errors either:
select restname from City.resturant where restid not in
(select distinct internal_id from ratingsapp.hotel03)
Now if I manually pick few internal_ids from the hotel03 table, and put this in place of the nested query, the query returns proper results. I am not sure what exactly am I doing wrong.