R
Rakesh Parekh
Hello,
I have following query it just work fine and faster with say below 100
records or so. But I want the same query to
run in a table where there are about 50 fields and the number of records are
about 10,000. The query works but it is very slow.
Can anybody please advise how to make this query run faster with some in the
logic. I want to insert only unique records from customer to orders.
INSERT INTO ORDERS (ID, NAME, ADDRESS, ORDERNO)
SELECT ID, NAME, ADDRESS, ORDERNO
FROM CUSTOMER
WHERE ID NOT IN (SELECT ID FROM ORDERS);
Please advise.
Rakesh
I have following query it just work fine and faster with say below 100
records or so. But I want the same query to
run in a table where there are about 50 fields and the number of records are
about 10,000. The query works but it is very slow.
Can anybody please advise how to make this query run faster with some in the
logic. I want to insert only unique records from customer to orders.
INSERT INTO ORDERS (ID, NAME, ADDRESS, ORDERNO)
SELECT ID, NAME, ADDRESS, ORDERNO
FROM CUSTOMER
WHERE ID NOT IN (SELECT ID FROM ORDERS);
Please advise.
Rakesh