VALIDATING SQL TABLE
Hello guys, Please i need help with this table's validation Table: Transactions.OrderDetails 1. PurchaseOrderID must be auto generated. 2. OrderDate should not be greater than the current date. 3. If the order date is not entered, the current date should be taken as the default date. 4. QuantityOrdered, QuantityReceived, and UnitPrice should be greater than 0. 5. QuantityReceived should allow NULL. 6. QuantityReceived cannot be greater than QuantityOrdered. 7. QuantityReceived should be added to QuantityInHand in the Items table. 8. When a record is inserted into the table, QuantityInHand in the Items table should be updated automatically. 9. OrderStatus must be any of the following values: ‘InTransit’, ‘Received’, or ‘Cancelled’. 10. ReceivingDate should allow NULL and should be greater than OrderDate.