I have 3 tables
Table: Products
productid (int)
name (varchar)
description (text)
Table: Sales
salesid (int)
productid (int)
Table: Links
linkid (int)
productid (int)
Now, I need a query that can get me total number of product-ids that are either present in sales table, or links table or both.
Help appreciated.
Thanks
As long as the data is proper, you dont really need to check the products table