I’m trying to query one table to ultimately display the relate info from
another table. I have 2 tables: “posts” and “numbers”. I’m trying to do
a query like this:
I’m getting “Column ‘user_id’ in where clause is ambiguous” From the
reading I’ve been doing it seems the fact that there is a “user_id”
field in both tables might be the issue. How do I work around this? Do I
have to rename one of the “user_id” columns, or is there a more elegant
way of doing this?
I’m trying to query one table to ultimately display the relate info from
another table. I have 2 tables: “posts” and “numbers”. I’m trying to do
a query like this:
I’m getting “Column ‘user_id’ in where clause is ambiguous” From the
reading I’ve been doing it seems the fact that there is a “user_id”
field in both tables might be the issue. How do I work around this? Do I
have to rename one of the “user_id” columns, or is there a more elegant
way of doing this?
When you invlolve more than one table you usually have to specify the
table name in the sql. Try this: