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 8042389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:33:43+00:00 2026-06-05T04:33:43+00:00

I have three tables and I want retrieve values from them for which I

  • 0

I have three tables and I want retrieve values from them for which I use following query which gives me error, can anybody tell me what’s wrong?

SELECT a.VISITOR_TEXT,a.COMPANY_TEXT,a.CONTACT,a.PERSON_TO_MEET,a.DEPARTMENT_TEXT,a.FLOOR,b.BELONGING_T
YPE,b.BELONGING_TEXT ,a.INTIME, c.EXIT_TIME FROM tm_visitor a  LEFT JOIN tm_belonging b , tm_exit c ON a.ID=b.
BID AND a.ID=c.ID;
  • 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-05T04:33:45+00:00Added an answer on June 5, 2026 at 4:33 am

    This is what you are looking for:

    SELECT  a.VISITOR_TEXT,
            a.COMPANY_TEXT,
            a.CONTACT,
            a.PERSON_TO_MEET,
            a.DEPARTMENT_TEXT,
            a.FLOOR,
            b.BELONGING_TYPE,
            b.BELONGING_TEXT,
            a.INTIME,
            c.EXIT_TIME 
    FROM    tm_visitor a  
            LEFT JOIN tm_belonging b ON b.BID = a.id
            LEFT JOIN tm_exit c ON c.ID = a.ID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a test results database which has the following three tables along with
Hi I have three tables and I want to know how much jobs with
I have three tables: articles(id int) tags(id int, name varchar(255)) articles_tags(article_id, tag_id) I want
I have a database with three tables: user_table country_table city_table I want to write
I have three tables: categories, articles, and article_events, with the following structure categories: id,
I have the following query: INSERT INTO table (a) VALUES (0) ON DUPLICATE KEY
This is my ERD for my database contains three tables: I want to retrieve
I have three tables table1, table2, table3 with col1, col2 and identity ID column.
I have three tables: Account , Management , and ManagementAccountLookup . The Account table
we have three tables. tblA id(PK) doc_id(fk) mr_id(fk) date -------- ---------- -------- --------- 1

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.