Which of the following statements contains an error?
42 comments · newest first
LE
Leonardo
12 months ago
Wait, is it really okay to select without a table?
MA
Maryln
1 year ago
D is too vague, needs a WHERE clause.
ER
Erick
1 year ago
C looks good to me, what's the issue?
BR
Broderick
1 year ago
I think A is fine, no errors there.
CH
Chau
1 year ago
Statement B is missing the table name.
AL
Albert
1 year ago
I thought option C was incorrect because of the missing space between "Select" and "*", but I guess that's not a syntax error in SQL.
EI
Eileen
1 year ago
I feel like option D is also suspicious because it doesn't have a WHERE clause, but I guess it could still return all EmpIds.
LE
Leigha
1 year ago
I'm not entirely sure, but I remember a practice question where missing the table name caused an error. Could it be option B?
AL
Alfred
1 year ago
I think option B might be the one with an error since it doesn't specify the table name after "Select EmpId."
BE
Berry
1 year ago
Ugh, SQL queries can be tricky. I'll have to think through each statement carefully to spot the error. Hopefully, I can eliminate a few options and make an educated guess.
CH
Chara
1 year ago
Option A looks good to me - that's the correct way to select a specific employee ID. I'm confident I can get this one right.
HU
Huey
1 year ago
Hmm, I'm a bit unsure about this one. I'll need to double-check my SQL knowledge to make sure I identify the right statement with an error.
RO
Rozella
1 year ago
This looks like a pretty straightforward SQL query question. I'll carefully read through each option and think about the correct syntax.
DE
Deeanna
1 year ago
Hmm, this looks like a tricky one. I'll need to carefully read through the code and think about how the `toLowerCase()` method works.
NA
Nana
1 year ago
I think Azure Key Vault is the best choice here since it's specifically designed for securely storing and managing sensitive data like certificates.
RY
Ryan
1 year ago
Okay, let me see here. I'm pretty sure it has something to do with the contact center settings, but I'm not confident which specific option it is. I'll have to make an educated guess.
RA
Rasheeda
2 years ago
Wait, aren't we supposed to use single quotes around the values? Like 'EmpId = '90030''? These SQL purists are getting out of hand!
ST
Stephane
2 years ago
C looks good to me. Selecting all columns from the employee table where EmpId = 90030 seems like the correct statement.
RO
Rodolfo
1 year ago
C looks good to me. Selecting all columns from the employee table where EmpId = 90030 seems like the correct statement.
AR
Ariel
1 year ago
D) Select EmpId from employee
RO
Ronny
1 year ago
C) Select* from employee where EmpId=90030
MI
Micah
1 year ago
B) Select EmpId where EmpId=90030 and DeptId=34
JU
Justine
1 year ago
A) Select EmpId from employee where EmpId=90030
CH
Chaya
2 years ago
Haha, D is the winner! Who needs to specify the column when you can just select everything, right? #LazyProgrammer
AN
Antonette
2 years ago
I think B is the one with an error. The syntax should be 'SELECT EmpId FROM employee WHERE EmpId = 90030 AND DeptId = 34'.
TY
Ty
1 year ago
D is the one with the error, it should specify a condition after 'FROM employee'.
LE
Leslie
1 year ago
I think C is incorrect, it should be 'SELECT * FROM employee WHERE EmpId = 90030'.
HO
Hollis
1 year ago
I agree, B seems to have a syntax error.
KR
Kristel
2 years ago
The correct answer is A. The statement should be 'SELECT EmpId FROM employee WHERE EmpId = 90030'.
CA
Caitlin
1 year ago
Got it, thanks for the correction!
MA
Maynard
1 year ago
Yes, the correct syntax is 'SELECT EmpId FROM employee WHERE EmpId = 90030'.
AM
Amos
1 year ago
Thanks for pointing that out!
GA
Gabriele
1 year ago
D) Select EmpId from employee
KA
Karan
1 year ago
C) Select* from employee where EmpId=90030
SU
Suzi
1 year ago
B) Select EmpId where EmpId=90030 and DeptId=34
EL
Elin
2 years ago
A) Select EmpId from employee where EmpId=90030
LO
Lorrie
2 years ago
I believe statement D is incorrect because it does not specify any condition for filtering the results.
LA
Lanie
2 years ago
I agree with Kati. The asterisk should not be used in the SELECT statement.
KA
Kati
2 years ago
I think statement C contains an error.
AL
Aliza
2 years ago
Why do you think option B is incorrect?
LU
Luisa
2 years ago
I disagree, I believe option B is the one with the error.
AL
Aliza
2 years ago
I think option C has an error.