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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Pbiuserr
Post Prodigy
Post Prodigy

Snowflake connection "The field already exists in the record"

Hello,

I am trying to do a join on snowflake database when loading data but I got an error that "The field already exists in the record". What does it mean? That there can't be same column/field name in both tables? I want just to obtain LEFT JOIN,. It doesn't look like something extraordinary

 

select * from "Database"."Schema"."Table" as JOB
JOIN "Database"."Schema"."Table" as CAT

ON JOB.ID=CAT.ID

AND JOB.CODE=CAT.CODE

 

I have filled server, warehouse, role, database in advanced options of Snowflake connector

 

Thank you for your help

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Pbiuserr , You can not take the same column name from both tables. So take all fields from one table and selected them from another table, rename the columns in the query if needed

 

select JOB,*, CAT.ID as cat_ID  from "Database"."Schema"."Table" as JOB
JOIN "Database"."Schema"."Table" as CAT

ON JOB.ID=CAT.ID

AND JOB.CODE=CAT.CODE

 

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Pbiuserr , You can not take the same column name from both tables. So take all fields from one table and selected them from another table, rename the columns in the query if needed

 

select JOB,*, CAT.ID as cat_ID  from "Database"."Schema"."Table" as JOB
JOIN "Database"."Schema"."Table" as CAT

ON JOB.ID=CAT.ID

AND JOB.CODE=CAT.CODE

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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