I have the following query string :
$query_Recordset2 = sprintf("SELECT DISTINCT ctYear, o, F1, ctComp, ctpYear, ctLvl,ctpup, ctTrainers, ctNotes FROM mainsheet WHERE F1 = %s", GetSQLValueString($colname_Recordset2, "int"));
produced by Dreamweaver CS3, but I cannot get it to do what I need.
I have a list of dates eg 2008/9 ,and a list of months but dont want the year duplicated.
This is what I have:
YearMonth
2007/8September 07
2007/8October 07
2007/8November 07
2007/8January 08
2007/8August 08
2008/9January 09
This is what I need:
YearMonth
2007/8September 07
[/td]October 07
November 07
January 08
2008/9January 09
But the DISTINCT command wont work