6
Reply

pls help me out with this SQL query

harry harish

harry harish

Sep 13 2016 2:42 PM
408

1. IIf we had a student with the name “John Doe”, why the following SQL code is not returning all of the John’s courses? 

Select *

From [Course] course with (nolock)

Join [Student] student with (nolock)

On course.[Course_ID] = student.[Student_ID]

Where student.[Name] = 'John Doe'

can someone explain me the reason behind it , I need t make use of nolock for sure, Can someone fix the query ?

Attachment: sql.rar

Answers (6)
Yesterday's leader
View all
Harshit  
Java, ASP Dot Net
Mumbai (India)
Allen James  
Software engineering, architecture, data.
Perl City (United Kingdom)