londondevil
May 4th, 2004, 08:14 AM
I am doing the following:
SELECT STORE_STOCK_FRESH.Store_ID StoreID, STORE_STOCK_FRESH.ProductCode Product_Code,
STORE_STOCK_FRESH.Qty_on_Shelf Quantity_on_Shelf,
STORE_STOCK_FRESH.Qty_in_Store Quantity_in_store
FROM STORE_STOCK_FRESH, FRESHGOOD_PRODUCT
WHERE STORE_STOCK_FRESH.Qty_on_shelf<STORE_STOCK_FRESH.Qty_in_Store
AND STORE_STOCK_FRESH.ProductCode=STORE_STOCK_FRESH.ProductCode;
How can i use an IF statement or something to else to print out a messege IF the following statement is FALSE:
WHERE STORE_STOCK_FRESH.Qty_on_shelf<STORE_STOCK_FRESH.Qty_in_Store
SELECT STORE_STOCK_FRESH.Store_ID StoreID, STORE_STOCK_FRESH.ProductCode Product_Code,
STORE_STOCK_FRESH.Qty_on_Shelf Quantity_on_Shelf,
STORE_STOCK_FRESH.Qty_in_Store Quantity_in_store
FROM STORE_STOCK_FRESH, FRESHGOOD_PRODUCT
WHERE STORE_STOCK_FRESH.Qty_on_shelf<STORE_STOCK_FRESH.Qty_in_Store
AND STORE_STOCK_FRESH.ProductCode=STORE_STOCK_FRESH.ProductCode;
How can i use an IF statement or something to else to print out a messege IF the following statement is FALSE:
WHERE STORE_STOCK_FRESH.Qty_on_shelf<STORE_STOCK_FRESH.Qty_in_Store