CompTIA DS0-001 CompTIA DataSys+ Certification Exam Practice Test

Page: 1 / 14
Total 80 questions
Question 1
Question 2

Which of the following statements contains an error?



Answer : B

The statement that contains an error is option B. This statement is missing theFROMclause, which specifies the table or tables from which to retrieve data. TheFROMclause is a mandatory clause in aSELECTstatement, unless the statement uses a subquery or a set operator. The correct syntax for option B would be:

SELECT EmpId FROM employee WHERE EmpId=90030 AND DeptId=34

Copy

The other options are either correct or valid SQL statements. For example, option A selects the employee ID from the employee table where the employee ID is equal to 90030; option C selects all columns from the employee table where the employee ID is equal to 90030; option D selects the employee ID from the employee table without any filter condition.Reference:CompTIA DataSys+ Course Outline, Domain 1.0 Database Fundamentals, Objective 1.2 Given a scenario, execute database tasks using scripting and programming languages.


Question 3
Question 4
Question 5
Question 6
Question 7
Page:    1 / 14   
Total 80 questions