13 lines
1.3 KiB
HTML
13 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>HW3 instructions: Procedures</title>
|
|
<meta charset="utf-8">
|
|
|
|
</head>
|
|
<body>
|
|
<p dir="ltr"><span class="" style="background-color: rgb(239, 69, 64); color: rgb(255, 255, 255);">NOTE</span>: Procedures need to be called explicitly after they are created so to test your procedures, you have to call them.</p><p dir="ltr">a) Create a procedure that adds X amount of days (given by the user) to the "requireddate" value based on custid or orderid. If orderid given is NULL, the procedure runs based on custid. The procedure takes three arguments<br>b) Create a procedure that adds 10 % to the freight money<br>c) Create a procdeure that rounds the freight costs to nearest 10 €<br>d) Add a new column 'shippedBeforeRequired' to Orders table (using ALTER command) of boolean type. Create a procedure that sets 'shippedBeforeRequired' to true if shippeddate is smaller than requrieddate and false if vice-versa</p><p dir="ltr">Each is worth 2.5 %</p><p dir="ltr"></p><p dir="ltr"><span class="" style="background-color: rgb(239, 69, 64); color: rgb(255, 255, 255);">Submit your SQL statements in one SQL file to Moodle. Do not submit the output, only the queries you have created.</span></p><p dir="ltr"><br>
|
|
|
|
</p><br><p></p>
|
|
</body>
|
|
</html> |