I have a table with a column called Type, which can have three values (name1, name2, name3).
Can I write a query which first returns the records with Type = name1 and then the rows with values name2 and name3 with a WHERE clause, so I can filter them by CreationDate for instance?
That means, return for day 01/01/2000:
row 'name1'
row 'name1'
(rest of the rows)
Id Type CreationDate
1, 'name1', '2000/01/01'
8, 'name1', '2000/01/01'
18, 'name3', '2000/01/01'
82, 'name2', '2000/01/01'
11, 'name2', '2000/01/01'
12, 'name3', '2000/01/01'
2, 'name1', '2000/01/02'
4, 'name1', '2000/01/02'
98, 'name2', '2000/01/02'
For every day, get records of type 'name1' first and then the rest of the types with just no order.
Thank you! Udo.