mysql - How to semplify this database schema and query? -


this database schema:

post: -id -title -body -date  user: -id -name -password  category: -id -title  post_category: -id -id_post -id_category  post_user: -id -id_user -id_post  post_like: -id -id_user -id_post  comment: -id -id_user -id_post -body 

"like" in project works "facebook likes".

in homepage need latest 50 post informations categories, users, likes, comments.

is there way avoid complex query join these 7 tables ?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -