How can I get the lines for the date between 2 different days

Hi all,

How can I get the lines for the date between 2 different days.

Sample data:
Table name: Articles
Title start_date end_date
Heading1 08-22-2011 2011-09-11
2011-08-01-2011-09-01 Title2
Title 3 2011-08-21 08-21-2011
title4 2011-08-28 2011-09-11

Result will be:
Title start_date end_date
Heading1 08-22-2011 2011-09-11
2011-08-01-2011-09-01 Title2
title4 2011-08-28 2011-09-11

This is my example query:
SELECT * FROM items WHERE trunc (es.date_start) > = TO_DATE('2011-08-22', 'YYYY-MM-DD') AND trunc (es.date_end) < = TO_DATE ('2011-08-28', 'YYYY-MM-DD')

but I can not get the expected results. Any help would be much appreciated.

Thanks in advance

not read your question properly before...

Please try this

Select * FROM items
WHERE (TO_DATE ('2011-08-22', 'YYYY-MM-DD') between TRUNC (es.date_start))
AND TRUNC (es.date_end)) OR
(TO_DATE ('2011-08-28', 'YYYY-MM-DD') between TRUNC (es.date_start))
AND TRUNC (es.date_end))

Tags: Database

Similar Questions

  • How can I get the data view to display the same amount of time I save?

    I use the Sound and Vibration Measurement Suite.  In the data view, I display a graph of time, the power spectrum, the Color Map and the waterfall.  I am also showing strength in numbers group for several bands and doing cutting-edge research.  I record 100 ms of the transient wave.  In the data view, why the temporal plots show several seconds of data?  What determines how much time will appear in the data view?  More important, the power spectrum reflects the power for the entire of several seconds of data displayed?  Same question for power in the values of band and cutting-edge research.  I want to just this data displayed for 100 ms of the wave that I record.  So, how can I get the data displayed (waveforms) and power numbers come only 100 ms of the recorded wave?

    Finally, what is the best way to make account concisely the recorded data?  By slide numbers on the Documentation tab is not concise, because it comes with graphics, etc..  I tried save as ASCII/LVM, but I get a bunch of stuff intermiated I don't care.  Help?

    Hi TimRsandiego,

    SignalExpress is programmed to display graphs with default scales based on the type of action, it's reading. These scales and settings can be changed by right-clicking on the graph, and then select Properties.

    If you are interested to learn more about how to use SignalExpress, I would recommend checking out some demonstrations/tutorials on NI.com. You can find some of these demos at the following location:

    Let me know if you have any other questions.

    Kind regards

  • How can I get the date and time function to appear as a tile

    How can I get the date and time function to appear as a tile

    How can I get the date and time function to appear as a tile

    WIN8 are delivered with this tile/app.  The only way to display the time is to launch the charm bar (Win - key + C) or mouse over to the right up/down.  That said go to the Windows store... There are several free applications that display the time / date as a live tile.  Good luck.

  • How can I get the data of selected text in a text box in flash 8?

    Hi all
    IM using that a text box and we are conducting a kind of embedding the swf in MFC application making all communication through the external interface and add reminders to the nth degree. Joke...
    All right, I need to copy the selected text from the text box in the Clipboard. I could able to copy the full text of the text box in the Clipboard, but how can I copy the selected text in the Clipboard? I couldn't find any textarea.selectedText or any help online for selected text manipulation.

    Can anyone here help me?

    Thanks in advance,
    Kolar

    No, I should have checked earlier.

    It is a way to make fast her... it is to do it, it should work ok, but this isn't the 'best' way to a view OBJECT-oriented programming.

    When you test using test movie, the trace command can steal the focus the first time that a trace output appears. I suggest to remove the instructions of tracing to see that it works properly.

  • How can I get the data from a range of AutoFilter in Excel?

    I have a spreadsheet with a large number of lines (5000) where I want to extract data.  I have opened the workbook successfully, configure an automatic filter and filtered the data to select the data corresponding to the criteria using the nodes property of the ActiveX Excel object and invoke.  I now have to enter the selected data in a table for later processing, and this is where I am stuck.  Help Excel online seems to suggest the creation of a Range object by using special cells with the xlCellTypeVisible type.  If I Range.Count I get the right number of cells, but Range.Value2 produces a variant which contains only the first block of data (a beach filtered automatically seems to consist of several non continuous blocks).  Anyone know how I can read the contents of the range in an array of strings?

    Thanks in advance

    Ken

    IT SOLVED!

    Found a calling areas of property which returns a collection of the areas of each of them continues a range object.  Simply cycled through these areas using the earlier technique, build the table I want.  See below

    Thank you

    Ken

    PS I can KUDOS

  • How can I get the data in the foreign key?  PHP/mysql

    I managed to create registration, log-in and results pages appear for accounts of client with PHP/Mysql/Dreamweaver 8. I have another page for more information to be contained in a child table, I used the Insert Wizard to create. I can't make it work. I get either a foreign key cannot be null error or a foreign key constraint.

    If I include the foreign key in the form on the page, I can manually enter the appropriate identification number, and it works. How to automatically enter the id into the foreign key column?

    I got the authentication of users using e-mail, password and user type.

    Thanks for your help

    When someone connects, Dreamweaver creates a session variable called $_SESSION ['MM_Username"]. Use this session variable to create a recordset object to get the ID of the user, who can then be entered in the child table's foreign key field.

    Dreamweaver automatically updates the code for recordsets immediately above the DOCTYPE declaration, then you will need to move above the code for the server behavior insert record. So it must be in the following order:

    1. Recordset to get the user ID
    2. Insert the record to the child table
  • How can I get the Date of birth, I used on my Email

    I need to know how to find the Date of birth, which I used on my WLID

    Hello

    Go here and scroll down to and click on connect to Account Services - then connect and you will see the
    setting including your Date of birth.

    Windows Live ID
    https://accountservices.passport.NET/ppnetworkhome.SRF?VV=1200&mkt=en-us&LC=1033

    For more help with Windows Live please use their support and the forums.

    Windows Live Solution Center - accounts and passwords - Windows Live ID
    http://www.windowslivehelp.com/

    I hope this helps and happy holidays!

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How can I get the data from the drive of barcodes to forms

    Hi Experts,

    Forms 6i

    I would like to collect data from the barcode scanner.

    No idea if you got it please share.

    Thanks in advance.

    Hello

    I think that his works even as the keyboard.  You type the code manually or you can read it from a scanner.  With the help of the keyboard that you can able to type what anyone on the position of the cursor, in the same way the barcode scanner also works.  Just like a copy and paste the scanner copies the data from the physical device and paste it into your corrent cursor position.  There is no separate program encodings necessary for this work.

  • How can I get the dates retrieved from the database to display in Spanish?

    I'm pulling a date from a MySQL database and need to display in Spanish. If it was in English, these are the two statements, I'd be using:

    #DateFormat (event_date, "mmmm") #.
    #DateFormat (event_date, "mmm d") #.

    I tried to use < cfset SetLocale ("Spanish (Standard) '") > in my Application.cfm, but it doesn't seem to work. I don't really know how it is supposed to be used or even if it would work if I had to use it properly.

    Any help would be appreciated.

    Thank you - CaddyX

    Thank you Paul. Now it works perfectly.


    #LSDateFormat (event_date, "mmmm") #.
    #LSDateFormat (event_date, "mmm d") #.
    ...

  • How can I get the tabs to go on a single line and a menu of Firefox?

    Firefox allows to have 2 lines above - Firefox menu with tabs and more and another line of the navigation toolbar. during the installation of some programs online, Firefox now have 3 lines at the top, with the Firefox menu on an entire line, the 2nd line of tabs and 3rd line of navigation toolbar. How can I get the tabs to go on a single line and a menu of Firefox?

    With the current versions of Firefox, you can choose to use the menu of Firefox (orange in windows; gray Linux) button at the left end of the Windows title bar or bar menus familiar as in earlier versions. The Firefox button is displayed by default only in Windows Vista and Windows 7, but you can turn on or off or switch between the two or temporarily show the menu bar when the Firefox button is displayed.

    If you chose to use the Firefox button and you use the default tabs on top, the tab bar will move to the title bar with the Firefox button only when you are to maximize window (the ' square' the middle button in the upper right corner of the Windows standard application window). Other selected toolbars will be displayed below that (bar Navigation, Bookmarks Toolbar and the toolbars you add via Add - ons).

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • How can I get Firefox looking for my computer for the plugins that are already there?

    How can I get Firefox looking for my computer for the plugins that are already there?

    Adobe Flash player is already on my computer from IE 8. How can I get Firefox to see that it is already on my PC and use it so I don't have to download it again and possibly create other problems. Also, in my efforts to download Flash, active Firefox IE that made me concerned that would cause problems that our just leave me where I am now, instance where IE can use a bottle but Firefox cannot.

    Internet Explorer uses a version of the Flash player ActiveX plugin as it does not work with other browsers.

    Download the version of the https://www.adobe.com/products/flashplayer/distribution3.html Plugin-based browsers and make sure Firefox is closed when you install it.

  • iPhone Sync with PCI trying to sync my iphone to my computer via i-tunes soft ware.  It does give me an option for the phone device. How can I get the phone icon in the menu bar?

    I am trying to sync my iphone to my computer via i-tunes soft ware.  It does give me an option for the phone device. How can I get the phone icon in the menu bar?

    Mac or Windows?

  • How can I get the tabs colorful to use different distinct colors for 2 gmail accounts?

    Under Firefox 29.0.1 iMac OSX 10.9.3. I have multiple Google accounts: 2 1 Google Calendar and gmail accounts. Colorful tabs add-on will allow me to choose a color for a gmail account, but it also uses this same color for the other gmail account. How can I get the different colors on 2 gmail accounts?

    In addition, colorful tabs is also the same for my homepage (google.com) and my google calendar. How can I get different colors on these 2?

    Personally, I use 'Fabtabs' for my mozilla FireFox.

    https://addons.Mozilla.org/en-us/Firefox/addon/FabTabs/

    This add-on has problems like that when I use it.

  • How can I get the six digit code for my iPad Pro? I have two other iPads and an iPod but I enter the codes I get and the Pro is just off!

    How can I get the six digit code for my iPad Pro? I have two other iPads and an iPod but I get the codes I get and the Pro is just disabled for longer and longer whenever he rejects these codes!

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • How can I get the command bar, for e-mail, etc..

    How can I get the command bar in Mozilla? For the icon to email etc.

    If you want to learn the basics try this interactive and video tour

Maybe you are looking for