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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:26:24+00:00 2026-05-26T18:26:24+00:00

from the following data basis i need to select all IDQ ‘s which do

  • 0

from the following data basis i need to select all IDQ‘s which do not have an entry for the 11.11.2011.

IDQ | DATE
----------------
 1  | 08.11.2011
 1  | 09.11.2011
 1  | 10.11.2011
 1  | 12.11.2011
 1  | 13.11.2011

i can’t figure out how to express the sql

select
   IDQ
from
   TBL_WITH_IDQ T
where not exists ( DATE = '11.11.2011' ) // sql does not the job

Database is a Oracle 11g.

maybe someone can help me?

  • 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-26T18:26:24+00:00Added an answer on May 26, 2026 at 6:26 pm

    Try:

    select idq
    from TBL_WITH_IDQ
    group by idq
    having max(decode("DATE", '11-Nov-2011',1, 0)) = 0 -- double-quoted keyword column name
    

    (Single pass solution) – if your original table is TBL_WITH_IDQ

    On the other hand, if your original table is TBL_WITH_DATES and you want to include IDQs with no entries at all, I’d suggest this variant of Parkyprg’s solution:

    select IDQ
    from TBL_WITH_IDQ t
    where not exists
    (SELECT null 
     FROM TBL_WITH_DATES d
     where d."DATE" = '11-Nov-2011' and t.idq = d.idq)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to build a tree using the following data which comes from a
I have table that I insert data with following query (from c# code): INSERT
I have the following function that is pulling data from a database. The ajax
I'm reading from a binary data file which is written by invoking the following
I'm trying to select data from a table defined similar to the following :
I have the following query in mysql 5.1.41: select distinct table_schema from information_schema.tables where
I have a very basic need to get some data from the database and
I have the following query: SELECT location, step, COUNT(*), AVG(foo), YEAR(start), MONTH(start), DAY(start) FROM
I have the following data in a c++ string John Doe 01.01.1970 I need
I am trying to export the following data in the query from ms sql

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.