Skip to content
Advertisement

SQL – Pulling column data from two different tables and using it

I’m trying to pull data from two different columns from separate tables to use in my ranking query. I’m trying to keep data from the left column “PVPRanking” and merging the rest, thus my RIGHT JOIN.

PVPScores – Has PVPWins, PVPLose, and PVPGiveUP. While PVPRanking has the rest.

I cant seem to properly use this data without getting errors like there are duplicate columns that exist.

I’ve been google searching for a while now and everything has left me rather stumped when trying it out. I’m hoping you guys can guide me to the answer.

Thank you for your time.

Advertisement

Answer

I was able to solve the problem by creating temporary tables and pulling that data instead.

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