SELECt
id,
origin
FROM
My_Table T1
WHERe
EXISTS (SELECt * FROM My_Table T2 WHERe T2.id = T1.id AND T2.origin = ‘ROME’) AND
EXISTS (SELECt * FROM My_Table T3 WHERe T3.id = T1.id AND T3.origin <> ‘ROME’)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)