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 |
mikebird
Aged Yak Warrior
529 Posts |
Posted - 2009-09-15 : 11:22:45
|
What does it mean when I get this error for this script?Msg 403, Level 16, State 1, Line 2Invalid operator for data type. Operator equals modulo, type equals varchar.select distinctCode, vwKC60.DescriptionFROM vwSHKC60BaseCode vwKC60LEFT JOIN Diagnosis di ON vwKC60.Code = di.DiagnosisLEFT JOIN Demographic de ON di.PatientNumber = de.PatientNumberLEFT JOIN Episode ep ON ep.ID = di.ParentIDLEFT JOIN Locations AS lo ON ep.Location = lo.Codedwhere DiagnosisDate between '01-06-2009' and '31-08-2009'AND (di.Provisional = 0)AND (di.RecordDeleted = 0)AND ep.Location = 'WMUH'AND ep.Location = 'WMUH'OR (lo.BelongsTo LIKE ''%'WMUH'%'')GROUP BYvwKC60.Code, vwKC60.Description |
|
mikebird
Aged Yak Warrior
529 Posts |
Posted - 2009-09-15 : 11:29:39
|
Is it to do with BelongsTo ? Never seen it before, ever, and eliminating it seems to kill the error... |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-09-15 : 15:33:33
|
BelongsTo LIKE '%WMUH%' N 56°04'39.26"E 12°55'05.63" |
|
|
mikebird
Aged Yak Warrior
529 Posts |
Posted - 2009-09-16 : 05:27:36
|
You're right |
|
|
|
|
|