SQL (Structured Query Language) Question:

Download Job Interview Questions and Answers PDF

Read the following code and explain:

SQL Interview Question
SQL Interview Question

Answer:

Read the following code:
22. CREATE OR REPLACE TRIGGER update_show_gross
23. {trigger information}
24. BEGIN
25. {additional code}
26. END;

The trigger code should only execute when the column, COST_PER_TICKET, is greater than $3. Which trigger information will you add?

1. WHEN (new.cost_per_ticket > 3.75)
2. WHEN (:new.cost_per_ticket > 3.75
3. WHERE (new.cost_per_ticket > 3.75)
4. WHERE (:new.cost_per_ticket > 3.75)

Download SQL Interview Questions And Answers PDF

Previous QuestionNext Question
What happens when rows are found using a FETCH statement?Read the following code 2: