Need help to compare and replace

Hi all

I have a cumulative file that is added at the end of the month. The Table contains information about customers, like:

customer_id, name, address, phone, notes, DATE_STAMP

In addition, I have other Tables that are divided into monthly Tables and information for these monthly tables are obtained from this cumulative one table. When I collect the information at the end of the month (which is added to the summary table that grows in size), I put the name of the MONTH in the column DATE_STAMP. MARCH, APRIL, MAY, JUNE, etc...

So I select all of MARCH (from the cumulative Table) and then who is put in the MARKET Table. These Tables are compared with others a month control Tables for analysis.

The challenge is what to say in APRIL or MAY, a value important column changes in the summary table so I need to update the monthly tables to reflect this.

Then... I will concentrate on the key columns.

customer_id, DATE_STAMP, Sales_Person_Assigned

In the cumulative table (which has many months), say I select all of MARCH and move customers to a MARCH_TABLE. I'll use a customer as an example:

customer_id, DATE_STAMP, Sales_Person_Assigned
12345, MARCH, NULL

Then in APRIL, most data enters the cumulative file, and those who are stamped APRIL for DATE_STAMP column.

So, when I check the client who was in MARCH, now in this file, they could be like this: (update of the record sales person)

customer_id, DATE_STAMP, Sales_Person_Assigned
12345, MARCH, Frank Smith

I need a way to take the CUMULATIVE table and compare it with the corresponding MONTH_Table and update that Null for Frank Smith.

So say what: September today and we have 9 separate Tables Jan - September and ONE cumulative Tables Jan - September, I need only a summary table to check all individual Tables and based on:

customer_id AND DATE_STAMP - a JOIN match here and if the value is null before in the field of the Sales_Person_assigned, if is no longer null, updated as the new value of cumulative for the monthly tables.

Any help would be appreciated, sorry if this sounds too complicated.

user621335 wrote:
AND (NVL (your. GTP, 'X'). = NVL (tt. GTP, 'Y');

I know NVL is a function that will replace a value if it is NULL with X or Y. But I wanted to make sure I understand this line. Table your if value is NULL it puts an X (temporarily?) and Y for table tt temporarily?

So if both are NULL, they will get an X and Y, then they could not equal each other. You can specify that? So that means, if they equal each other, there is no update and to what update? or am I confused?

Sorry, my mistake - I would have had the same share values and else equal (I've corrected that now).

If a table your or table tt has a NULL value in a column, no equality will return UNKNOWN, that is, even if we could have a value and the other NULL, it would not be picked up because NULL is the absence of a value and therefore cannot return true or false. NVL will set a value here for the purposes of the motion only, so that either TRUE or FALSE will be returned. Here, the key is that the NVL value must be a value that can never legitimately exist in the column, i.e., 'X' could never be a value in the Sales_Person_Asisgned column. If it's a numeric column, we use-1, or something just as impossible for a legitimate column value.

If both are NULL, 'X' is equivalent to 'X', so the file will not be updated on this column, if it is NULL, 'X' will not match a legitimate value, so the record will be updated on this column.

Tags: Database

Similar Questions

  • Need help to find and replace

    Hi all

    I need assistance to find and replace words between \ make "BOLD" and delete the symbol in my pages just like below.

    Text example:

    He astonished his parents by \turning a childhood obsession\ in a decent-paying career, much to their dismay.

    After the text:
    He astonished his parents by turning a childhood obsession into a decent-paying career, much to their dismay.

    Thanks in advance,

    Siva

    (\\+?) will never return more than 1 backslash because the? is telling to find the shortest match. {I would change that to each (\) or (\\{2)}

  • Need help to find and replace multiple query

    Hello

    Is it possible to run multiple searches and replace queries both in Dreamweaver 8?

    Currently I have:

    Find: current Document
    Search: Source Code
    Find: ToR
    Title: < acronym 'Mandate' = > ToR < / acronym >
    Options: Match case and find whole words

    I have search and replace about 12 acronyms on each page, and I was wondering if I can create a search and replace the query that includes all my acronyms or do I have to manually run these 12 single queries every time?

    Thanks for the help!

    I'm afraid that is both

    --
    Paul Whitham
    Certified Professional Dreamweaver MX2004
    Adobe Community Expert - Dreamweaver

    Valleybiz Web design
    www.valleybiz.NET

    "Acadieman" wrote in message
    News:eci6a5$JDL$1@forums. Macromedia.com...
    > Hi,.
    >
    > Is it possible to run multiple searches and replace queries both in
    > Dreamweaver 8?
    >
    > Currently I have:
    >
    > Search in: current Document
    > Search for: Source Code
    > Find: ToR
    > Replace: ToR
    > Options: match case and find whole words
    >
    > I find and replace about 12 acronyms on each page and I was
    > I was wondering if I can create a search and replace the query that would include
    > all my
    > acronyms or I have to manually run these 12 single queries every time?
    >
    > Thanks for the help!
    >

  • Need help to find and replace grep using Xml tags!

    Hello world

    I have a Textframe with value ($ 00.00) between two xml tags. a tag for "$" and another for a value (00 h 00).

    Now I find these value (00 h 00) and change value (24.10). If I run the script, removing the price tag XML and updated price.

    My expectation is the value of these update without deleting the XML tag.

    Please suggest me where I made the mistake in the code. Please find the code and screenshot for your reference.

    Before running the Script: After running the Script:                                                                                                             

    Screen Shot 2016-09-17 at 5.03.18 pm.pngScreen Shot 2016-09-17 at 5.09.31 pm.png

    Code:

    var flgGREP="[$]\\d+[.]\\d+"
    var Price="$24.10"
    myLine=app.selection[0];
    FindReplaceValue(flgGREP,Price,myLine);
    function FindReplaceValue(findValue,replaceValue,Sapps){
        app.findGrepPreferences = app.changeGrepPreferences = null;  
        app.findGrepPreferences.findWhat = findValue;  
        app.changeGrepPreferences.changeTo = replaceValue;
        Sapps.changeGrep(); 
    }
    

    -yajiv

    This is because the XML (opening and closing of the representations) tag is a special character but a generic.

    So the above grep model fails because you have a text like [TAG] $[TAG] [TAG] 00.00 [TAG] is not picked up by the grep engine.

    However there is not (unless I'm wrong) a metacharacter which could identify the brands of tags. You can do this in text F/R, but of course it is not as smooth as grep.

    Bad news is that these special characters are not saved if you F/R on a labeled content (I mean in the above case).

    Good luck for you is that you seem to know the markupTag that host the price = copy_frame so I'd domething like:

    var root = app.activeDocument.xmlElements[0];
    var copy_frame_tags = root.evaluateXPathExpression (".//copy_frame" );
    var tag;
    
    while ( tag = copy_frame_tags.pop() ) {
         tag.contents=="00.00" && tag.contents="24.10";
    }
    

    HTH

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • Need help to download and use MovieMaker

    Need help to download and use MovieMaker.  I have XP Home Edition Version 2002 SP 3.  Could not locate moviemaker. Read somewhere that it was in SP2. How can I go about it? Since it puts I have SP3, I have to add SP2 or how do I go about this? THX

    Hi Boolaboola,

    MovieMaker is a separate program and is not installed in the service pack. Here is a link to download the latest version (Windows Live Movie Maker), more tutorials, articles, and much additional information on Windows Movie Maker:

    Movie Maker:

    Windows Live Movie Maker download:

    http://download.live.com/MovieMaker?WA=wsignin1.0

    Getting started with Windows Movie Maker

    http://Windows.Microsoft.com/en-us/Windows-Vista/getting-started-with-Windows-Movie-Maker

    Articles and tutorials for Windows Movie Maker

    http://www.windowsmoviemakers.NET/tutorials/

    How to-tutorials - Movie Maker

    http://www.myvideoproblems.com/tutorials/MovieMaker/TutorialsMovieMaker.htm

    Hope this helps,

    Steve <> Microsoft Partner

  • Need help to find and install the game Chess Titans Windows Vista for XP

    Need help to find and install the game Chess Titans Windows Vista for XP

    Hi SBOYDC130guy,

    We will not be able to install titan of failures on windows XP because it is designed for Windows Vista and Windows 7 and it's built-in game.

    With regard to:

    Samhrutha G S - Microsoft technical support.

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

  • Need help to download and install Acrobat Pro

    Need help to download and install Acrobat Pro

    Hello

    Please see the link below for download: -.

    https://helpx.Adobe.com/Acrobat/KB/Acrobat-downloads.html

  • HP laptop: need help with internet and search for things

    whenever I'm on chrome internet explore google ect and go to tab it is says unknown error or no internet connection or anything and just takes me chrome ect. I need help with this im involved in a byod class and my computer won't let me on what whatever usually it just starts out black and white and the seeds I my search request

    Yes it's a Windows 10 and it arrived already installed I'll take the other info now

  • Need help for testing and practice the concepts of the server at home

    Original title: Hello team

    I need assistance with testing and to practice the concepts of the server at home... I don't have an option to test laboratory pls suggest possible ways that I can practice... need help... Please help

    Hi Sachinadi,

    You can ask your question in the MSDN Forums: http://msdn.microsoft.com/en-us/hh361695.aspx

    Thank you.

  • My Ipod does not detect it on my computer and when I open it alawys loading, I need help of year and sorry for my English

    My iPod series is YM5387WZSZB please I need help of the year

    Hello

    Were there any changes made on the computer before the show?

    I suggest you to return the item and check if it helps:

    iPod not recognized in 'My computer' and in iTunes for Windows

    http://support.Apple.com/kb/TS1369

  • Need help with sizing and save files in batches

    Hi need help with a project.

    I have thousands of vector files that I need size of 350px X 350px, and then place it on a work plan x 600px-600px.

    Then I need to save it to the web as a PNG with a transparent background.

    Could I do a script for? or is there another way to do it in batches?

    I wouldn't have to open them one by one and resize the work plan then the image and save it one by one as that would take forever.

    Any help some suggestions would be greatly appreciated.

    ID do as a series of actions photoshop if the end result is png,

    pro image processor can help you make automatically, if you must resize batch additional... >

    https://sourceforge.NET/projects/PS-scripts/files/image%20Processor%20PRO/v3_2%20betas/

    I think that your work can run in a few steps, but for simplicity, I would like to start / test with a new photoshop action recording

    Open a file, change the size of the image to 350 x 350

    Change the canvas size,

    then save under...

  • I need help to install and activate Adobe Photoshop elements 14 and Adobe Premium elements 14, upgrades of Adobe Photoshop elements 11 and Adobe Premijum elements 11.  Can someone help me, please?

    I need help for the download, installation and implementation of Adobe Photoshop elements 14 and Adobe Premium elements 14, upgrades of Adobe Photoshop elements 11 and Adobe Premium 11 elements.  Could someone help me please?  Thank you.

    When you start the installation of your pse14, you will be asked its serial number (pse, 14).  Setup then checks for the EP 11 and do not find that it installed you invites to select your product qualifying. Select PES 11.  Asked you then your serial number 11 of pse.

    Enter the correct number at the right time and proceed with the installation.

    Similarly for elements of the first.

  • Need help - domain deleted and cannot add-fault domain already exists - website down

    Trying to reconfigure our domain configuration, I removed the main domain name to add again so that it does not point to an external DNS server.

    I deleted the domain and now when I try to add again, I get the following error:

    Domain already exists.  Please delete all the records associated with this domain before adding it again.

    I have no way to present a plane ticket when I go to help and support and our site is now down from the home page.  I need help as soon as POSSIBLE.

    I was able to submit a case when I switched browsers (Chrome apparently does not display the bar/case of research presentation).  The case is

    OBNW5020171

    The area, I'm trying to add is surfaid.org

    Hey Mike.Avocado26,

    I think I erased the field wildwasatchmedia.com in our database. Can you please try adding it again now?

    See you soon.

  • Urgent need help with find and change / GREP

    I'm working on a manual that contains more than a thousand paintings. I'm not quite familiar with GREP and need help to determine the right to coding/jokers to change the character style to a group of words/numbers on a global basis.

    For example, in Chapter 7, a paragraph style is applied to this line of text:

    TABLE 7.1: T4, T3, FREE T4 AND FREE T4ED

    I need to change "table 7.1:" for a character style and so of suite/so on up to "Table 7,150:"-while leaving the other numbers on the same line unchanged also.»» Is it possible to do without having to manually each table style number?

    gd247 wrote:

    I'm working on a manual that contains more than a thousand paintings. I'm not quite familiar with GREP and need help to determine the right to coding/jokers to change the character style to a group of words/numbers on a global basis.

    For example, in Chapter 7, a paragraph style is applied to this line of text:

    TABLE 7.1: T4, T3, FREE T4 AND FREE T4ED

    I need to change "table 7.1:" for a character style and so of suite/so on up to "Table 7,150:"-while leaving the other numbers on the same line unchanged also.»» Is it possible to do without having to manually each table style number?

    No need for GREP. If "TABLE 7.1:" is text, you can create a nested character style that extends through the colon, in the paragraph style. "

    If "TABLE 7.1:" is created by a numbered list of automatic type paragraph style, you can specify a character style named for the part of automatic numbering in the drop-down menu Style of character, in the Style of numbering of the chips section and numbering of the dialog box Options of paragraph style. If the character style does not exist, you can stay in the operation of paragraph options by choosing 'New Style of character' in the menu. After you create the new style, you're back in the process of definition of the paragraph.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • Need help with drag and drop

    IM really new to this program as a

    day new hehe and I need help. im making a game quiz and your supposed

    ED to score in the hoop with a circle.  I have the

    codes for the drag and drop for the circle, but I need help with the collision between the Hoop and the ball, I want to go to the image next or gotoandPlay when the ball touches the ring. HELP PLEASE

    You should not attach code to objects.  and you can be able to happen by using a loop.

    Start by removing all the code the suggested by maqro (i.e. as3) and by removing all the code attached to objects.

    use:

    {yourobject.onPress = function ()}

    this.startDrag ();

    }

    {yourobject.onRelease = yourobject.onReleaseOutside = function ()}

    this.stopDrag ();

    {if (this.) HitTest (whatever))}

    do something

    }

    }

Maybe you are looking for

  • Apple id lock

    Hello My mother has somehow locked her Iphone and now it says: this phone is bound with the apple ID and is locked. To unlock, it go to appleid.apple.com. I went there went apple ID and password and then gives massage to unlock the account. It gives

  • DV7 - 1177ca Blu - Ray disc player not recognize

    I have a HP Pavilion dv7 - 1177ca notebook with a Blu - Ray player and the player is not recognizing my Blu-Rays, it recognizes DVD but no Blu-Rays. I tried to uninstall and reinstall the drivers for it and no dice.

  • Satellite L350-262 - Startup Repair screen displays

    Can anyone help? I had a L350-262 only 2 days. Already, I've had the Startup Repair screen appears showing there is a problem and Windows will not work. When the system try to automatically repair it says that Windows cannot automatically repair. I h

  • Drive CDROM Pavillion g6 does not.

    The CD-ROM drive in my g6 Pavilion has stopped working.  I found this message "a driver (service) for this device has been disabled. Another driver can provide this functionality. (code 32).  I put a CD in the dirve and it makes noise but nothing hap

  • interpretation of TCP read the output string

    What is the right method to interpret the data from the TCP Read function? The output is a string of characters, which are obviously not hexadecimal values. How can I convert the string to a binary table or bytes?