How to get data from one or several times of perticuler dates

(1) how can we get data from one or more dates perticuler.
for example. date of 01/01/2011 and time is 00:00:00 to 23:59:59

and

(2) how can we get data from one or more dates perticuler.
from date 01/01/2011 to 01/02/2011 date and time e.g. is from 00:00:00 to 23:59:59.

can we?

Hello

Use a WHERE clause to include only certain lines.
For example:

SELECT     *
FROM     table_x
WHERE     dt     BETWEEN TO_DATE ( '01/01/2011 00:00:00'
                    , 'DD/MM/YYYY HH24:MI:SS'
                    )
          AND     TO_DATE ( '01/01/2011 23:59:59'
                    , 'DD/MM/YYYY HH24:MI:SS'
                    )
;

In this example, the first date (before the keyword AND) and second (after the keyword AND) lie on the same calendar day. It's just a coincidence, they can be on different dates.
The first date must not be later than the date of the second; If this is the case, you will get 0 found lines.

I hope that answers your question.
If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using.

Tags: Database

Similar Questions

  • How to get the phone to ring several times before the voicemail picks up

    Is there a setting to let the phone ring several times before the voicemail picks up

    This option will be controlled by your wireless operator. Contact them to determine whether it is possible to change the response time of voicemail.

  • How to get help from one of the live adobe on a new installation of product.

    Is there a person online can anyone help? ADOBE puts me off

    Simple installation of Acrobat pro xi a error message during install "visual c ++ 2010 spi PERIOD missing.»

    Hi Believerfred,

    This issue was discussed by http://forums.adobe.com/thread/1230293?tstart=0

    Just previously install the Microsoft Visual C++ 2010 SP (x 64) before trying to install Acrobat XI on a 64 bit system.  This package is a requirement for Acrobat to install on a 64-bit system, so you must install it.

    For more information, please refer to the http://helpx.adobe.com/acrobat/kb/error-installation-ms-visual-c.html or

    If the problem persists, contact our Supprt from Adobe http://www.adobe.com/support/download-install/supportinfo/

    Thank you!

    Florianne

  • How to migrate code from one environment to another in the MFT 12 c

    Hi all

    How to migrate code from one environment to another in the MFT 12 c.

    Thank you and best regards,

    Tilquin.

    MFT has t2p plugin that can be used to migrate the metadata for production test.

    There is an export option in the transfer page in the MFT UI that can be used to export metadata data transfer.

    This exported zip can be imported in any other environment after making the necessary changes.

  • I need a code for verifiing my email address. How to get a new one?

    Photoshop Elements 12

    Share

    Try to send an e-mail directly from Photoshop elements

    The program requires a code for verifiing my email address

    I need a code for verifiing my email address. How to get a new one?

    Check your email.  The screenshot says they sent to the email address listed.

  • How to get assistance from mozilla to answer questions for windows when I use a macintosh computer

    How to get assistance from mozilla to answer questions for windows when I use a macintosh computer?

    Look on the right side of the knowlegde base articles, where it is said ' help to ". Here, you can change the operating system and the version of firefox. The content of the article will adjust.

    If you ask a question on the help forum, you can simply say this in your question.

  • How to move items from one profile to a local storage

    original title: move items from one profile to a local storage

    How to move items from one profile to a local storage to free up space under this profile?

    Hi MartySlaught,

    ·         You want to move the files in your user account on a different medium (external hard drive)?

    If so, you can do this only for your personal files. You can refer to the following.

    a. make sure that your external USB hard drive or a USB flash drive is connected to your computer.

    b. open the directory on your computer where are the files you want to transfer. Press 'Ctrl' key and click each file you want to transfer.

    c. click on the option "Move selected files" on the left side of the window. Then select the external USB hard disk or USB flash drive. The files will be moved from the computer to the external hard drive.

    See also:

    Microsoft Windows XP - move a file or folder

    Microsoft Windows XP - move files by dragging

  • How to transfer files from one user to another in Windows Vista?

    How to transfer files from one user to another under Vista?

    How to transfer files from one user to another under Vista?

    A simple way is to move the file to the Public folder.
    Public folder is accessible by all users.

    How...
    Right click on the file > click Move To > navigate to the Public folder > click on move.

    If you do not Move To option in your right click context Menu, here is the tutorial...
    http://www.Vistax64.com/tutorials/89196-context-menu-add-copy-folder-move-folder.html

    Use an easier method.

    PS you can also use methiod drag-and-drop rather than pass to the method. I prefer the latter.

  • How people get viruses from Facebook and how to avoid it?

    I wondered how people get virus from Facebook, what are the best way to avoid these, and what are the symptoms of these?

    Thanks in advance.

    Welcome to the Microsoft Answers Ted site.

    The only way you can get a virus from Facebook is by clicking on a bad link. Be always careful with links on which you click, especially of foreigners who are not your friend on Facebook. If you find a link TinyURL (not a bit.ly link), copy (click the link, press Ctrl + C) then paste (click on the address bar, then press Ctrl + V), but add "Preview". (without the quotes, including the period) before the rest of the link. Then, you can see a preview of where you're going. After that, you can continue or go back.

  • Got a legal question about the installation of Adobe Photoshop Elements.  How to get help from Adobe using a chat session?

    Got a legal question about the installation of Adobe Photoshop Elements.  How to get help from Adobe using a chat session?

    AdobeTomFaith

    If your program is Photoshop Elements, then you have posted in the wrong forum. Some how your son got posted in the Forum Adobe Premiere elements (video editing). Please re-post your thread in the Adobe Photoshop elements Forum.

    Photoshop Elements

    Wherever your son is, please include Adobe Photoshop Elements version and operating system and the description of the installation problem (error messages, stage of failure, etc.)

    Support Adobe seems to be limited to Adobe cat and is classically limited to the current version which is 13. Then, you the best avenue to success is likely to be through the Adobe Photoshop elements Forum. But that shouldn't stop you trying to determine what kind of support you can get from Adobe cat on your question.

    I would offer this link that is specific for Adobe Chat download and installation

    Contact the customer service (this is not the same destination as shown in a previous post in your thread)

    This link is specifically designed for

    Photoshop Elements

    Download, installation, setting up

    Download and installation

    Panel discussion

    (18:00 - Friday 7 pm Sunday)

    Thank you.

    RTA

  • Can I get rid of one or several Adobe folders on my desktop after installing or updating?

    Can I get rid of one or several Adobe folders on my desktop after installing or updating?

    Hello

    Yes, you can remove it.

    But the Adobe folder that you want to remove is actually the Acrobat installer. So you could save to another location so that if in the future, you need to re - install the software, there is no need to download the entire product.

    Kind regards

    Ana Maria

  • How to transfer acrobat from one PC to another? I do not have the license # and CD on hand.

    How to transfer acrobat from one PC to another? I do not have the license # and CD on hand.

    You need to install. You will need these things.

  • How to get information from web interface tables

    Hello

    How to get information from web interface tables

    as in the forms... Go to help-> Diagnostics-> review
    Block = SYSTEM field is LAST_QUERY.

    Kind regards.

    Salvation;

    Please see the paragraphs below:

    How to determine the Table and the name of the column to a field in a form in 11i [ID 259722.1]
    How to find the query that succeeded recently? [241628.1 ID]

    Respect of
    HELIOS

  • Help! I get the same e-mail several times... my office to my blackberry?

    I get the same e-mail several times... my office to my blackberry?

    How do I rectify this?

    Try to re-sync and see if that solves the problem.  Your e-mail may be trapped and unable to move from the Outbox to the sent items - and re-synchronization can it empty.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Encryttion I get "Task Scheduler engine stopped" several times. Is there a way to fix this?

    I get "Task Scheduler engine stopped" several times. Is there a way to fix this?

    have you tried the steps outlined in this thread http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/task-scheduler-engine-has-stopped-working/042f8325-f07c-41d7-9ff9-49c43ff9e2b0

Maybe you are looking for