Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SELECT * FROM (
- SELECT * FROM DomainProductPrice
- WHERE DomainID = 1 #AND ProductVariantID IS NULL
- ORDER BY ProductModelID, Price
- -- ) a GROUP BY ProductModelID
- CREATE TABLE `DomainProductPrice` (
- `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
- `DomainID` int(11) DEFAULT NULL,
- `BundledProductID` int(11) DEFAULT NULL,
- `ProductModelID` int(11) DEFAULT NULL,
- `ProductVariantID` int(11) DEFAULT NULL,
- `PriceGroupID` int(11) DEFAULT NULL,
- `TaxGroupID` int(11) DEFAULT NULL,
- `Currency` int(11) DEFAULT NULL,
- `Price` double NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Add Comment
Please, Sign In to add comment