Closed Thread
Results 1 to 2 of 2

Thread: Ambiguous column error

  1. #1
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    Ambiguous column error

    Hi,

    I have the following in my asp page and getting the error below.

    Code:
    SELECT     dbo.tblTest.Equipment
    FROM         dbo.tblScrap FULL OUTER JOIN dbo.tblTest 
    ON dbo.tblScrap.Equipment = dbo.tblTest.Equipment
    where Equipment = '" & strEQNumber & "'
    
    Code:
    Error:
    Ambiguous column name 'Equipment'.
    
    when i run the select statement in the sql2000 analyzer i get the results i want but here when i add the WHERE having the error. im trying to check both table for the equiment.

  2. #2
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    ok...got it...guess have to use the dbo part...like so and then i added OR to check in both tables...wanted to make sure to see if equipment exists in either table.

    Code:
    where dbo.tblTest.Equipment = '" & strEQNumber & "' or dbo.tblScrap.Equipment = '" & strEQNumber & "'"
    

Closed Thread

Similar Threads

  1. Dynamic dropdown not fit in column
    By guddu in forum ASP Development
    Replies: 6
    Last Post: August 19th, 2008, 01:27 PM
  2. class name is ambiguous
    By richyrich in forum .NET Development
    Replies: 11
    Last Post: August 12th, 2008, 12:11 PM
  3. ambiguous in the namespace 'ASP'
    By richyrich in forum .NET Development
    Replies: 10
    Last Post: May 30th, 2008, 05:11 PM
  4. Concatenation of Column Data function
    By AOG123 in forum Access Database Samples
    Replies: 0
    Last Post: March 25th, 2008, 07:53 AM
  5. Concatenation of Column data function....
    By Lauramc in forum SQL Code Samples
    Replies: 0
    Last Post: March 17th, 2008, 01:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO