Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
lyleholc
Starting Member
2 Posts |
Posted - 2013-05-21 : 19:49:48
|
Dear All,I'm new to SQL and I can't figure out the right syntax. I'm trying to code a TSQL statement in SQL Express 2012 to get the Soundex value for a word in a table. The database is WP1, the Table is IPUSQL, the field is Word. I've tried qualifying, using brackets, etc. but to no avail. I'd also like to be able to set the field Soundx to the Soundex value for all the words in the Table IPUSQL. Below is a little snipet from one of my attempted queries. USE WP1GOSELECT SOUNDEX(IPUSQL.WORD)Much appreciate any thoughts.Sincerely,Lyle |
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2013-05-21 : 20:07:44
|
I think you just needSELECT SOUNDEX(sql.WORD)FROM IPUSQL sqlandUPDATE IPUSQLSET Soundx = SOUNDEX(Word)JimEveryday I learn something that somebody else already knew |
|
|
lyleholc
Starting Member
2 Posts |
Posted - 2013-05-21 : 21:17:20
|
Hi Jim,Cool, that worked! Thank you so much!!LyleUPDATE IPUSQLSET Soundx = SOUNDEX(Word) FROM IPUSQL WHERE IPUSQL.ID = '4'SELECT * FROM IPUSQL |
|
|
|
|
|