16.04.2022 Views

Magento 2 SQL Report Builder

Magento 2 SQL Report Builder extension by Meetanshi facilitates the easy creation of reports in Magento 2. Helps generate customized reports, run and save custom SQL queries in a more detailed way! Data reporting plays a crucial role in any eCommerce business. Generating detailed reports helps businesses to know more about their customers, their purchase history and make well-informed decisions. Magento offers advanced reporting features related to products, customers and orders. Sometimes, the need arises to generate personalized reports as per their needs. This is where Magento 2 SQL Report Builder has proved to be beneficial. It makes it easy for the store owners to run an SQL query to get the necessary database. Moreover, the module runs the query, fetches the results and helps displaying results in a tabular form. Helps in saving custom SQL queries for custom reports and runs them to fetch the data in a more detailed manner using Meetanshi’s Magento 2 SQL Report Builder extension! Features of Using Magento 2 SQL Report Builder Extension: Facilitates to execute and save custom SQL queries in Magento 2. Backend option to manage all the saved SQL reports at a single place. The admin can add the new SQL report or edit the existing ones. Allows admin to add a custom title for the SQL report. Option to enter a custom SQL query to fetch the required columns. Helps to save SQL reports and use them in future. Generate custom reports and get better insights by using SQL queries in Magento 2. For more information, visit: https://meetanshi.com/magento-2-sql-report-builder.html

Magento 2 SQL Report Builder extension by Meetanshi facilitates the easy creation of reports in Magento 2. Helps generate customized reports, run and save custom SQL queries in a more detailed way!


Data reporting plays a crucial role in any eCommerce business. Generating detailed reports helps businesses to know more about their customers, their purchase history and make well-informed decisions.

Magento offers advanced reporting features related to products, customers and orders. Sometimes, the need arises to generate personalized reports as per their needs. This is where Magento 2 SQL Report Builder has proved to be beneficial. It makes it easy for the store owners to run an SQL query to get the necessary database.

Moreover, the module runs the query, fetches the results and helps displaying results in a tabular form. Helps in saving custom SQL queries for custom reports and runs them to fetch the data in a more detailed manner using Meetanshi’s Magento 2 SQL Report Builder extension!
Features of Using Magento 2 SQL Report Builder Extension:

Facilitates to execute and save custom SQL queries in Magento 2.
Backend option to manage all the saved SQL reports at a single place.
The admin can add the new SQL report or edit the existing ones.
Allows admin to add a custom title for the SQL report.
Option to enter a custom SQL query to fetch the required columns.
Helps to save SQL reports and use them in future.
Generate custom reports and get better insights by using SQL queries in Magento 2.

For more information, visit: https://meetanshi.com/magento-2-sql-report-builder.html


SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SQL Report Builder for Magento 2

User Guide

Table of Contents

1. Extension Installation

2. Manage SQL Report

3. Add New SQL Report

4. Execute SQL Query & Generate Report

5. Save SQL Report

SQL Report Builder for Magento 2

© Meetanshi


1. Extension Installation

• For Magento Marketplace Customers

o Find the Composer name and version of the extension in the extension’s composer.json file.

o Login to your SSH and run:

o composer require meetanshi/magento-2-sql-report-builder

o Enter your authentication keys. Your public key is your username; your private key is your

password.

o Wait for Composer to finish updating your project dependencies and make sure there

aren’t any errors.

o To verify that the extension installed properly, run the command:

• php bin/magento module:status Meetanshi_SqlReport

o By default, the extension is probably disabled.

o Enable the extension and clear static view files:

• php bin/magento module:enable Meetanshi_SqlReport --clear-static-content

• php bin/magento setup:upgrade

• For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy

• For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f

• php bin/magento cache:flush

• For Meetanshi Customers

o Extract the zip folder and upload our extension to the root of your Magento 2 directory via

FTP.

o Login to your SSH and run below commands step by step:

• php bin/magento setup:upgrade

• For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy

• For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f

• php bin/magento cache:flush

SQL Report Builder for Magento 2

© Meetanshi


2. Manage SQL Report

Go to SQL Report Builder → Manage SQL Reports, where you can manage all the saved SQL

reports. The grid displays all the saved report titles along with their SQL queries. The dropdown

menu in the action provides options to edit or delete the existing SQL reports.

You can also add new SQL report by clicking on the ‘Add New SQL Report’ button on the topright

corner.

3. Add New SQL Report

To add a new SQL report, click on the ‘Add New SQL Report’ button from the Manage SQL

Reports grid. Here you can configure the following details about the SQL Report:

• Report Title: Enter the title for the SQL Report.

• SQL Query: Enter custom SQL query that you want to execute to generate the required

report.

Click “Execute SQL Query” button to run the SQL query and generate the report.

SQL Report Builder for Magento 2

© Meetanshi


4. Execute SQL Query and Generate Report

On clicking the ‘Execute SQL Query’ button on the ‘Add SQL Report’ or ‘Edit SQL Report’ page, the

extension runs the query, fetches the tables, and displays them in the grid. You can also export

the generate report to CSV file by clicking on the ‘Export’ button.

5. Save SQL Report

Click on the ‘Save SQL Report’ button on the top-right corner of the page to save the report for

future use. Once the report is successfully saved, it is added to the list of the SQL reports, which

can be used later.

The admin can easily use the saved SQL queries to generate reports by going to the ‘edit’ page

from the options provided in the action column and following the steps same as we followed for

adding new a SQL report.

SQL Report Builder for Magento 2

© Meetanshi

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!