Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Set ServerOutput ON;
  2. CREATE or REPLACE PROCEDURE Get_TLoad (Faculty_ID number, SchoolYear number) IS
  3. ClassNum Number;
  4.  
  5. BEGIN
  6. SELECT Count(*) Into ClassNum
  7. From Offering
  8. Where SchoolYear = OffYear And Faculty_ID = FacSSN
  9. Group By CourseNo;
  10. DBMS_OUTPUT.PUT_LINE('Professor with ID ' || Faculty_ID || ' is teaching ' || ClassNum || ' classes in ' || SchoolYear);
  11. End;
  12. /
  13.  
  14. Select Get_TLoad (9002, 2017) From Dual;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement