SELECT P.CODE,
P.STATUS,
G.DESCRIPTION,
x.xref_code,
X.XREF_STATUS
FROM table1.price_data p,
TABLE2.GENERAL_DATA G,
TABLE3.XREF_DATA X
WHERE
P.CODE = G.CODE
AND G.CODE=X.CODE
AND x.code=4545645
AND X.VEHICLE_CODE=9999999
实际上有 30,000 行要过滤...如何更改上述查询以仅显示 x.xref_status 的唯一值?