Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam DS0-001 Topic 4 Question 15 Discussion

Actual exam question for CompTIA's DS0-001 exam
Question #: 15
Topic #: 4
[All DS0-001 Questions]

Which of the following statements contains an error?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Rasheeda
2 months ago
Wait, aren't we supposed to use single quotes around the values? Like 'EmpId = '90030''? These SQL purists are getting out of hand!
upvoted 0 times
...
Stephane
2 months ago
C looks good to me. Selecting all columns from the employee table where EmpId = 90030 seems like the correct statement.
upvoted 0 times
Rodolfo
10 days ago
C looks good to me. Selecting all columns from the employee table where EmpId = 90030 seems like the correct statement.
upvoted 0 times
...
Ariel
11 days ago
D) Select EmpId from employee
upvoted 0 times
...
Ronny
17 days ago
C) Select* from employee where EmpId=90030
upvoted 0 times
...
Micah
1 months ago
B) Select EmpId where EmpId=90030 and DeptId=34
upvoted 0 times
...
Justine
1 months ago
A) Select EmpId from employee where EmpId=90030
upvoted 0 times
...
...
Chaya
2 months ago
Haha, D is the winner! Who needs to specify the column when you can just select everything, right? #LazyProgrammer
upvoted 0 times
...
Antonette
2 months ago
I think B is the one with an error. The syntax should be 'SELECT EmpId FROM employee WHERE EmpId = 90030 AND DeptId = 34'.
upvoted 0 times
Ty
21 days ago
D is the one with the error, it should specify a condition after 'FROM employee'.
upvoted 0 times
...
Leslie
23 days ago
I think C is incorrect, it should be 'SELECT * FROM employee WHERE EmpId = 90030'.
upvoted 0 times
...
Hollis
2 months ago
I agree, B seems to have a syntax error.
upvoted 0 times
...
...
Kristel
3 months ago
The correct answer is A. The statement should be 'SELECT EmpId FROM employee WHERE EmpId = 90030'.
upvoted 0 times
Caitlin
1 months ago
Got it, thanks for the correction!
upvoted 0 times
...
Maynard
1 months ago
Yes, the correct syntax is 'SELECT EmpId FROM employee WHERE EmpId = 90030'.
upvoted 0 times
...
Amos
1 months ago
Thanks for pointing that out!
upvoted 0 times
...
Gabriele
1 months ago
D) Select EmpId from employee
upvoted 0 times
...
Karan
1 months ago
C) Select* from employee where EmpId=90030
upvoted 0 times
...
Suzi
1 months ago
B) Select EmpId where EmpId=90030 and DeptId=34
upvoted 0 times
...
Elin
2 months ago
A) Select EmpId from employee where EmpId=90030
upvoted 0 times
...
...
Lorrie
3 months ago
I believe statement D is incorrect because it does not specify any condition for filtering the results.
upvoted 0 times
...
Lanie
3 months ago
I agree with Kati. The asterisk should not be used in the SELECT statement.
upvoted 0 times
...
Kati
3 months ago
I think statement C contains an error.
upvoted 0 times
...
Aliza
3 months ago
Why do you think option B is incorrect?
upvoted 0 times
...
Luisa
3 months ago
I disagree, I believe option B is the one with the error.
upvoted 0 times
...
Aliza
3 months ago
I think option C has an error.
upvoted 0 times
...

Save Cancel