SELECT inc."title" 'Case Title', inc."ticketnumber" 'Case Number', inc."prioritycode" 'Priority', inc."caseorigincode" 'Origin', c."fullname" 'Customer', su."fullname" 'Owner', inc."statuscode", inc."createdon" FROM "incident" inc, "systemuser" su, "contact" c WHERE inc."createdby" = su."systemuserid" AND inc."customerid"= c."contactid" AND inc."statecode" = 'Active' UNION SELECT inc."title" 'Case Title', inc."ticketnumber" 'Case Number', inc."prioritycode" 'Priority', inc."caseorigincode" 'Origin', a."name" 'Customer', su."fullname" 'Owner', inc."statuscode", inc."createdon" FROM "incident" inc, "systemuser" su, "account" a WHERE inc."createdby" = su."systemuserid" AND inc."customerid"= a."accountid" AND inc."statecode" = 'Active'
Skyvia Query allows you to run SQL queries against databases and cloud applications from web browser. Access and manage your data from anywhere, build reports, arrange your data in the most informative way and simplify your decision-making process easily!