From looks like: From temptable, table2 without a join, can someone explain how this works?

0

Hi all,

I've found an old query which I'm trying to understand. I've a question about the FROM part. I understand that the temporary table is a key-valuepair. But I don't understand what happens in the from part. Because it returns the dutch names of the week (created in the key-valuepair), but why? The query looks like this:

WITH days AS ( SELECT "map"(ARRAY['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'], ARRAY['Zondag','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag']) "dagen"

)

SELECT , "date"("tabel1"."datumtijd") "date" , "dagen"["date_format"("date"("tabel1"), '%W')] "days" FROM days , "tabel1" LEFT JOIN "tabel2 "ON (....

已提问 1 年前199 查看次数
1 回答
0
已接受的回答

The FROM part specifies the tables being joined. Run an EXPLAIN and you should get more information about the query execution.

profile pictureAWS
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则