Consider the following statements. [2 points] A functional…

Consider the following statements. [2 points] A functional dependency is checked by examining the instance of a relation. [2 points] The violation of a functional dependency is checked by examining the instance of a relation. [2 points] If an attribute has occurred on the right-hand side of some functional dependencies but not on the left-hand side of any functional dependency, it must be in the candidate keys. Give reasons for each statement whether it is correct or incorrect. Give the reason even if it is correct.

Given database schema: Faculty (fid, name, tenured, dname, s…

Given database schema: Faculty (fid, name, tenured, dname, salary, chairID)Department (dname, phoneNumber, numberOfFaculty)Course (fid, dname, semester, cname) Write a trigger (one trigger command) in SQL for the following statement: When a new record is inserted into Faculty, if the department does not exist in the Department table, then insert a record into Department with the same department name and the phone number equal to null. Additionally, when a record is deleted from Faculty, if the faculty member is tenured, then raise an error (use RAISE_APPLICATION_ERROR(-10000, ’error’)).

Given database schema: Faculty (fid, name, tenured, dname, s…

Given database schema: Faculty (fid, name, tenured, dname, salary, chairID)Department (dname, phoneNumber, numberOfFaculty)Course (fid, dname, semester, cname) Write an assertion check in SQL for the following condition: The salary of any faculty member cannot be greater than their chair’s salary.

We decide to save time by sampling 1000 flights at random fr…

We decide to save time by sampling 1000 flights at random from a single month (instead of 250 from the whole data set) and then using the same process to get a confidence interval for the percentage of flights in the year that are delayed. Is this a good idea? Choose all the correct statements.

Given database schema: Faculty (fid, name, tenured, dname, s…

Given database schema: Faculty (fid, name, tenured, dname, salary, chairID)Department (dname, phoneNumber, numberOfFaculty)Course (fid, dname, semester, cname) Write an assertion check in SQL for the following condition: The salary of any faculty member cannot be greater than their chair’s salary.