![](/img/trans.png)
[英]How to update numerical column of one table based on matching string column from another table in SQL
[英]SQL : matching string of one column to substring of another table column
Select
SecondCol Result
From
(
Select
Col2 FirstCol,
UPPER(LISTAGG(Col1, ', ') WITHIN GROUP (ORDER BY Col2)) SecondCol
From
(Select Table1.T1 Col1, Table2.T1 Col2 From Table1,Table2
Where
Length(REGEXP_SUBSTR(UPPER(Table2.T1), UPPER(Table1.T1)))<>0
)
Group By Col2
);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.