Home · Latest · Trends  /  SQL
4

select *, COUNT left join MySQL

rated 4 times [  4] [ 0]  / comments: 0 / hits: 894  / 2 years ago, sun, aug 6, 2017, 17:14:06
SELECT *, COUNT(reviewid) AS counter FROM article LEFT JOIN reviews on article.id = reviews.articleid GROUP BY article.id, reviews.articleid ORDER BY article.id DESC LIMIT 12;
More From » SQL
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Snippets
MySQL error when update default value for DATETIME
2 years ago, sun, aug 6, 2017
TinyMCE v 4 change default font style, font family, color...
2 years ago, tue, aug 22, 2017
CSS change bootstrap 4 tooltip color
2 years ago, tue, aug 22, 2017
Scroll to the top of the page button with jQuery
2 years ago, wed, aug 30, 2017
Sponsor
Posted
bigjoe

bigjoe

Member since Aug 6, 2017
Total Code Snippets: 5
Total Comments: 0
Location: n/a
Following
User not following anyone yet.