So I need to manipulate some data in a DB. I'm executing a Select statement that grabs me data that looks like this:
UserID | Value1 | Value2 | ...
123 | A | ...
444 | D | ...
123 | C | ...
666 | R | ...
What I want to do, is create a report with this data. What you see is the result of a join on a few tables.
I'm new to Python, but not new to DB's. I know in C# I can get back a List of objects representing each row. I'm sure Python does something similiar. However, then I'd have to go in and maybe hash each record and then store the values in a List or something so I don't create a report that says
123, A, ... (report 1)
123, C, ... (report 2).
I want to just grab 123, A/C, ... (the '...' data is different as well). And create 1 report.
In SQL I can't really do that. I guess this is more just parsing through/grouping data in Python. I know there's linq as well in C# for something like this.
This is with Django for what it's worth.