Can there be multiple sign ons with the same K_SO_ID for an event? If so then those queries could give different results, for examplecreate table #visitor_card(K_SO_ID int)create table #sign_ons(K_SO_ID int, k_event_id int)insert #visitor_cardselect 1 union allselect 2 union allselect 3insert #sign_onsselect 1, 100465 union allselect 1, 100465 union allselect 2, 100465 union allselect 2, 100465 union allselect 2, 100465 union allselect 3, 100465select count(*) from #visitor_card where K_SO_ID in (select K_SO_id from #sign_ons where k_event_id = 100465)select count (*) from #visitor_card v , #sign_ons s where s.K_so_id = v.K_So_Id and K_Event_id = 100465drop table #visitor_carddrop table #sign_ons
Also, you said However if i run the following JOIN query on the archive database :. Are you saying that you ran the join query on the same or a different database? If different, isn't it just that the data is different?