This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

13 lines
1.3 KiB
HTML

<!doctype html>
<html>
<head>
<title>HW4 instructions: Triggers</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>To test your triggers, you need to try insert new data into the tables that go against the rules.</p><p dir="ltr">Develop triggers that support the following integrity constraints using the HW4.sql:</p><p dir="ltr">a) Parents are not younger than their offsprings<br>b) AnimalSpecies Habitat information must coincide with the Habitat table.&nbsp;<br><span style="white-space: pre;"> </span>Temperature should not differ more than 5 degrees of what the species needs.<br>c) If a compound (Habitat) becomes overbooked then we need a warning. You can compare Habitat size to specimen weight or height or use size as "number of animals possible." You decide.<br>d) Offsprings have at MOST one male, one female parent. Consider NULLS</p><p dir="ltr">Each 2.5 %, 10 % in total.<br></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>