Ich bin neu bei Subsonic, ich möchte fragen, wie mit SUM Abfrage?Abfrage mit SUM mit SubSonic
Ich weiß, wie für wo Zustand wie unten abfragen:
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();
}
aber wie man, wie die Abfrage mit SUM?
Danke! Halim