我想從Oracle中的查詢基本上看起來像這樣得到的唯一一對值:獲取從一個表列不同對
select a.name, b.name
from table1 a
join table1 b on a.attribute = b.attribute
現在,這應該給我一串類似的重複值
- 蘋果,香蕉
- 橙,獼猴桃
- 香蕉,蘋果
- 獼猴桃,橘子
而是我只是得到
- 蘋果,蘋果
- 香蕉,香蕉
- 獼猴桃,獼猴桃
- 橘,橙
當我添加
select a.name, b.name
from table1 a
join table1 b on a.attribute = b.attribute
where a.attribute < b.attribute
我得到「未選擇行」
,我不知道我做錯了,請請幫助
你可能需要'where a.name
mathguy