Vreports & Dashboard by VTExperts
  • 1. Do Vreports support UNION in the SQL Report
  • 2. VReports & dashboard extension is working slow
  • 3. Can a user change the default tab name in Vreports and Dashboard extension?
  • 4. Report on dashboard only shows records assigned to the current user
  • 5. Do Vreports supports 3rd level relationship
  • 6. Vreports malfunctions creating reports on "Transactional" modules with respect services/products
  • 7. How to make a Pivot report data Selectable
  • 8. New feature: Scheduled Vreports, now supports formatting of the reports
  • 9. Charts are missing in scheduled reports
  • 10. Setting VReports Dashboard as Homepage
  • 11. Adding widget to Reports & dashboard
  • 12. Generating SLA reports
  • 13. Access Vreport's Dashboard through My Dashboard button
  • 14. Is it possible to show non-integer values as stacked bars in Vreports?
  • 15. VReports Date picker not working in Vtiger 7.4
  • 16. How to check on how many mails, in TOTAL, are being sent on a day/week/month
  • 17. How To Access Vreports Through My Dashboard Button.
  • Efficient Reporting With Vreports
Powered by GitBook
On this page
  • Question
  • What is UNION function?
  • Answer
  • Example

1. Do Vreports support UNION in the SQL Report

Question

Can a user create an SQL repor in the VReports with UNION function?

What is UNION function?

The UNION function in SQL is used to merge the outcomes of two or more SELECT statements into a single result set. It functions as a set operator that returns only unique rows from the combined SELECT statement outcomes. The resulting set obtained through the UNION operation includes all the rows present in any of the SELECT statements employed in the query, without any repetition.

Answer

Yes, Vreport's SQL reports do support UNION function. Moreover, if you face any issue in regard to it, then you can send us the query you are trying to execute

Example

// SELECT * FROM (


SELECT 
'vtiger_troubletickets' AS record_table,
ticketid AS record_id, 
title AS record_name 
FROM vtiger_troubletickets 

UNION ALL

SELECT 
'vtiger_contactdetails' AS record_table,
contactid AS record_id, 
lastname AS record_name 
FROM vtiger_contactdetails 


) union_records
Extension
Vreports & Dashboards

Description

Do Vreports support UNION in the SQL Report

Created by

Salman (April 06, 2023)

Next2. VReports & dashboard extension is working slow

Last updated 10 months ago