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 (....

posta un anno fa199 visualizzazioni
1 Risposta
0
Risposta accettata

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

profile pictureAWS
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande