Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

join with duplicate column nnames in both tables

Questions related to using nuBuilder Forte.
Post Reply
sputs
Posts: 27
Joined: Sun Feb 07, 2021 8:07 pm

join with duplicate column nnames in both tables

Unread post by sputs »

Hi,

I am trying to execute this query that runs fine in mysql:

Code: Select all

SELECT states.*,
               countries.name AS name_country 
FROM states 
JOIN countries ON states.country_id = countries.id 
I have figured out that the join statement is causing issues in nuBuilder (but not in mysql). Both tables have a column called id. I suspect this is the issue. I am not able to change the names because this is tied to lots of other apps.

Anyone have any ideas on what I could try to get this working?
Last edited by kev1n on Wed Apr 14, 2021 2:01 am, edited 1 time in total.
Reason: Added Code tags.
sputs
Posts: 27
Joined: Sun Feb 07, 2021 8:07 pm

Re: join with duplicate column nnames in both tables

Unread post by sputs »

Thank Kevin! Will likely solve it.
Post Reply