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

  • Home
  • SEARCH
  • 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 7033483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:04:16+00:00 2026-05-28T01:04:16+00:00

Im trying to do a left join on two tables to get all values

  • 0

Im trying to do a left join on two tables to get all values that do not exist in table 2 or have a status of null:

Table 1 has ROID as long

Table 2 has ID long, Type long, and Status text.

This works fine on Vista and Win 7 (I get all the records that do not exist in V), but I get no records on XP,

  SELECT roid
  FROM
  wo AS w LEFT JOIN VFlag As V ON (w.roid = V.ID AND V.Type = 2)
  WHERE
  (V.Status is Null) 

When I remove the V.Type = 2, it works fine on XP/Vista/7, but I need to qualify on Type as well:

SELECT roid
  FROM
  wo AS w LEFT JOIN VFlag As V ON (w.roid = V.ID)
  WHERE
  (V.Status is Null)  

This is both in VB6 using ADO and VisData. Trying WHERE isnull(V.Status) did not make any difference. XP machines (two tested on) are SP3.

  • 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-28T01:04:17+00:00Added an answer on May 28, 2026 at 1:04 am

    Have you tried placing the V.Type = 2 in the WHERE clause instead of the join?

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

Sidebar

Related Questions

I'm trying to LEFT JOIN two tables, to get a list of all rows
I'm trying to build a HQL that can left join values from a collection,
I have a MySQL Left Join problem. I have three tables which I'm trying
I am trying to compare two tables to find rows in each table that
I have three tables that I need to join together and get a combination
I am trying to build a select query that will essentially left join two
I have two tables and I am trying to get information with an outer
I am trying to join two tables in sql and get the count of
I've got a problem. I'm trying to left join two tables with Zend Framework
Using extension syntax I'm trying to create a left-join using LINQ on two lists

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.