A New Approach for Calculating Average Value Including NullWithout Aggregate Function

Table of contents

1. INTRODUCTION

ggregate functions perform a calculation on a set of values and return a single value. Aggregate function avg( ) only calculate average without null values. It provides average result, eliminating null values. Null does not have a value (and is not a member of any data domain) but it is a placeholder or "mark" for missing information. Comparisons with Null can never result in either True or False but always in the third logical result is Unknown. So comparing two null is difficult. We discus about

(1) review of the research for handling null values in database system using aggregate function (2) problem structure with null value with respect to database (3) describes existing solution and proposed solution and its algorithm as well as how it works (4) details the experimental work that has been carried out. The experimental evaluation has been performed using a large amount of datasets.

2. COMPARISON TABLE BETWEEN EXISTING AND PROPOSED SOLUTION

From comparison table we see that our propose system takes less times than existing system. By proposed system can reduce time and reduce the problem of existing system. To understand easily a graph chart is given below.

3. VII. GRAPH OF EXISTING SOLUTION VS. PROPOSED SOLUTION

Our propose solution is efficient to calculate average value with Null values from large amount of data.

From the above graph Green bar indicates Existing solution time and Red Bar indicates proposed solution time. We see that in proposed system needs execution time less than existing system. VIII.

4. CONCLUSION

At the age of globalization most of all bank already has been computerized. They store their customer information, balance, transaction etc. in database. And they need to calculate average number of transaction after a certain period of time. Even stock exchange Ltd. Hospital, Airlines etc. need to calculate average number of transaction frequently. So our proposed system will be best for them which can save their times.

Figure 1. Table bank
bank
VI.
Amount of Existing solution Proposed Solution
Data Execution Time (sec) Execution Time (sec)
40000 0.2840 0.2460
80000 0.5720 0.5040
120000 0.8440 0.8250
160000 1.1841 1.1591
180000 1.3301 1.3011
200000 1.5511 1.5011
220000 1.7511 1.5781
240000 1.9371 1.7641
260000 2.0601 1.9671
280000 2.1851 2.0762
1
2
4

Appendix A

Appendix A.1

V.

Appendix A.2 PERFORMANCE MEASURE TABLE OF PROPOSED SOLUTION

In this solution we see that if the number of data in database gradually increased then the execution time is increased. Built

Appendix B

  1. // d is a data table which like two dimensional //array, size is maximum data row,
  2. Algorithm Average_WN (d, Avg, size ),
  3. Analytic Functions from Oracle® Database SQL Reference 10g Release 1 (10.1) Part Number, B10759-01.
  4. Avg:=sum/size ; 25, 23. } 24. (Print AVG)
  5. Comparing Tables By Bill Graziano on 07, January 2002.
  6. December A New Approach for Calculating Average Value (Including Null) Without Aggregate Function 3. Jeff Smith is software developer, he using UNION operator comparing NULL values to other NULLs, www.weblogs.sqlteam.com
  7. A Relational Model of Data for Large Shared Data Banks. E F Codd . Communications of the ACM June 1970. 13 (6) p. .
  8. If( size mod 2=1) 18. { 19. If(size=1) then 20. sum := sum + d, 17.
  9. Incremental computation of nested relational query expression. L Baekgraard , L Mark . ACM TODS June 1995. 20 (2) p. .
  10. size of data table,
  11. SQL Functions from Oracle Database Globalization Support Guide 8. Structured Query Language (SQL)". International Business Machines, October 27. 2006. 2007-06-10.
Notes
1
© 2011 Global Journals Inc. (US)
2
December
4.
Global I ) 2011 December ( A New Approach for Calculating Average Value (Including Null) Without Aggregate Function
Date: 2012-01-06