changing the query update

Hello

In the following update query
update C2C_BK_RATING_23112011 f
set f.bk_rating_id = 'HDB'
where f.bk_rating_id like 'HDFC';
I want to update all the records in the column of bk_rating_id when the value of bk_rating_id is to HDB HDFC, the bk_rating_id column is to have values as shown below:
HDFC 10
HDFC 2
HDFC 3
HDFC 4
HDFC 5
HDFC 6
HDFC 7
HDFC 8
HDFC 9
HDFC 1
How can I change the update query to make the output voltage:
HDB 10
HDB 2
HDB 3
HDB 4
HDB 5
HDB 6
HDB 7
HDB 8
HDB 9
HDB 1

Hello
Like this:

update C2C_BK_RATING_23112011 f
  set f.bk_rating_id = REPLACE(bk_rating_id,'HDFC','HDB')
where f.bk_rating_id like 'HDFC%';

Tags: Database

Similar Questions

  • Change the query to a display object

    I have a view currently, object based on an entity. It is the default view object, which means that the query the view object is frank, he grabs all the attributes of the table. And there is no WHERE clause.

    Actually, I only want to show a finite set of rows in my table. Whenever a record is modified/edited in this entity and committed, a new row in the database is created with the same information (I use CreateWithParams) with the exception of a few columns.

    I actually didn't really update it on this table, just creating new lines. But to the user, I want it 'looks' like they change something in the table.

    Example:

    12, 11:32, Thompson, 60 (changes to the user this information in a table of the adf and a new line is created in the comic book)

    12, 11:55, Thompson, 75





    I have a timestamp field (see above) in the database that is used as part of my primary key, while I know that is later.

    When executing the query of the VO, I want the user to only see as the last row of the db.

    12, 11:55, Thompson, 75

    Then...

    I went to my VO, and I changed the query WHERE to add this:

    where t1. TimeStamp = (Select MAX (t2. (TimeStamp) OF THE rcl.x t2 where t1.uid = t2.uid);


    Now, this isn't a question of mysql/sql. There is actually a better query I was running, but the editor of the VO does not allow me to change the query itself...

    When I save the new WHERE to my VO, rerun my page, I get the expected result (showing me only the latest recordings).

    However, when I try and do a sort on the table in which are displayed my data, I get now ORDER BY errors.

    I don't want my VO SQL read-only basis. I want to be able to update my table, so I have my VO running out of the entity.



    Why don't the VO allows me to change the query itself? (As do a subquery instead of having my where clause to do the job)

    Why are sorted by errors are thrown when I sort on my adf table after changing the where clause in my opinion?

    I hope I was not too complicated in explanation of my problem...

    Thanks in advance,

    Joel

    Hello

    You can switch the VO query editor based on an EO to expert mode. This allows you to change the entire query. Unless you change the use of the attribute, the update through this VO work. Open the VO query and choose the Expert mode option of the query to see what I mean

    Frank

  • Extend the VO - need to change the query of VO - screen is off

    {Re-post the message in this forum (thanks to John Stegeman to lead me here...)   {Posted: August 28, 2009 04:27}

    Dear all,

    Thanks to this great body of knowledge, I ask my questions.

    I need to extend a VO to display the name of the country.
    The column is not in the VO. So, I need to get another table: FndTerritories

    I want to change the query, but the request frame is turned off (in the wizard the View - step 5 of 6 - Generated statement object substitution)

    Could you be it someone please let me know: how to change the application of the VO in this case?

    OR is there another solution for such cases, to maintain development standards

    Thank you very much

    Kind regards

    Hello

    I think that's when you just have to add an attribute, you should not click the expert mode checkbox... make use of
    Mix and add the button.

    But when you need to modify the query, and then we want to use to modify the query window...

    Thank you
    Gerard

  • I can't change the automatic update settings

    I noticed recently that the automatic update of windows is no longer asked me whether to download updates. When I checked the settings via the Control Panel setting had been changed to "Install updates automatically". The toolbar is now grayed out and I am unable to choose another option!

    I'm the only person using this computer as administrator, with a single user profile. I don't understand why I'm not allowed to change these settings more and you would appreciate the help.

    Thank you

    See...

    Cleaning a compromised system
         http://TechNet.Microsoft.com/en-us/library/cc700813.aspx

    Personal data backup (which none should be considered 100% reliable at this point) then format the HARD disk and do a clean install of Windows. Please note that a repair installation (upgrade AKA on-site) will NOT fix it!

    HOW to do a clean install of Win7: see "using the custom installation and formatting the hard drive option" (or "reinstall it Windows 7") http://windows.microsoft.com/en-us/windows7/Installing-and-reinstalling-Windows-7 article

    NOTE: If your computer came with a set of disks, there is a hidden partition restore (not to be confused with the restoration of the system) you would use to do the clean install (AKA a "destructive recovery").

    After the new installation, you will have the equivalent of a "new computer" in order to take care of EVERYTHING on the next page before connecting the machine to the internet or one local network (i.e. other computers) AND BEFORE to plug in a flash, SD card, or any other external drive to the computer otherwise:

    4 steps to help protect your new computer before going online
         http://www.Microsoft.com/security/pypc.aspx

    VERY IMPORTANT! -Online free trial Norton will be reinstalled (but invalid) when Windows is reinstalled. You MUST uninstall the trial for free AND download/run the Norton Removal Tool again BEFORE installing updates AND BEFORE installing your new anti-virus application (for example, Microsoft Security Essentials - free, instead of AVG).

    If you need additional assistance with the clean install, please start a new thread in this forum: http://social.answers.microsoft.com/Forums/en-US/w7repair/threads

    [If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair shop.]

    Wish I had better news for you.  Good luck!

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I signed on XP Pro SP3 as an administrator but you cannot change the timing of Windows Update to 03:00. All options are not enabled. How can I change the time, updates are made? __

    I signed on XP Pro SP3 as an administrator but you cannot change the timing of Windows Update to 03:00.  All options are not enabled.  How can I change the time that updates are made?

    Hi imoffshore,

     

    Welcome to Microsoft Answers Forums.

    We would like to get some more information from you to help solve your problem. You better, please answer the following questions.

    ·         When was the last time it worked?

    ·         Remember to make changes to the computer recently?

    ·         You have security software installed on the computer?

    ·         You get the error message?

    When you open the tab automatic updates in the control panel or My Computer property sheet, all options of configuration of the automatic updates may be grayed out. This happens due to one of the following reasons:

    1. You are not logged as administrator (or equivalent)
    2. Strategy of automatic updates is enabled
    3. Automatic updates (and Windows Update) access is blocked by group policy

    The options available for automatic updates.

    You must make some changes in the windows registry.

    Important: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

    http://support.Microsoft.com/kb/322756

    • Click Start, run and type REGEDIT to . EXE
    • Go to this location:

    HKEY_LOCAL_MACHINE-SOFTWARE-policies-Microsoft-Windows------WindowsUpdate------AU

    • In the right pane, delete the two values AUOptions and NoAutoUpdate
    • Go to this location:

    HKEY_CURRENT_USER-SOFTWARE-Microsoft-Windows-CurrentVersion------policies------WindowsUpdate

    • In the right pane, delete the DisableWindowsUpdateAccess value

    Using the Group Policy Editor - for Windows XP Professional

    • Click Start, run and type gpedit.msc
    • Navigate to the following location:

    => Configuration of the computer
    ==> Administrative templates
    ===> Windows components
    ===> Windows Update

    • In the right pane, double-click Configure automatic updates and set it to not configured
    • Next, go to this location:

    => User configuration
    ==> Administrative templates
    ===> Windows components
    ===> Windows Update

    • In the right pane, set to remove access to all Windows Update features on not configured

    Change how Windows installs or notifies you of updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-how-Windows-installs-or-notifies-you-about-updates

    Halima S - Microsoft technical support.

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

  • Changing the property update of an attribute of the View object through code

    Hello

    Is there a way to set the property "Updatable" of an attribute in an object of display through code?

    I checked the API documentation for the class of AttributeDef, but there is no method to set it. There is a constant (UPDATEABLE_WHILE_NEW), which gives the current value.

    My needs in short - I have a modifiable ADF Table. Based on a flag, whether or NOT it is FIXED, I need to make a particular column, such that the inputTextBox on this column should appear so that the new rows inserted into the table. Existing users should not be allowed to change the values in this column for all rows.

    I know that it can be controlled by the UPDATABLE property on the attribute in the display object by setting the 'ALL new '.

    Now, I need to control this code during execution.

    Please let me know on OE for that.

    JDev version: 11.1.2.3

    Thank you.

    the method you are looking for is available in the AttributeDefImpl class that you can get from the EntityImpl as

    this.mDefinitionObject.getAttributeDefImpl("YOUR_ATTRIBUTE_NAME").setUpdateableFlag(AttributeDef.UPDATEABLE_WHILE_NEW);
    

    Timo

  • Bug: APEX_COLLECTION. CREATE_COLLECTION_FROM_QUERY_B change the query string

    Hi APEX Dev Team.

    I found a bug (or I don't know how to get around unexpected behavior) in APEX_COLLECTION. CREATE_COLLECTION_FROM_QUERY_B. I think that it also applies to the CREATE_COLLECTION_FROM_QUERY.

    What's happening: some strings are replaced in the query, I pass into the function. for example '22% ' is replaced by a white. It is not good if I have a query like this:
    SELECT MYCOLA, MYCOLB, MYCOLC FROM MYTABLEA WHERE MYPHONE LIKE '%22306%';
    This returns no rows in the collection. If I run this query in SQL Developer she returns 5 rows.

    When I change the declaration subsequently, it returns 5 rows in the collection.
    SELECT MYCOLA, MYCOLB, MYCOLC FROM MYTABLEA WHERE MYPHONE LIKE '%2306%';
    Trace shows me, the first SELECT statement is replaced by
    SELECT MYCOLA, MYCOLB, MYCOLC FROM MYTABLEA WHERE MYPHONE LIKE ' 306%';
    Which is obviously false :-)

    The changes seem to be limited to 22%, I found no other characters encoding URLS that are replaced in the query.

    Please fix, as I can't find any workaround.

    Thank you
    Peter

    -----
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

    Hi Peter,.

    Thanks for reporting this. This seems to be a legacy logic which is no longer necessary (the logic to replace the string '22% '). I corrected it to Application Express 4.1.

    To work around the problem, you can concatenate this string in your application, allowing you to avoid this logic. For example,.

    SELECT MYCOLA, MYCOLB, MYCOLC FROM MYTABLEA WHERE MYPHONE LIKE '%2 '. 2306 ' %';

    Thanks again.

    Joel

  • How do I dynamically change the query VO

    Hello

    IAM trying to change the VO query dynamically. My forced, it is that I have 6 columns in a page header 3 columns (single default) for objective sort and another 3 columns (the default one) for querying data.

    Al, are in a single view so I created a VO.

    Sort of research
    AN A
    B B
    C C

    When I give all sort values and hit the query of VO submit button should change dynamically.
    I searched old post in this regard.

    My query is something like that

    SELECT * from cust_table where a = NVL (: 1, a)
    UNION
    SELECT * from cust_table where a <>NVL (: 1, a)
    order by one

    IAM not trying the Sub part dynamicaly in my AM method
    vo.setWherecaluse ("where a = NVL (: 1, a)")
    UNION
    SELECT * from cust_table where a <>NVL (: 1, a)
    order by one ").
    and trying to pass parameters to the query. But it does not work. In error "variable binding is not found.

    The one you suggest how to solve the problem.


    Thank you
    Mahesh

    Mahesh

    Please let me know the logic behind the union of the same query with it. What is the problem you are having with
    vo.setWhereClause

    Thank you
    AJ

  • ATG-short integration - change the query of the user's search term before being sent to short

    All testing the ATG-short front-end search/browse integration in a commerce application of my organization, one of our QA team members noticed as a search term consisting of just a vertical pipe character ("" | "") would cause the full product catalog to return in the results of research, as if every product in the catalogue was a match to that search term.

    This behavior can be seen in the Application of reference short JSP as well, so that this behavior does not appear to be caused by something that makes our custom application code.

    It is an undesirable behavior for our application - the company prefers that we do not show the entire catalog of products at the same time unless he is cut down somehow (whether via a word search or by the application of filters of properties).

    I plan to implement a solution to wash just ' | ' characters of the search term entry.  It would be pretty easy to do on the client side, but as with any other web application input validation, we really want to do this on the side server.

    I think that this should be done by the substitution of / expand part of the OOTB ATG pipeline where it sends the search request to short for treatment.  However, this is not something I've done before.  I read in Chapter 7 of the ATGEndecaIntegrationGuide.pdf ("application integration"), but it's not immediately obvious to me how/where I'd be better on the substitution of / extend an OOTB ATG component for making filter ' | ' characters in the search query term.

    All the world is this kind of thing before?  If so, could you please describe how you went to?

    Thank you!

    -Jon

    I ended up implementing this as follows:

    -Create a new class that extends the class InvokeAssembler;

    -Implement a custom InvokeAssembler.properties file that points to my new class derived;

    -In service () of the new derived class method, use methods of the DynamoHttpServletRequest to filter pipe characters in the value of the Ntt parameter and the query string.  Then call super.service () to handle the demand.

    -Jon

  • Tecra M5 - what has been changed the Bios updated 3.40

    Anyone know what is included in this update of the bios?

    Why Toshiba insists on not including details on what changed on the description of the BIOS? How will I know if this bios update will solve my problem with Virtual PC and hardware for example virtualization?

    :(

    See you soon

    Hello

    Toshiba Europe page provides no information about the BIOS fixes!
    Why? Who knows? I found some info on the BIOS on the Toshiba site improvements we but as you know that the BIOS since the US site is not the same as the BIOS since the European Toshiba of the site. The BIOS of the American site can only be used on laptops designed for the American market.

    By the way; I checked the details on the European driver from Toshiba site and it seems that the 3.4 BIOS for Tecra M5 with model number PTM51E-xxx only

  • How to change the Automatic Updates settings so that I do not automatic updates new

    Original title: updates problem

    Automatic updates on my laptop are in the way of my work. They always take forever to finish, and I never know when they come from willl. How can I fix this so that I will not get automatic updates again?

    Hello

    Change how Windows installs or notifies you of updates > select automatically search for updates but let me choose whether to download and install them.

    http://Windows.Microsoft.com/en-us/Windows/change-Windows-Update-installation-notification#1TC=Windows-7

  • Dynamically read the table name in the query update

    Hi all

    I am trying to run the updated sql query where the name of the table should be read dynamically from another table below.

    Please let me what wrong with my request.

    setting a day (select CONCAT('T',schemaid) from outline, which the name = 'Analyzer') set c7 = 99;

    "outline" is a table that contains two columns name and schemaid.

    all the table created in our database with the prefix 't' T4345 for example.

    I did as suggested by you

    No, you didn't.  I did not any package creation code in my example, in order to better that you you point the finger.

    Your syntax is invalid for creating a package with the code like this, please read on creating packages and procedures within them if that's what you want to do.

    In addition, your package creation statement is to create a package specification, but you put in the code which must be in a package body, not a notebook loads.

    It should be something like (untested since I don't have your tables)...

    create or replace package my_packg as
    procedure dowhatever.
    end;
    /

    create or replace package body my_packg as
    dowhatever procedure is
    TBL varchar2 (30);
    Start
    Select 't' | SchemaId
    in tbl
    of outline
    where name = 'Analyzer ';
    run immediately 'Update'. "TBL |' set c7 = 99;
    end;
    end my_packg;
    /

    and then call this procedure by calling my_packg.dowhatever ();

  • Change the query to a Count (*)

    SELECT oh1.partner 'Dealer,'
    OD.sales_code 'merchant sales Code. "
    OH1. external_order_number 'Original merchant order number. "
    OH1. Region,
    Cust. billing_account_number "BAN."
    DSL.n_order 'DSL OrderNo. "
    DSL.tn_or_ftn "TN DSL."
    DSL.activation_date DSL"Activation", ".
    Telco.TN "ACCESS_TN"
    TO_CHAR (oh1.created_ts, "YYYY-MM-DD") "Date of the original order.
    Pack1.display_name 'original Description of the order. "
    Pack1.price 'Price Plan',
    uname. USER_FIRST_NAME 'Agent First Name. "
    uname. USER_LAST_NAME 'Agent Last Name',
    uname.User_Name "Agent ID",
    -to_char (dh.timestamp, ' yyyy-mm-dd hh: mi ') "USCS Button Pressed",
    TO_CHAR (oh2.created_ts, 'YYYY-MM-DD') 'USCS Order Date. "
    Pack2.display_name "USCS - order Description."
    CASE
    WHEN cd.state IN ('1 ', ' 15') THEN "RECEIVED".
    WHEN cd.state IN ('2') THEN 'TRANSFORMATION '.
    WHEN cd.state IN ('3', '8', ' 16', ' 18') THEN 'FINISH '.
    WHEN cd.state IN ('4 ', '9', ' 17') THEN 'CANCELLED '.
    WHEN cd.state ('6', '10', ' 13', ' 14') THEN 'PENDING '.
    WHEN cd.state IN ('7') THEN 'INCOMPLETE '.
    WHEN cd.state IN ('12', ' 19', ' 20') THEN 'PRESENTED '.
    ANOTHER 'OTHER '.
    END AS state_desc,
    Pack2.price "USCS - Plan price."
    Pack2.price - pack1.price "Net change"
    INA.first_name,
    INA.last_name,
    INA.add_line_1,
    Ina.City,
    INA. STATE,
    INA.zip

    OF ain.impl_oh_order_header oh1
    INNER JOIN ain.impl_oh_order_header ON oh1.external_order_number = oh2.external_order_number oh2
    INNER JOIN ain.impl_order_data ON oh1.transaction_id = od.transaction_id od
    INNER JOIN ain.impl_package ON oh1.transaction_id = pack1.transaction_id pack1
    INNER JOIN ain.impl_package ON oh2.transaction_id = pack2.transaction_id pack2
    INNER JOIN ain.impl_name_address ON oh1.transaction_id = ina.transaction_id ina
    INNER JOIN ain.impl_customer ON oh2.transaction_id = cust.transaction_id cust
    LEFT OUTER JOIN ain.impl_dsl ON oh2.transaction_id = dsl.transaction_id dsl
    LEFT OUTER JOIN ain.impl_access ON oh2.transaction_id = telco.transaction_id telco
    INNER JOIN ain.sncr_order_curr_disp ON cd.transaction_id = oh2.transaction_id cd
    INNER JOIN AIN.sncr_order_disp_head ON oh1.transaction_id = dh.transaction_id dh
    INNER JOIN ain.sncr_order_disposition ON dh.disp_transaction_id = disp.disp_transaction_id disp
    INNER JOIN ain.sncr_ssm_principal ON uname.user_id = dh.user_id uname

    WHERE the oh2.created_ts BETWEEN to_date (' 01/03/2012 00:00:00 "," mm/dd/yyyy hh24:mi:ss') AND to_date (' 31/03/2012 23:59 ',' dd/mm/yyyy hh24:mi:ss')
    AND oh1.uscs = 0 AND oh2.uscs = 1
    AND oh1.external_order_number NOT LIKE '% PROD_TEST % '.
    AND oh2.external_order_number NOT LIKE '% PROD_TEST % '.
    AND oh1.order_type = 'COMMAND '.
    AND oh2.order_type = 'COMMAND '.
    AND pack1.product_type = 'COMMAND '.
    AND pack2.product_type = 'COMMAND '.
    AND disp.category = 110 AND disp.state = 5
    AND disp.trx_seq = (SELECT MAX (trx_seq)
    Ain.sncr_order_disposition sod, ain.sncr_order_disp_head pink
    WHERE sodh.disp_transaction_id = sod.disp_transaction_id
    AND sodh.transaction_id = oh1.transaction_id
    AND sod.category = 110 AND sod.state = 5)
    AND pack1.offer_id IS NOT NULL
    AND pack2.offer_id IS NOT NULL
    AND ina.type = 'SERVICE '.
    AND cd.category = 100

    ORDER BY to_char (oh2.created_ts, ' YYYY-MM-DD "")

    Do you understand the technique that gave you yesterday? Just because your query has been modified, the response has not. For any question, you can always do

    SELECT COUNT(*)
      FROM (<>)
    

    It doesn't matter what query you have, you can always wrap up with a COUNT (*) SELECT to count the number.

    Justin

  • Links user to change the query option

    I know it's a simple thing to do...

    I have an example query:

    < name cfquery = 'day' datasource = "" >

    Select logday
    of tbl_log
    WHERE logday = "Tuesday".

    < / cfquery >

    I want to have a drop down menu where there is say a list of days, Monday > Sunday. When the user choices say Friday it then changes WHERE logday = 'Friday ';

    I can't work work how to get the link to work. Should I combine it with a cfset?

    Thank you

    James

    You train with the drop-down list of the day, you want to your select to look like the code below. Then on your action page, your where clause should resemble:
    WHERE logday = 'form.selectedDay. '

  • I can't turn on the automatic updates give me a message that the Security Center could not change the Automatic Updates settings. Please help me...

    Automatic updates not turn off why, I already scanned my computer for viruses and found nothing, I have already install service Pack 3 and did not work. I turn on manually but when I go on the center of Panel and the security of the control still appears off the coast.

    Maybe try the Microsoft Fix It solution found on this page http://support.microsoft.com/kb/971058

Maybe you are looking for