404 Part I EXAM PREPARATION FIGURE 7.6 Accessing
Saturday, October 17th, 2009404 Part I EXAM PREPARATION FIGURE 7.6 Accessing the dependencies of a view. Enhancing Views You can create view definitions beyond mundane SELECT statements that simply place data statements into a resultset. With views, you can use joins to get data from multiple tables. This is useful because the desired data is not always stored on a single table (in fact, this is rarely the case). You can also leverage the complexity of aggregate functions in your views in the same way you would use them on a normal table. You can further refine data retrieval by building views on views, so that data is filtered on the appropriate conditions. Aggregates and Views Aggregates offer a great deal of calculation power and views can make use of them. These aggregates include AVG, COUNT, DISTINCT, and similar functions. Leveraging the power of aggregates enables you to create useful reports that can be produced based on data in a table. The following example outlines the importance of aggregates with the example of a user who requests to see a report on the minimum, maximum, average and total values of the Quantity column (grouped by orderID) from the Order Details table in the
For high quality java hosting services please check java web hosting website.