I have a query looking up Product Information from an ODBC connection. Here is my SQL:
It works but I want to do two other things:
1) I want to filter it so it only shows the items that their UPC start with "0-71270"
2) I only want to show the 7th - 12th digits of the UPC.
The first one is more important but the second would be really helpful as well.
Code:
SELECT WAVE3_PC_DL.UPC, WAVE3_PRODS.PC, WAVE3_PRODS.PDESC, WAVE3_PC_CATS.CAT_DESC, WAVE3_PC_DL.DEPT, UPC.Date
FROM ((WAVE3_PC_CATS LEFT JOIN WAVE3_PRODS ON WAVE3_PC_CATS.PC_CAT = WAVE3_PRODS.PC_CAT) LEFT JOIN WAVE3_PC_DL ON WAVE3_PRODS.PC = WAVE3_PC_DL.PC) LEFT JOIN UPC ON WAVE3_PRODS.PC = UPC.ITEMNO
ORDER BY WAVE3_PC_DL.UPC;
It works but I want to do two other things:
1) I want to filter it so it only shows the items that their UPC start with "0-71270"
2) I only want to show the 7th - 12th digits of the UPC.
The first one is more important but the second would be really helpful as well.