select * from td0c0b3itemstock, tb3a3stockinslip, tc0b6product, ta4tax, ta1producttype, ta2brand, taa0subcategory where 1 and binapTaxId=infTax and binapProductId=binfProduct and binapCompanyId=binfCompany and binapProductTypeId=binfProductType and binapStockInSlipId=binfStockInSlip and binapSubCategoryId=subcategory order by binapItemStockId, snProduct 0