Task 2_ Part A
Connect to MySQL either through command line interface mysql or graphical user interface MySQL Workbench as user csit115 and execute script file A3drop.sql. Immediately after that, execute the scripts A3create.sql and A3loadsql to refresh the contents of the database csit115.
No report is expected from the implementation of the steps listed above. Implement an SQL script that performs the following actions:
The script finds all cases that violate the following consistency constraint in the database csit115: "A purchase which is an online purchase should NOT be a walk-in purchase."
The script must list the outcomes of the verification of the consistency constraint as a single column table with the following messages as the rows:
"A purchase with the purchase ID of <insert PurchaseID here> is an online purchase of type <insert OnlineType here> and also a walk-in purchase of location <insert ShopLocation here>."
Use the function CONCAT to create the messages above. It is NOT allowed to use more than one SELECT statement to implement this task.
Note that it is NOT your task to eliminate the violations of the consistency constraint listed above.