Created
September 21, 2015 07:19
-
-
Save hamedqaderi/8c62b6babe49b2a99052 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT food.id as id, food.name as name, images.name as image_name | |
FROM images INNER JOIN food | |
ON food_id = food.id | |
GROUP BY food_id | |
ORDER BY food.id DESC | |
LIMIT 6'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment