2016-03-05 66 views

回答

1

下面可能让你与重复的房间列表。

select id, roomid, inv_date, count(room) 
from room_inventory 
group by id, roomid, inv_date 
having count(room) > 1; 
1
Select Id, count(*) from inventory_table group by roomid, inv_date having count(*)>1