sql - Retrieving a list of blog posts with related tags with less query -


Draw two tables:

  table: item column: item id, title Table: Tag column: TagId, Item IDID, Title  

Which is the best way (without changing the item structure (yes, I have no problem if they are not normalized)) All of their tags are related to the less probable query (i.e. not having 11 questions to get 10 items)?

What is involved in a simple external here is that what you are doing? Turn it on the left OUTER tag TG ItemID = Tg.ItemID from the

  SELECT It.ItemID, it.Title [ItemTitle], TG TagID, Tg.Title [TagTitle] 

Comments