It looks like I need to define all the same column names in my joined query one by one to be able to see the same columns names that the first table and second joined table has like this:
Because when I select all columns, I'm not able to see the column names separately if that column name is also in the joined table. I also cannot see the data inside. The same query does show same columns on MySQL client. I think Retool get confused when it see two same column names and cannot differentiate them.
How to solve this situation?
Do I have to always go through all the same column names and point them in my mySQL query when I try to connect 2-3 tables with tens of columns?
Not that I'm aware of. Indeed it is annoying to add all separate columns. It appears that now the columns with same names are overwritten or ignored. It would easiers of the table names or alias would be included (in case of duplicate names).
@matth , yes and no, I’ve seen more applications with the same issue, but a lot of applications just rename the columns to tablename.columnname
This will avoid duplicate column names. Downside of this is, that the columnnames look really ugly and become long. So better to use aliases.
Also best practice to only select the columns you actually need instead of just select all columns as this can really slow down your query or app.