cancel
Showing results for 
Search instead for 
Did you mean: 

SQL Transformation

Former Member

Hi All,

I have a query and which ran successfully in my database  but when I copied the same into the SQL transform , its showing the following error.

The SQL  statements generates the following duplicate columns: BODI-11301.

I have a few select in select SQL statements.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Is there a column name repeated? I mean same name multiple times?

Former Member
0 Kudos

Yes it is , in the join condition.

Former Member
0 Kudos

I am asking about the output. When you run in SQL Server did you find any duplicate columns in the output?

Former Member
0 Kudos

Yes, many columns.

Former Member
0 Kudos

Why do you have duplicate columns? DS will not take multiple columns with same name. You need to change the column names to unique.

Former Member
0 Kudos

Just now , I removed the duplicate columns with same name:

I have  issue with this select statements:

(select A.Parent_WO_NUM from A where A.WO_NUM = B.wo_NUM and
A.WO_line = B.wo_Line) as "ParentWO",
(select A.Parent_WO_LINE from A where A.WO_NUM = B.wo_NUM and
A.WO_line = B.wo_Line ) as "ParentWOLINE",
(select S.SO from S where (select A.Parent_WO_NUM from A where A.WO_NUM = B.wo_NUM and
A.WO_line = B.wo_Line) = S.wo_num) as "SO",
(select S.SO_LINE from S where (select A.Parent_WO_NUM from A where A.WO_NUM = B.wo_NUM and

A.WO_line = B.wo_Line) = S.wo_num) as "SO_LINE",

Former Member
0 Kudos

This could be easily done by joining three tables A,B and S than doing multiple select in SQL transform.

Whats the exact error you are getting?

Former Member
0 Kudos

Thank you found it .

Thanks.

Answers (0)