DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Location
    PA
    Posts
    259

    The column prefix does not match with a table name or alias name used in

    Help, I'm try to do this query : select * from CivilHeader where CivilHeader.CaseNumber = Judgment1.Casenumber but I get this error and dont know what is causing it : The column prefix 'Judgment1' does not match with a table name or alias name used in the query.



    Judgment1 is a table not a column so the error message makes no sense

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You must include all tables referenced by the query in the FROM clause. Your FROM clause does not include a table named Judgment1, thus the error.

    Try this:

    SELECT * FROM CivilHeader, Judgment1
    WHERE CivilHeader.CaseNumber = Judgment1.CaseNumber
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Validate user entry against table column
    By Paulette in forum Web
    Replies: 1
    Last Post: 06-17-2002, 05:40 PM
  2. XML to 3 column table
    By Eric in forum XML
    Replies: 0
    Last Post: 09-06-2001, 06:03 PM
  3. Hiding column of a table
    By maya in forum ASP.NET
    Replies: 3
    Last Post: 07-11-2001, 09:40 AM
  4. Multi-row calculations
    By Bob Hines in forum Database
    Replies: 7
    Last Post: 04-27-2000, 11:14 AM
  5. Re: adding column to table
    By sarah in forum Database
    Replies: 0
    Last Post: 04-18-2000, 11:14 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
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links