Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.67 KB | None | 0 0
  1. #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'prod.liquorCategoryID = 9 GROUP BY prod.category1ID, prod.liquorBrandID LIMIT 0' at line 5
  2.  
  3. SELECT brand.name, ROUND( (prod.pricePerSku / ( prod.litresPerBottle * prod.bottlePerSku)) , 2) AS pricePerLitre
  4. FROM WireDen_liquorProduct AS prod, WireDen_liquorBrand AS brand
  5. WHERE prod.liquorBrandID = brand.liquorBrandID
  6. AND (prod.pricePerSku / ( prod.litresPerBottle * prod.bottlePerSku)) = MAX((prod.pricePerSku / ( prod.litresPerBottle * prod.bottlePerSku)) )
  7. prod.liquorCategoryID = 9
  8. GROUP BY prod.category1ID, prod.liquorBrandID;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement