Approximate Query Processing: over Traditional Databases and Data Streams