Is it possible to do it in a table? (Count the number of days from a certain date)

Hello

I did yesterday a data base to make my job easier. I could make it even more effective if I could understand this delicate piece of business.

What I have is in my table has a column called "Date completed". This column contains the date when the project was completed. Then, I would like to have another column in the table called "number of days elapsed since completion. This column would have simply taken the date in column "Date completed" and count the number of days since that day and show them in a numeric value (i.e. 28). This way I could do a select and display everything is over for a number of days where I need complete my report (s).

Thanks for any help. If you know a way to do that is completely different from what I'm trying to please do not hesitate to propose a solution, I'm a complete newbie to this. I took a basic SQL course at the College a few years ago, but never learned to do anything as advanced as this.

Thanks again

Your number of days can be easily calculated as trunc (sysdate) - date you completed column.

You probably don't want to store the number of days in the table (since his will change daily)-instead it calculate on the fly that you query the data (or if you have 11 g you could watch the virtual to make columns persistent calculation rather than the value in the table).

Tags: Database

Similar Questions

  • I broke my screen, and now cannot drag to open it.  I have an alarm that don't go.  I also want to synchronize my phone before I take it buy a new one.  Is it possible to synchronize and watch my calendar for the next few days?

    I broke my screen, and now cannot drag to open it.  I have an alarm that don't go. I can let the battery die I know but I really want to be able to access and examine what are the texts I received today. I think that my ICloud is can be disabled. I also want to synchronize my phone before I take it buy a new one.  Is it possible to synchronize and watch my calendar for the next few days?

    Without entering your access code, it is not possible, unless your time is in iCloud. If this is the case, connect to iCloud.com to check your calendar.

    Good luck.

  • Is it possible to display the number of words or number of characters in the selected text

    The Word Count utility has all the words in the document. Is it possible to count the number of characters or words in a piece of selected text?

    Re: is it possible to count the number of characters or words in a piece of selected text?

    Until you get an answer you like best, with the highlight text, right click, copy, paste into the blank document to LibreOffice Writer:
    Tools > statistics

  • How can I find the number of pixels is in my photos of the ipad? I sell on ebay and they have new requirements for the photos. 500 pixels on the longest side. Is it possible to increase the pixels on already took pictures?

    How can I find the number of pixels is in my photos of the ipad? I sell on ebay and they have new requirements for the photos. 500 pixels on the longest side. Is it possible to increase the pixels on already took pictures?

    See if this application works for you > https://itunes.apple.com/us/app/image-size/id670766542?mt=8

  • Is it possible to block the execution of Javascript from an IP address?

    In accordance with article http://tech.firstpost.com/news-analysis/more-trouble-for-airtel-injects-javascript-code-to-monitor-data-usage-activist-receives-notice-270111.html, my broadband provider is inserting javascript in web pages browsed by me. I would like to block the download and execution of Javascript to this IP address. is it possible to do?

    Have you tried the YesScript extension? It can block scripts by IP (or domain name).

    1. Add YesScript in Firefox.
    2 Add-ons Manager open (Ctrl + Shift + A)
    3. click on Extensions
    4. click the button Options of YesScript
    5. Add the IP address

  • My icloud account is locked and I can't receive emails from release because they send the icloud, mail it is possible mail to release to be sent through the intermediary of my apple ID

    My icloud account is locked and I can't receive emails to unblock my icloud account because they send mail to icloud so that is locked, if possible mail to release to be sent through the intermediary of my apple ID so that I can be able to see.

    If you have only a @icloud e-mail address, you will need to call Apple Support and ask your password reset e-mail be sent to an alternate email address.

  • Is it possible to automatically check all bookmarks, then remove the works do not bookmarks

    Is it possible to check automatic all bookmarks and remove the works do not bookmarks

    Try this extension:

  • Download Manager: is is possible to cancel a download and not delete the partially downloaded file?

    There seems to be no way to change the default behavior for the Cancel button the Download Manager.

    I would like to be able to break a download link without losing what I have downloaded so far.

    At the moment to achieve, I stop the download, move the files, and then cancel the download. It of messy and got to make mistakes in the past.

    Thanks for your suggestions.

    You have changed the investigation once more.

    • "If you state categorically that Firefox will remove always download files when you press the Cancel button, I will mark this topic resolved."

    That seems unlikely,
    and in a certain extent depend on system set-up, and for example if you download to a temporary directory, regardless of what Firefox does or not doing the files will be probably deleted a date closer.

    The above is another question, but again, you have asked initially

    • "I would like to be able to break a download link without losing what I have downloaded so far."

    Sometimes, it is possible.

  • My 5s possible remote jailbroken and hacked so I share the same ID Apple and the person knows my passwords?

    My 5s possible remote jailbroken and hacked so I share the same ID Apple and the person knows my passwords?

    N °

    What makes you think that this could happen? If you share an Apple ID with someone and they know a lot of your passwords, they have access to a lot of your information. Change your passwords.

  • Is it possible to format my Satellite U300-111 without the CD

    Is it possible to format my Satellite U300-111 without the CD :_|

    It is perhaps possible to s

    Go to www.bootdisk.com and download a bootable Win98 floppy and run FDISK to remove all partitions non-dos.

    If you don t have a USB FDD drive, to see if you could boot from the memory stick USB boot Win98 disk files.

    But a question; Why you want to format the HARD drive? Have you ever created a Vista recovery DVDs?

  • Is it possible to have automatic display without going through the iPad also require the word to reactivate?

    Is it possible to have automatic display without going through the iPad also require the word to reactivate?

    While at home, there is no reason to have the password, but I want the device to sleep to save battery when I put aside.

    You should be able to have the settings > general > Autolock set for a time while having parameters > Passcode > Passcode turn off - you'll still have to "slide to unlock", but not to enter a password

  • Is it possible to get an extra internal drive on the Satellite A200-1d(a)

    Is it possible to get an extra internal drive for the A200-1d(a)?

    Hello

    It should be possible, but you must first case if your machine has the connector or not. You can check this by opening the second hdd cover and check if the connection is present.
    So Don t you know where to look, just unscrew the covers on the bottom of the machine and watch. :)

    Welcome them

  • How to clear the output buffer, possibly resize and burn again, before you begin the task of output

    I use PyDAQmx with a USB-6363, but I think the question is generic to DAQmx.

    I have an output buffer that I want to be able to (re) write to without starting the task output.

    More specifically, I have a graphical interface and a few sliders, the user can move.  Whenever the slider changes, a new set of values is loaded into the buffer output through DAQmxWriteAnalogF64.  After you set the value, the user can click on a button and start the task output.

    In some cases the change in cursor does not require a change in buffer size, only a change in the data.  In this case, I get the compalint following DAQmx as they tried writing:

    The generation is not yet started, and not enough space is available in the buffer.

    Set a larger buffer, or start the generation before writing data more than content in the buffer.
    Property: DAQmx_Write_RelativeTo
    Value: DAQmx_Val_CurrWritePos
    Property: DAQmx_Write_Offset
    Corresponding value: 0
    Property: DAQmx_Buf_Output_BufSize
    Corresponding value: 92

    In other cases the change in cursor requires both change in the size of the buffer and data modification.  In this case, I get the following, but only after that do a few times each time increase the size of the writing.

    DAQmx writing failed because a previous writing DAQmx configured automatically the size of output buffer. The size of the buffer is equal the number of samples written by channel, so no additional data can be written before the original task.

    Start the generation of before the second writing DAQmx or set true in all instances of writing DAQmx Auto Start. To gradually write to the buffer before starting the task, call DAQmx Configure an output buffer before the first writing DAQmx.
    Task name: _unnamedTask<0>

    State code:-200547
    function DAQmxWriteAnalogF64

    I tried to configure the output via DAQmxCfgOutputBuffer buffer (in some cases, by setting it to zero or a samples, then save again, in an attempt to clear it) but that doesn't seem to do the trick.

    Of course, I can work around the problem by loading data only when the user clicks the end button, but not what I'm asking here.

    Is it possible to "remake" the writing of output before you begin the task?

    Thank you

    Michael

    Today I have no material practical to validate, but try unreserving task before writing the new buffer:

    DAQmxTaskControl (taskHandle, DAQmx_Val_Task_Unreserve);

    With a simulated device, he made the error go away in case the buffer is the same size.  You will need to validate if the data are in fact correct, but I think it should be (unreserving I would say reset the write pointer so the old buffer are replaced with the new data).

    I always get errors when you try to change the size of buffer if (on my 6351 simulated).  I posted some similar mistakes about the reconfiguration of the tasks here, I guess it is possible that this issue has also been set at 9.8 (I always use 9.7.5 on this computer).  If the behavior is still present in the new driver, and also appears on real hardware (not just simulated), then it seems that this is a bug of DAQmx someone at OR should be considered.

    I wrote a simple LabVIEW VI that captures the error in order to help people to NOT reproduce it:

    The best solution at the moment would be likely to re-create the task if you need to change the size of the buffer (or avoid writing data until you are sure what will be the size of buffer).

    Best regards

  • is it possible to display the number of elements in the array before you run?

    Hello

    At runtime, I can use the size of array function to check the number of items in a table. But it is possible to display the size of the array in edit mode (i.e. before turn the vi)? Thank you.

    dragondriver wrote:

    The table contains for some culster complicated. Yes, you are right, to help to see the last item will give an idea. But what I want is that anyway to show an indicator on the Panel before showing the dimension when the user changes the size on the fly.

    You can implement the whole thing (indicator of control and the size of array) as a X-control. They are fully operational in edit mode.

    I still don't quite see what you're trying to do? Why would it matter what happens in edit mode? A finalized VI must always be runnning during use. Use a state machine architecture.

  • Is it possible to run a search/change on all the steps within a sequence?

    Is it possible to apply a find/change to all the steps within a sequence.  For example, if you want all instances of '27_' to "59_", is it possible in TestStand 4.2.1?

    Have you tried hitting "Ctrl" + "F" on your keyboard?  This is what I use all the time and you can find/replace with it.

Maybe you are looking for

  • Events of Aperture on iPhone

    So I screwed up really hard, I have synced by iTunes through aperture library photos, but when I came back from my trip this week I just migrated to the photos app and deleted the aperture library. The question I have now is that my photos of Mac eve

  • Updated for Firefox 8 today. now, said Sync is incompatible with 8. That is what it is? Thank you.

    Just upgraded to Firefox 3.6 8, after getting a message that 3 wouldn't be supported much longer.I Sync is an extension of Mozilla, so I'm surprised, it's not compatible with version 8. This is a temporary situation, or I have to revert to a previous

  • The app question

    I just bought an iPad Pro and said that my Apple text application that comes with it will be only the text to other Apple devices.  Is there a TEXT my phone number of iPad and not the number of third-party apps?  I hope so.  If Yes, is it a decent ap

  • SP3 update: problems, can only start in safe mode

    Windows XP Home Edition: update to SP3, in the hope that it would, among other things, allow me to install the windows update service. Unfortunately, I can only boot in safe mode. If I try the normal startup, it goes into a boot loop. By that I mean

  • environment of server terminal server HP laserjet p1606dn

    Is it possible to use a hp laserjet p1606dn in environment terminal server?