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

  • Home
  • SEARCH
  • 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 7747987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:40:05+00:00 2026-06-01T10:40:05+00:00

I am havin a query as SELECT * FROM Issue I, Condition C, Result

  • 0

I am havin a query as

SELECT * FROM Issue I, Condition C, Result R, Status S      
            LEFT JOIN Issue as i1 ON C.ID = i1.ConditionID
            LEFT JOIN Issue as i2 ON R.ID = i2.ResultID
            LEFT JOIN Issue as i3 ON S.ID = i3.StatusID 
            WHERE I.ID = 452

which is giving me the error message:

The multi-part identifier “C.ID” could not be bound.
The multi-part identifier “R.ID” could not be bound.

I want to have a result as follows:

ID| IssueName| ConditionID| ResultID| StatusID| ID| ConditionName| ID| ResultName| ID| StatusName

  • 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-01T10:40:06+00:00Added an answer on June 1, 2026 at 10:40 am

    First, there’s no JOIN between relation `I’ and any other in your posted query, so you’ll end up with a cartesian join here.

    Using the old-fashioned joining the query might look like this:

    SELECT *
      FROM Issue I, Condition C, Result R, Status S
     WHERE I.ConditionID = C.ID
       AND I.ResultID = R.ID
       AND I.StatusID = S.ID
       -- the filter comes here
      AND I.ID = 42;
    

    Using ANSI join syntax:

    SELECT *
      FROM Issue I
        LEFT JOIN Condition C ON C.ID = I.ConditionID
        LEFT JOIN Result R ON R.ID = I.ResultID
        LEFT JOIN Status S ON S.ID = I.StatusID
     -- the filter comes here
     WHERE I.ID = 42;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My query: SELECT issues.*, comments.author AS commentauthor, comments.when_posted AS commentposted FROM issues LEFT JOIN
I have this query: SELECT p.id, r.status, r.title FROM page AS p INNER JOIN
I'm having this Mysql query, It works: SELECT nom ,prenom ,(SELECT GROUP_CONCAT(category_en) FROM (SELECT
I have a simple SQL query, SELECT * FROM phones WHERE manu='$manuf' AND price
I am using this query SELECT COUNT(DISTINCT to_number) AS errors FROM sent_txts WHERE msg_link_id
I have a stored procedure in which I'm using sub query, but the issue
I'm having trouble figuring out how to represent the following JPQL query: SELECT count(e)
I am having a really hard time writing a SELECT query to get a
I'm having a solr query syntax issue (I think) with solr 1.4. I'm trying
I have a table that I wish to select a subset of columns from

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.