Hi All.I have a question about how to best pull data for a report. I have a main table work_orders that has a related table called custom_fields. it is a 0 to many relationship. I am having a real problem trying to figure out the best way to display data in a report efficiently. What I want to do is display the work_order data and also all the custom_fields as a single row. I have attempted to use linq and I cant seem to figure out the best way to efficiently do this. I am relatively new to SQL Server and was wondering if anyone had an idea to efficiently do this.
Thanks in advance.
Jim
Loading
SenthilkumarPosted Apr 24, 2012, 11:45 PM
If you have more data in these two tables then go for the indexed view , because normal view work like normal query. It will execute the script and load into view.
If you are not using this joining of two tables in many places then you can go for joins and create the indexes wherever required.
Nitesh KejriwalPosted Apr 24, 2012, 9:19 PM
Mahesh ChandPosted Apr 24, 2012, 12:44 PM