Click here to Skip to main content
15,885,216 members
Home / Discussions / Database
   

Database

 
QuestionSQL Replace Function - error recognizing two or more strings Pin
miss78617-Nov-14 23:44
miss78617-Nov-14 23:44 
AnswerRe: SQL Replace Function - error recognizing two or more strings Pin
Richard Deeming18-Nov-14 2:53
mveRichard Deeming18-Nov-14 2:53 
GeneralRe: SQL Replace Function - error recognizing two or more strings Pin
miss78618-Nov-14 3:53
miss78618-Nov-14 3:53 
GeneralRe: SQL Replace Function - error recognizing two or more strings Pin
Richard Deeming18-Nov-14 6:00
mveRichard Deeming18-Nov-14 6:00 
GeneralRe: SQL Replace Function - error recognizing two or more strings Pin
PhilLenoir18-Nov-14 10:41
professionalPhilLenoir18-Nov-14 10:41 
GeneralRe: SQL Replace Function - error recognizing two or more strings Pin
miss78620-Nov-14 1:45
miss78620-Nov-14 1:45 
GeneralRe: SQL Replace Function - error recognizing two or more strings Pin
PhilLenoir20-Nov-14 3:13
professionalPhilLenoir20-Nov-14 3:13 
AnswerRe: SQL Replace Function - error recognizing two or more strings Pin
PhilLenoir18-Nov-14 3:41
professionalPhilLenoir18-Nov-14 3:41 
Your problem is caused by the fact that only one name match will work. Although your first select statement will potentially return multiple rows @N will only ever have one value. Using Richard's method you are wrapping everything in together. Your approach would have required being wrapped in a cursor to enumerate your first select.
Life is like a s**t sandwich; the more bread you have, the less s**t you eat.


modified 18-Nov-14 16:23pm.

Questionsuggest various tables for shopping site Pin
smart_vikas12-Nov-14 18:53
smart_vikas12-Nov-14 18:53 
AnswerRe: suggest various tables for shopping site Pin
Jörgen Andersson12-Nov-14 19:59
professionalJörgen Andersson12-Nov-14 19:59 
AnswerRe: suggest various tables for shopping site Pin
Mycroft Holmes12-Nov-14 22:40
professionalMycroft Holmes12-Nov-14 22:40 
QuestionRe: suggest various tables for shopping site Pin
Eddy Vluggen13-Nov-14 7:18
professionalEddy Vluggen13-Nov-14 7:18 
AnswerRe: suggest various tables for shopping site Pin
PIEBALDconsult13-Nov-14 7:35
mvePIEBALDconsult13-Nov-14 7:35 
QuestionLONGTEXT not accepting large text! Pin
Jassim Rahma12-Nov-14 9:15
Jassim Rahma12-Nov-14 9:15 
AnswerRe: LONGTEXT not accepting large text! Pin
PIEBALDconsult12-Nov-14 9:20
mvePIEBALDconsult12-Nov-14 9:20 
GeneralRe: LONGTEXT not accepting large text! Pin
Jassim Rahma12-Nov-14 9:51
Jassim Rahma12-Nov-14 9:51 
AnswerRe: LONGTEXT not accepting large text! Pin
Richard Deeming12-Nov-14 9:55
mveRichard Deeming12-Nov-14 9:55 
GeneralRe: LONGTEXT not accepting large text! Pin
Jassim Rahma12-Nov-14 9:59
Jassim Rahma12-Nov-14 9:59 
GeneralRe: LONGTEXT not accepting large text! Pin
Richard Deeming12-Nov-14 10:03
mveRichard Deeming12-Nov-14 10:03 
GeneralRe: LONGTEXT not accepting large text! Pin
Jassim Rahma12-Nov-14 10:08
Jassim Rahma12-Nov-14 10:08 
GeneralRe: LONGTEXT not accepting large text! Pin
Richard Deeming12-Nov-14 10:12
mveRichard Deeming12-Nov-14 10:12 
GeneralRe: LONGTEXT not accepting large text! Pin
Jassim Rahma12-Nov-14 10:16
Jassim Rahma12-Nov-14 10:16 
GeneralRe: LONGTEXT not accepting large text! Pin
Richard Deeming12-Nov-14 10:18
mveRichard Deeming12-Nov-14 10:18 
GeneralRe: LONGTEXT not accepting large text! Pin
Jassim Rahma12-Nov-14 10:24
Jassim Rahma12-Nov-14 10:24 
GeneralRe: LONGTEXT not accepting large text! Pin
Richard Deeming12-Nov-14 10:40
mveRichard Deeming12-Nov-14 10:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.