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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:32:11+00:00 2026-05-31T01:32:11+00:00

I have a right join query (joining a table and another query output). I

  • 0

I have a right join query (joining a table and another query output). I get “#Error” displayed in some rows. Is there a way to just display the rows which give “#Error” ?

Here is my query:

SELECT Table1.Number1, Table2.Number2
FROM Table2 RIGHT JOIN Table1 ON Table2.Number2 = Table1.Number1;

Sample Data:

Expr1   Expr2
2346    2346
2347    2347
2348    #Error
2349    2349
2350    2350
2351    2351

Sub Query:

SELECT Val(Right([String2],Len([String2])-8)) AS Number2
FROM Table3;

Thanks in advance

  • 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-31T01:32:13+00:00Added an answer on May 31, 2026 at 1:32 am

    Just add a WHERE clause on the end. Should work fine. If you have multiple columns that the #ERROR rows might show up in, use a WHERE clause with ORs (or, alternately, ||s ) in it. If you toss out a clearer idea of which columns have #ERRORs in them, I could batch you together a code block for it, but it should be pretty easy for you to handle for yourself.

    Edit: Correction:

    SELECT Table1.Number1
    FROM Table1
    WHERE Table1.Number1 NOT IN (
        SELECT Table2.Number2 FROM Table2
    )
    

    You’re getting errors because you’re forcing table1 to show up even where there’s nothing in table 2 to match it. This will give you the orphans.

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

Sidebar

Related Questions

I have the following query SELECT * FROM attend RIGHT OUTER JOIN noattend ON
I have a right outer join, that almost does what I want... SELECT users_usr.firstname_usr,
Ok, if I have this right, my code can get cookies at a specific
I have 3 tables: problems, categories, and a joining table for problem_categories I am
I have the following query: select * from ACADEMIC a left join RESIDENCY r
I currently have a signed integer set in a MyISAM table, The query is
I have been trying to get this query to work but I am stumbed
I'm trying to get a query to compare two tables by LEFT OUTER JOINing
I have a problem with joining 2 tables together, as follows Table 'jobs' id
I have this query: SELECT p.id, r.status, r.title FROM page AS p INNER JOIN

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.