Creating a SQL lookup
        Posted  
        
            by Scott
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Scott
        
        
        
        Published on 2010-04-26T18:27:54Z
        Indexed on 
            2010/04/26
            18:33 UTC
        
        
        Read the original article
        Hit count: 182
        
sql-server
|sql
I’m in the process of cleaning up a database table. Due to the way some of the data needed to be processed, now I need to go back and perform a “reverse lookup” on the data. For example, a field for one of the records is set to “car” and I need to set that record’s tranportmode field to “1” (for “car”). The lookup tables are already created. I just need to do the reverse lookup part. The cleansed tables will only have the numeric lookup value.
© Stack Overflow or respective owner