Hi!
I have a table like this:
name | type | date
xpto , 1 , 10-10-2006
xpto , 2 , 15-10-2006
xpto , 2 , 16-10-2006
xpto , 1 , 08-10-2006
xpto , 2 , 12-10-2006
xpto , 2 , 11-10-2006
mark , 1 , 10-10-2006
mark , 2 , 15-10-2006
mark , 2 , 16-10-2006
mark , 1 , 13-10-2006
mark , 2 , 20-10-2006
mark , 2 , 16-10-2006
I need the results like:
(where date type 1 is -> (max date) of xpto of type 1)
(where date type 2 is -> (max date) of xpto of type 2)
...
Name | date type 1 | date type 2
-------------------------------------------------------
xpto | 10-10-2006 | 16-10-2006
Mark | 13-10-2006 | 20-10-2006
anyone can help me please?
thanks
I have a table like this:
name | type | date
xpto , 1 , 10-10-2006
xpto , 2 , 15-10-2006
xpto , 2 , 16-10-2006
xpto , 1 , 08-10-2006
xpto , 2 , 12-10-2006
xpto , 2 , 11-10-2006
mark , 1 , 10-10-2006
mark , 2 , 15-10-2006
mark , 2 , 16-10-2006
mark , 1 , 13-10-2006
mark , 2 , 20-10-2006
mark , 2 , 16-10-2006
I need the results like:
(where date type 1 is -> (max date) of xpto of type 1)
(where date type 2 is -> (max date) of xpto of type 2)
...
Name | date type 1 | date type 2
-------------------------------------------------------
xpto | 10-10-2006 | 16-10-2006
Mark | 13-10-2006 | 20-10-2006
anyone can help me please?
thanks
Comment