I have a table with a city of the column. Values are 'delhi' and 'hyderabad '.

I have a table with a city of the column. Values are 'delhi' and 'hyderabad '.

as

ID |   City

---------------------------

1     |  Delhi

----------------------------

2     |  Hyderabad

Now, I have to update Delhi and Hyderabad Hyderabad with Delhi.

How to do this?

Hi Indi,

(1) why do you want what it? Requirements of companies?

(2) how much these values you want to reverse? Is it only "Delhi" and "Hyderabad", or there is a list, or other logic?

Update your_table

Set city = decode (lower (city), 'delhi', 'Hyderabad', 'hyderabad', 'Delhi')

where lower (city) ('Delhi', 'hyderabad');

Does that help?

Tags: Database

Similar Questions

  • I have a problem with windows games like the games that are included in your pc, mines Minesweeper solitaire, etc.

    OK my problem is when I go into my game files that I see all the games it solitaire, mine sweeper, titans of chess etc but when I click - for example, the titans of chess, it says no file not found.when I click my Start button and where he SIAS games - I clicked, but it indicates 0 games. How so I just did install windows 7? y at - it something he missed. BTW, I've updated since windows vista 64 to 7 (64) .i also tried the solution of aid it gives to you, which is to go into the Control Panel, click programs, then turn windows features turn on or off, and make sure you check the box that says games, I did that and still no Y_Y games and I really want to play chess , so my questions are what he says. Why have I not games? and is there anyway I can get back them? Thank you

    In some versions of Windows 7 games is disabled by default.

    You must enter in the Panel - programs and features - windows features option and turn it on.

    I had to do it on two machines. I hope this helps.

  • I have change directry with reg edit now impossible to uninstall a program and cannot sett advance adjustment system

    I have change directry with reg edit now impossible to uninstall a program and cannot advance the system put forward sett it was drive c was my default directry, but I put as a default and no command does command-line pls tell me how to set the drive c again as defaulat I use vista. can't open the registry.

    I have no backup also cannot restore

    Hello

    (1) why you did registry change?

    (2) you receive an error message when you try to uninstall the program?

    (3) do you have with you Windows Vista installation disc?

    I suggest trying this method and try to install the program.

    Problems with programs that cannot be installed or uninstalled. http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    If the problem persists always, respond with more information for you to help.

  • I have hp laptop with built in webcam I went to Device Manager and it not on a day it is next day it not

    I have hp laptop with built in webcam I went to Device Manager and it not on a day it is next day it not

    Hello

    ·         What is the brand and model of your laptop?

    Method 1:

    Try running the fixit from the link next and if it helps: http://support.microsoft.com/mats/hardware_device_problems/en-us

    Method 2:

    Try to update the drivers for your webcam and check if it helps: http://windows.microsoft.com/en-us/windows-vista/Update-a-driver-for-hardware-that-isn ' t-work properly

  • I just installed a new hard drive. and reinstalled a clean copy of Windows 8.1.  Windows 10 waiting to be installed. I have licensed copies of Photoshop CS6, Lightroom 5 and 12 elements with Acrobat Standard. The Adobe programs are now asking

    I just installed a new hard drive. and reinstalled a clean copy of Windows 8.1.  Windows 10 waiting to be installed. I have licensed copies of Photoshop CS6, Lightroom 5 and 12 elements with Acrobat Standard. The Adobe programs are now asking to be uninstalled and reinstalled I can understand. However, should I do before moving on to Windows 10?

    Yes

  • Currently, I have Photoshop CS5 with Adobe Bridge. The upgrade online for Photoshop CS6 includes upgrades to the bridge? I recently bought a camera Nikpn D810. The old version of the bridge does not recognize the D810 Camera Raw format. Thanks for any hel

    Currently, I have Photoshop CS5 with Adobe Bridge. The upgrade online for Photoshop CS6 includes upgrades to the bridge? I recently bought a camera Nikpn D810. The old version of the bridge does not recognize the D810 Camera Raw format. Thanks for any help.

    New digital camera sometimes means an upgrade of the software, as in this case.

    Camera Raw plugin | Supported devices

    Applications of camera Raw compatible Adobe

    First, the D810 is supported in camera Raw which is compatible with the CS6 and later versions 8.6.

    Options:

    1. Pay for upgrade to CS6
    2. Join the cloud to Adobe
    3. Download the free Adobe DNG converter, convert all the D810 Raw files to DNG, and then edit the DNG in CS5 helps Photoshop | Digital Negative (DNG)
  • Help with a sql using the ASCII value

    Hello

    I have a table with the following data
    DOC_NO     CLIENT_REV
    ------     ----------
    240          A
    240          B
    240          B
    240          C
    240          C
    240          C
    240          0
    240          1
    240          1
    240          1
    240          2
    240          2
    240          2
    241          A
    241          A
    241          B
    241          C
    241          C
    241          D
    The requirement is retur the following values:
    240          2
    241          D
    I tried with the ASCII function, but the necessary result is somewhat complicated. That is to say for a group of doc_no I need as many client_rev if there are numbers, if not then I need the largest letter.

    How can I achieve this requirement?

    Kind regards.

    Hello

    What do you mean by "the decision must be the minor doc_date?
    It would be useful that you posted your desired results.
    I assume you mean you want only the line with the doc_date lowest (for each doc_no).
    in other words, the desired results are:

        DOC_NO L DOC_DESC           DOC_DATE
    ---------- - ------------------ ---------
           240 2 Description of 240 01-JAN-09
           241 D Description of 241 01-FEB-09
    

    Here's a way to get these results:

      SELECT x.doc_no, x.last_client_rev, y.doc_desc, y.doc_date
      FROM     (     -- Begin sub-query based on table_a
         SELECT   doc_no,
                     MAX (client_rev) KEEP
                       (DENSE_RANK LAST ORDER BY TRANSLATE(client_rev
                                                           ,'ABCD012' -- Desired sort order
                                                           ,'012ABCD'  -- Actual sort order
                                                          )) AS last_client_rev
         FROM       table_a
            GROUP BY  doc_no
         ) x,
         (     -- Begin sub-query based on table_b
         SELECT       doc_no,
                MAX (doc_desc) KEEP (DENSE_RANK FIRST ORDER BY doc_date)
                             AS doc_desc,
                MIN (doc_date)     AS doc_date
         FROM       table_b
         GROUP BY  doc_no
         ) y
      WHERE x.doc_no = y.doc_no;
    

    As you restrict the table_a lines are used, so now you restrict table_b lines are used.

    First, let's review what you do with table_a.
    Table_a has multiple lines with the same doc_no.
    You only want to consider one of these lines: one that comes last, when to sort your particular way.
    If your main query does not use the table_a:
    It uses a subquery table_a-based which is a GROUP BY doc_no, to ensure that only the row by doc_no is used.

    Now, what is the problem with table_b?
    Table_b has as many rows with the same doc_no.
    You only want to consider one of these lines: the one with the lowest doc_date.
    So your main query should not use table_b:
    She must use a subquery table_b-based which is a GROUP BY doc_no, to ensure that only the row by doc_no is used.

  • I bought a laptop with a copy of the chrages of win 7 and won't let me not updated (didn't know at the time) if I buy the 8 victory will this solve my problem

    I bought a laptop with a copy of the chrages of win 7 and won't let me not updated (didn't know at the time) if I buy the 8 victory will this solve my problem

    You don't want to buy win8 until you have verified first this portable machine provides win8 drivers, or you ran the tool to advise win8 update.

    PS You are sure that your version of win7 is bad, or are you just a «can be victum msg»

    Your laptop has a restore partition hidden, from where you can restore you to factory State?

  • I have already download Lightroom CC compared to the creative clouds of Adobe, and I also paid my creadit card money. But I do not have any email on my serial number.

    I have already download Lightroom CC compared to the creative clouds of Adobe, and I also paid my creadit card money. But I do not have any email on my serial number

    Creative cloud do not need a serial number. It will use your Adobe ID on which you bought the creative cloud composition.

    If you need to sign in with your Adobe ID and password to activate the composition of the cloud.

    Disconnect & reconnect the CC desktop application.

    In case it is not signing in successfully, please try the following:

    I do not know what operating system, you work on so I give you a few steps windows and MAC:

    Windows:

    In windows 7 go to the following location:

    / Windows/system32/drivers/etc

    1. find the file "hosts".

    2. open it with Notepad

    3. check if you have any input for Adobe

    4 remove the entries and try again to launch any product of CC

    On Windows XP, go to the following location:

    \Windows\system32\drivers\etc

    1. find the file "hosts".

    2. open it with Notepad

    3. check if you have any input for Adobe

    4 remove the entries and try again to launch any product of CC

    Mac:

    1. click on 'Go' and navigate to/private/etc

    2. open the 'hosts' file and departure for all entries for Adobe.com

    3 remove the entries and save the file

    4. try to launch again any product of CC

    You can consult:

    http://helpx.Adobe.com/creative-cloud/KB/CCM-prompt-serial-number.html

    Could not download successfully after adobe

    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-i ssues.html.

    Please let us know if it worked.

    Kind regards

    Baudier

  • I have "upgraded" to FF5 and now have no refresh or stop icons in the menu bar, are not available in the menu "personalize." How to make a comeback?

    Question
    I have "upgraded" to FF5 and now have no refresh or stop icons in the menu bar, are not available in the menu "personalize." How to make a comeback?

    I'm happy to have helped.

    It was something that many users asked when he changed first, and I initially did not know myself that the order of the buttons would make a difference as to if a button or a pair of buttons would be displayed.

    If you mark the post as solved while he is recorded in the answer will appear in the results of research and may help others.

  • With a high resolution, the proportions of my photos and slides is false.

    With a high resolution, the proportions of my photos and slides is false. To show the ration of good appearance, got very low resolution. I searched in the vein of a cure, but certainly there must be a.

    Hello

    1. What is the native resolution of the image?

    2. What if this problem occurs with all the pictures?

    These problems usually occur due to the low native resolution. To change the native resolution of the image, you can use pictures digital high resolution.

    Hope the information is useful.

  • It is possible to have two tables with the same name in Oracle!

    Oracle Version: 10 gr 2

    MS Access 2007, I had to use the 'Export' by which I copy a table (and its data) to an Oracle schema via an ODBC connection. Later, I realized that, during the copy of tables with a mix of lower and upper case names, the table does not copied (exported). But MS Access will give you the message that table obtained export successfully.

    MS-Access mess around Oracle data dictionary.

    When you issue
    SQL>select * from tab;
    
    TNAME                          TABTYPE  CLUSTERID
    ------------------------------ ------- ----------
    AMStates                       TABLE
    Version                        TABLE
    You will see the names of the tables. But when you try to DESCRIBE or SELECT this table, you will
    SQL>desc Version
    ERROR:
    ORA-04043: object Version does not exist
    You can even create another table with the same name in the schema
    SQL>create table VERSION (X NUMBER);
    
    Table created.
    Why this is happening and how can I bring these items 'non-existent '?

    Hello

    Use

    SQL > desc 'Version '.

    Or

    SQL > select * from 'Version '.

    Or

    SQL > drop table 'Version '.

    To overcome the problems of mixed-case.

  • How to link two tables with a part of a cell value

    I have 1 column, which contains info like this "1 to 4 numbers - two words" in tableA

    for example

    985 - train series

    14 baby Doll

    874 piano keyboard

    6 - DVD player

    etc.

    In table B I have columns with the numbers of toys 1 and 2 which has the price.

    I want to write a query that gives me the number, name and price.

    But I don't know how to link part of the value in a cell with another table.

    I know that the database is not normalized, but I did not design and I have no permission to change.

    Kind regards

    What have you tried?

    Please read: Re: 2. How can I ask a question on the forums?

    Sounds to me like you just want to join the tables on a partial string, so to make you just extract the numbers from the table A Column1.

    for example

    TO_NUMBER (substr (A.col1, 1, instr(' ')-1))

  • ADF Table with CRUD operations in the form of the ADF

    Hi everyone and thank you in advance for your help,

    I am running JDev 11.1.1.6 and I do not know how to perform the following requirement:

    I have two tables in a solution of master / detail : selection of a row in the primary table, made of the related lines available (according to a FK) of the secondary table. Well, for editing, I have a button in each row of a column that contains this set up and works great:

    Button = > showPopUpBehaviour = > popup = > dialog box:


    + < af:popup id = "p1" +.
    + popupFetchListener = "#{popUpEdit.editPopupFetchListener}" +.
    + contentDelivery = "lazyUncached" > +.
    + < af:dialog id = "d2" title = "Title" +.
    + affirmativeTextAndAccessKey = "#{rcdcontroladorBundle.GUARDAR}" +.
    + cancelTextAndAccessKey = "#{rcdcontroladorBundle.VOLVER}" > +.

    + <! - ENTRY TEXTS - > +.

    + < / af:dialog > +.
    + < / af:popup > +.

    The bean code is:

    + ' public void editPopupFetchListener (PopupFetchEvent popupFetchEvent) {+
    + If (popupFetchEvent.getLaunchSourceClientId () .contains ("cbInsert")) {+
    + BindingContainer bindings = getBindings(); +
    + The OperationBinding OperationBinding = bindings.getOperationBinding ("CreateInsert"); +
    + operationBinding.execute (); +
    +}+
    +}+

    But for new records, I can't manage to put the dialog box with a new record (there is an id autonumeric) and to allow the user to fill in the fields and submit. This would be the condition but I couldn't get there. I could do:

    Button (Action Listener): + #{bindings. CreateInsert1.execute} +.

    Subsequently, the user can use the option Edit in the inserted row and commit.


    I searched a lot, but I found solutions were to forms or Table CRUD implementations, not a combination of both. For this reason, I would appreciate your help. If you need additional code, more information or anything else, ask me and I will answer as soon as I can.


    Thank you
    Mariano.

    Is your question when you create a new record, it is open in a doll to go into the details... If so write code to create a record in create button Actionlistener and opens the popup programtically which may help you... If I'm your problem writing...

    Here is the code for the button actionlistener

    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding ("CreateInsert");
    operationBinding.execute ();

    then the opening of the progranmatically popup code...

    I have a question I see two different methods, you call in the Actionlistenr button you have CreateInsert1 and in the popupfetch, you CreateInsert... do you have two method actions. ?

    Button (Action Listener): #{links *. _CreateInsert1_.execute}

    Probably it could help you...

    Published by: sree_cyma on March 7, 2013 13:33

  • Select tables with a number of corresponding columns

    Hi guys

    I need to find a list of tables with columns in common.

    So basically I need a list of tables and tables that have 3 or more column in common with her, and what are these columns.

    This could take the form of pairs of tables, IE table A table B on columns 1,2,3 games
    Table of an array of matches C on columns 1,3,4

    or it could be games table A table B and C columns 1,2,3 etc.

    I think I do with PL/SQL, what I can do - but I was wondering if this kind of thing is possible with just an SQL statement - if any of you have done it before and you have some SQL, which would be a great help.

    Thank you very much

    Scott

    Well, most of the work is done.
    'Just', you need to add an aggregation function to present the list of corresponding columns.

    In 11.2, it has LISTAGG:

    SELECT a.table_name tab1,
           b.table_name tab2,
           count(*) match_count,
           listagg(a.column_name,',') within group(order by a.column_id) col_list
    FROM user_tab_columns a
         JOIN user_tab_columns b ON a.column_name = b.column_name AND a.table_name != b.table_name
    GROUP BY a.table_name, b.table_name
    HAVING count(*) > 2
    ;
    

    For older versions, other techniques are summarized here:
    http://www.Oracle-base.com/articles/Misc/StringAggregationTechniques.php

Maybe you are looking for

  • BarChart in Scattergraph

    Hello, I have on my first UIscattergraph where I draw a few points of some color spaces. I needin one configuration a barchart like the following to draw theraw data of my sensor. Is it possible to draw a few bars with onescattergrap?

  • How to create a buffer custom MTS?

    Hello I would use a Philips Lumiled K2 bomber led to a design. It has an ashaped hexagonal pad below the Led. I created a footprint that works very well, my design seems OK But I don't like how I had to do... Let me explain, I drew a haxagonal form a

  • How can I block the IP 63.209.69.107 in Windows 7

    When I search with google or bing and click on one of their links in the result, I redirected page http://63.209.69.107/search/web/ with completely independent research elements. We get so I copy the URL and passed into the address bar to go

  • T61 - RC of Windows 7 drivers nVidia Quadro...?

    Hello I was wondering if someone can help me with drivers for nVIDIA Quadro NVS140M on Windows 7 (64 bit)? I'm running a T61 and recently upgrade to Windows 7 RC to see that my graphics card drivers are not available. I visited the nVidia site and th

  • Adobe Acrobat DC VIP portal deployment

    Our company uses the Adobe VIP license arrangement.I have a situation with a user, where they were shipped with a pc for use at the office and another company belonging to pc to work at home. On his desktop pc, it has Adobe Acrobat Pro DC (deployed v