我有这样的查询: -
SELECT `stock`.`Stock_Id` AS `Stock_Id`,
`product`.`Product_Id` AS `Product_Id`,
`product`.`Product_Name` AS `Product_Name`,
`product`.`Model_No` AS `Model_No`,
`product`.`Product_Status` AS `Product_Status`,
`prod_cat_ven`.`Category_Id` AS `Category_Id`,
group_concat(`prod_cat_ven`.`Vendor_Id` separator ',') AS `Product_Vendor`,
group_concat(`prod_cat_ven`.`Product_Vendor_Qty` separator ',') AS `Product_Vendor_Qty`,
group_concat(`prod_cat_ven`.`Product_Purchase_Price` separator ',') AS `Product_Purchase_Price`,
`stock`.`Closing_Quantity` AS `Closing_Qty`,
`product`.`Is_Deleted` AS `Is_Deleted`
FROM ((`inksand`.`tbl_inksand_product` `product`
JOIN `inksand`.`tbl_inksand_product_category_vendor` `prod_cat_ven` on((`product`.`Product_Id` = `prod_cat_ven`.`Product_Id`)))
JOIN `inksand`.`vw_inksand_stock_max` `stock` on((`prod_cat_ven`.`Product_Id` = `stock`.`Product_Id`)))
GROUP BY `product`.`Product_Id`
我只想表明
Vendor id - 27
Stock - 29
Quantity - 29
Price - 1080
最新插入的价格行,与供应商明显不同的数量。
如何实现这一目标。