Data aggregation in Wireless Sensor Network refers to acquiring the sensed data from the sensors to the gateway node. Data aggregation scheme minimize a large amount of transmission data to the base station, so that improve the energy efficiency and prolong the wireless network lifetime. CDAMA is designed by using multiple points, each of which has different order. It is designed for a multi-application environment. It mitigates the impact of compromising attacks in single application environments and degrades the damage from unauthorized aggregations. In the database-service-provider model, user's data resides on the premises of the provider. Both corporations and individuals view their data as a very valuable asset. To maintain data confidentiality, clients need to outsource their data to servers in encrypted form. At the same time, clients must still be able to execute queries over encrypted data.