steve4king
IS-IT--Management
//results in >22000 records;
select distinct serial_no from customer;
//results in <7000 records;
select distinct serial_no from customer_serial;
//results in ~5000;
select count(*) from customer where serial_no in (select serial_no from customer_serial);
//results in 0;
select count(*) from customer where serial_no not in (select serial_no from customer_serial);
I'm not understanding how the 4th query could have zero results given the numbers in the prior queries.. Must be something wrong with my syntax..
Any thoughts?
Thanks,
-Stephen
select distinct serial_no from customer;
//results in <7000 records;
select distinct serial_no from customer_serial;
//results in ~5000;
select count(*) from customer where serial_no in (select serial_no from customer_serial);
//results in 0;
select count(*) from customer where serial_no not in (select serial_no from customer_serial);
I'm not understanding how the 4th query could have zero results given the numbers in the prior queries.. Must be something wrong with my syntax..
Any thoughts?
Thanks,
-Stephen