I have let says 3 products
- P1 with SKU "xyz_1" and price "10"
- P2 with SKU "xyz_2" and price "20"
- P3 with SKU "xyz_3" and price "50"
I want a query in magento to get sku xyz
with minimum price i.e xyz_1
only.
I want something like this select ,Regex('SKU','myexpression') as SKU
to remove last part from i.e "_" part from sku and then apply filter on product collection to get product with minimum price.
Any Ideas how to handle that with Magento?