aggregation

Microsoft DBMS on-the-fly aggregation

Some time ago i was reading an article about new MS DBMS technology. It's some kind of OLAP but on the fly. This technology can bind to data flows and then provide a real time aggregation. So the question is "what is it's name?". I need such a technology now but can't remember it's name... Or maybe there are some similar technologies? ...

SQL one table aggregation

For the last few days I have been attempting to find a method to pull a very important set of information from a table that contains what I call daily counts. I have a table that is setup as follows. person|company|prod1|prod2|prod3|gen_date Each company has more than one person, and each person can have different combinations of prod...

SMS aggregation service provider

Hi, Can someone please tell me what are the pre-requisites for establishing an SMS Aggregation service (as a business), I am after the technology and implementation, a rough overview of what is involved (what components, ex. Gateway, carrier, etc) will be great help. Regards ...

Rails 1.0 - Using composed_of gives me a wrong number of arguments (1 for 5) error

I am developing a Rails 1.0 application (I can't upgrade, it's a strange situation) for which I am trying to use the :composed_of functionality. I have a class called StreetAddress: class StreetAddress attr_reader :address, :address2, :city, :state_id, :zip_code def initialize(address, address2, city, state_id, zip_code) @addr...

Sumproduct using Django's aggregation

Question Is it possible using Django's aggregation capabilities to calculate a sumproduct? Background I am modeling an invoice, which can contain multiple items. The many-to-many relationship between the Invoice and Item models is handled through the InvoiceItem intermediary table. The total amount of the invoice—amount_invoiced—i...

How do I aggregate results from an Adjacency list using PHP's SPL

I've tried using nested sets, and they become very difficult to maintain when dealing with multiple trees and lots of other complications.. I'd like to give PHP's SPL library a stab at this (btw, we are PHP 5.3, MySQL 5.1). Given two datasets: The Groups: +-------+--------+---------------------+---------------+ | id | parent | Cate...

Real-time aggregation of files from multiple machines to one

I need a tool which gets a list of machine names and file wildcards. Then it connects to all these machines (SSH) and begins to monitor changes (appendings to the end) in each file matched by wildcards. New lines in each such file are saved to the local machine to the file with the same name. (This is a task of real-time log files colle...

Aggregation relationships and instantiating objects from database storage (vb)

I have a small application which allows users to create accounts and then award 'points' to each other. UserAccount is an object, and so is Point, and there is an aggregation relationship between them: each UserAccount has a member variable (PointHistory) which is a collection of Points. The Point object simply contains properties for w...

How do I use accepts_nested_attributes_for?

Editing my question for conciseness and to update what I've done: How do I model having multiple Addresses for a Company and assign a single Address to a Contact, and be able to assign them when creating or editing a Contact? I want to use nested attributes to be able to add an address at the time of creating a new contact. That addre...

Generic Aggregation of C++ Objects by Attribute When Attribute Name is Unknown at Runtime

I'm currently implementing a system with a number of class's representing objects such as client, business, product etc. Standard business logic. As one might expect each class has a number of standard attributes. I have a long list of essentially identical requirements such as: the ability to retrieve all business' whose industry is...

Data aggregation mongodb vs mysql

I am currently researching on a backend to use for a project with demanding data aggregation requirements. The main project requirements are the following. Store millions of records for each user. Users might have more than 1 million entries per year so even with 100 users we are talking about 100 million entries per year. Data aggreg...

Django aggregation - group by query using bins

Django 1.1.1 Models.py: class Datapoint(models.Model): parameter1 = models.FloatField() parameter2 = models.FloatField() I want to bin the values of parameter1 to the nearest integer (or other rounding), and then return the average of the two parameters for this bin. In SQL I would do the following: select round(parameter1,...

Composition, aggregation and DI

Aggregation: the object exists outside the other, is created outside, so it is passed as an argument (for example) to the construtor. Ex: People – car. The car is create in a different context and than becomes a person property. Composition: the object only exists, or only makes sense inside the other, as a part of the other. Ex: People...

WPF/MVVM: How can I use several CollectionView`s for aggregated entities ?

Hello, I have a Customer with Orders and those have products. Everything aggregated with collections of type ObservableCollection. All 3 collections are bound to a datagrid/combobox. I can only make the root collection (ObservableCollection Customers{ get;set;} ) passing to a CollectionView so I can move the current customer within t...

How do you get average of sums in SQL (multi-level aggregation)?

I have a simplified table xx as follows: rdate date rtime time rid integer rsub integer rval integer primary key on (rdate,rtime,rid,rsub) and I want to get the average (across all times) of the sums (across all ids) of the values. By way of a sample table, I have (with consecutive identical values blanked out for readabilit...

What code could be used as a string aggregator for Sybase? (Like Oracle's stragg)

In my travels in Oracle, the 'stragg' function, or 'String Aggregator' was life-saving when I had to create dynamic SQL queries on the fly. You can read up about it here: http://www.oratechinfo.co.uk/delimited_lists_to_collections.html The basic use of it was: select stragg(fruit) from food; fruit ----------- apple,pear,banana,strawb...

de-normalization, weighted aggregates for updated tables in MySQL

Dear all, this time I got a more general question. Should I use multiple views rather than stored procedures for weighted aggregation of data, if the original data is updated periodically? Basically I have a local MySQL database that is updated periodically by importing the same kind of data (tables) from a bigger transaction databas...

Design suggestions for real-time data aggregation?

I'm looking to build some data aggregation stuff in C#, and I'd like something akin to a real-time pivot table, or some sort of continuously updating SQL query, with support for select, sum, average, first, where, and group-by (where first is in the LINQ sense of "give me the first value"). For example, I might have a some sort of table...

UML diagrams question regarding composition/aggregation of Base class - does the Derived class need diamond link?

Hi. If, for example, I have the following requirements: 1. Dog is an Animal 2. Zoo has Animal(s) Do I still need the 2nd diamond connector (the lower one) as shown in the image below: https://docs.google.com/drawings/edit?id=1TlnDD8LrqPo-J9_gfHdGm6Y9BpeqC8N-c6Cnc9bPwko&hl=en&authkey=CNLq5bYB Thanks. ...

How to count in coredata (aggregation) ?

Hi all, I am learning core data and particularly working on aggregation. Current what I want to do : count the number of records from the table which is in to-many relationship with inverse relationship on some criteria. Currently I am doing this : NSExpression *ex = [NSExpression expressionForFunction:@"count:" ...