Guest User

Untitled

a guest
Feb 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. -- SELECT * FROM (
  2. SELECT * FROM DomainProductPrice
  3. WHERE DomainID = 1 #AND ProductVariantID IS NULL
  4. ORDER BY ProductModelID, Price
  5. -- ) a GROUP BY ProductModelID
  6.  
  7. CREATE TABLE `DomainProductPrice` (
  8. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  9. `DomainID` int(11) DEFAULT NULL,
  10. `BundledProductID` int(11) DEFAULT NULL,
  11. `ProductModelID` int(11) DEFAULT NULL,
  12. `ProductVariantID` int(11) DEFAULT NULL,
  13. `PriceGroupID` int(11) DEFAULT NULL,
  14. `TaxGroupID` int(11) DEFAULT NULL,
  15. `Currency` int(11) DEFAULT NULL,
  16. `Price` double NOT NULL,
  17. PRIMARY KEY (`id`)
  18. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Add Comment
Please, Sign In to add comment