[英]I want to add a new column using SELECT query and get a latest value from multiple columns in SQL
看來您只需要第一個非空值。 如果是這樣,您可以使用 COALESCE function -
SELECT COALESCE(Outcome1, Outcome2, Outcome3, Outcome4)
FROM your_table;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.