Hi,
I'm new to Subsonic, I want to ask how to query with SUM?
I know how to query for where condition such as below:
Query qryCurOpcode = Station.CreateQuery()
.WHERE("PRODLINE=PIECERATE_prodline")
.AND("STATIONID=STNID")
.AND("SHIFT=PIECERATE_shift");
IDataReader rdrCurOpcode = qryCurOpcode.ExecuteReader();
while (rdrCurOpcode.Read())
{
PIECERATE_CurOpcode = rdrCurOpcode[Station.Columns.Curopcode].ToString();
}
but how to how to query with SUM?
Thanks! Halim