select collection_id,character1 ,character3 from Qa_Results where  collection_id in
( select collection_id from Qa_Results where RECEIPT_NUM = '304110034')
order by collection_id,receipt_numto 楼主:这句话我昨天就没搞明白,它不就是
select collection_id,character1 ,character3 from Qa_Results where  RECEIPT_NUM = '304110034' order by collection_id,receipt_num

解决方案 »

  1.   

    to  ORARichard(没钱的日子好难过啊) 
    原貼的數據是這樣的http://community.csdn.net/Expert/topic/3605/3605266.xml?temp=.200268
      

  2.   

    字段是不是没给全,不太好写,自己再改改select Q1.collection_id,Q1.character1 ,Q1.character3 ,Q2.character1,Q3.character1,Q3.character3  from Qa_Results Q1,Qa_Results Q2,Qa_Results Q3 where  Q1.RECEIPT_NUM = '304110034' and Q1.character1 in('A','R') and Q2.character1 in('S') and Q3.character1 like '%-%' and Q1.collection_id = Q2.collection_id(+) and Q1.collection_id = Q3.collection_id(+)