select * from mytable intersect select * from mytable