What type of class do you put these SQL statements?

You are building a report using complex SQL aggregations to locate the required data.
In what type of class do you put these SQL statements?
A. Resource model
B. Repository
C. Model
D. Helper

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “What type of class do you put these SQL statements?

  1. It should be A because Magento Itself complex SQL aggregations in ResourceModel and best examples will be Catalog/Product, Catalog/Category, Sales/Order, Magento/Report moduels.

  2. Answer:- A

    Performing additional business logic. For example, a resource model could perform data validation, start processes before or after data is saved, or perform other database operations.

    11

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.