Problem adding a condition

Hello experts,

I need your advice concerding a problem I have with a file upload.

I have the following piece of my code
'          select case when retailer_no   is null then nvl(lag(retailer_no    , decode(PRODUCT, ''Loto'', 1, ''Inst Tk'', 2, 1)) over (order by line_no), nvl(lag(retailer_no, 3)  over (order by line_no),''-1'')) else null end as retailer_no  , '||
'                 case when terminal_no   is null then nvl(lag(terminal_no    , decode(PRODUCT, ''Loto'', 1, ''Inst Tk'', 2, 1)) over (order by line_no), nvl(lag(terminal_no, 3)   over (order by line_no),''-1'')) else null end as terminal_no  , '||
'                 case when retailer_name is null then nvl(lag(retailer_name  , decode(PRODUCT, ''Loto'', 1, ''Inst Tk'', 2, 1)) over (order by line_no), nvl(lag(retailer_name, 3) over (order by line_no),''-1'')) else null end as retailer_name, '||
Now, I have a text file that has the following format
Retailer Number:  200191              Terminal Number:  20019100       Retailer Name:  O.K.S Pool House

                -------Net------ -----Net----- --------Cancels------- ----------Cashes--------- ----------Claims--------- ---------Returns--------- ------Ticket Charges----- ------Ticket Refunds----- --Ticket Charge Refunds-- --Free Prize Issued-- ------Free Promo----- ----Promo Credits---- ---Returns--- -----Net----- ----Sales---- -----Cash---- -------Net------
Product         ------Sales----- --Adjustment-     Cnt         Amount     Cnt            Amount     Cnt            Amount     Cnt            Amount     Cnt            Amount     Cnt            Amount     Cnt            Amount     Cnt    Cash Value     Cnt    Cash Value     Cnt        Amount ---Commiss--- --Discounts-- ---Commiss--- ---Commiss--- -------Due------
=============== ================ ============= ======= ============== ======= ================= ======= ================= ======= ================= ======= ================= ======= ================= ======= ================= ======= ============= ======= ============= ======= ============= ============= ============= ============= ============= ================
 Loto                  27,800.00          0.00       0           0.00      40         -4,440.00       0              0.00       0              0.00       0              0.00       0              0.00       0              0.00       0          0.00       0          0.00       0          0.00          0.00          0.00     -1,390.00        -44.00        21,926.00
 Inst Tk                8,000.00          0.00       0           0.00      83         -5,480.00       0              0.00                      0.00       0              0.00       0              0.00       0              0.00       0          0.00       0          0.00       0          0.00          0.00          0.00       -400.00        -30.00         2,090.00

Totals                 35,800.00          0.00       0           0.00     123         -9,920.00       0              0.00       0              0.00       0              0.00       0              0.00       0              0.00       0          0.00       0          0.00       0          0.00          0.00          0.00     -1,790.00        -74.00        24,016.00
There is a list of these retailers that offers the following products
Lotto
Inst Tk

Totals

I have to insert these values in a table

Now the problem I have is that if a retailer has only Inst Tk, then do not values. I would say that if it does not find the word lottery, it must search Inst TK

Help, please

Kevin,

I have responded on your other thread:

Reading data from a file txt and inserting into table

Tags: Database

Similar Questions

  • I have problems, adding comments using Adobe reader DC on my pro 3 surface. I can select the circle for example, but when I try to draw the circle nothing happens and the screen just scrolls in the direction I move the pointer?

    I have problems, adding comments using Adobe reader DC on my pro 3 surface. I can select the circle for example, but when I try to draw the circle nothing happens and the screen just scrolls in the direction I move the pointer?

    Hey paulc6148125,

    Please try the mode settings different button in Adobe Acrobat Reader DC-> leModifiermenu-> preferences-> general categories.

    Kind regards

    Nicos

  • Problem adding video to Captivate slide

    Hello

    I'm having a problem adding a video file FLV to Captivate. Basically, after that I have published on a SWF file, the video does not appear on the slide at all. It's just empty.

    After searching for a bit, I found that the file FLV MUST include * metadata *.

    However, I added medatada with VLC Media Player, and it still shows the same behavior. There's a certain * amount * metadata? Is there a * type * of metadata without which the video not displayed?

    Adobe help thread talking about what we call the ' Kit Flash video '-which is a stand-alone product or one extension of another product? Is it free? Are there any other free alternatives?

    I'm just very confused.

    Thank you!

    I ended up answering my own question. But just in case this helps someone else, I'll post my solution.

    Essentially, I just re-created the video in MP4 format. Then I used MetaZ (for Mac) to write metadata in the video. Finally, I imported the video as an object and when I posted the video, Captivate it transmutes to the FLV format needed.

    The video is now displayed correctly.

  • Problem adding a folder of images

    Hi, I have been a user of Lightroom 5 for a while now and everything was absolutely perfect, but I now have a problem adding a folder to put the images in LR.  I checked using "Finder" that the images are still there on my external hard drive, which fortunately they are, but when I navigate to that folder in the section "Add files" it shows no images at all, and the 'Import' button is grayed.  There is a new catalog, I created for 2015 customers otherwise the only other change is that I have been preselected a few images using photomechanical moved selected files into a new folder created by me.  Otherwise I have not changed anything else from my usual game to the top.  As a validation test, I tried adding several different sets of RAWS in different folders (which I have previously worked on in other catalogs so I know they were fine before), but I'm having the same problem.  Please can anyone help shed light on what clearly is a bit a killer of productivity right now!  Thank you very much

    DJ - it's a Canon 5 d Mk III, using Lightroom 5.7, and the images are all of the FIRST.  All images have been imported from the map in a folder on my external hard drive, before I used photomechanical to them for review.

    I am pleased to say that the problem is now solved.  I found another thread in forum with many people have exactly the same problem and with various corrections that have worked for them but not for me.  Then I found one that worked for many people - just expand the Destination panel and hey presto - all images appeared.  How weird randomly - I do not know how it was fixed, but there, so now I'm still productive.

    Thanks again to you and Joe for all your interest and your willingness to help - its much appreciated!  I'm now going to edit some pictures

    Nadine

  • Problem adding video to iTunes 12.5.1.21

    I've recently updated iTunes to 12.5.1.21. Now, when adding files mp4, iTunes is not placing them in the videos section as before but instead adding them to the music and the ability to change the type of media for movies or TV series does not appear in the tab options to read the information, it is only allows you to change other types of audio files. What is happening with several files. Does anyone know a solution to this problem?

    I tried marking as movies files using the marking software. Files now appear in the correct location in iTunes but will not play again. I use iTunes on windows 10. Also trying to read the videos, instead of display the duration of the video it says LIVE.

  • Problems adding the Yahoo account to Messages

    When I try to add my Yahoo account for Messages I get this message but the account is not added in preferences accounts. Any ideas how I can add my Yahoo account to Messages?

    Hi dcwy,

    There is a lightweight process is troubleshooting this small setback. If all goes well, this should do the trick!

    Thus, you must connect to your yahoo account (using a browser like Safari)

    Go to settings > account security > passwords for the App manage (create a new password here)

    Then jump on the mail app which is the application of default e-mail on your Mac, and he must ask your new password.

    Now, when you open iMessage, this app should also request your password or if you click on "available yahoo" it should ask for a password and you put this password and it will work. If all goes well.

    Please reply if this is problem.

    Good luck!

  • problem adding ListView to a container

    I first add the ListView to a container. And then, after a particular condition, I delete this container and creates a new container. And then I try to add that again to the newly created ListView from container. But it crashes when I try to add them.

    if(currentPageContainer)
    {
        currentPageContainer->remove(listView);
        delete(currentPageContainer);
    }
    
    currentPageContainer = new Container;
    currentPageContainer->add(listView); // crashes here
    

    If I does not remove the container then it works fine.

    Hello

    Documentation:
    Once the control is removed, the container is no longer made reference, but it is still owned by the container.

    Try adding
    listView-> setParent)
    After removing the listView of the container, but before you delete the container.

    In addition, I propose to replace "delete (...). with "delete currentPageContainer" to avoid accidentally calling a function. Delete is an operator.

    On this line:
    currentPageContainer = new container;
    I suggest to define a parent: new Container (this) etc to avoid deleting explicitly in the destructor. It's ok to delete the object by using the delete operator even if the parent is defined.

  • Problem adding datastore lun in exsi home

    Here is the Delima we are having. We have 3 exsi as a cluster host. the names are exsi1 (version 4.1), exsi2 (version 4.1) and exsi3 (version 5.1). We already have 6 data banks on a logical equality 6100 san connected via iscsi. guests 3 see these data stores no problem. I created 2 new stores of data on equal logic ensured in respect of the 2 TB for exsi 4.1. Add the SCSI ID 3 for the volumes. I can analyze and see the new LUN 2 on exsi2 and exsi 3. for some reason, no matter what I do exsi 1 can not see. Verified dynamic discovery on with the ip address.  I even tried manually adding targets ISICI to exsi gives me an error

    Call 'HostStorageSystem.AddInternetScsiStaticTargets' of object ' system of storage-137 "on vCenter Server"MDSI"failed."

    Operation failed, the diagnostic report: iScsiLibException: status (80000000): unknown error. Message = IMA_AddStaticDiscoveryTarget

    Any ideas would be very appreciated. Im am new to this kind of thing was deposited on my lap during the last person left IT so apologize for any ignorance on this.

    Guy, I finally got. RAM disk was full when I deleted the complete disconnect came right up. Sorry to bother.

  • Problem adding a new user?

    Last month, I added 18 users on my account first Cap I used a CSV file that included the e-mail account of the Manager of the learner to identify the contractor. No problem even if the majority leader was NOT as a user of Captivate, only his e-mail account was added as the supervisor of a Manager.

    Today, I can not add a new user (after the release of the first of February 2016) because the Manager of the person is not already in the system.

    However, my CSV file of origin listed the same administrator (using his email account) as the supervisor of a Manager throughout the world in the CSV file.

    So what has changed? And what do we do when we want to add a person who does not have a supervisor? As the CEO of the company? At some point, we have the ability to add a person who is not a supervisor.

    Am I missing something obvious?

    Hello

    To add a user who is not any Manager as CEO, simply add him as a user and under e-mail ID of his Manager just type 'ROOT' or 'company name '. You can consult the following link: what I can add users in bulk? What is CSV upload? Adobe Captivate help main

    Kind regards

    MILIN

  • Problem adding ISCSI LUN to a virtual server ESXi 4.1

    Hi guys,.

    Having a really weird problem.

    Scenario-
    I have 2 x ESXi 4.1 (call B and C) running as virtual machines inside an another ESXi 4.1 host (let's call this has). Why this is because it is a test lab and I have limited the number of available servers.

    Problem-

    The problem I have is that the LUNS that I create on my HP P4000 VSA SAN do not appear on B & C. However, they go to the a. I consulted HP and confirm that IQN Intiators ISCSI for B and C numbers are attributed to the specific LUN. HP confirmed that it there is nothing wrong with my config and told me it's a question of VMWARE.


    A little more detailed look at the problem-

    1.      B (or C), I enabled ISCSI initiator.

    2. then, I made a dynamic discovery by mentioning my SAN Cluster IP address and he did "LUN ID" in the static discovery tab collection. So far so good.                       

    3. then I rescan all host bus adapters.
    4
    I go to storage and to search for new data warehouses/LUN. Nothing is picked up. This is the strange part (the problem)

    Someone suggested to me that since B & C are in fact virtual machines inside an another ESXi, the firewall may block the ISCSI connections. I did some research and found the following information - http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1026845

    "ESXi does not include a firewall, because it runs a limited number of known services and prevents the addition of other services.

    With such restrictions, the factors that necessitate a firewall are significantly reduced. Therefore, there is no firewall integrated in ESXi.

    For more information, see the Guide of Setup ESXi. »

    5.      
    Note-

    1 LUN ISCSI can be added inside A host, with no problems.


    2. I have already configured a VMKernel Port inside B & C (image view within B or C networking file is attached). Note that all the vmnic is virtual, since the B machine in question is actually a virtual machine.

    Any help with this will be highly appreciated that my project is at a standstill right now!

    2

    I want to say, the mode of promiscious on the vswitch on your physical esx host that is running the virtual methods.

  • Problems adding 4 ESXi and ESXi 3.5 to VCenter4

    Hello all-

    I was not able to get any assistance from technical support or technical support of VMWare license. The excuse is that VCenter is too new to know the right answer. Everyone has a different answer.

    Question:

    I installed the server VCenter 4 Standard. I want to run ESXi 4 and ESXi3.5 hosts. When I try to add these hosts to VCenter inventory, it is said, no available licenses. I added 4 ESXi (free) license the vCenter but it still does not work. By the way; I ESX4 host (Licensed) I have not had any problems to add to the inventory. The error is attached.

    I appreciate the help, but please only answer if you know the answer for sure. I arched days with Guy tech in India without good results.

    Thank you.

    It seems that the problem of license with ESX4i/3i hosts. I hope you are using the free version of the two ESX. Problem start here only. If you need manage these free ESXi by vCenter version, you need to have the permit for them, unless you can't handle. To manage these free version of ESX, vCenter agent lacks. This agent can be deployed only under license of versions of ESXi. Please see the attached certification for vSphere document.

    Shan

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

  • Problem with the conditional formatting according to pivot

    Hi all

    OBIEE version 10.1.3.3.3
    I have a measurement with the following condition column

    Measure:
    -Case when DATE < VALUEOF ("CC_DATE") and the actual amount of another amount, then end

    Here CC_DATE is variable repository

    I created a column duplicated by the following condition

    Double column:
    BOX WHEN Date < VALUEOF("CC_DATE") then end if 0-1

    And try to use duplicate column in a measure of conditional formatting, however I do not succeed

    any suggestion to solve this problem?


    Thank you
    SMA

    SMA,

    Check the link below if you want to put in shape measures based on the intersection of the dimension. A variant of the above link.
    http://www.obinotes.com/2010/10/format-cellmeasure-value-based-on-row.html

    J
    -bifacts
    http://www.obinotes.com

  • Problem adding items to a group after removing everything...

    Hello world

    I would really appreciate help on something. I have a group that has a few buttons in it. This group is one of the four States, and there is a component for each State. After the user runs the rest of the program and returns to this State, I want to delete the former buttons and add new buttons with new values. Bascially, I want to update the component when it is visited again. I have a problem with adding new buttons to the group when the user revisits the component / state.

    The group is created:

              <s:VGroup id="buttons"  x="0" y="35"  height="400" width="280" />
    

    When the function init for this component is called, buttons are added from an array of buttons:

    for(var i:int = 0; i < 10; i++){
              var button:Button = questions[i];
              trace(button);
              button.addEventListener(MouseEvent.CLICK, myEventHandler);
              trace(buttons);
              buttons.addElement(button);
    }
    

    When the user switches to the next State, the buttons are removed:

    if(counter == 4){
              buttons.removeAllElements();
              FlexGlobals.topLevelApplication.currentState = 'Summary';
    }
    

    When the user returns to its original state, the buttons are not added to the group as they are the first time. The trace output that each button is added is also different the second time:

    For the first time: (successfully)

    Main.MainBackground2.contentGroup.gameComp.buttons
    button8
    

    Second time:

    buttons
    button8
    

    Can someone point me in the right direction? And very good question, is there a better way I should do this?

    Is there a better way to refresh everything within a component when viewing it s second time?

    Thanks in advance!

    I don't know why you use addElement() to add buttons. You're not supposed to leave the functionality of the State to manage when the buttons must be visible? This is the way to do it in most cases. You can view a larger code example, where you have boiled down the code in a minimal example that always enhibits the question.

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Training Flex and Support Services

  • Problem adding rows in a table

    Hi all

    I'm having a strange problem by adding the lines of the table here. Everything seems to be in place. But when I click the button nothing happens. I worked on tables more complex and added lines safely, but I don't understand what is happening here. I saved the dynamic XML form, interactive form, I put the paging of expandable lines. But heck! It does not at all. I'm totally confused. More more while I drag the table from the object palette, an error and LC closes its doors. But when I click on the table on the toolbar and in the inserted table for it then it shows no errors. What is going on?? Any help is greatly appreciated.

    Script: form1. Page1.Subform1.Button1::click - (JavaScript, client)
    Form1. Page1.Subform1.Table1.Row4.instanceManager.addInstance (1);

    Thank you.

    Sidonie.

    Hi Francine,.

    The version that I have downloaded from Acrobat.com was registered as Static.

    When I saved as a dynamic in the file save as dialog, it worked perfectly. https://acrobat.com/#d= * KWIuuYfTYgasrEr4ERRaw

    Good luck

    Niall

  • How to solve the problem if BIP condition field, it's too?

    When I calculate area BEEP generator Word XML such as <? sum (//Total_of_Begining_Balance_ID14 [... / CategoryCodeGl022_ID9 = '1101'])-sum (//Total_of_Begining_Balance_ID14 [... / CategoryCodeGl022_ID9 = "1102"])? > in advance. But when the condition is too, I've reached the limit of advance window. How can I solve this problem? Is there a solution?

    Can u send me your sample XML and RTF, so that I can help you

Maybe you are looking for

  • L20-197 - DDR2 RAM - does not fit

    Hello. I recently got a laptop Toshiba L20-197. It's great so far, but I wanted to adapt to a different RAM Module. So I have set out and got myself a DDR2 533 Mhz PC4200 module of 512 MB of RAM. Just like it says on the site. However, by opening the

  • How to bypass the Inspector with a new document?

    In the Pages 5.6.1 How can I open a new document, a model, without opening the Inspector? I find no way to disable or stop the Inspector. I searched these support pages and google, & get dry on this. Anyone...? Note: I don't want to do this in older

  • HP presario CQ61 won't start, blackscreen, no noise, capslock and numlock blinks 2 times.

    Hi all! I have a presario CQ61, which does not have anyting when I turned it on. The screen remains black, the fans start to run and I search for CD-Rom. Uppercase + numlock sparkle for 2 times in a row and then a short break and then they start agai

  • Get the error that the my printer cartridge is incorrect.

    Original title: printer does not print I have an error message on my printer tells me I have a cartridge incorect and the message also said the cartridge in the right store not supported. I took the cleaned cartridge, it is always impossible to use m

  • Laptop HP 630: error starting

    Mr President. My laptop Hp 630 @ [email protected] PC is automatically stop when I play game. I START Pc show stop occurs. What I do of the Sir. Please help me and see my Image of Atteched.