How to group and summarize the values with a vertical drop of 100?

Dear gurus
How to group and summarize the values with a vertical drop of 100 as the data indicated below:

Cas_Cod_ Cas_Amt_ Description
300 1000A
301 200 B
302 350 C
400 500 A
401 100 B
402 25

Now the data should be grouped like this
A (300,400) = 1500
(301,401) B = 300
C (302,402) = 375

Make sure that I don't have a column as description in my table to group data on description, its here just to give u an example.

Hello

using mod for hundreds:

with x as
(
  select 300 code, 1000 amt, 'A' descr from dual union all
  select 301 code, 200 amt, 'B' descr from dual union all
  select 302 code, 350 amt, 'C' descr from dual union all
  select 400 code, 500 amt, 'A' descr from dual union all
  select 401 code, 100 amt, 'B' descr from dual union all
  select 402 code, 25 amt, 'C' descr from dual
  )
   select mod(code,100) code, sum (amt)
    from x
   group by mod(code,100);

Using the mod you get the rest of a division, so mod (300,100) = 0, mod (301,100) = 1, etc.

Herald tiomela
http://htendam.WordPress.com

Tags: Database

Similar Questions

  • [ADF, JDev12.1.3] Lined back workflow a lot of values used as a dialog box. How to specify and pass the values to the btf appellant?

    Hallo,

    I've created a workflow bounded (containing JSPX pages) that I use as dialog box.

    There a lot of return values...

    I would like to how to go and read all values ret in the workflow limited appeal because the return value of dialogue seems to not allow a value...

    Thank you

    Federico

    You can try with returnListener, then to returnEvent.getReturnParameters ( https://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/event/ReturnEvent.html#getReturnParameters%28%29 )

    Dario

  • How to acquire and store the values of DAQmx analog voltage (I do not want the graphic, but strings and values in a chart)?

    Hello

    How acquire and store the values of voltage DAQmx?

    I tried several code example, but they can't get the chart. I don't want to chart. I want to measure exactly the analog voltage values and record these values - as an excel chart, that contains the selected channels and voltage values.

    What the example code that I can use?

    My hardware is NI PCI-6251.

    Thank you very much.


  • No idea how to loop and add the value to the attribute of the xml node?

    I work on a lot of flattening of project using a watched folder.

    I have a process parent to locate the directory and call a sub-process to flatten PDF files.

    I want to write the directory failed to XML.

    If there are several directory failed locations and if I want to add it to the node, he doesn't let me do.

    If I set the Xpath location like/process_data/outputXML/flattenDirectoryRequestMessage/failureFileLocation[x]/@path it gives me invalid character exception. I use 'x' for looping and incrementing.

    If I do not use the [x]. The directory is overwritten.

    No idea how loop and add all the directories failed to attribute of the xml node?

    I understand that you can not browse the xml code to assign the value at each node. Rather you can assign only one time to the node.

    I realized that it is not possible to do it this way. Then concatenate it as strings, and then attach to the xml once.

  • How to validate and save the values to a combo box and two text boxes in flex4 mxml application with as3

    helllo all,.

    I'm working on the application web flex4 with as3.

    I have a doubt, I've created a mxml it has two text boxes, except the button and a combo box that is has two option as a percentage and the amount.

    my needs are I gave here.

    need 1: when I choose option amount that two text boxes does not have to be editable.when I select text tat box two percentage option will be editable.

    need 2: when I select the percentage in combox option and two text boxes are empty, and then click the button Save-> I want to display warning msg

    need 3: when I select the option amount combox and the two boxes are emptu click the button Save-> I don't want any warning messages.

    How to validate it and how to write backup for this function.

    any suggession or extract code is welcome.

    Thanks in advance,

    B.Venkatesan

    Looks like you are trying to do too much at once. Try to hang the events correctly

    The close event of the comboBox can do something like this

    protected function toggleTextEditing(event:DropDownEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    This.Text1.editable = true;

    This.Text2.editable = true;

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    This.Text1.editable = false;

    This.Text2.editable = false;

    }

    }

    The button's click event can do something like

    protected function save(event:MouseEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    If (this.text1.text == "" & this.text2.text == "")

    {

    Alert.Show ("text is empty");

    return;

    }

    on the other

    {

    }

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    }

    }

    If you can put in your entire code, maybe I can have a look to see if I can find something wrong with that.

    -Pramod

    http://www.flexmycode.com

  • How to measure and mark the value of real-time data?

    Hello

    I need to measure and trace in time real RMS value of EMG power. I did a VI. But I don't know why it didn't work. Can someone help me please? My VI is set in 2013 and 2011 both version. An example of data is also attached. Thanks in advance.

    Taslim. Reza says:

    I tried RMS PtByPt VI. But it has not been wired because the source was table 1 d of double and double sink.

    Well, ptbypt tools affect only one value at a time, so you must place them in a loop FOR. Here's how.

  • Set and get the value of the item application in Javascript

    Hello guys,.
    Can you tell me an example how to set and get the value of the application element in Javascript, and how do I check if the value of the point of application is null in Javascript, too. I have read a few replies, but nothing worked (e.g. $x (app_item), $v (app_item), $s (app_item) and so on).

    Thanks in advance!

    To get the value of an element, use the following syntax:

      alert("The value of MY_TEST_ITEM is " + $x("MY_TEST_ITEM").value);
    

    to set the value that you have just made

      $x("MY_TEST_ITEM").value="Set to this value";
    

    Keep in mind however that you need to send the page in order so that he could be picked up by APEX - javascript is CLIENT SIDE, ONLY! Either that or use AJAX to put on the side server.

  • Using Vista Home Premium 64 x. In Windows Explorer how to group by name to display with the simple letters like A, B, C, D, etc. instead of A - H, P, Q - Z?

    Original title: group Windows Explorer by name

    Using Vista Home Premium 64 x.  In Windows Explorer how to group by name to display with the simple letters like A, B, C, D, etc. instead of A - H, P, Q - Z?  In XP, it could be sorted by simple letter, which makes it easier in a folder with many files.  Thanks in advance.

    Hi kmcmi,

     

    Welcome to Microsoft Answers Forums.

    Well this feature is not available in Windows Vista.

    It only works on Windows XP.

    I've added a useful link

    Behavior and change folder views

    http://windowshelp.Microsoft.com/Windows/en-us/help/3a3bfe59-5268-4FB3-81c5-7972c28939cd1033.mspx

    Hope this information is useful.

    Let me know if it worked.

    All the best!

    Thanks and greetings

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to remove messages in Exchange 2010 by dates. in a group and exclude the Contacts, record retention and calendar

    How to remove messages in Exchange 2010 by dates.  in a group and exclude the Contacts, record retention and calendar.

    I'm deleting emails from users in a group called MX_Purge file. I need to delete the emails date xx/xx/xxxx to xx/xx/xxxx.

    I also need to exclude the excluded the following records 'calendars' folders 'Contacts' and 'Retention '.

    The server people hang around more in the TechNet forums, if you ask, you will get a much better response:

    http://social.technet.Microsoft.com/forums/en-us/Exchange2010/threads

  • I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    Trying to convert to the. WMV format:

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster download)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag > FFSetup295.exe< out="" of="" the="">
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • How to install and configure the virtual machine with XP as an operating system on a Machine running Vista

    How to install and configure the virtual machine and XP operating system inside, with vista as my work machine.

    * original title - how to install and configure the computer virtual and XP operating system inside, with vista as my work machine.*

    How to install and configure the virtual machine and XP operating system inside, with vista as my work machine.

    Hey Preethi23

    It comes to the installation of vista operating system instance

    read the links below

    http://www.Microsoft.com/Windows/Virtual-PC/support/Virtual-PC-2007.aspx

    http://www.Microsoft.com/Windows/Virtual-PC/support/FAQ.aspx

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=04d26402-3199-48A3-afa2-2dc0b40a73b6&displaylang=en

    Walter, the time zone traveller

  • doubt Doc ID 1618305.1 how to install and configure the user interface for content with WebCenter content 11.1.1.8.0

    doubt Doc-ID 1618305.1 How to install and configure the user interface with WebCenter content 11.1.1.8.0 content

    The portal_domain field contains;

    AdminServer (admin) and Enterprise Manager, (port 7001)

    IBR_server1, (port 16250)

    UCM_server1, (port 16200)

    WC_Spaces1, (port 8888).

    On the same machine, I have another weblogic, admin and for the ITS.

    The case is that continued to develop for the upgrade to the new skin WebCenter content.

    That's my goal.

    Then I did some research and came to the following notes in support.

    1 - how to install and configure the UI content with WebCenter content 11.1.1.8.0 and 11.1.1.9.0 (Doc ID 1618305.1()

    https://support.Oracle.com/epmos/faces/DocContentDisplay?_afrLoop=290841671406625 & ID = 1618305.1 & _afrWindowMode = 0 & _adf. CTRL-State = c7eq7vwdt_216

    and

    2 - update of the 11.1.1.8.0 UI content after you apply the Patch of Bundle WebCenter content 3 (MLR 3) or higher (Doc ID 1617477.1()

    https://support.Oracle.com/epmos/faces/DocContentDisplay?_afrLoop=291485823387355 & ID = 1617477.1 & _afrWindowMode = 0 & _adf. CTRL-State = c7eq7vwdt_245

    The UCM_server1 has the following House / app / oracle / Middleware / Oracle_ECM1 /.

    And the list of patches;

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

    Installed products of higher level (1):

    Oracle WebCenter content management install 11.1.1.8.0

    There are 1 products in this House of Oracle.

    Installed products (40):

    Cloning of the 11g Application Server 11.1.1.8.0 component

    Enterprise Manager Application Server Integrator Plugin - Management Service Support11.1.1.7.0

    FMW Control Plugin for Oracle inbound refinery 11.1.1.8.0

    FMW Control Plugin for Oracle WebCenter Capture 11.1.1.8.0

    Component install SDK 11.1.0.9.0

    Oracle Application Server Configuration 11.1.1.7.0

    Part of Oracle 11.1.1.7.0 Bali

    Oracle 11.1.1.8.0 capture

    Common files Oracle WebCenter content management 11.1.1.8.0

    Oracle Content Server 11.1.1.8.0

    Content of Oracle 11.1.1.8.0 Server component

    Content access Content Server Oracle 11.1.1.8.0

    Access to the contents of the Oracle Content Server 11.1.1.8.0 files

    Oracle Content Server Core 11.1.1.8.0

    Oracle 11.1.1.8.0 server content distribution

    Oracle extended Windowing Toolkit 11.1.1.7.0

    Oracle Fusion Middleware Admin Config 11.1.1.6.0

    Oracle Help for Java 11.1.1.7.0

    Oracle Help for the Web - UIX 11.1.1.7.0

    Oracle Help for the Web Shared Library 11.1.1.7.0

    Oracle Help share library 11.1.1.7.0

    Ice browser Oracle 11.1.1.7.0

    Oracle IRM                                                           11.1.1.6.0

    Oracle extended JFC Windowing Toolkit 11.1.1.7.0

    One-time correction of Oracle 11.1.0.9.9 installer

    Oracle outside in technology 8.4.0.0.0

    Oracle Remote Client of Intradoc 11.1.1.8.0

    Component of Oracle 11.1.1.7.0 rules

    Oracle SOA 11.1.1.7.0 workflow

    Universal Oracle install 11.1.0.9.0

    Oracle Upgrade Wizard 11.1.1.8.0

    Oracle Upgrade Wizard 11.1.1.8.0

    Upgrade Oracle WebCenter content management 11.1.1.8.0 Assistant

    Oracle WebCenter Capture 11.1.1.8.0

    Oracle Webcenter content - rights 11.1.1.7.0 documentalist

    Oracle WebCenter content - Universal Content Manager 11.1.1.8.0

    Oracle WebCenter content management install 11.1.1.8.0

    Oracle WebCenter content 11.1.1.8.0 management product suite

    Oracle WebCenter content: Imaging 11.1.1.8.0

    OracleAS Documentation 11.1.1.8.0

    There are 40 products installed in this House of Oracle.

    Interim plates (2):

    Patch 18188143: applied the sea Mar 19 17:37:32 BRT 2014

    Patch ID: 17263162

    Created February 5, 2014, 12:56:41 pm

    Bugs fixed:

    15872313, 17184457, 17515691, 16633496, 14317920, 15991141, 16892410

    14071471, 17929776, 13414481, 16042293, 17018964, 17627211, 16768600

    16037162, 14521663, 17768056, 14738077, 16460053, 17567819, 17806416

    15905591, 16080297, 17569908, 17043756, 18139768, 17211093, 17805499

    16418434, 16828356, 16671687, 17039391, 16698130, 17943394, 17632731

    17560900, 14246603, 15941347, 16045712

    Location of patch in the inventory:

    / app/Oracle/middleware/Oracle_ECM1/Inventory/oneoffs/18188143

    Patch location in the storage area:

    /app/Oracle/middleware/Oracle_ECM1/.patch_storage/18188143_Feb_5_2014_12_56_41

    Patch 18088049: applied the sea Mar 19 17:35:58 BRT 2014

    Patch ID: 17182855

    Created February 16, 2014 20:35:48 hrs PST8PDT

    Bugs fixed:

    17919101, 17894065, 17884570, 17883868, 17883112, 17854549, 17835742

    17832305, 17819213, 17812338, 17789722, 17783376, 17778867, 17761746

    17740542, 17733871, 17698852, 17658821, 17642431, 17636186, 17622384

    17616664, 17616611, 17616489, 17613656, 17608703, 17589960, 17581458

    17574153, 17567413, 17565564, 17558210, 17558068, 17546505, 17545841

    17540480, 17528590, 17514070, 17511368, 17511271, 17511089, 17501678

    17500375, 17475733, 17449617, 17421368, 17417817, 17416821, 17416807

    17416771, 17416377, 17416343, 17402732, 17401071, 17401052, 17397875

    17393920, 17393892, 17369286, 17368525, 17368096, 17362858, 17362130

    17354877, 17353764, 17352746, 17335303, 17335290, 17330493, 17324707

    17323595, 17323038, 17317268, 17314494, 17313064, 17313052, 17313000

    17312990, 17312933, 17312863, 17312366, 17298386, 17295962, 17290804

    17285105, 17270986, 17261952, 17255019, 17219134, 17216119, 17206903

    17201035, 17200854, 17199763, 17187804, 17185539, 17171852, 17171818

    17164502, 17160600, 17153780, 17074852, 17050451, 17049175, 17026301

    17008220, 17007746, 17007534, 17006378, 16999307, 16999291, 16991380

    16980256, 16980207, 16980196, 16979042, 16961904, 16958142, 16954858

    16941623, 16936055, 16936048, 16936036, 16936020, 16936006, 16935987

    16935976, 16921682, 16908287, 16858148, 16815976, 16796213, 13931337

    17424037, 17006115, 17171834

    OPatch succeeded.

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

    And contains the following configurations in config.cfg

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

    SocketAddressHostSecurityFilter = 127.0.0.1 | 0:0:0:0:0:0:0:1 | 192.168.1. * | 10.62.1.79

    xPortalSecurityPropagate = true

    Web server = javaAppServer

    AllowUpdateForGenwww = 1

    SearchIndexerEngineName = OracleTextSearch

    IndexerDatabaseProviderName = SystemDatabase

    AdditionalEscapeChars = -: #.

    FileEncoding = UTF8

    MaxQueryRows = 2000

    DisableAuthorizationTokenCheck = true

    IntradocServerPort = 4444

    SchemaPublishInterval = 604800

    SSAllowDelayedProjectWrites = true

    IdcServerThreadQueryTimeout = 120

    DisableQueryTimeoutSupport = false

    MaxSearchConnections = 20

    #Cache

    UseSearchCache = false

    #

    #AdditionalEscapeChars = _: #, -: {-}, has: A, GOLD: GOLD, CAN: CAN, AND: AND at the END:

    # Accesing a content item on a mapped Web URL (WebUrlMap) fails with the error: "unable to retrieve the content. Security access denied» (Doc ID 1639028.1()

    MaxAccountsInSecurityClause = 300

    # end (Doc ID 1639028.1()

    #Search fails for external users in WCC after upgrade to 11.1.1.8.0 (Doc ID 1676468.1()

    DoCaseInsensitiveAcctSearch = false

    # end (Doc ID 1676468.1()

    #MigrationFormatForfApplicationGUID = dCollectionName:dCollectionGUID

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

    To my UCM_Server1 content WebCenter.

    As I already have a WebCenter content I have to follow the second part of the note

    How to install and configure the UI content with WebCenter content 11.1.1.8.0 and 11.1.1.9.0 (Doc ID 1618305.1).

    Install and configure content WebCenter ADF WebUI against WebCenter Content Server

    Step 1) install the MDS schema

    (Step 2), install the Weblogic Server

    11 GR 1 material step 3) DOWNLOAD and install Oracle Application Development Framework (11.1.1.6.0) in the new WebUI WLS Middleware House, found here

    Step 4) Download and apply Patch 16, 546 129.

    Step 5) Download and apply Patch 16, 546 157.

    Step 6) download and apply the Patch and then 19,469,801, 18,102,108 Patch

    Step 7) copy the wccadf files in the field of user interface

    Step 8) Oracle on demand services (MDS) metadata registry

    Step 9) Place the WebCenter content domain user interface model

    Step 10) run the Setup Wizard on the new home of Middleware WebUI to create the new domain

    Step 11) updated the Oracle ADF of shared libraries

    Step 12) start the domain WebUI administration server

    Step 13) Save target Managed Server with the MDS repository and create the metadata partition

    Step 14) start the server managed WebUI.

    Step 15) associate UI WebCenter content to Content Server.

    Step 16) reboot the WebUI ADF server managed.

    Step 17 access the WebUI

    Step 18) complete the Configuration of the workflow

    Step 19) apply the latest Patch Bundle content UI of WebCenter

    MY DOUBT IS:

    To read the steps that I understood, to 19, with success, in the end, I will have an another WebLogic with a domain name and its respective EM.

    I have two servers weblogic?

    portal_domain (explained above) and a new wccui_domain wls and domain.

    This fix it?

    Two WLS to keep WebCenter portal and content, and other elements.

    Because I'm not able to do with the WLS even where I UCM_server1 today?

    Thanks for all suggestions and criticism.

    To read the steps that I understood, to 19, with success, in the end, I will have an another WebLogic with a domain name and its respective EM.

    I have two servers weblogic?

    portal_domain (explained above) and a new wccui_domain wls and domain.

    This fix it?

    Two WLS to keep WebCenter portal and content, and other elements.

    Because I could not do with the WLS even where I UCM_server1 today?

    Yes, up to 11.1.1.9.0, you will need to install a new wls House (new wls server admin) and then configure WCC ui there. User interface and COE will not work in the same field. You can have the portal and content under the same House of wls and install a new one for the user interface.

    This is due to a problem with ADF and WCC libraries.

    With 12 c, this dependence is not there, and you can install / configure all 3 (Portal, content and adf ui) applications on the same domain.

  • How to copy and paste the image parameters to image with ACR 9.1.1

    How to copy and paste the image parameters to image with ACR 9.1.1

    Hi nicholast15140269

    • You can save the current settings of the image or can save them outside in the form of XMP file. Then use as a preset.

    Concerning

    ~ Assani

  • How to have an Oracle procedure send and receive the value of a java program.

    The procedure below is the place within a package. This "get_extract_ready_headers" procedure to select the columns store_number, terminal_number, tran_number, tran_date, cust_id in the REX_HEAD_EXTRACT of source table. This information is selected in a ref cursor The data were field cust_id which is encrypted. How can I change the get_extract_ready_headers procedure and accomplish 2 things?

    1. make this procedure the "cust_id" reading the table source and send the value of a Java program "getheaderinfo" (this java program decrypts the cust_id field).
    2. when we get the value unencrypted to the Java program, make the procedure to accept this decrypted value and use it to update the CUST_ID to the table TRAN_HEAD table value target. I use Oracle 11.2.0.2 and TOAD 10.5.1.3.





    -The code of procedure
    PROCEDURE get_extract_ready_headers (p_records OUT SYS_REFCURSOR)
    IS
    BEGIN
       OPEN p_records FOR 
       SELECT store_number, terminal_number, tran_number, tran_date, cust_id FROM REX_HEAD_EXTRACT;
          
    END;
    -Table Structure for the table source REX_HEAD_EXTRACT
    CREATE TABLE REX_HEAD_EXTRACT
    (
      REX_SEQ_NBR         NUMBER(20),
      REVISION_NUMBER         NUMBER,
      DAY                     NUMBER(3),
      RESA_TRAN_SEQ_NO        NUMBER(20),
      BUSINESS_DATE           DATE,
      TRAN_SEQ_NBR            NUMBER(12),
      ORG_NUMBER              NUMBER,
      STORE_NUMBER            NUMBER,
      TRAN_DATE               DATE,
      TERMINAL_NUMBER         NUMBER,
      TRAN_NUMBER             NUMBER,
      TRAN_TIME               DATE,
      BATCH_NUMBER            VARCHAR2(8 BYTE),
      BATCH_TYPE              VARCHAR2(4 BYTE),
      TRAN_TYPE               VARCHAR2(4 BYTE),
      SUB_TRAN_TYPE           VARCHAR2(4 BYTE),
      CLERK_CODE              VARCHAR2(15 BYTE),
      TRAN_TAXABLE_AMOUNT     NUMBER(12,2),
      TRAN_TAX_TOTAL          NUMBER(12,2),
      TRAN_GROSS_TOTAL        NUMBER(12,2),
      COUP_TOTAL              NUMBER(9,2),
      MKD_TOTAL               NUMBER(9,2),
      EMPLOYEE_NUMBER         VARCHAR2(15 BYTE),
      EMPLOYEE_NAME           VARCHAR2(40 BYTE),
      TRAN_ALTTAXABLE_AMOUNT  NUMBER(12,2),
      TRAN_ALTTAX_TOTAL       NUMBER(12,2),
      SALE_AMOUNT             NUMBER(9,2),
      RETURN_AMOUNT           NUMBER(9,2),
      RETURNED_AMOUNT         NUMBER(9,2),
      NETCASH                 NUMBER(12,2),
      TENDER_CODE             VARCHAR2(4 BYTE),
      MULT_RCPT               VARCHAR2(1 BYTE),
      SPLIT_TENDER            VARCHAR2(1 BYTE),
      RTN_WITH_PURCHASE       VARCHAR2(1 BYTE),
      RTN_WITH_RCPT           VARCHAR2(1 BYTE),
      REASON_CODE             VARCHAR2(4 BYTE),
      PASSWORD                VARCHAR2(10 BYTE),
      RINGTIME                DATE,
      CUST_NUMBER             VARCHAR2(12 BYTE),
      CUST_ID                 VARCHAR2(50 BYTE),
      ZIP_CODE                NUMBER,
      POSTAL_CODE             VARCHAR2(9 BYTE),
      PV_TIME_LAPSE           NUMBER,
      ORIG_STORE_NBR          NUMBER,
      ORIG_TRAN_DATE          DATE,
      ORIG_TRAN_TYPE          VARCHAR2(4 BYTE),
      ORIG_TERM_NBR           NUMBER,
      ORIG_TRAN_NBR           NUMBER,
      ORIG_SALE_AMT           NUMBER(12,2),
      ORIG_TENDER_CODE        VARCHAR2(4 BYTE),
      ORIG_CLERK_CODE         VARCHAR2(15 BYTE),
      PREV_TRAN_TYPE          VARCHAR2(4 BYTE),
      PREV_SUB_TRAN_TYPE      VARCHAR2(4 BYTE),
      GIFT_REGISTRY_ID        VARCHAR2(25 BYTE),
      NO_OF_ITEMS             NUMBER,
      TAX_EXEMPT_ID           VARCHAR2(18 BYTE),
      TRAN_RINGTIME           NUMBER,
      AUDITED                 VARCHAR2(1 BYTE),
      BATCH_VERSION           NUMBER(9,2),
      BATCH_SOURCE            VARCHAR2(5 BYTE),
      CREATE_DATE             DATE,
      CREATE_ID               VARCHAR2(32 BYTE),
      CREATE_PROC             VARCHAR2(32 BYTE),
      MOD_DATE                DATE,
      MOD_ID                  VARCHAR2(32 BYTE),
      MOD_PROC                VARCHAR2(32 BYTE),
      TERMINAL_GROUP          NUMBER,
      USER_DEF_1              NUMBER,
      USER_DEF_2              NUMBER,
      USER_DEF_3              NUMBER,
      USER_DEF_4              NUMBER(12,2),
      USER_DEF_5              NUMBER(12,2),
      USER_DEF_6              NUMBER(12,2),
      USER_DEF_7              VARCHAR2(50 BYTE),
      USER_DEF_8              VARCHAR2(50 BYTE),
      USER_DEF_9              VARCHAR2(50 BYTE),
      MANAGER_NUMBER          VARCHAR2(15 BYTE),
      MANAGER_REASON_CODE     VARCHAR2(10 BYTE),
      MANAGER_SWIPED          VARCHAR2(1 BYTE),
      PHONE_NO                NUMBER(11),
      KCPOS_KTH_USER_101      NUMBER,
      KCPOS_KTH_USER_102      NUMBER,
      KCPOS_KTH_USER_103      NUMBER,
      KCPOS_KTH_USER_104      NUMBER,
      KCPOS_KTH_USER_105      NUMBER,
      KCPOS_KTH_USER_106      NUMBER,
      KCPOS_KTH_USER_107      NUMBER,
      KCPOS_KTH_USER_108      NUMBER,
      KCPOS_KTH_USER_109      NUMBER,
      KCPOS_KTH_USER_110      NUMBER,
      KCPOS_KTH_USER_201      NUMBER(12,2),
      KCPOS_KTH_USER_202      NUMBER(12,2),
      KCPOS_KTH_USER_203      NUMBER(12,2),
      KCPOS_KTH_USER_204      NUMBER(12,2),
      KCPOS_KTH_USER_205      NUMBER(12,2),
      KCPOS_KTH_USER_206      NUMBER(12,2),
      KCPOS_KTH_USER_207      NUMBER(12,2),
      KCPOS_KTH_USER_208      NUMBER(12,2),
      KCPOS_KTH_USER_209      NUMBER(12,2),
      KCPOS_KTH_USER_210      NUMBER(12,2),
      KCPOS_KTH_USER_301      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_302      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_303      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_304      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_305      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_306      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_307      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_308      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_309      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_310      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_401      DATE,
      KCPOS_KTH_USER_402      DATE,
      KCPOS_KTH_USER_403      DATE,
      DISC_TOTAL              NUMBER(9,2)
    )
    
    CREATE INDEX REX_HEAD_EXTRACT_NDX ON REX_HEAD_EXTRACT
    (REX_SEQ_NBR, REVISION_NUMBER, STORE_NUMBER, TRAN_DATE, TERMINAL_NUMBER, TRAN_NUMBER)
    -Create table DDL for the target TRAN_HEAD table
    CREATE TABLE NAVISTOR.KCPOS_TRAN_HEADER_BASE
    (
      TRAN_SEQ_NBR            NUMBER(12),
      ORG_NUMBER              NUMBER,
      STORE_NUMBER            NUMBER,
      TRAN_DATE               DATE,
      TERMINAL_NUMBER         NUMBER,
      TRAN_NUMBER             NUMBER,
      TRAN_TIME               DATE,
      BATCH_NUMBER            VARCHAR2(8 BYTE),
      BATCH_TYPE              VARCHAR2(4 BYTE),
      TRAN_TYPE               VARCHAR2(4 BYTE),
      SUB_TRAN_TYPE           VARCHAR2(4 BYTE),
      CLERK_CODE              VARCHAR2(15 BYTE)     NOT NULL,
      TRAN_TAXABLE_AMOUNT     NUMBER(12,2),
      TRAN_TAX_TOTAL          NUMBER(12,2),
      TRAN_GROSS_TOTAL        NUMBER(12,2),
      COUP_TOTAL              NUMBER(9,2),
      MKD_TOTAL               NUMBER(9,2),
      EMPLOYEE_NUMBER         VARCHAR2(15 BYTE),
      EMPLOYEE_NAME           VARCHAR2(40 BYTE),
      TRAN_ALTTAXABLE_AMOUNT  NUMBER(12,2),
      TRAN_ALTTAX_TOTAL       NUMBER(12,2),
      SALE_AMOUNT             NUMBER(9,2),
      RETURN_AMOUNT           NUMBER(9,2),
      RETURNED_AMOUNT         NUMBER(9,2),
      NETCASH                 NUMBER(12,2),
      TENDER_CODE             VARCHAR2(4 BYTE),
      MULT_RCPT               VARCHAR2(1 BYTE),
      SPLIT_TENDER            VARCHAR2(1 BYTE),
      RTN_WITH_PURCHASE       VARCHAR2(1 BYTE),
      RTN_WITH_RCPT           VARCHAR2(1 BYTE),
      REASON_CODE             VARCHAR2(4 BYTE),
      PASSWORD                VARCHAR2(10 BYTE),
      RINGTIME                DATE,
      CUST_NUMBER             VARCHAR2(12 BYTE),
      CUST_ID                 VARCHAR2(50 BYTE) ENCRYPT USING 'AES256' NO SALT,
      ZIP_CODE                NUMBER,
      POSTAL_CODE             VARCHAR2(9 BYTE),
      PV_TIME_LAPSE           NUMBER,
      ORIG_STORE_NBR          NUMBER,
      ORIG_TRAN_DATE          DATE,
      ORIG_TRAN_TYPE          VARCHAR2(4 BYTE),
      ORIG_TERM_NBR           NUMBER,
      ORIG_TRAN_NBR           NUMBER,
      ORIG_SALE_AMT           NUMBER(12,2),
      ORIG_TENDER_CODE        VARCHAR2(4 BYTE),
      ORIG_CLERK_CODE         VARCHAR2(15 BYTE),
      PREV_TRAN_TYPE          VARCHAR2(4 BYTE),
      PREV_SUB_TRAN_TYPE      VARCHAR2(4 BYTE),
      GIFT_REGISTRY_ID        VARCHAR2(25 BYTE),
      NO_OF_ITEMS             NUMBER,
      TAX_EXEMPT_ID           VARCHAR2(18 BYTE),
      TRAN_RINGTIME           NUMBER,
      AUDITED                 VARCHAR2(1 BYTE),
      BATCH_VERSION           NUMBER(9,2),
      BATCH_SOURCE            VARCHAR2(5 BYTE),
      CREATE_DATE             DATE,
      CREATE_ID               VARCHAR2(32 BYTE),
      CREATE_PROC             VARCHAR2(32 BYTE),
      MOD_DATE                DATE,
      MOD_ID                  VARCHAR2(32 BYTE),
      MOD_PROC                VARCHAR2(32 BYTE),
      TERMINAL_GROUP          NUMBER,
      USER_DEF_1              NUMBER,
      USER_DEF_2              NUMBER,
      USER_DEF_3              NUMBER,
      USER_DEF_4              NUMBER(12,2),
      USER_DEF_5              NUMBER(12,2),
      USER_DEF_6              NUMBER(12,2),
      USER_DEF_7              VARCHAR2(50 BYTE),
      USER_DEF_8              VARCHAR2(50 BYTE),
      USER_DEF_9              VARCHAR2(50 BYTE),
      MANAGER_NUMBER          VARCHAR2(15 BYTE),
      MANAGER_REASON_CODE     VARCHAR2(10 BYTE),
      MANAGER_SWIPED          VARCHAR2(1 BYTE),
      PHONE_NO                NUMBER(11),
      KCPOS_KTH_USER_101      NUMBER,
      KCPOS_KTH_USER_102      NUMBER,
      KCPOS_KTH_USER_103      NUMBER,
      KCPOS_KTH_USER_104      NUMBER,
      KCPOS_KTH_USER_105      NUMBER,
      KCPOS_KTH_USER_106      NUMBER,
      KCPOS_KTH_USER_107      NUMBER,
      KCPOS_KTH_USER_108      NUMBER,
      KCPOS_KTH_USER_109      NUMBER,
      KCPOS_KTH_USER_110      NUMBER,
      KCPOS_KTH_USER_201      NUMBER(12,2),
      KCPOS_KTH_USER_202      NUMBER(12,2),
      KCPOS_KTH_USER_203      NUMBER(12,2),
      KCPOS_KTH_USER_204      NUMBER(12,2),
      KCPOS_KTH_USER_205      NUMBER(12,2),
      KCPOS_KTH_USER_206      NUMBER(12,2),
      KCPOS_KTH_USER_207      NUMBER(12,2),
      KCPOS_KTH_USER_208      NUMBER(12,2),
      KCPOS_KTH_USER_209      NUMBER(12,2),
      KCPOS_KTH_USER_210      NUMBER(12,2),
      KCPOS_KTH_USER_301      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_302      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_303      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_304      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_305      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_306      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_307      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_308      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_309      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_310      VARCHAR2(50 BYTE),
      KCPOS_KTH_USER_401      DATE,
      KCPOS_KTH_USER_402      DATE,
      KCPOS_KTH_USER_403      DATE,
      DISC_TOTAL              NUMBER(9,2),
      RTA_RTN_AUTCOD          VARCHAR2(4 BYTE),
      RTA_RTN_COMMID          NUMBER,
      RTA_RTN_EVNTID          NUMBER,
      RTA_RTN_QTY             NUMBER,
      RTA_RTN_RCPT_SCAN       VARCHAR2(1 BYTE),
      RTA_RTN_REFUND_AMT      NUMBER(9,2),
      RTA_RTN_TYPE_CODE       VARCHAR2(4 BYTE),
      RTA_RTN_WITH_RCPT       VARCHAR2(1 BYTE),
      RTA_RTN_COUNT           INTEGER,
      SDEDVAL1                VARCHAR2(50 BYTE)
    )
    -Samples
    REX_SEQ_NBR,REVISION_NUMBER,DAY,RESA_TRAN_SEQ_NO,BUSINESS_DATE,TRAN_SEQ_NBR,ORG_NUMBER,STORE_NUMBER,TRAN_DATE,TERMINAL_NUMBER,
    TRAN_NUMBER,TRAN_TIME
    478,1,11,12024005,6/11/2012,,1,692,6/11/2012,155,5,6/11/2012 12:57:17 PM,
    479,1,11,12024006,6/11/2012,,1,692,6/11/2012,155,6,6/11/2012 2:01:51 PM,
    480,1,11,12024007,6/11/2012,,1,692,6/11/2012,155,7,6/11/2012 2:47:10 PM

    Then you describe two stored procedures separated. One that has an OUTPUT parameter which is a SYS_REFCURSOR (that you posted initially). And will need you a second procedure that takes as a parameter IN the decrypted CUST_ID and whatever: key (s) is required for the UPDATE is generated.

    Justin

  • How do I click on a cell in a table control and display the value in a string?

    What I want to do is click on a cell in a table control and have the value of the cell in an indicator of the chain. Cell that ever I click on, I wish that the value to be displayed in the indicator.

    Thank you!

    Use the property "Change Position".

Maybe you are looking for

  • Satellite P100 - boot failure after BIOS update

    Hello I wanted to update BIOS on my Satellite P100 - (PSPADE) with the latest version, downloaded from the Toshiba site.Quit all applications.Run the zip file error file not found %path\phlahnt.sys.Keyboard not working unable to stop even by using th

  • HP Officejet Pro 8500 has more: impossible to reconnect to the wireless router

    Have had the printer for four years. Has been connected to the wireless router earlier today. When I try to set up the connection again, he asks for a WPA key. He never did that before, just asked the network password. From bottom of router WPA, it m

  • How can I download Pentax Optio 33l driver Web site

    I have a Pentax Optio 33 L and you should download the software on my laptop, for some reason, the pilot won't download from Pentax.  Why is this? It is obsolete and is no longer available?

  • User account disappeared on XP

    My brother has created an account on my mother's computer and now his user account is not appear on the login screen.  I am able to find a folder with his former newspaper name under C:\Documents and Settings\.  How to show on the login screen?  I no

  • Scan problem

    Hello: I'm under the Solution Center in Windows 7. Fine, except that the scanned images are not transferred to files as they are supposed to and as they did. If I try the same on another computer (this an XP running), it works fine and I get scanned