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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:38:51+00:00 2026-06-17T02:38:51+00:00

I have some tables I’ve joined together in a view and I execute the

  • 0

I have some tables I’ve joined together in a view and I execute the view when I want to pull the result. I want to apply a where clause to the view so that my results provided by the view are filtered, however when I do this I get the error The multi-part identifier could not be bound.

When take the SQL query from the view and run it as a standalone query with my where clause it runs fine, so I have a problem with applying the where clause to my view.

View

SELECT     
   dbo.Assets.assetid, dbo.Assets.assetcommonname, dbo.Assets.assetcode,   
   dbo.Assets.assetserial, dbo.Assets.assetinternallocation, dbo.Assets.assetmodel, 
   dbo.Assets.assetmake, dbo.Assets.assetmac, dbo.Assets.assetnotes, 
   dbo.AssetTypes.typename, dbo.Locations.locationame, dbo.Customers.customername, 
   dbo.Routes.routename, dbo.Locations.customerid
FROM         
   dbo.Assets 
INNER JOIN
   dbo.AssetTypes ON dbo.Assets.assettype = dbo.AssetTypes.typeid 
INNER JOIN
   dbo.Locations ON dbo.Assets.assetlocation = dbo.Locations.locationid 
INNER JOIN
   dbo.Customers ON dbo.Locations.customerid = dbo.Customers.customerid 
INNER JOIN
   dbo.Routes ON dbo.Locations.locationroute = dbo.Routes.routeid

How I execute the view with my where clause

select * from afViewassetlinked where (Locations.customerid = '1')

what have I done wrong?

  • 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-17T02:38:53+00:00Added an answer on June 17, 2026 at 2:38 am

    Change

    select * from afViewassetlinked where (Locations.customerid = '1')
    

    to

    select * from afViewassetlinked where (customerid = '1')
    

    The view afViewassetlinked is not the table Locations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some tables that I'm joining in a query with Postgres (9). However,
I have some tables that benefit from many-to-many tables. For example the team table.
I have some transliteration tables in code that are formated to make it easier
Greetings, I have some mysql tables that are currently using an md5 hash as
I have some tables with the same structure and I want to make a
I have some tables with various content. What I want to accomplish is to
I want to have some columns from some tables. I have a problem with
I have some tables being used with the Borland Database Engine that I need
I have some tables that has the following structure: cat( cat_id(pk), cat_name) ven( ven_id(pk),
I have some tables which all have a field named created_at , that's a

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.