Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8434951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:47:55+00:00 2026-06-10T06:47:55+00:00

Basically I have 2 tables: uclk_user and uclk_task uclk_user table has user_id , name

  • 0

Basically I have 2 tables: uclk_user and uclk_task

uclk_user table has user_id, name, postcode

uclk_task table has user_id, job_id, description, fully_completed, date_due

I want to include the user name from the uclk_user in my task query below…
Obviously user_id is the key.

select job_id, user_id, fully_completed, description, date_due
from uclk_task
WHERE date_due <= NOW() AND fully_completed = 0
ORDER BY date_due ASC

How this should be done?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:47:57+00:00Added an answer on June 10, 2026 at 6:47 am

    Use JOIN to select from multiple tables on a common criteria

    SELECT t.job_id, t.user_id, t.fully_completed, t.description, t.date_due, u.name
    FROM uclk_task t
    INNER JOIN uckl_user u
    ON t.user_id = u.user_id
    WHERE t.date_due <= NOW() AND t.fully_completed = 0
    ORDER BY t.date_due ASC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I basically have two tables called images and users . The images table has
Basically I have a database with two tables, that is, Updates table and Images
I have 2 tables: student_courses (id/student_id/course_id) and student_questionnaires (id/student_id/course_id/details). Basically, I want to run
I basically have two tables: A(id int, name varchar(10), info varchar(10)) B(id int, item
I have 3 tables: Customer, CustomerTypes, CustomerCustomerTypes. CustomerCustomerTypes is basically is a bridge table
So basically I have two tables: u_contracts +--------+---------+------------------------------+ | id | user_id | reschedule_wait_confirm_till
I have two tables User & User Log . User log table basically logs
Basically, I have three tables, lets call them TableA, TableB and TableC. Table A
I basically have two tables: A(id int, name varchar(10), info varchar(10)) B(id int, item
I basically have two tables, a 'server' table and a 'server_ratings' table. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.