What is a good practice for a developer to follow when writing a - ProProfs Discuss
Topics-
Products +
     

What is a good practice for a developer to follow when writing a trigger?



A. Using synchronous callouts to call external systems
B. Using the Map data structure to hold query results by ID
C. Using @future methods to perform DML operations
D. Using the Set data structure to ensure distinct records

This question is part of Exam ng Pabebe Girls
Asked by Catherine halcombe, Last updated: Jan 29, 2018

+ AnswerRequest Answer
...

2 Answers

f.Brian

F.Brian

Answered on Jan 29, 2018

If a data structure developer is writing a trigger then it is a good practice for them to use the Map data structure to hold query results by ID and use the Set data structure to ensure distinct records. A trigger is an SQL (structured Query Language) procedure that initiates an action when an event occurs.

A trigger is something that cannot be called or executed but instead automatically fires as a result of a data modification. SQL is the primary language that is used to communicate with a database. It is officially the standard language for relational database management systems.

 Reply

John Smith

John Smith

Answered on Oct 26, 2016

Using the Map data structure to hold query results by ID
2. Using the Set data structure to ensure distinct records
 Reply

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.