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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ