How to find the name that differ just a little

Hi all

I wonder if is a short distance to find the name that differ for 2/3 characters;

Example, I have a table that contains 1 varchar2 column.

Martello

point

Pistola

cemmello

Cammelli

I need to write a query like:

Select * from table where colum = point

in the result set, I want to

point

cemmello

Cammelli

Thank you

F.

Hello francy77

In fact, it is not possible. There is a SQL "soundex" function, which "returns a string containing the phonetic representation of the char . This function allows you to compare the words that are spelled differently, but sound as well in English. »

Example: Smith could be written as "SMYTHE".

Try this:

SELECT first_name

FROM (SELECT 'Smith' AS the name OF DOUBLE UNION ALL

SELECT 'Sophie' AS the name OF THE DOUBLE)

WHERE SOUNDEX (first_name) = SOUNDEX ('Smythe')

;

You get two records...

But if you have a specific logic, then you must create a function and he set what text - what you want text input.

Is it useful or the solution for you?

Tags: Database

Similar Questions

  • How to find the name of the Oracle database server?

    People,

    Hello. I installed Oracle Database 11 g 2 OS Oracle Linux 5. The installed directory is/home/user/OracleDB_Home and/home/user/OracleDB_Base.

    Host name is "mylinux". Name of the database instance is PT853.

    I use "mylinux" as the name of the database server, it does not work. I use another way to do as below:

    Export ORACLE_HOME = / home/user/OracleDB_Home

    Can I use "mylinux ORACLE_HOME" as the name of the database server, it does not work either.


    My question is:

    How to find the name of the database server Oracle with Oracle Linux 5 OS?


    Thank you.

    You must learn the basic of database Oracle.

    Please don't regard it not same as SQL server in terms of configuration.

    You never specify the database server name in Oracle.

    You specify the host name in only two places, 1) Tnsnames.ora/JDBC/ODBC (or any client you want to connect) and listener.ora) 2.

    There was nothing called specify the name of the Oracle database from an oracle database server.

    Concerning

    Anurag.

  • How to find the names of tables that have more than 100 columns

    Hi gurus,

    Please help me find the names of the tables that have more than 100 columns in the database.

    Below will be useful for you.

    SELECT atc.OWNER,atc.TABLE_NAME,count(*)
    FROM all_tab_columns atc
    GROUP BY  atc.OWNER,atc.TABLE_NAME
    HAVING count(atc.COLUMN_NAME) > 100
    

    Adding another point, you can use user_tab_columns, all_tab_columns, dba_tab_columns, based on your needs/access.

    Thank you
    Suri

    Published by: Suri on February 23, 2012 11:30

  • Start Windows - unlock the computer screen - how to change the name that is displayed?

    I have fixed a older laptop.  It works very well.  But at the start, the old owner name appears in user name (no password required).  It is a small irritation but still...  I tried to go under control panel users and I changed administrator to my name, but it has not changed the other name at startup... ideas?  Thank you!

    Hello

    Here's how you can accomplish this:
    a. click on edit accounts in the choice of a task list box.
    b. click the account you want to change.
    c. Select the element you want to change:
    d. click on change the name to change the name that appears on the Welcome to the account screen.

    How to create and configure user accounts in Windows XP
    http://support.Microsoft.com/kb/279783

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to find the name of the image in E10?

    Hi all

    This may be a simple question, but the question in the moment: is there a way to tell what image name is E10? I have an email with two images that I can't find the names. I tried hover, right-click, looking for a possible name, etc, nothing works! I believe in E9, you could just look at the details of the image, or open the HTML, y at - it something like this in E10? HTML is not an option, as this was built using the e-mail writer.

    Thank you very much!

    Hi Hayley,

    The best way to find the name of an image that was inserted in an email is to send a test e-mail. Upon receipt of the email, use the "Open web version" link to open the email in your browser. Once opened in your browser, right click on the email address and select the "View Page Source" option, this will display the HTML for email. If you follow the natural progression of the email from top to bottom, in among all the content text and code, you should be able to find the names of the image. They will look something like this http://images.response. "/ EloquaImages/clients***/{b823ae52-fb21-4532-882f-b1f4e9cb423b}_facebook.png" width = "27" height = "26" alt = "Facebook" > where facebook.png is the name of the image.

    I hope this helps.

    Tim

    LBDGA

  • How to find the name of the procedure call or a package?

    Hi all..

    Is it possible to find the name of the procedure or the calling package?

    I mean.. If proc_1 calls proc_2 how can I find in proc_2 proc_1 call?

    Proc_2 is called from a different procedure? I need to write to the size of the code that should fire depends on the Proc he calls?

    Please help me solve this problem.

    Thank you

    You could try OWA_UTIL. WHO_CALLED_ME
    "This procedure returns information (in the form of output parameters) on the unity of PL/SQL code that called it."
    See:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/w_util.htm#sthref11492

  • How to find the name of a column in a table

    Hi all

    I have a Table that contains approximately 100 columns.


    I need to find the column name, to find in specific columns containing data like 'abc '.

    Ex: I have a table like temp_table_name
    the columns are col1, col2, col3, col4, col5, col6, col7, col8,.... col99
    I'm looking for with data specific like 'abc '.

    Need to find the name of the table column that contains data of 'abc '.

    Please suggest me. How to find in a single query... :-)

    Actually I'm looking through a column of the table as below
    Select count (*) in the temp_table_name where col1 = 'abc '.

    FOR I IN 1.20 LOOP
    ln_num_of_rows: = 0;
    lv_column_name_search: = "col" | I have;

    lv_sql: = ' select count (*) in the temp_table_name where ' | lv_column_name_search | "= abc";

    EXECUTE IMMEDIATE lv_sql INTO ln_num_of_rows;

    IF ln_num_of_rows > 0
    -column found in lv_column_name_search
    EXIT;
    END IF;
    END LOOP;

    But I'm gettig performance problem.

    How can I do this in any other alternative way? could you suggest any way possible as soon as POSSIBLE.

    It's probably never going to be effective - realistic, you have to scan completes the picture.

    You could probably improve a little things by doing something like

    SELECT DISTINCT column_name
      FROM (
        SELECT (CASE WHEN col1 = 'abc' THEN 'col1'
                    WHEN col2 = 'abc' THEN 'col2'
                    WHEN col3 = 'abc' THEN 'col3'
                    ...
                    WHEN col20 = 'abc' THEN 'col20'
                    ELSE NULL
                    END) column_name
          FROM table_name
        WHERE col1 = 'abc'
            OR col2 = 'abc'
            ...
            OR col20 = 'abc'
      )
    

    but it's never going to be incredibly fast.

    Justin

  • How to find the name of RDF file

    In our user environment final creating sales and registration. Order once saved will be printed directly from the toolbar selection-"print icon".

    How to identify the name of the report - the system is printing to change the same.

    Very R12.0.6

    Thank you

    Hello
    Once the request is submitted, go to view--> queries--> find.

    Compare with your report has already been submitted with the present report here.

    Copy the name of the report and the system administrator--> simultaneous--> program--> set.
    From here you can find the short name which is nothing other than the name of RDF.

    HTH
    -Arif.

  • How to find the name of a VC that the virtual machine is on?

    have a script that allows me to search several VCs at the same time for a VM - I can go back to the host on the virtual machine is but I would rather the name of VC - how to adjust this line to achieve this?

    (get-vm-name VMname here). Home | Select name

    Thank you in advance!

    Hello

    try like this:

    (get-vm-name VMname). Host.ExtensionData.Client.ServiceUrl.Split('/') [2]

    Tim

  • ORA-01438: how to find the name of the column?

    Hello

    I'm trying to find the column which is causing ORA-01438 when inserting into a table.

    The insertion is made by a C program that reads from a socket and written in an oracle 10 g database using Oracle Pro * C.

    I tried to identify the column by printing the values (about 250) just before the insert statement is executed, but check these values has been a task heavy and error prone and did not help to correct the mistake (I found a bunch of values which out of reach, but changing these values has not resolved the issue).

    Abandon this idea, I tried to track the session to help
    (1) DBMS_SYSTEM. SET_SQL_TRACE_IN_SESSION,
    (2) DBMS_MONITOR.session_trace_enable/disable and still
    (3) change the context name system set events 10046 trace forever, level 12' and;
    (4) alter system set sql_trace = true scope = mΘmoire;

    DBMS_MONITOR.session_trace_enable only gave me a few tips (the insert statement) in a trace file. But it worked for a simple example of a test database.

    When I try to turn on tracing on the database, where the error occurs, then I'm still not able to set SQL_TRACE in V$ SESSION true, even if no error is returned by the statement "DBMS_MONITOR.session_trace_enable". The value of SQL_TRACE in V$ SESSION does not change and I have no idea why. On the test database, it works fine and I can find the trace file in the user_dump_destination directory.

    Anyone have any suggestions on how to fix this?

    Any help is appreciated.
    Thanks in advance!

    Just check this:

    SQL > conn osama/osama ;
    SQL> create table test as select * from scott.dept ;
    
    SQL> select * from test ;
    
        DEPTNO DNAME          LOC
    ---------- -------------- -------------
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    
    SQL> alter system set events='1438 trace name Errorstack forever,level 10';
    
    SQL> insert into test values (100000000000000000,'osama','JOR');
    insert into test values (100000000000000000,'osama','JOR')
                             *
    ERROR at line 1:
    ORA-01438: value larger than specified precision allowed for this column
    
    In Trace File :
    
    ORA-01438: value larger than specified precision allowed for this column
    Current SQL statement for this session:
    insert into test values (100000000000000000,'osama','JOR')
    
  • How to find the sites that I have visited recently?

    I'm trying to find a site that I visited a few days ago because it bore the name of a song on what I'm looking for. I know I found places I visited today, yesterday, in the past week, month, year, etc. in the past... but I can't remember how to get there. Can someone please send the steps with screenshots so I know where to look?
    Thank you
    Karen

    Open the history Manager < control > < Shift > H.
    In the search bar, enter the name of the site.

  • How to find the name of Wi - FI on the account, and if there was a recently with a wi - fi connection

    I have a 'Mini Inspiron' netbook which has been programmed with a built-in WI - FI connection. How can I find out the name of Wi - FI on the account, and if there was a recently with a wi - fi connection, why would it automatically disappear on my netbook and not my phone? Trying to find the normal wi - fi connection called linksys, how to locate or discover what happened?

    Hi JulietHutchinson,

    You can review the article and check if that helps:

    View and connect to available wireless networks

    You may also refer to article and check if it helps:

    Windows wireless and wired network connection problems

  • How to find the name of Os_Process

    Hello

    Database is to have a user name 'TEST '. This db is available in 7-8 developers.nobody is having the test password.
    This user has previously been used by them, but no more.
    The test user connection is requested from their system, but he could not succeed because they do not have the password.

    Run this query
    select os_username,OS_PROCESS ,to_char(timestamp,'MM-DD-YYYY HH24:MI:SS') from dba_audit_trail  where username ='TEST' and to_char(timestamp)=to_char('18-APR-13') group by OS_PROCESS,os_username,username,timestamp order by timestamp;
    
    and getting result as
    OS_USERNAME
    --------------------------------------------------------------------------------
    OS_PROCESS       TO_CHAR(TIMESTAMP,'
    ---------------- -------------------
    VI13948I
    8058             04-18-2013 09:56:59
    
    AS12931I
    13525            04-18-2013 10:11:08
    
    AS12931I
    14609            04-18-2013 10:14:26
    My request is to know how to find what PROCESS name of operating system for the OS_PROCESS id received when I checked the server processes, no existing process with the process ID. (Its because the connection coludnt succeed then couldnot start any process on the server). I checked their systems as well, but no PID is also available with the process ID.

    thanx

    AFAIK, you must query dba_audit_session to see who connected to the database. Dba_audit_trail contains all the audit records, we cannot know if the records that show you are records of connection.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • How to find the name of real answering machine displayed in a Notification

    Hello

    Where are the details of the actual answering machine details stored in the case of the below scenario

    If a notification for a single user has been closed by another user through access to the list of tasks of the user from the first, the user name second, who actually made the decisions, appears as the answering machine.

    I am only able to find the username of the original recipient in the wf_notifications table.

    But where are the details of the name real answering machine displayed in the notification stored.

    When I use the 'wf_notification. Answering machine', get the username of the original recipient of the user, but not one that acted on the notification. Is there a way by which I can get the real username answering who acted on the notification

    Select answer machine in wf_notifications where notification_id = < nest > also gives me the username of the original recipient of the user, but not one that acted on the notification

    Help, please.

    Kind regards
    Kalyan

    Kalyan,

    Given that access to the list of tasks is just allowing a user to proxy to respond on behalf of the original user is displayed as the answering machine/recipient. You can try to use WF_COMMENTS. PROXY_USER for this notification. The proxy user should be there. This table is used to build the notification action story.

    Hope this helps,

    Alejandro

  • How to find the name of the color for a PDEElement space

    Hello

    I'm trying to find the color for each PDEElement space in my PDF file. While doing this,
    I put some (cost stmts) debugging statements that print the color_space as of integer values. I gave this list
    After the code.  I think that color space must be something like CMYK, DeviceRGB and DeviceGray... etc.

    How can I know the name of actual color space corresponding to these numbers printed in the instructions for debugging.

    Please please help me...

    Sub ProcessElementDetails (PDEElement element)
    {
    PDEGraphicState gfx_state;
    ASInt32 pdeType = PDEObjectGetType (reinterpret_cast < PDEObject > (item));
    ofstream outfile("E:\\temp\\test.txt",ios::app);
    outfile < < "ProcessElementDetails\n";

    If (pdeType is kPDEText)
    {
    outfile < < "text PDE type\n";
    PDEText pde_text = (PDEText) element;
    ASInt32 num_run, i.;
    num_run = PDETextGetNumRuns (pde_text);
    outfile < < "number of tracks for PDEText: ' < < num_run < < '\n'; '"
    for (i = 0; i < num_run; i ++)
    {
    PDETextGetGState (pde_text, kPDETextRun, i, & gfx_state, sizeof (PDEGraphicState));
    ASAtom color_space = PDEColorSpaceGetName (gfx_state.fillColorSpec.space);
    outfile < < "color space:" < < color_space < < '\n ";
    }
    }


    If (pdeType is kPDEImage)
    {
    outfile < < 'Image PDE type\n ";
    PDEElementGetGState (element, & gfx_state, sizeof (PDEGraphicState));
    ASAtom color_space = PDEColorSpaceGetName (gfx_state.fillColorSpec.space);
    outfile < < "color space:" < < color_space < < '\n ";
    }

    If (pdeType is kPDEContainer)
    {
    outfile < < "PDE container type\n";
    Content PDEContent = PDEContainerGetContent (reinterpret_cast < PDEContainer > (item));
    NumElem ASInt32 = PDEContentGetNumElems (content);
    for (ASInt32 i = 0; i < numElem; i ++)
    {
    item = PDEContentGetElem(content, i);
    ProcessElementDetails (element);
    }

    }
    }

    Debugging statements with color numbers:
    ====================================
    ProcessElementDetails
    Image type of PDE
    Color space: 700
    ProcessElementDetails
    Type of text PDE
    Number of tracks for PDEText: 63
    Color space: 388
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 388
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 388
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    ProcessElementDetails
    ProcessElementDetails
    Type of text PDE
    Number of tracks for PDEText: 38
    Color space: 389
    Color space: 700
    Color space: 390
    Color space: 388
    Color space: 390
    Color space: 388
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 390
    Color space: 389
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    Color space: 700
    SeparateColorPlates
    PDF file exists
    Number of Pages: 1
    Number of items: 5

    You need to read some more on what is a "ASAtom" and

    How to use them.

Maybe you are looking for

  • iCloud restore deleted

    Hello I deleted some pictures from my iPhone (including the deleted items folder), but I didn't know that it removes too much icloud and I have not saved. I can see the images on my Macbook, but they refuse to download and they are not in the icloud

  • How can I connect output optical from my Apple TV to my amp which only accepts RCA inputs?

    Currently, I connect my computer to my stereo amplifier via an Apple Airport.  I also have an Apple TV in one place which is connected to my TV.  I would like to use the optical output of the Apple TV to connect my computer to my stereo amp, so I can

  • 2012 - Windows Server R2 - short name of Windows domain

    Hello I have my apologies in advance if this framework makes no sense. but I will try to explain as clearly as possible. In my former work place we was able to use an alias to recognize the field of networks. domain name was for example lets say: myd

  • Start Impossible load or run a file specified in the registry.

    On startup, I get a message indicating "Impossible load or run a file specified in the registry" and "make sure that the file exists on your computer or remove the registry." How can I access the registry to delete this file? File is a file to user\a

  • Brightness and contrast settings

    In acrobat, XI - is where the parameters of brightness and contrast for the digitization of PDF files.I just upgraded from acrobat 6 and these settings were directly on the screen of scanning