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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:06:22+00:00 2026-05-17T23:06:22+00:00

I created a view that gets data from several tables, whenI go to compile

  • 0

I created a view that gets data from several tables, whenI go to compile it I keep getting the “The multi-part identifier could not be bound” error which has me completely stumped as to why. Below is my SQL View (error messages coming from the bold text), take a look and please help:

CREATE VIEW AMACO_VIEW_THIRD_PARTY_INSURANCE_INITIAL_LETTERS
AS
    SELECT
        CUSTOMERS.ID,
        CUSTOMERS.FIRST_NAME,
        CUSTOMERS.LAST_NAME,
        CUSTOMER_ACCIDENT_DTLS.ACCIDENT_DATE,
        CUSTOMER_ACCIDENT_DTLS.ACCIDENT_TIME,
        HIRED_VEHICLES.HIRE_CHARGE_AMT,
        CUSTOMER_STORAGE.START_DATE,
        CUSTOMER_STORAGE.STORAGE_FEE_PER_DAY,
        CUSTOMER_RECOVERY.RECOVERY_FEE,
        THIRD_PARTIES.THIRD_PARTY_NAME,
        THIRD_PARTY_VEHICLES.VEHICLE_REGISTRATION,
        INSURANCE_COMPANIES.INSURANCE_COMPANY_NAME,
        ADDRESSES.STREET_1,
        ADDRESSES.STREET_2,
        CITIES.CITY_NAME,
        DISTRICTS.DISTRICT_NAME,
        COUNTRIES.COUNTRY_NAME,
        ADDRESSES.POSTAL_CODE
    FROM CUSTOMERS, THIRD_PARTY_INITIAL_LETTER_PRINTED
    LEFT JOIN CUSTOMER_ACCIDENT_HDRS
        ON **CUSTOMERS.ID** = CUSTOMER_ACCIDENT_HDRS.CUSTOMER_ID
    INNER JOIN CUSTOMER_ACCIDENT_DTLS
        ON CUSTOMER_ACCIDENT_HDRS.ID = CUSTOMER_ACCIDENT_DTLS.CUSTOMER_ACCIDENT_HDR_ID
    LEFT JOIN CUSTOMER_VEHICLES
        ON **CUSTOMERS.CUSTOMER_VEHICLE_ID** = CUSTOMER_VEHICLES.ID
    INNER JOIN THIRD_PARTIES
        ON THIRD_PARTIES.CUSTOMER_ACCIDENT_ID = CUSTOMER_ACCIDENT_HDRS.ID
    INNER JOIN THIRD_PARTY_VEHICLES
        ON THIRD_PARTIES.THIRD_PARTY_VEHICLE_ID = THIRD_PARTY_VEHICLES.ID
    INNER JOIN THIRD_PARTY_INSURANCE_POLICIES
        ON THIRD_PARTIES.ID = THIRD_PARTY_INSURANCE_POLICIES.THIRD_PARTY_ID
    INNER JOIN INSURANCE_POLICIES
        ON THIRD_PARTY_INSURANCE_POLICIES.INSURANCE_POLICY_ID = INSURANCE_POLICIES.ID
    INNER JOIN INSURANCE_COMPANIES
        ON INSURANCE_POLICIES.INSURANCE_COMPANY_ID = INSURANCE_COMPANIES.ID
    LEFT JOIN HIRED_VEHICLES
        ON **CUSTOMERS.ID** = HIRED_VEHICLES.CUSTOMER_ID
    INNER JOIN CUSTOMER_STORAGE
        ON CUSTOMER_VEHICLES.ID = CUSTOMER_STORAGE.CUSTOMER_VEHICLE_ID
    INNER JOIN CUSTOMER_RECOVERY
        ON CUSTOMER_VEHICLES.ID = CUSTOMER_RECOVERY.CUSTOMER_VEHICLE_ID
    INNER JOIN ADDRESSES
        ON INSURANCE_COMPANIES.ADDRESS_ID = ADDRESSES.ID
    INNER JOIN COUNTRIES
        ON ADDRESSES.COUNTRY_ID = COUNTRIES.ID
    INNER JOIN DISTRICTS
        ON ADDRESSES.DISTRICT_ID = DISTRICTS.ID
    INNER JOIN CITIES
        ON ADDRESSES.CITY_ID = CITIES.ID
    WHERE CUSTOMER_ACCIDENT_HDRS.ID NOT IN (SELECT THIRD_PARTY_INITIAL_LETTER_PRINTED.CUSTOMER_ACCIDENT_HDR_ID FROM THIRD_PARTY_INITIAL_LETTER_PRINTED)
GO
  • 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-05-17T23:06:23+00:00Added an answer on May 17, 2026 at 11:06 pm

    Remove the section

    , THIRD_PARTY_INITIAL_LETTER_PRINTED
    

    Have a look at this simplified version of your query

    DECLARE @Table1 TABLE(
            ID INT
    )
    DECLARE @Table2 TABLE(
            ID INT
    )
    DECLARE @Table3 TABLE(
            ID INT
    )
    
    SELECT  *
    FROM    @Table1 t1,
            @Table2 t2 LEFT JOIN
            @Table3 t3  ON  t1.ID = t3.ID
    

    This will produce the same error.

    If you wish to CROSS JOIN t1 and t2, you have to do that before you USE the rest of the joins.

    Something like

    ;WITH Vals AS (
            SELECT  t1.ID t1ID,
                    t2.ID t2ID
            FROM    @Table1 t1,
                    @Table2 t2
    )
    SELECT  *
    FROM    Vals v LEFT JOIN
            @Table3 t3  ON  v.t1ID = t3.ID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have created a new List View Style that shows thumbnails from a picture
I have created a UserSiteBaseController that gets commonly used data and sets the data
I've created a c# webservice that allows our front end support teams to view
I'm trying to add a strongly-typed view to the sample app that's created when
Hey guys, I have an application that I want to display some data from
I want to create a view that consists solely of a UITextView . When
I want to create a view that has different displays according to the role
I've created a view with a set filters exposed (to show filtering options in
I have created an iPhone application based on an OpenGL view. Now I would
I've created a .NET winforms MVC. The Controller and View are in the same

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.