Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Dinvae
Regular Visitor

Native SQL(Snowflake) Issue - Column ambiquous Issue

Hi Experts,

 

Appreciate any quick help

Below sql throws error in expression i think same column name ambiquous 

Dinvae_0-1686391634139.png

 

Expression.Error: The field 'STATUS' already exists in the record

Details:

 Name=STATUS

 Value=

 

SELECT

 

BDE.ORDER_STATUS.STATUS,

 

,

 

BDE.SMT.STATUS

 

FROM

 

QA_DF.BDE.SM_NODE RIGHT OUTER JOIN QA_DF.BDE.ORDER_LINE ON (QA_DF.BDE.SMT_LINE.ORDER_LINE_KEY=QA_DF.BDE.ORDER_LINE.ORDER_LINE_KEY)

 

INNER JOIN QA_DF.BDE.ORDER_REL_STATUS ON (BDE.ORDER_LINE.ORDER_LINE_KEY=BDE.ORDER_STATUS.ORDER_LINE_KEY)

 

WHERE

 

(

 

BDE.ORDER_STATUS.STATUS

 

= '1000'

 

)

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Dinvae ,

Not sure why based on the query, I suggest you modify the sql query to:

SELECT
*
FROM
QA_DF.BDE.SM_NODE RIGHT OUTER JOIN QA_DF.BDE.ORDER_LINE ON (QA_DF.BDE.SMT_LINE.ORDER_LINE_KEY=QA_DF.BDE.ORDER_LINE.ORDER_LINE_KEY)

INNER JOIN QA_DF.BDE.ORDER_REL_STATUS ON (BDE.ORDER_LINE.ORDER_LINE_KEY=BDE.ORDER_STATUS.ORDER_LINE_KEY)

Then see if columns "BDE.ORDER_STATUS.STATUS" and "BDE.SMT.STATUS" are contained in the result.

 

Best regards,

Community Support Team_yanjiang

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.