Explanation:
jwjajahabauiqjqjwjajjwwjnwaj
Answer:
The database can detect only system-defined events.
Explanation:
A trigger is like a stored procedure that Oracle Database invokes automatically whenever a specified event occurs.trigger is like a stored procedure that Oracle Database invokes automatically whenever a specified event occurs.
Both triggers and constraints can constrain data input, but they differ significantly.
A constraint applies to both existing and new data. For example, if a database column has a NOT NULL constraint, then its existing data is NOT NULL and no DML statement can violate the NOT NULL constraint.
A trigger applies only to new data. For example, a trigger can prevent a DML statement from inserting a NULL value into a database column, but the column might contain NULL values that were inserted into the column before the trigger was defined or while the trigger was disabled
Answer:
Please Find attached c++ code file.
Explanation:
- Ask User to enter highway number.
- Check if highway is primary or auxiliary.
- Check if highway number is even / odd.
- Find Primary high number for an auxiliary highway
Check if highway is primary or auxiliary.
Use if condition to check if the entered number is in between 0 and 99.If it's true than the highway is primary otherwise it's an auxiliary highway.
Check if highway number is even / odd.
To check if a number is even or odd we use simple modulo formula. In mathematics modulo returns the reminder of a division operation on two numbers.If modulo of a number and 2 is equal to zero than that number is an even number other wise its an odd number.
Find Primary high number for an auxiliary highway
As mentioned in the question last two digits of highway number is the number of primary high.
To Find last two digits of number apply modulo operation on highway number and 100. it will provide last two digits of number specifying our primary highway.