Question: Question 1 Given a table with the structure: EMPLOYEE (EmpNo, Name, Salary, HireDate), which of the following is not a valid SQL command? SELECT HireDate,

 Question 1 Given a table with the structure: EMPLOYEE (EmpNo, Name,

Salary, HireDate), which of the following is not a valid SQL command?

SELECT HireDate, COUNT(*) FROM EMPLOYEE WHERE Salary 30000; SELECT HireDate, COUNT(*) FROM

EMPLOYEE GROUP BY HireDate; SELECT COUNT(EmpNo) FROM EMPLOYEE; SELECT COUNT() FROM EMPLOYEE

WHERE Salary 30000; Question 2 As the voting age is 18, what

should happen if the following command is issued: INSERT INTO VOTERS (VoterID,

LastName, FirstName, DOB, Age, CDid) VALUES(04503,'Smith',John','23-mar-1991', 17,'GA01): Operation is not allowed. Check

constraint violated Operation is allowed. Operation is not allowed. SQL statement is

malformed Operation is not allowed. Primary key constraint violated. Operation is not

allowed. Referential integrity constraint violated

image text in transcribed

image text in transcribed

Question 1 Given a table with the structure: EMPLOYEE (EmpNo, Name, Salary, HireDate), which of the following is not a valid SQL command? SELECT HireDate, COUNT(*) FROM EMPLOYEE WHERE Salary 30000; SELECT HireDate, COUNT(*) FROM EMPLOYEE GROUP BY HireDate; SELECT COUNT(EmpNo) FROM EMPLOYEE; SELECT COUNT() FROM EMPLOYEE WHERE Salary 30000; Question 2 As the voting age is 18, what should happen if the following command is issued: INSERT INTO VOTERS (VoterID, LastName, FirstName, DOB, Age, CDid) VALUES(04503,'Smith',John','23-mar-1991', 17,'GA01): Operation is not allowed. Check constraint violated Operation is allowed. Operation is not allowed. SQL statement is malformed Operation is not allowed. Primary key constraint violated. Operation is not allowed. Referential integrity constraint violated

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!