Bird
0
0

Which SQL statement correctly grants SELECT permission on the table 'customers' to user 'alice'?

easy📝 Syntax Q3 of 15
SQL - Security Basics
Which SQL statement correctly grants SELECT permission on the table 'customers' to user 'alice'?
AGRANT SELECT ON customers TO alice;
BALLOW SELECT FROM customers TO alice;
CPERMIT SELECT ON customers FOR alice;
DGIVE SELECT ON customers TO alice;
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct SQL syntax for granting permissions

    The standard syntax uses GRANT, followed by the permission, ON the object, TO the user.
  2. Step 2: Match the syntax to the options

    Only GRANT SELECT ON customers TO alice; uses the correct keywords and order.
  3. Final Answer:

    GRANT SELECT ON customers TO alice; -> Option A
  4. Quick Check:

    Grant syntax = GRANT ... ON ... TO ... [OK]
Quick Trick: Use GRANT ... ON ... TO ... to assign permissions [OK]
Common Mistakes:
  • Using incorrect keywords like ALLOW or PERMIT
  • Mixing up TO and FOR keywords
  • Omitting the ON keyword

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes