我有一张桌子: id | description | URL | role 2 | desc_1 | url_1 |2 4 | desc_2 | url_2 | 2 我希望得到以下结果 id | description | URLSELECT DISTINCT(description), id FROM table GROUP BY desc
我正在尝试使用SQL从已经运行的查询中选择信息。我没有权利创造一个观点,我知道这将解决我的问题。我运行了以下(模糊)查询,该查询引发了许多错误: distinct(countValue),FROM SELECT customer_identifier, count(distinct(2nd_customer_identifier)) AS countValue FROM table G
我通过以下查询使用distinct来获取唯一性 1个查询 select distinct(bhk,size,perprice),bhk,size,price from project_units; 和I,并且还通过以下方式查询 2查询 select bhk, array_agg(size) as size from project_units where project_id = '12&