Solved

Search table for words from another table

Posted on 2014-10-30
2
144 Views
Last Modified: 2014-11-15
I have a table called Words.
I want to search another table called Spells.
I want to read each record in Words and see if Flda is contained in any of the Spells records.
If I do find a match, I want to update Spells record with a code from Words.  

Words:

Flda     Code

Hello   1234
Sam     4568
Joe       2345

Spells:  (before)  Fld called Big  .  Below are 3 records from Spells.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaHellobbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
hhhhhhhhhhhhhhhhhhhhSamkkkkkkkkkkkkkkkmmmmmmJoemmmmmmmmmmmmmmmmmmmmmmmmm    
gggggggggggggggggggggJoemmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmSamlllllllllllllllllllllllllllllllll


Spells:  (after )
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1234bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
hhhhhhhhhhhhhhhhhhhh4568kkkkkkkkkkkkkkkmmmmmm2345mmmmmmmmmmmmmmmmmmmmmmmmm    
ggggggggggggggggggggg2345mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm4568lllllllllllllllllllllllllllllllll
0
Comment
Question by:thayduck
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40414286
0
 

Author Closing Comment

by:thayduck
ID: 40444420
This helped me resolve my issue.

Thanks
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql query 8 51
Correct Thousand and decimal separator in sql server 2008 3 31
Addition to SQL for dynamic fields 6 47
SSRS  - Dropdown with Null 3 28
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question