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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:59:17+00:00 2026-06-16T18:59:17+00:00

Needed to start a new thread to deal with a new issue from old

  • 0

Needed to start a new thread to deal with a new issue from old problem.

Original problem is at this link….
complex query join checking that value does not exist

I have two tables, first has

Tb1 = drID, schedDate, rteID

Second has:

Tb2  = drID, FName, LName, Active

tb1 schedDate has a value for 11/12/2012 but returns no records, if I enter 11/01/2012 I get the correct records back, but this date does not exist on any record in tb1.

SELECT drID, Fname, LName
FROM   TB2
WHERE  Active = True 
AND   drID NOT IN (
      SELECT drID
      FROM   Tb1
      WHERE  (drID IS NULL OR drID = '')
      AND  (schedDate = (@targetDate)
      )

Both date fields are dates I have tried casting each individually and both together as in…

AND (CAST(schedDate AS DATE) = CAST(@targetDate AS DATE))

and

AND (CAST(schedDate AS DATETIME) = CAST(@targetDate AS DATETIME))

I am trying to check that no drID exists in tb1 on the date submitted.

  • 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-16T18:59:18+00:00Added an answer on June 16, 2026 at 6:59 pm

    This was the correct solution for this question….

    WHERE not exists (SELECT drID FROM tb1 ....
    

    Date values where not the issue.

    Thanks for all of the feed back.

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

Sidebar

Related Questions

So the following code is possible in C# to start a new thread in
I'm just trying to install everything needed to start messing with ADO in MSVC
I needed to change a work item field from PlainText -> String. As I
i needed help. How do i get domain from a string? For example: Hi
I am want to pass data back from a Thread to Activity (which created
I'm in needed of a thread worker in my .NET application - .NET has
(Note: I saw this post, tell me if that's the same problem: C: performance
I have an OutputStream that I needed to read from, and so I used
I have a function like this: private void GetRSS(int start, int end) { for
My application is crashing when it exits the thread function. This is how my

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.