Search for last name by any spelling

I am tring to do a search in MSSQL on a column in the database.  If the user types in the lastname field smiths or smeth, the records return would be anything near that spelling.  I am looking for all the 'smith' last name in the column and I have tried every which way with the percent.  And I am not returning any records.  Here is my current code.  and lastname like '%#form.lname#'
thanks

This may be too much work, but you could use the soundex library at CFLIb to go through your DB, converting the names and putting them in a new column of the table (soundex_lastname).  Then you could soundex() the user input in the query and compare it to the soundex_lastname field in the database - that way your DB doesn't have to support soundex.
Note, that soundex only really works well with anglicised names, it doesn't work very well for international names or any other text as far as I can see.  Check out the link for more information.

Similar Messages

  • Why does Maverick mail no longer search properly? I used to search for a name and it would find it in All mailboxes. Now it sometimes works, but mostly not. Any solutions?

    Why does Maverick mail no longer search properly?
    I used to search for a name and it would find it in One or All mailboxes. Now it sometimes works, but mostly not. Any solutions?

    I would like to add that Comcast is my internet provider. Perhaps that is part of the issue although the Connection Doctor confirms the mail box is connecting to the internet. No other function processes when Connection Doctor program is used to find the source of the issue. I have read forum posts but am unable to find a way to get my Apple mail to be delivered to my computer. It worked fine up until I chose to transfer mail to the Cloud. My mail account is a .mac account.
    Still hoping someone out there can help me.
    thanks,
    anne

  • How to make Address Book obey Preferences? I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8  Address Book 5.0.3 (883) Preferences set at ... General First name following Last name   Sort for Last name Address Format Canada Font size Large Phone format set a

    How to make Address Book obey Preferences?
    I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8
    Address Book 5.0.3 (883) 
    Preferences set at ...
    General
    First name following Last name 
    Sort for Last name
    Address Format Canada
    Font size Large
    Phone format set at
    +1.123.456.7890
    When application quits - it's all forgotten and it self-resets to
    unwanted configuration.

    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.

  • How to remove mandatory field for Last Name in Personal Data Editing Screen

    Hello All,
    CUrrently we are using BP_ ERP5ESS1.31 SP5 & SAP_ESS  603 SP5.
    All my ESS Services are Displaying fine and working from Portal.I am having the requirement like I need to make Last Name as Non-Mandatory field in Personal Data. While Editing the PD Screen, there  i will find the * mark for Last Name filed, i checked through the Global Personalization Make as Mandatory is Not Personalized its showing, i think its defualt prpoerty,so i am unable make any changes from Portal w.r.t Global Personalization.
    I checked in SPRO-- Personal Admin> Custmomizing User Interfaces>Change Screen Modifications, there i find the respective Module pool for those Infotypes and country Specific..
    I cheked forModulePool MP000200--> P0002 and Variable Key-40(For India)  P0002 - NACHIN -- LastName only OF Radio Button is Selected all other Rado buttons are not selected.
    I Checked in V_T588MFPROPS view there for 0002 Infotype P0002 -- NACHN Mandatory check box is Checked all other check boxes are Unchecked.
    How to make that Last Name field as Non-Mandatory in Personal Data Edit Screen, where i need to make the changes.'
    Please list out the Steps..Where i need to do the configuration. And i assigned all the required ESS roles on the backend.
    Thanks in Advance
    Adapag

    Hi,
    I don't think supressing through Global Personalization will change the business logic. Within the Business Logic it checks for the mandatory field.
    After the changes I guess you need to make the changes accordingly.
    The below link might be of some help.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=profile&title=ESSPersonalInformationUIenhancementwithoutmodification&decorator=printable
    Please correct if I am wrong.
    Cheers-
    Pramod

  • Sharepoint 2013 - Search for link names on a single page

    Hi
    I am messing around with SP13 and trying to get my search result web part to only search for link names and display all results.
    I have created the search source to point at the sub site. If I search for part of a link name it will list all links in one long row as a single result.
    Example: One single page contains all links. Each link points to a .aspx page. The search source is pointing at this page and it can display results but only as a single result containing all links as one line of text.
    Say I have 1000+ links of which 50 has names such as Link1-Item1-Basket1, Link1-Item1-Basket2 up to Link1-Item1-Basket50.
    When I search for Link1-Item1 I would like my search results to display 50 results as 50 individual links.
    Is this possible?

    Hi,
    Yes, you can format the search results as you expected.  But you have to create a custom display template to format your results such as extract the links from each results and display it as separate link.
    Once display template created you have to map the display template to your search results web part.
    Please refer to the following articles.
    SharePoint 2013 Customize Display Template for Content By Search Web
    Part (CSWP) Part-1
    Introduction to SharePoint 2013 Display Templates
    Display Template Overview
    Please mark it answered, if your problem resolved.

  • Search by "last Name" via PA20

    When trying search by "=last name" in the Personnel No column the message comes "enter a numeric value".
    What could be the reason?

    HI,
    Is this when you click on F4 when entering personnel number?
    Thanks,
    Ameet

  • TS1398 iPhone can't search for wireless networks.  Any suggestions?

    My iphone 4S displays a message saying that it, "Can not search for wireless networks.  Any suggestions?  I've turned it off, reset the network settings, taken out the sim card, turned on/off airplane mode . . . what else can I do?  When I've phoned the help line I've been waiting to get through for over an hour!!

    Try Resetting Network Settings from Settings > General Reset.
    If that doesn't do it, this Apple doc might have something helpful -> iOS: Troubleshooting Wi-Fi networks and connections

  • I am searching for the name of an effect / a plugin (Compositing / Glow / Realism)

    I am searching for the name of an effect / a plugin. Its a kind of glow that makes compositing of layers more realistic. I have a darker front layer (a person) and the light of the background layer "shines" on the edges of the layer on top ...

    How to Light Wrap

  • How to extend  breadth first Search for Binary Tree to any kind of Tree??

    Dear Friends,
    I am thinking a problem, How to extend breadth first Search for Binary Tree to any kind of Tree?? ie each node has more than 2 leaves such as 1, 2,3,4 or any,
    I have following code to successfully apply for breadth first Search in Binary Tree as follows,
    package a.border;
    import java.util.ArrayList;
    import java.util.LinkedList;
    public class Tree
        int root;
        Tree left;
        Tree right;
        static ArrayList<Integer> list = new ArrayList<Integer>();
        static ArrayList<Tree> treeList = new ArrayList<Tree>();
        private static LinkedList<Tree> queue = new LinkedList<Tree>();
         * @param root root value
         * @param left left node
         * @param right right node
        public Tree(int root, Tree left, Tree right)
            this.root = root;
            this.left = left;
            this.right = right;
        /** Creates a new instance of Tree
         * You really should know what this does...
         * @param root
        public Tree(int root)
            this.root = root;
            this.left = null;
            this.right = null;
         * Simply runs a basic left then right traversal.
        public void basicTraversal()
            //Check if we can go left
            if (left != null)
                left.basicTraversal();
            //Add the root
            list.add(root);
            //Check if we can go right
            if (right != null)
                right.basicTraversal();
        public ArrayList<Integer> getBreadthTraversal(ArrayList<Integer> list)
            //Add the root to the arraylist, we know it is always the first entry.
            list.add(root);
            //Basically we add the first set of nodes into the queue for
            //traversing.
            //Query if left exists
            if (left != null)
                //Then add the node into the tree for traversing later
                queue.add(left);
            //Same for right
            if (right != null)
                queue.add(right);
            //Then we call the traverse method to do the rest of the work
            return traverse(list);
        private ArrayList<Integer> traverse(ArrayList<Integer> list)
            //Keep traversing until we run out of people
            while (!queue.isEmpty())
                Tree p = queue.remove();
                //Check if it has any subnodes
                if (p.left != null)
                    //Add the subnode to the back of the queue
                    queue.add(p.left);
                //Same for left
                if (p.right != null)
                    //Same here, no queue jumping!
                    queue.add(p.right);
                //Append to the ArrayList
                list.add(p.root);
            //And return
            return list;
         * Makes a tree and runs some operations
         * @param args
        public static void main(String[] args)
             *                             4
             *          t =           2       6
             *                      1   3    5   7
            Tree leaf6 = new Tree(1);
            Tree leaf7 = new Tree(3);
            Tree leaf8 = new Tree(5);
            Tree leaf9 = new Tree(7);
            Tree t4 = new Tree(2, leaf6, leaf7);
            Tree t5 = new Tree(6, leaf8, leaf9);
            Tree t = new Tree(4, t4, t5);
            t.basicTraversal();
            System.out.println("Here is basicTraversal ="+list.toString());
            list.clear();
            t.getBreadthTraversal(list);
            System.out.println("getBreadthTraversal= " +list.toString());
            list.clear();
        }Can Guru help how to update to any kind of tree??
    here this code is for the tree like:
             *                             4
             *          t =           2       6
             *                      1   3    5   7
             */But i hope the new code can handle tree like:
             *                             4
             *                           /   | \
             *                          /     |   \
             *          t =            2     8   6
             *                        / |  \    |    /| \
             *                      1 11  3 9   5 10  7
             */Thanks

    sunnymanman wrote:
    Dear Friends,
    I am thinking a problem, How to extend breadth first Search for Binary Tree to any kind of Tree?? ...The answer is interfaces.
    What do all trees have in common? And what do all nodes in trees have in common?
    At least these things:
    interface Tree<T> {
        Node<T> getRoot();
    interface Node<T> {
        T getData();
        List<Node<T>> getChildren();
    }Now write concrete classes implementing these interfaces. Let's start with a binary tree (nodes should have comparable items) and an n-tree:
    class BinaryTree<T extends Comparable<T>> implements Tree<T> {
        protected BTNode<T> root;
        public Node<T> getRoot() {
            return root;
    class BTNode<T> implements Node<T> {
        private T data;
        private Node<T> left, right;
        public List<Node<T>> getChildren() {
            List<Node<T>> children = new ArrayList<Node<T>>();
            children.add(left);
            children.add(right);
            return children;
        public T getData() {
            return data;
    class NTree<T> implements Tree<T> {
        private NTNode<T> root;
        public Node<T> getRoot() {
            return root;
    class NTNode<T> implements Node<T> {
        private T data;
        private List<Node<T>> children;
        public List<Node<T>> getChildren() {
            return children;
        public T getData() {
            return data;
    }Now with these classes, you can wite a more generic traversal class. Of course, every traversal class (breath first, depth first) will also have something in common: they return a "path" of nodes (if the 'goal' node/data is found). So, you can write an interface like this:
    interface Traverser<T> {
        List<Node<T>> traverse(T goal, Tree<T> tree);
    }And finally write an implementation for it:
    class BreathFirst<T> implements Traverser<T> {
        public List<Node<T>> traverse(T goal, Tree<T> tree) {
            Node<T> start = tree.getRoot();
            List<Node<T>> children = start.getChildren();
            // your algorithm here
            return null; // return your traversal
    }... which can be used to traverse any tree! Here's a small demo of how to use it:
    public class Test {
        public static void main(String[] args) {
            Tree<Integer> binTree = new BinaryTree<Integer>();
            // populate your binTree
            Tree<Integer> nTree = new NTree<Integer>();
            // populate your nTree
            Traverser<Integer> bfTraverser = new BreathFirst<Integer>();
            // Look for integer 6 in binTree
            System.out.println("bTree bfTraversal -> "+bfTraverser.traverse(6, binTree));
            // Look for integer 6 in nTree
            System.out.println("bTree bfTraversal -> "+bfTraverser.traverse(6, nTree));
    }Good luck!

  • I just highlighted and changed the artist name of about a hundred songs in my library.  This was an accident and I want to change them back. I can't "undo" or search for artists' names online. Any way to fix this? They are still highlighted.

    These were all songs I had ripped from old CDs, lot of which, I no longer have. I can't remember that artists' names for all these songs.  They are all "oldies" from the fifties and I just accidentally changed the artist for all them to Fats Domino. I'd had them all highlighted because I had done a batch change of their genre to Oldies. I couldn't tell that they were all still highlighted after that change because I could only see two of the songs at the time that I changed the artist name.  Is there any possible way to undo this?  All the tracks are still highlighted from the naming operation. I can't search for the artists' names online because I didn't purchase them from iTunes.  Any suggestions would be greatly appreciated.  Thanks!

    I found one other way to do it.  I just deleted them all out of my iTunes library. Now I can re-import them from Window's My Music file with the original artists' names intact.
    Thanks for your help, Matt!

  • Starts With Parameter for Last Name for Created By serach criteria F4

    Hi,
    I have a requirement, where I need to add a seach parameter "Starts With" in backend for the last/first name of the Created by serach criteria F4 in lead search.
    But I am seeing for the CREATED_BY criteria the F4 automatically comes from standard and there is no view exist for the F4 in backend.This seems to come from the domain level! Can anyone help how to achieve this?
    Thanks.

    Hello Raj,
    In lead search, we have a criteria for Created_by. Now when user uses the F4 of the Created_by, there are option for first name and last name to search the user names.
    Now when user uses any name(1st or last), the result shows as 1 result found, but actually now result comes.
    hence now they are asking me to add a parameter as starts with for the 1st name and last name of the created_by F4 window search criteria.
    Hope this explanation will be clear for you. If possible please help.
    Actually the F4 of the Created_by comes from the standard, and there is no component/view available in CRM.
    Thanks.

  • Transport error - Search for technical name

    Hi Experts,
    I have transported an order from T-System to Q-System without any errors. But from Q to P-System it shows me some errors.
    The error protocol gives me some technical names which are not in the system. For example 4E15PO57C6T4LN8Y3EI6W0EA5.
    Now I have no idea which object calls 4E15PO57C6T4LN8Y3EI6W0EA5. I can`t search for it or anything else.
    How can I identify objects If I have just this id 4E15PO57C6T4LN8Y3EI6W0EA5?
    Thank you very much for all answers.

    Hi Marian,
    If it is a transformation ID, dso etc you can search for the ID in the DEV system by selecting RSA1 and ctrl + F to find.  Paste the ID in and search.
    If it is a bex object (query, view, variable etc) then you can use table RSZELTDIR from se16 enter then name of the object in ELTUID.  This will display the name of the object.
    Thanks,
    Nick.

  • How to search for 'period single space any letter' in find/change

    Hi, i'd like to check my document to make sure that between all periods and first words of a sentence there are not single spaces but double spaces.  Is there a way to search for any instances of single spaces that appear after a period?

    Firstly, when I said InDesign inflates the space I didn't mean it whacked in a great chunk of space. It just gives a little bit more air relative to the fit of the text around it. You may not always see any noticeable difference. But when I read a book I don't want to see obvious white spaces at the start of every sentence. As long as the full point and following capital letter register on my brain fast enough that I am reading a new sentence, that's good enough for me. I think it makes reading more fluid. If you want to see extra space at the start of a sentence, then it's probably best to carry on with your double spacebar - unless you want to try something more exotic like a fixed width space.
    I didn't mean you to literally type <full point><space><any character> into the find. I was just trying to tell you what to input. Type the full point, hit the spacebar, and then use the options list to the right of the find field (shown as a @), select "Wildcards", then select "any character". What you should see in your find field is . ^?
    You could then enter .  ^?      - that's two spaces. See why I spelled it out as <space>? -  into the change to field.
    k

  • How do I search for a name in iCloud Calander

    is there a search set-up on iCloud Calander? I want to search by event or name

    Regular expressinos work just fine, especially when
    searching for patterns. But they seem to be impying
    it's a specific group of characters they're looking
    for, and indexOf() is much faster than a regex.If he's reading from a file, the I/O time will likely swamp any performance hit that regex introduces. I think contains() (or indexOf() if he's not on 5.0 yet) is preferable to regex just because it's simpler. (And in the case of contains(), the name makes for a very clear, direct mapping between your intent and the code that realizes it.)

  • Mandatory condition to be removed for Last name.

    I wanted to remove the condition that the last name is a mandatory filed.Could anybody suggest me how i can go about it?

    Hi,
    Do you mean mandatory field of table or for the form? if it is for the table execute the following sql command -
    alter table table_name modify ("COLUMN_NAME" NUMBER(10,0) NULL) --change the attributesFor the form field, remove the validation for that field and this will solve the problem, it will not validate if you leave it blank or no data entered.
    Hope this helps,
    M Tajuddin
    http://tajuddin.whitepagesbd.com

Maybe you are looking for

  • Getting image from attachment into image field in a form

    Hi all, I have a process where a customer sends in a PDF with an attached image. This image is then stored in a process variable and I need to put it in another form. Any ideas how to do this most efficiently? Sincerely Kim

  • Calling an Oracle stored procedure and retrieving result from OUT parameter

    Hello, I have a stored procedure that returns a string in an OUT parameter after receiving 6 IN parameters. I have tested the procedure in PL/SQL and it's producing the right output there. The problem is when I call the stored procedure from my Java

  • Specification of C5-03 series

    Dear Nokia I want to ask spec of nokia C5-03 series and how to defference nokia C5-03 original with nokia C5-03 China? Since a lot of nokia's product that at imitates by china product, so is hard differentiate which original one and which that pirate

  • Opening a Word File

    Hey I got a question for a program that im programming im trying to program a button that opens a word File the moment u click on the button. Anychance any of u know how to realize this ? Please let me know. Steven

  • How to Remove TWAIN from CS3?

    Hello, I recently moved my scanner from my new computer to my old computer due to my family getting newer laser printer installed. Although when I tried scaning a few things into Photoshop using WIA, everything was normal at first, however after a fe