« first day (641 days earlier)      last day (3 days later) » 

10:55
0
Q: Avoid indexing results from a SELECT statement

GianlucaWhat is the best way to avoid situations where you need to hard code the index of the item in a list, like the following example? # retrieve some data from sql database raw_data = ... # create ItemPrior objects for each row of the results priors = {} for row in raw_data: priors[row[3]] = I...

11:19
0
Q: how to design sql tables for event with two types of participants?

test.testI have entities: Event, Person, Team and Character. One Event can has persons and teams as participants. Participants are ordered. Each participant can has many characters. I am going to use this design: tbl_event_participants ( id serial, order integer ); tbl_event_team_participants ...


« first day (641 days earlier)      last day (3 days later) »