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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors