Changes between Initial Version and Version 3 of Ticket #29976
- Timestamp:
- Nov 22, 2018, 7:31:23 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29976
- Property Severity Release blocker → Normal
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #29976 – Description
initial v3 1 I have two models like this 1 I have two models like this: 2 {{{ 2 3 class Story(models.Model): 3 4 name = models.TextField(db_column='NAME') # Field name made lowercase. … … 8 9 status = models.TextField(db_column='STATUS') # Field name made lowercase. 9 10 10 11 }}} 11 12 I would like to get count of Unique status from above two tables 12 13 13 Query: Select new_table.status, Count(new_table.name) from (select status, name from Story Union select status, name from Bug) new_table group by new_table.status14 Query: `Select new_table.status, Count(new_table.name) from (select status, name from Story Union select status, name from Bug) new_table group by new_table.status`