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
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
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.
Correct Answer : A
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.
Should be A
should be A
should be A