I have a question concerning a more efficient sql query which will select records from driving table, which is missing in second tables. Tables have more than 23k rows, and join takes too long.
Is there any way to make it faster? According to me, the following query loops through whole table
I used
SELECT * FROM orders
JOIN orderID USING(Order_id)
WHERE orderID != Order_id