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 ?
Tapan PatelPosted Sep 13, 2016, 3:04 PM
Gareth BradleyPosted Sep 20, 2016, 4:36 PM
harry harishPosted Sep 13, 2016, 4:28 PM
1. Please review the following vb.net code and answer the corresponding questions.
Public Function ParseClassesOfService(ByVal str As String) As List(Of ClassOfService)
Dim classList As New List(Of ClassOfService)
Dim serviceClass As ClassOfService
For Each text As String In str.Split(CChar(" "))
serviceClass = New ClassOfService
serviceClass.Code = text.Substring(0, 1)
classList.Add(serviceClass)
Next
Return ClassList
End Function
A. How many characters is the service class code according to this function?
What is this function doing?harry harishPosted Sep 13, 2016, 3:07 PM
harry harishPosted Sep 13, 2016, 3:03 PM
Select *
From [Course] course with (nolock)
Join [Student] student with (nolock)
On course.[Course_ID] = student.[Course_ID]
Where student.[Name] = 'John Doe'
correct ?Tapan PatelPosted Sep 13, 2016, 2:54 PM