oracle11g - SQL query to find date between a range of dates -


Table X contains related information related to the start date and end date and these dates. Stored in DB in both date format I need to find a specific date on 12th January-2000 and needs to be removed from the rows whose dates range includes this date. Can somebody help me out. I'm new to SQL, so here's some guidance needed.

Table X:

  ID | Start_data | Expiry date 1 | 12/30/1999 | 01/12/2000 2 | 01/20/2000 | 01/30/2000 3 | 01/07/2000 | 01/15/2000   

In this manner my query should be returned to ID-3 because the limit is 01/07/2000-01 / 15/2000 on 12th January

Thanks

Betaewen operator:

  SELECTX to TableX WHERE DATE '2000-01-12' during the beginning and end date    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -