Skip to content

Thinking about joins and PRQL naming #2953

Answered by aljazerzen
richb-hanover asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding the note:

Current behavior of assigning column names:

  • will assume name Col2 when selecting TableA.Col2,
  • will override preceding column names - i.e. this select {a = x, a = y} will produce a relation with columns (unnamed, a),

These two rules culminate produce the behavior you observe: first select produces columns (unnamed, Col2) and the second select one picks up the second column because it is named Col2.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by richb-hanover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants