Get the day of the week (dow) of old date

Hello

Do you know how I can get any stored date (Mon, Mar) dow say in param:

bizdate date: May 15, 2010 = ';

day 3 VARCHAR2 (3);

I use this first select statement of the double, but may not know how to replace the current date with the other,

#1:
Select to_char (sysdate, 'dy') in day 3 of double;

#2:
Select to_char('15-May-2010','dy') in the day 3 of double;
How can I say this may 15, 2010 pl "to the date format?


TX
T

Maybe this?

SQL> select to_char(sysdate,'day') dow from dual;

DOW
---------
wednesday

SQL> select to_char(to_date('15-May-2010','dd-mon-yyyy'),'day') dow
  2  from dual;

DOW
---------
saturday

SQL> 

Tags: Database

Similar Questions

  • Cannot attach email word documents get the message 'enable documents and data '.

    Cannot attach a word document to an email. I get the message 'Enable documents and data' and it says that it is disabled. Don't enter iCloud setting there is no Document and data parameter. Is it because I use a free version of work?

    Whether the app is the word document?

    You can view the document word on the iPad?

  • How to get the week sequence?

    Hi friends,

    Greetings of the day!

    I am greatly in dealing with the next thing.

    I have two tables. a table with all the required information and another table called process_dtl, have the details of refreshment. These tables gets updated once a week. when its gets refreshed have will update the process_dtl table start date and refreshes the end date. There are also a few unique seq_no for each update. I will combine these 2 tables with seq_no process, because it is the unique key in the two tables. About these tables are more 2-year data. But what I want, I want only 6 months given. With 6 months data, based on the start_date I want to have the data week sequence. Means I want to know if it is given 1 week or 2 weeks, etc because the data get updated once a week. Is it possible to distinguish like this using start date. Please reply back if you understand the above.
    I'm using oracle 11g.


    Thank you

    Published by: 981145 on May 8, 2013 04:56

    You can get the data from the last 6 months simply by using the WHERE clause to limit the process_start_dt or process_end_date, as mentioned by Chris above. Since the sequence of steps. is unique for each race, I assume that the data you get from dtap_rpt_site_dtl_hst for that sequence number. needs no other filter criteria, so it must be good there.

    For the format of the week like you wanted, use the following in your select clause-

    to_char(process_start_dt, 'Mon') ||' ' || to_char(process_start_dt, 'D') week_seq
    

    Hope this has helped.
    Thank you!

  • Get the week number

    How can I get the number of week a week of prasent using simpleDateFormat class?

    With regard to:

    Jitendra.Balla

    GetWeekOfYear DateTimeUtilities (calendar, long date, int firstDayofWeek)

  • How to get the week of the year in American Standard

    Hello

    I know that it might be a repetitive question, but has not found a convincing solution to him in any of the previous threads. I'm looking for a function (user defined, if someone has already written it) go the week of the year, American Standard. i.e., The week should begin on Sunday and end on Saturday (and NOT from Monday to Sunday)

    03/01/2010 - should be the beginning of the 1st week of 2010... 10/01/2010 will be the beginning of the second week and so on
    04/01/2009 - should be the beginning of the 1st week of 2009... 11/01/2009 will be the beginning of the second week and so on.

    Does anyone have a function that takes a date as input and returns back the week of the year in the above format? Any help is greatly appreciated.

    Thank you

    You can add a day to your date in order to manipulate the weeks;

    with t as (
       select to_date('02/01/2010','dd/mm/yyyy') dt from dual union all
       select to_date('03/01/2010','dd/mm/yyyy') from dual union all
       select to_date('09/01/2010','dd/mm/yyyy') from dual union all
       select to_date('10/01/2010','dd/mm/yyyy') from dual)
    select dt, to_char(dt, 'Day') dy, to_char(dt+1, 'iw') wk
    from t;
    
    DT          DY        WK
    ----------- --------- --
    02/01/2010  Saturday  53
    03/01/2010  Sunday    01
    09/01/2010  Saturday  01
    10/01/2010  Sunday    02
    
  • How to get the week of the current month

    Hi all
    Is it possible to find the week of the current month.

    Help, please...

    Hello...

    Use this feature to get the desired result.

    Hope it's okay...

    CEILING (DAYOFMONTH ("Time D0". "T00 calendar date") (/ 7.00) "

    Note: use 7.00 7 not only in the denominator*.

  • get the history of use of data store

    When you go to the performance tab from a data store that you can see the allocation graph and space used on a range of time.

    How to access these statistics via powercli?

    Get-stattype-entity * does not return all the types of stat for data warehouses

    the point of this is I'm trying to script a report that shows the percentage of data in the last 7 days store

    for example, 80%, 81%, 82%, 82%, 82%, 83% and 83%

    A quick glance at my post called statistical data store

  • Get the highest value of acquired data

    Hi, how can I get the highest value of data according to data acquired using the accelerometer ADXL345 and LINX in LabVIEW?

    I want the highest data to be shown with a flag. However, the data being shown are always the last acquired data. My problem would be what happens if the highest data somewhere at the beginning or in the middle of all the acquired data? How to display the highest data using an indicator?

    Here's a look at my front, block diagram, and sample of the acquired data.

    From the front panel, the basic indicator of detected last poster 0.1929 (amplitude), which is the last value. But looking at the Excel file, the highest data are data which is 0.2013. The highest, I want to be displayed on the indicator not the last value. How do I do that?

    Thank you!

    I gave you an example of what you need to do - it is not okay if wire you the new value and the old value for the X or Y - it will always return the maximum of the two values so the order doesn't matter. It would have been more useful if you had posted what you tried the max & min. You need a registry to offset inside the loop (like I did with my while loop). If you only want to display the maximum value for each iteration of the loop for external, you must initialize the shift register by plugging a 0 to its terminal on the left. A shift register her pinned the value of the last run - probably not what you want here.

  • With the help of time interleaved sampling (TIS) to get the highest sampling rate of data acquisition card

    I tried enabling to TIS using nodes of property for the appropriate channel and by disabling the TIS for strings, I don't want to use. When I do that, I get the following error:

    niScope read Cluster.vi:1internal software error has occurred in the extended software. Please contact the support of National Instruments.

    Name of the component: nihsdru
    File name: p:\Measurements\highSpeedDigitizers\hsd\driver\trunk\1.10\source\redirection\tHardware.cpp
    Line number: 1038

    State code:-223425

    Any ideas what to do?

    Thank you, but I managed to fix it with the help of a few colleagues.

  • How to get the product key from old computer running XP SP1 until she is thrown?

    How can I get my registration code from my old computer with xp with service pack 1 before I throw it away

    * original title - how can I get my registration key of xp to xp I can see all the files in my computer *.

    Hello

    You can get the product key of your Windows XP CD. To get the key from your computer, you might have to look by using a third party app that could help you achieve the same.

    Please use your favorite search engine and browse for such a program that is used to.

    Note:  This response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

  • Get the custom IdocScript function contributor data file

    Hello

    I have a requirement to retrieve a number of elements of a given contributor data file. The problem is, I don't know how to retrieve the XML code inside a custom component of IdocScript.

    Given the content of the data contributor file ID, is there an easy way to get the XML file, or do I need to use with a service call?

    Thank you!

    If it's a Java component, why not just get the direct file system XML file? The demand function, you could have a file path in the binder... If not, use the IdcFileDescriptor object:

    https://groups.Yahoo.com/neo/groups/intradoc_users/conversations/topics/25937

  • How can I get the text of oracle database data?

    We would like to get the text data to oracle database instead of manually in illustrator, is there a way to do it? Thank you.

    I can not extract data from databases. There may be some plug-ins for automation, somewhere, but not in native mode.

    Mylenium

  • How to get the ID of a single data centre and the Cluster

    Hello

    We have a product we need get the detail of data centers, Clusters, the Esx host and all Virtual Machines of a Virtual Center. And keep it in sync with the VCenter. I use a thread that queries the VCenter every 5 minutes and retrieves the data.

    We use Java VI SDK 4.0 for this.

    At the present time I am able to read all the details using PropertyCollector. But once a data center is renowned for my application, it is similar to a fact that a data center with the old name has been deleted and a data center with the new name has been added. For this reason, when data center is renamed, I remove entities for the former my application Esx host and adding new features to the ESX hosts in new data center. It causes a lot of unwanted things.

    So, I want to go get some unique Id of the dataCenter and Cluster, so that when a cluster/datacenter is renamed, uniqueId is always the same and my app will be able to know that it is just a change of name. And entities for ESX/VirtualMachine will be kept.

    Please, help me to know the unique id of the cluster/datacenter.

    Thank you

    Deepak

    Yes, there are supposed to be unique UUID generated by vCenter or ESX (i) and if you have not manually mux with values. The UUID is guaranteed to be unique within a given instance of vCenter.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    If you find this information useful, please give points to "correct" or "useful".

  • get the month and year of date type

    Hi all
    I need to get the month and year of type date.

    For example
    select to_date('2011-01-17', 'yyyy-mm-dd') from dual;
    Required result:
    01-2011
    Any ideas?

    Thanks in advance,
    Bahchevanov.
    select to_char(to_date('2011-01-17', 'yyyy-mm-dd'),'mm-yyyy') from dual;
    

    HTH

  • Get the value of select Combobox data

    Hi all

    I have a major issue while trying to get the value of the items selected through the change event in a combobox control.  Here is my code... I really need help ASAP... Thanks in advance

    public var test:ArrayCollection = new ArrayCollection([
                { Id:"one", Amount:2000 },
                { Id:"two", Amount:1000 },
                { Id:"three", Amount:200 } ]);

    protected function regionCB_changeHandler(event:ListEvent):void
                   {
                      Alert.show(//tried so many things here to acces the items amount field.. nothing is working
                   }
    <s:ComboBox change="regionCB_changeHandler(event)" dataProvider="{test}" labelField="Id" id="regionCB" visible="false" />

    Have you tried selectedItem.Amount?

Maybe you are looking for

  • 9.3.3 iOS update notifications from breaksWhatsApp

    That's just my two iphones (6 and SE) who killed WhatsApp notifications? Everything worked up until the update. Concerning

  • I'm unable to reinstall itunes

    When I tried to update itunes, my computer deleted somehow, and now I can't reinstall itunes. It comes up with an error message saying that there is something wrong with a software or something. I have windows 7.

  • Portege M780-102 cursor jumps erratically around while typing

    Just got my new Portege 780-102.But irregularly, the cursor jumps around when typing in any application.(.. .and no, this isn't my sleeve brushing the mouse pad) Search the Web...Seems that Toshiba portable computers have a bit of a history with this

  • Messages no longer displays a white screen

    My messages has stopped working on my MacBook Pro. Yosemite 10.10.4 Messages Version 8.0. When I start Messages, he invites me to connect to my iCloud account. After you connect to the screen that would normally contain conversations is empty. If som

  • OS6.6.0 RC2 cannot install applications

    I come to RC1 that works well. With RC2 I can't update the list of the app so can not install applications. The apps I use are PHPsysinfo and netdata mt.