Skip to content
Advertisement

Remove duplicate columns after using join on in sql

I have the following sql query that joins two select statements on two columns

The query produces the following output.

| Name | ItemNum |TicketNum |TicketNum |ItemNum |

But I would like the output to be | Name | ItemNum |TicketNum |

Advertisement

Answer

Solution 1: Specify the column names like this

Solution 2:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement