subject

Write a PL/SQL procedure that assigns a reviewer to a paper in a certain round of review. The input includes a paper ID, reviewer ID, round, and due date. The procedure does ALL of the following: a. First check whether there is a paper with the given paper ID, if not, print an error message 'Wrong paper ID' and stop;
b. Next check whether there is a reviewer with the input reviewer ID. If not, print an error message 'wrong reviewer ID' and stop.
c. Next check whether there is already a row in paper_review with given paper ID, reviewer ID, and round. If so, print a message 'Already assigned' and stop.
d. Now check whether there is a conflict of interest, i. e., whether any author of the paper and the input reviewer has the same affiliation. If a conflict exists, print a message 'X and Y have conflict of interest' where X and Y are the names of author and reviewer with the same affiliation and stop. Please note that a paper may have multiple authors with the same affiliation with the reviewer.
e. If none of the above happens, insert a row to paper_review with given paper ID, reviewer ID, round, due date, and give null values to receive_date, decision and comment. Please use a sequence to generate new prid and print out the new prid. Please include the drop sequence and create sequence command before the procedure creation code such that your procedure can be created correctly.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
How do i draw hello world in python and how do i make it loop?
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
The salespeople at hyperactive media sales all use laptop computers so they can take data with them on the road. you are a salesperson for superduper lightspeed computers talking to hyperactive media sales about upgrading the laptops to windows 10. explain how network location awareness in windows 10 would make the laptops more secure.
Answers: 3
question
Computers and Technology, 23.06.2019 17:10
Ac++an of of pi. in , pi is by : pi = 4 – 4/3 + 4/5 – 4/7 + 4/9 - 4/11 + 4/13 - 4/15 + 4/17 . ., to pi (9 ). , if 5 to pi,be as : pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 = 4 – 1. + 0.8 - 0. + 0. = 3.. atoofbe to pi?
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
The initial tableau of a linear programming problem is given. use the simplex method to solve it. x 1 x 2 x 3 s 1 s 2 z 1 2 4 1 0 0 8 3 4 1 0 1 0 10 minus3 minus12 1 0 0 1 0 the maximum is nothing when x 1equals nothing, x 2equals nothing, x 3equals nothing, s 1equals3, and s 2equals0. (be sure to simplify to lowest terms if necessary.)
Answers: 2
You know the right answer?
Write a PL/SQL procedure that assigns a reviewer to a paper in a certain round of review. The input...
Questions
question
Mathematics, 02.10.2021 15:50
question
Arts, 02.10.2021 15:50
Questions on the website: 13722367