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 PatelRank #614 · 3.9K reputationPosted Sep 13, 2016, 11:04 AM EDT
harry harish19 reputationPosted Sep 13, 2016, 11:07 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Sep 13, 2016, 10:54 AM EDT
harry harish19 reputationPosted Sep 13, 2016, 11:03 AM EDT
Select *
From [Course] course with (nolock)
Join [Student] student with (nolock)
On course.[Course_ID] = student.[Course_ID]
Where student.[Name] = 'John Doe'
correct ?harry harish19 reputationPosted Sep 13, 2016, 12:28 PM EDT
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?Gareth BradleyRank #1,628 · 949 reputationPosted Sep 20, 2016, 12:36 PM EDT