I have to do a SQL statement to select for each day the min value from a column and when the value Order is the same the Max value from percentage.
Example:
Date Order Percentage
-------------------------------------------
01-03-2016 1 0
01-03-2016 2 20
02-03-2016 1 0
02-03-2016 2 20
03-03-2016 2 50
03-03-2016 2 20
The result that I want is something like:
Date Order Percentage
-------------------------------------------
01-03-2016 1 0
02-03-2016 1 0
03-03-2016 2 50