Merging two tables one is task_survey and one more is survey_response

Gangadhar540-
Tera Contributor

I want to merge two table ( task_survey , survey_response ) for creation of report 

3 REPLIES 3

Kirby R
Kilo Sage

You can create a database view for this and create the report on that database view.

See detailed documentation here

Creating database views for reporting

GlideFather
Tera Patron

Hi @Gangadhar540-,

do you have access to Database views?

https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/use/reporting/task/c_Cr...

Create a new Database View record and in the related list define the tables:

KamilTEL_0-1751359089382.png


And then a new Report will be created from this after it was Saved.

Also a good source of info: https://www.servicenow.com/community/developer-blog/what-is-servicenow-database-view-create-servicen...

Let me know how it goes

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Priti_S
Tera Expert

Hello @Gangadhar540- 
For this you can use Database views. This allows you to combine data from multiple tables into a single virtual table for reporting purposes.