You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, While trying to extract the columns from the below query I'm getting a value error "ValueError: 'posted_dt' is not in list".
SELECT app.acty_dt , base.posted_dt FROM DB.SCH.WTBL app
INNER JOIN( SELECT pro.* FROM DB.SCH.DATET pro INNER JOIN DB.SCH.LIFT lif ON pro.LIFE_SK = lif.LIFE_SK) base
ON app.acty_dt = substr(APP_NR, 1, length(rtrim(APP_NR))-3)
AND base.posted_dt >= '2021-09-01
The reason for the error is that because posted_dt date column is not explicitly mentioned inside the sub_query base, But the posted_dt column is present in the table DATET and inside the sub_query base the table DATET is called by using the * (Refer line 2).
If the Parser provides a way to handle this situation it would be great.
The text was updated successfully, but these errors were encountered:
Hi, While trying to extract the columns from the below query I'm getting a value error "ValueError: 'posted_dt' is not in list".
The reason for the error is that because posted_dt date column is not explicitly mentioned inside the sub_query base, But the posted_dt column is present in the table DATET and inside the sub_query base the table DATET is called by using the * (Refer line 2).
If the Parser provides a way to handle this situation it would be great.
The text was updated successfully, but these errors were encountered: