I have two tables (tblBestsellers, tblAllsellers).
tblAllsellersincludes all the books in the shoptblBestsellersincludes only the ones that have sold over their quota.
The only link between them is their productID.
Is it possible to add a column with the title Bestseller at runtime? Using a query in which will show if that book was a best seller or not such as
ProductID - Product Name - Bestseller
----------------------------------------
324234 Harry Potter Y
382932 LOTHR Y
234292 SQL Guide N
and so on.
I suspect there is an IF statement there somewhere??
SELECT *
FROM tblAllsellers, tblbestsellers