Your Rating (0)
Average Rating (0)
Stats
Bagged | 0 |
Unique | 0 |
Past Year | 0 |
Past Month | 0 |
Past Week | 0 |
By You | 0 |
Problem?
Report error / duplicate
Greene King Brewery
Ale Fresco
4.3%
Black Sheep
Black Sheep Best Bitter
3.8%
Wye Valley Brewery
Butty Bach
4.5%
Caledonian Brewery
Deuchars IPA
3.8%
Lacons
Falcon Ale
4.2%
Bath Ales
Gem
4.1%
Greene King Brewery
Greene King IPA
3.6%
Fuller's Griffin Brewery
London Pride
4.1%
Jo C's Ales
Norfolk Kiwi
3.8%
Marston's Brewery
Pedigree
4.5%
Hardys & Hansons
Rocking Rudolph
4.2%
Purple Moose Brewery
Snowdonia Ale
3.6%
Bagging Beer - The Knowledge
You must be logged in to bag a venue
Login Now
Cancel
Bagging Beer - The Knowledge
SELECT tblBeer.iBeerID, sBeer, iContainerID, IFNULL(sBeerImage,sBreweryImage) AS sImage, IFNULL(sColour,'#F0ED68') AS sColour, CASE iContainerID WHEN 1 THEN 'keg' WHEN 2 THEN 'bottle' WHEN 3 THEN 'can' ELSE 'pump' END AS sContainer, fABV, sBrewery, sBreweryColab FROM ( SELECT tblpubbeer.iBeerID, iBreweryID, sBeer, fABV, iContainerID, sColour FROM (SELECT * FROM tblPubBeer WHERE iPubID = 931 AND tblPubBeer.iActive = 1 AND tblPubBeer.iDelete = 0) AS tblPubBeer INNER JOIN (SELECT iBeerID, iBreweryID, sBeer, fABV, iContainerID, iBeerTypeID FROM tblBeer WHERE iDelete = 0 AND iActive = 1) AS tblBeer ON tblBeer.iBeerID = tblPubBeer.iBeerID LEFT JOIN tblBeerType ON tblBeer.iBeerTypeID = tblBeerType.iBeerTypeID) AS tblBeer INNER JOIN (SELECT iBreweryID, sBrewery FROM tblBrewery WHERE iDelete = 0 AND iActive = 1) AS tblBrewery ON tblBrewery.iBreweryID = tblBeer.iBreweryID LEFT JOIN (SELECT iBeerID, GROUP_CONCAT(sBrewery SEPARATOR '/') AS sBreweryColab FROM tblbeercolab INNER JOIN tblbrewery ON tblbeercolab.iBreweryID = tblbrewery.iBreweryID GROUP BY iBeerID) AS tblColab ON tblColab.iBeerID = tblBeer.iBeerID LEFT JOIN (SELECT iBeerImageID, iBeerID, concat('/images/beers/',iBeerID,'/',sImage) AS sBeerImage FROM tblBeerImage WHERE iMain = 1) AS tblBeerImage ON tblBeerImage.iBeerID = tblBeer.iBeerID LEFT JOIN (SELECT iBreweryID, concat('/images/breweries/',iBreweryID,'/',sImage) AS sBreweryImage FROM tblBreweryImage WHERE iMain = 1) AS tblBreweryImage ON tblBreweryImage.iBreweryID = tblBeer.iBreweryID LEFT JOIN (SELECT iBeerID, MAX(dBagged) AS dBagged FROM tblUserPub WHERE iPubID = 931 GROUP BY iBeerID) AS tblUserPub ON tblUserPub.iBeerID = tblBeer.iBeerID ORDER BY dBagged DESC