A
A
Andrello2014-04-20 12:01:25
MySQL
Andrello, 2014-04-20 12:01:25

fetching data from mysql

there are 2 tables, I need to select only those rows that are not in the first table when compared with the second, there are developments,

SELECT * FROM `plug_cat_join_item_attr` as zz
RIGHT JOIN `plug_cat_join_cat_item` as xx on xx.`id` = zz.`item`
GROUP BY xx.`id`

but I can't separate them , I c5244eafcc004ceb9b475c5187fd2188.jpgneed id's in front of NULL

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tyranron, 2014-04-20
@Andrello

Well, add the condition WHERE zz.`id` IS NULL
Well, the famous link in similar questions:
blog.codinghorror.com/a-visual-explanation-of-sql-joins

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question