Solved

Search table for words from another table

Posted on 2014-10-30
2
142 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server 2008 R2 - Updating Table/Fields Documentation 3 73
default constraint within a function 3 38
all records from previous month 6 45
the whoisactive update 12 39
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

861 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

Need Help in Real-Time?

Connect with top rated Experts

30 Experts available now in Live!

Get 1:1 Help Now