Any one can help the highlighted question pz..thank you!!

Declare
Cursor c_sale is
Select order_line.product_id,quantity, unit_cost,unit_price, client_id, SR_id, order_date From sale
Where product_id = :
CLIENT_TYPE_ID VARCHAR2(10),
PRODUCT_ID VARCHAR2(10),
QUANTITY VARCHAR2(10),
UNIT_COST
UNIT_PRICE
CLIENT_ID
SR_ID
ORDER_DATE NUMBER(5),
Bigin
For c_rec in c_sales loop
Select region_id into r_id
From region where region_name =
(select region_name from dw_op.sales_region@w_link,
Dw_op.sales_rep@w_link where sales_region.region_id =
Sales_rep.region_id and SR_id = c_rec.SR_id);
Select time_seq.nextval into s_time from dual;
(Add statements to extract date components)
Insert into time values (s_time, s_day, s_month, s_year…);
(insert time record)
S_value :=…
(calculate values)
S_cost :=…
INSERT INTO sale VALUES…(Insert record into sale fact table)
End loop;
End;

Hi,
>>i am looking for a code to extract date components
Like demonstrated below?
LEGATTI@ORACLE10> alter session set nls_date_format='mm-dd-yyyy hh24:mi:ss';
LEGATTI@ORACLE10> select sysdate from dual;
SYSDATE
04-14-2008 12:58:29
LEGATTI@ORACLE10> select
  2 extract(year from sysdate) year
  3 ,extract(month from sysdate) month
  4 ,extract(day from sysdate) day
  5  from dual;
      YEAR      MONTH        DAY
      2008          4         14
or
LEGATTI@ORACLE10> select
  2 to_char(sysdate,'yyyy') year
  3 ,to_char(sysdate,'mm') month
  4 ,to_char(sysdate,'dd') day
  5 ,to_char(sysdate,'hh24') hour
  6 ,to_char(sysdate,'mi') minute
  7 ,to_char(sysdate,'ss') second
  8  from dual;
YEAR MO DA HO MI SE
2008 04 14 12 58 29Cheers
Legatti

Similar Messages

  • I can't remember the answers of my security questions and i lost my safety email as well.and i try to call number of uae support its not correct so any one can help me

    I can't remember the answers of my security questions and i lost my safety email as well.and i try to call number of uae support its not correct so any one can help me

    If you do not have access to the rescue email or you do not receive the reset email then you will need to contact AppleCare for assistance:
    http://support.apple.com/kb/HT5699

  • HT5699 Hi there, I forget my security questions. and we dont have  in my country apple contact number . any one can helpe ?

    Hi there, I forget my security questions. and we dont have  in my country apple contact number . any one can helpe ?

    Click here and ask the iTunes Store staff for assistance.
    (103095)

  • Hi there, I forget my security questions. and we dont have  in my country apple contact number . any one can helpe ?

    Hi there, I forget my security questions. and we dont have  in my country apple contact number . any one can helpe ?

    Click here and ask the iTunes Store staff for assistance.
    (103095)

  • HT201263 I Have an iPhone 5 runnig ios 7.0.4. It wont start as the apple logo keeps on blinking when i connect to wall charger or itunes. I even tried to restore it but an error 21 is being displayed. Any one can help me in this situation

    I Have an iPhone 5 runnig ios 7.0.4. It wont start as the apple logo keeps on blinking when i connect to wall charger or itunes. I even tried to restore it but an error 21 is being displayed. Any one can help me in this situation

    Read http://support.apple.com/kb/ts3694#

  • I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box , as I can see on my classroom book and in many tutorial.any one can help please

    I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box ,where i choose what i want to import,  as I can see on my classroom book and in many tutorial.any one can help please ? thanks

    I have the same problem... but the photo library is neither on my iPhone or my Computer!! Please help.. its taking too much space.

  • Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please.

    Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please before I throw it through the window!

    Grum12 wrote:
    Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please before I throw it through the window!
    Hi Grum,
    If the formulas aren't filling to the new column, you must have changed something in the template since you first opened it. Numbers is rather fussy about filling row content in columns as they are added. Only rows with the same expression in every Body Column will fill when a column is added. Just as an experiment, start a new Employee Schedule document from the Template Chooser and then add a column by clicking the Add Column handle in the upper right corner of the table. If that works, as it should, then think about what might have changed in your working document to disconnect that feature. Maybe we can figure it out together.
    Jerry

  • Can't show image in the center of the jscrollpane ,any one can help

    i write a program to show image in the jscrollpane
    i create a class called ImageLabel (it extends jlabel) then i use
    ImageLabel im=new ImageLabel(imageicon)
    jscrollpane.setViewportView(im);
    validate();
    repaint();
    but it show the image in the left and top corner of the jscrollpane ,not in the center of the jscrollpane
    then i change the ImageLabel to JLabel ,:
    JLabel im=new JLabel(imageicon);
    jscrollpane.setViewportView(im);
    validate();
    repaint();
    it shows the image in the center of the jscrollpane,
    but i want to use ImageLabel not jlabel
    whats the problem ,any one can help me ,thank you:)

    the ZoomLabel is the imagelabel ,and my complete code as follows:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    class ZoomLabel extends JLabel
        private ImageIcon icImage;   
        private int ph,pw,picW,picH;    
        ZoomLabel(ImageIcon ic)   
            super(ic, JLabel.CENTER); 
            icImage = ic;
            pw = picW = ic.getIconWidth(); 
            ph = picH = ic.getIconHeight();
           setSize(pw,ph);
           setPreferredSize(new Dimension(pw,ph));
           repaint();
          validate();
           public void zoom(float scale)    
               ph = Math.round(picH * scale);         
               pw = Math.round(picW * scale);          
               setPreferredSize(new Dimension(pw,ph)); 
               repaint();
             public void paint(Graphics g)     
                     update(g);     
                public synchronized void update(Graphics g)     
                {             g.drawImage(icImage.getImage(),0,0,pw,ph,this); 
      public class ImageShow extends JFrame
                  ImageShow()
                 ImageIcon ii=new ImageIcon("e:/download/pic/me1.JPG");
                   JScrollPane js=new JScrollPane();
                   zl=new ZoomLabel(ii);
                  js.setViewportView(zl);
                  getContentPane().add(js,"Center");
                     js.repaint();
                                  js.validate();
                  pack();
                  setVisible(true);     
             public  static void main(String[] args)
                   new ImageShow();
             ZoomLabel zl;
        }

  • My soundbooth not function withe error code NV_OGL. the stament: "soundbooth could not find any capable playback modules". but pc system is working. Any one can help me?

    Hi, I am SK Chew,My soundbooth is not function after few months not used and with an error code "NV_OGL" and the statement is "soundbooth could not find any capable playback modules". and my pc is working in good condition. any one can help me?

    Quicktime errors http://forums.adobe.com/message/4545437 may help
    Or, not exactly the same, but MAY be related
    ExporterQuickTimeHost QT Version http://forums.adobe.com/thread/1109614

  • My ipod is disabled and say connect to iTunes when i connect to computer it say enter the pass cod but the ipod browser it's not showing ..any one can help me please, ty

    my ipod is disabled and say connect to iTunes when i connect to computer it say enter the pass cod but the ipod browser it's not showing ..any one can help me please, ty

    Place the iPod in Recovery mode and then restore

  • My ipad is stolen ,, and i want to reopen find my ipad application because as i know once the ipad switched off and switched on again the application needs to be reopened ,, any one can help me please to find my ipad again

    my ipad is stolen ,, and i want to reopen find my ipad application because as i know once the ipad switched off and switched on again the application needs to be reopened ,, any one can help me please to find my ipad again

    Stolen
    http://support.apple.com/kb/HT5668
    Erase iPad
    http://support.apple.com/kb/ph2701
    Lost Mode
    http://support.apple.com/kb/PH2700
    Reporting lost or stolen iPad
    http://support.apple.com/kb/HT2526

  • The new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?

    the new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?

    gorxxx83 wrote:
    the new ios7 is horrible how can i downgrade? my messages keeps freezing im frustrated im very close to going ANDROID any one can help how do i get in touch with apple directly?
    Downgrading is not supported.
    Here are some basic troubloeshooting tips:
    - Quit the App by opening multi-tasking bar, and swiping the App upward to make it disappear.  (For iOS 6, holding down the icon for the App for about 3-5 seconds, and then tap the red circle with the white minus sign.)
    - Relaunch the App and try again.
      - Restart the device. http://support.apple.com/kb/ht1430
    - Reset the device. (Same article as above.)
    - Reset All Settings (Settings > General > Reset > Reset All Settings)
    - Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    - Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    - Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.
    If you want to contact Apple directly, call 1-800-MYAPPLE (1-800-692-7753), or go to getsupport.apple.com. 
    Don't waste your time asking for a downgrade of the iOS.  That's not an option.

  • I bought a mini DVI to HDMI convertor and  a HDMI to VGA cable to connect my mac book pro to a tv but it doesn't work any one can help.\\\\\

    i bought a mini DVI to HDMI convertor and  a HDMI to VGA cable to connect my mac book pro to a tv but it doesn't work any one can help.

    I would suggest looking into a Thunderbolt to HDMI connector. In this case, you may be able to use the TV as an external monitor. For this option, please confirm through additional research. I have not tested it personally.
    You can also use an Apple TV, which connects with HDMI. In this case, you can use Airplay Mirroring. Not all Macs support Airplay Mirroring, so you need to check first. I have a Mid-2011 27" iMac, and it supports Airplay Mirroring. I don't use it often because my TV is in another room, but I just tried it and it worked. It had to change the screen resolution to work well, so I don't know if I would want to use it as my day to day monitor. http://support.apple.com/kb/ht5404

  • I want to learn about workflow any one can provide the guidence for me

    i want to learn about workflow any one can provide the guidance for me

    SAP Business Workflow can be used to define business processes that are not yet mapped in the R/3 System. These may be simple release or approval procedures, or more complex business processes such as creating a material master and the associated coordination of the departments involved. SAP Business Workflow is particularly suitable for situations in which work processes have to be run through repeatedly, or situations in which the business process requires the involvement of a large number of agents in a specific sequence.
    Features
    SAP Business Workflow provides a number of tools for defining and analyzing workflows as well as for monitoring operation.
    The Workflow Builder is for displaying and making changes to workflows. You can make small extensions directly to the original workflows supplied by SAP, such as carrying out your own agent assignments or changing deadline monitoring.
    There are several Workflow Wizards to support you in the definition of workflows, with which you can create specific parts of a workflow. The Workflow Wizard Explorer gives you an overview of the existing Workflow Wizards.
    In order to make the functions of the R/3 Systems available to a workflow, you use business objects, which you can define and analyze in the Business Object Builder. These business objects are made available to the workflow in reusable tasks. The Business Wizard Explorer gives you an overview of all existing tasks.
    You can also use SAP Business Workflow to respond to errors and exceptions in other, existing business processes. You can start a workflow when predefined events occur, for example an event can be triggered if particular errors are found during an automatic check.
    Please follow the links,
    http://help.sap.com/saphelp_nw04s/helpdata/en/04/926f8546f311d189470000e829fbbd/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a1/172437130e0d09e10000009b38f839/frameset.htm
    A good tutorial
    http://www.thespot4sap.com/articles/Invoice_Verification_Automation_Using_SAP_Workflow.asp
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    /people/alan.rickayzen/blog
    /people/jocelyn.dart/blog/2006/06/19/why-use-abap-oo-with-workflow
    a good book
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    Check the following PDF
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    Regards,
    Sai

  • Does any one can help me on Oracle cycles

    Hi Gurus,
    Does any one can help me getting documents of People to pay cycle or Recruit to retaire cycle Please.
    I am in need of them .
    Thanks in advance for your time and consideration.

    If you mean the Time Capsule's internal drive, click here and follow the instructions.
    If you mean an external drive used with Time Machine, install the MacDrive trial on the PC and then plug it in normally.
    (96092)

Maybe you are looking for

  • Issue setting up eFax on HP Photosmart 7510 e-All-in-One "Problem connecting to internet"

    I'm having an issue setting up eFax on my new HP Photosmart 7510 e-All-in-One. I am following the on-screen instructions and receive an error "Problem connecting to internet" when trying to register the account. The ePrint service is working, and I c

  • Can't send email to my own domain

    The mail program on my iphone works fine, except for one thing - i can't send email to anyone using the domain name as me (our business has its own email domain). Since most of my emails are to other people inside our business, this is very frustrati

  • Installing Premier Elements 10 trial.

    I am having trouble installing the trial of Premier Elements 10. I have downloaded the software twice with no apparent problems. Have tried to install 3 times. All 3 times it appears to be installing properly until it gets to the step of installing s

  • ActiveJMS Java Bean Bridge - VB6 - ActiveX event listener

    I tried to run a simple ActiveJMS client in VB6 with SUN's broker. All steps have been successful until trying to compile and run the ActiveX in VB6 code. 1) ************************************************************************************ Code fr

  • How can I Build Multiple Landing Pages

    I am building a website that needs to have around 100 or so different landing pages that will be for different customers. Each page will have the same list of features that it will include, like store hours, an about section, google map, etc. How can