Solved

Search table for words from another table

Posted on 2014-10-30
2
145 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

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…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 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