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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors