I have two tables (terrible data architecture I know...) One table itemsShipped one table itemsDamaged. I need to get a count of item from itemsDamaged in my query, but when I use an Inner Join (or an outer, or a left, or a right) I keep getting inaccurate results. Below is my query...
Select a.item, COUNT(b.item) From itemsShipped a Inner Join itemsDamaged b On a.ID = b.ID GROUP BY a.item, b.item Order By a.item ASC