Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Like based on prefix table
Message
De
14/05/2013 10:08:02
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Like based on prefix table
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01573772
Message ID:
01573772
Vues:
83
I have a Prefix tables containing records with a Prefix field such as "AB", "KN", "LL" and "BB" as well as a Tag field such as "CM111", "CM222", "CM333" and "
"CM444". I process a main table having a title such as "Abertimer". For each record of that table, I need to find the record in teh Prefix table so I can extract the Tag value. For example, in this case, it would be the one having a Prefix field "AB". This is because "Abertimer" starts with "AB". I am not sure about the syntax to use. The reason I ask is that I also have Prefix values having four letters. So, I cannot compare with the first two letters only. This is variable. Anyone would have an idea on how to do this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform