i have 3 tables
login – user_id, username
project – project_id, project_name
task – task_id, project_id, task_giver, task_receiver, task_content
*where task_giver and task_receiver has the user_id from login table*
MY QUERY :
SELECT login.username, project.project_name, tasks.task_content, tasks.task_giver
FROM tasks
JOIN login ON login.user_id = tasks.task_receiver
JOIN project ON tasks.project_id = project.project_id
;
But I am not getting the task_givers name getting only id.
How can I get his name?
JOINthelogintable one more time like so:SQL Fiddle Demo with some sample data