Click here to Skip to main content
15,891,529 members
Home / Discussions / Database
   

Database

 
AnswerRe: Hostel Reservations Pin
andyharman17-Sep-07 3:51
professionalandyharman17-Sep-07 3:51 
QuestionIssue with Select Statement... Pin
DeepToot17-Sep-07 3:21
DeepToot17-Sep-07 3:21 
AnswerRe: Issue with Select Statement... Pin
Michael Potter17-Sep-07 3:53
Michael Potter17-Sep-07 3:53 
GeneralRe: Issue with Select Statement... Pin
DeepToot17-Sep-07 4:04
DeepToot17-Sep-07 4:04 
GeneralRe: Issue with Select Statement... Pin
andyharman17-Sep-07 4:25
professionalandyharman17-Sep-07 4:25 
GeneralRe: Issue with Select Statement... Pin
DeepToot17-Sep-07 4:35
DeepToot17-Sep-07 4:35 
GeneralGot it.. Pin
DeepToot17-Sep-07 4:36
DeepToot17-Sep-07 4:36 
GeneralRe: Issue with Select Statement... Pin
Michael Potter17-Sep-07 4:38
Michael Potter17-Sep-07 4:38 
ISNULL(tlkpBWLSStaff.FirstName, NULL) & 
ISNULL(tlkpBWLSStaff.MiddleInitialName, NULL) & 
ISNULL(tlkpBWLSStaff.LastName, NULL) AS PreferredSurgeon

Not sure what you are trying to accomplish with this line. & is a bitwise operator, ISNULL([whatever],NULL) doesn't do anything productive that I can think of. Can you do a bitwise & with character data?
Are you trying to build a full name?
ISNULL(tlkpBWLSStaff.FirstName + ' ', '') +
ISNULL(tlkpBWLSStaff.MiddleInitialName +  ' ', '') + 
ISNULL(tlkpBWLSStaff.LastName, '') AS PreferredSurgeon

To debug the rest of you statement eliminate all tables/columns except tblPatients. Run the query and check results. Add in the next table and run again. In this way you will isolate the error in its most simplistic form.

Be aware that you are listing some columns more than once (a waste of network resources). tblPatients.* gets you all the columns in tblPatients. You then go and relist some columns individually (tblPatients.PatientHospitalNumber, etc.).
GeneralRe: Issue with Select Statement... Pin
DeepToot17-Sep-07 5:07
DeepToot17-Sep-07 5:07 
QuestionDeleting record from a parent table Pin
anujose17-Sep-07 2:13
anujose17-Sep-07 2:13 
AnswerRe: Deleting record from a parent table Pin
Colin Angus Mackay17-Sep-07 2:20
Colin Angus Mackay17-Sep-07 2:20 
AnswerRe: Deleting record from a parent table Pin
Pete O'Hanlon17-Sep-07 2:22
mvePete O'Hanlon17-Sep-07 2:22 
GeneralRe: Deleting record from a parent table Pin
anujose17-Sep-07 2:38
anujose17-Sep-07 2:38 
GeneralRe: Deleting record from a parent table Pin
Pete O'Hanlon17-Sep-07 2:44
mvePete O'Hanlon17-Sep-07 2:44 
QuestionDistinct statement Pin
udikantz17-Sep-07 1:56
udikantz17-Sep-07 1:56 
AnswerRe: Distinct statement Pin
Colin Angus Mackay17-Sep-07 2:26
Colin Angus Mackay17-Sep-07 2:26 
GeneralRe: Distinct statement Pin
udikantz17-Sep-07 3:07
udikantz17-Sep-07 3:07 
GeneralRe: Distinct statement Pin
Colin Angus Mackay17-Sep-07 3:12
Colin Angus Mackay17-Sep-07 3:12 
QuestionMultiLine Cell in DataGridView Pin
udikantz16-Sep-07 23:47
udikantz16-Sep-07 23:47 
AnswerRe: MultiLine Cell in DataGridView Pin
Frank Kerrigan18-Sep-07 2:42
Frank Kerrigan18-Sep-07 2:42 
QuestionOrder by Pin
Sebastian T Xavier16-Sep-07 19:19
Sebastian T Xavier16-Sep-07 19:19 
AnswerRe: Order by Pin
Blue_Boy16-Sep-07 20:36
Blue_Boy16-Sep-07 20:36 
GeneralRe: Order by Pin
Sebastian T Xavier16-Sep-07 20:58
Sebastian T Xavier16-Sep-07 20:58 
GeneralRe: Order by Pin
Colin Angus Mackay16-Sep-07 21:25
Colin Angus Mackay16-Sep-07 21:25 
GeneralRe: Order by Pin
Sebastian T Xavier16-Sep-07 23:08
Sebastian T Xavier16-Sep-07 23:08 

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.