•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 423,751 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,315 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser: Programming Forums
Views: 985 | Replies: 4
![]() |
•
•
Join Date: Oct 2006
Posts: 34
Reputation:
Rep Power: 2
Solved Threads: 1
Hi,
Can we get a SQL query, to display all the dates between two given dates
eg. if date1=21-mar-2007 and date2=25-mar-2007
then the query should display all the dates between those two given dates i.e
22-mar-2007, 22-mar-2007, 23-mar-2007and 24-mar-2007.
Query should not contain any plsql coding.
Regards.
Can we get a SQL query, to display all the dates between two given dates
eg. if date1=21-mar-2007 and date2=25-mar-2007
then the query should display all the dates between those two given dates i.e
22-mar-2007, 22-mar-2007, 23-mar-2007and 24-mar-2007.
Query should not contain any plsql coding.
Regards.
•
•
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,270
Reputation:
Rep Power: 4
Solved Threads: 80
•
•
Join Date: Nov 2007
Posts: 51
Reputation:
Rep Power: 1
Solved Threads: 9
You could try something like
Nige
sql Syntax (Toggle Plain Text)
SELECT date1 + rownum FROM all_objects WHERE rownum < date2 - date1;
Nige
Last edited by peter_budo : Apr 23rd, 2008 at 7:00 pm. Reason: Keep It Organized - please use [code] tags
![]() |
•
•
•
•
•
•
•
•
DaniWeb Oracle Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- How do you use dates before 1900 in Excel? (Windows Software)
- List specific dates between two dates. (MS Access and FileMaker Pro)
- VB/Access - Difference between two dates (Visual Basic 4 / 5 / 6)
- help needed with two methods - Dates (Java)
- Having a little trouble with my Code. [please Help me out] (C++)
- Comparing and sorting of Dates. (C++)
- dates (Visual Basic 4 / 5 / 6)
Other Threads in the Oracle Forum
- Previous Thread: Data Dictionary Views
- Next Thread: SQL Query question over multiple tables



Linear Mode