checking different data value in a same column mysql query?
id_detail_item id_item id_detail_item_name
1 1 abc
2 1 abcd
3 1 cde
4 3 zki
5 3 zkr
how to check if there are two different data in "id_detail_item_name" in
same "id_item"?
I've tried this but got error "SELECT id_item FROM table_detail_item WHERE
id_detail_item_name='abc' AND id_detail_item_name='abcd'";
No comments:
Post a Comment