我有查詢,讓我documentid申請加入兩個結果集 - Postgres的
select documentid from tbldocumentbyclient
where tbldocumentbyclient.isactive = true
and applicationid = '000116'
另一個查詢給我下面的結果
SELECT documentcategory,documentcategoryid, string_agg(documentid::text, ',') as documentid
FROM tbldocumentmaster
where accounttype = 1 and usertype= 'INDIVIDUAL'
group by documentcategory,documentcategoryid
order by documentcategoryid;
現在,可有人請建議我怎麼去不與任何documentid
對於以上情況,我的結果應該是繼相關類別名稱。
- DP證明 - 134在第一個結果不可用
- 住址證明永久 - 排4 ..不是一個單一的ID提供documenid導致
這裏這是不與關聯的documentcategory任何文件ID
用'pplicationid =「000116''任何文件.. –
請仔細閱讀http://meta.stackoverflow.com/questions/285551/why-may-i-not-upload-images-of-code-on-so-when-asking-a-question/285557和接受的答案 –
@a_horse_with_no_name ..跟隨的建議.. thks –