I'm trying to separate different product category in a receipt so that I can have different query for the MAJOR category and the MINOR category using MYSQL.
MAJOR has an item code of 771013 and MINOR has an item code of 771012. That being said, I also want to get the items that have been ordered in each check.
Here is my desired output.
I'm using MYSQL and PHPExcel on how to do this. Can you give me hints on how to do my query? Is this possible with the formula of vlookup with PHPExcel?