我有一个 sql 查询作为 -
SELECT name_1, dpid_clid, city
FROM dts_master_dividend
WHERE upper(name_1) like upper('%')
AND dpid_clid like upper('IN30290243450560%')
ORDER BY name_1 asc, dpid_clid asc, dividend_type desc
它将结果显示为 -
ABHINAV BHARTI IN30290243450560 PUNE
ABHINAV BHARTI IN30290243450560 DELHI
ABHINAV BHARTI IN30290243450560 PUNE
ABHINAV DUBEY IN30290243450560 PUNE
ABHINAV BHARTI IN30290243450560 PUNE
但我希望我的结果为 -
ABHINAV BHARTI IN30290243450560 PUNE
ABHINAV BHARTI IN30290243450560 DELHI
ABHINAV DUBEY IN30290243450560 PUNE
这意味着只有唯一的记录集。
我怎样才能得到它?