Professional Documents
Culture Documents
Create Procedure
Create Procedure
[spSELECT_tblStudent]
AS
BEGIN
SELECT Stno StudentNo, Lname+', '+Fname+' '+Mname [Student Name],
CourseCode Course, YearLevel
FROM tblStudent A
JOIN tblCourse B ON A.CourseID=B.ID
END
IF @@ERROR = 0
BEGIN
SET @RetValue = 1
END
Else
BEGIN
SET @RetValue = @@ERROR
END
END