Select with two tables in MySQL -


this question has answer here:

i have 2 tables hits , posts. in hitstable have id_post,hits , poststable have id,title

i need build report posts related hits , order hits. can me select ?

thanks

select   posts.id id, posts.title title, hits.hits hitsdate     posts inner join hits on hits.id_post = posts.id order hits.hits 

Comments

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -