This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE PROCEDURE humanresources.Uspgetallemployees | |
AS | |
BEGIN | |
SELECT lastname, | |
firstname, | |
jobtitle, | |
department | |
FROM humanresources.vemployeedepartment; | |
END |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE PROCEDURE humanresources.Uspgetallemployees | |
AS | |
SELECT lastname, | |
firstname, | |
jobtitle, | |
department | |
FROM humanresources.vemployeedepartment; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
lastname, | |
firstname, | |
jobtitle, | |
department | |
FROM humanresources.vemployeedepartment; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER OFF | |
GO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @A = @B | |
SET @C = @D | |
SET @E = @F | |
SET @G = @H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROCEDURE Update_Student_GPA (nSSN IN number) | |
IS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROCEDURE Update_Student_GPA (nSSN IN number) | |
IS | |
<declaration> | |
<declaration> | |
BEGIN | |
<statements>; | |
END Update_Student_GPA; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXCEPTION | |
WHEN NO_DATA_FOUND THEN | |
<statements> | |
WHEN TOO_MANY_ROWS THEN | |
<statements> | |
WHEN OTHERS THEN | |
<statements> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- For each student returned by the query, add the student's social | |
-- security number to the PL/SQL table. | |
-- | |
FOR Students_rec IN Students_cur LOOP | |
<statements> | |
END LOOP; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- If the student's grade point average meets the criteria for | |
-- mandatory academic counseling, add the student's name and social | |
-- security number to the list. | |
-- | |
IF (nRealGPA < 1.5) THEN | |
<statements> | |
-- | |
-- We also want to consider students who are failing two or more |