Answer the question
In order to leave comments, you need to log in
Missing FROM-clause entry for table " "", what to do?
In the column, I indicated which table to take from, and he writes to me that there is no entry from the sentence for the "users" table, what should I do?
Answer the question
In order to leave comments, you need to log in
In FROM, you need to specify the teterika.users table and the condition for linking to the teterika.lessons table.
if the condition is not specified, then each row of one table will be associated with each row of another table, a Cartesian product of the tables will be obtained.
SELECT
tl.subject,
tu.role
FROM teterika.lessons AS tl, teterika.users AS tu
WHERE teterika.users.role = 'tutor'
SELECT
tl.subject,
'tutor' AS role
FROM teterika.lessons
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question