Ayudenme a entender
Publicado por Consuelo (20 intervenciones) el 10/05/2006 22:48:23
Alguien puede decirme por favor como usar esta función:
--------------------------------------------------------------------------------------
Avg
Returns the average value of a numeric expression evaluated over a set.
Syntax
Avg(«Set»[, «Numeric Expression»])
Remarks
This function requires an implicit count of the number of cells, not including empty cells. In order to force the inclusion of empty cells, the application must use the CoalesceEmpty function. For more information about empty cells, see the OLE DB documentation.
Example
The following function returns 2000 if respective Sales are 1000, 2000, and 3000:
Avg({USA, Canada, Mexico}, Sales)
---------------------------------------------------------------------------------
Cómo verán la ayuda de sql; pues no ayuda. No entiendo a que se refiere con SET, y luego con el ejemplo que se pone ahí no si USA, Canada y Mexico con columnas o valores o que. Me podrían explicar por favor.
--------------------------------------------------------------------------------------
Avg
Returns the average value of a numeric expression evaluated over a set.
Syntax
Avg(«Set»[, «Numeric Expression»])
Remarks
This function requires an implicit count of the number of cells, not including empty cells. In order to force the inclusion of empty cells, the application must use the CoalesceEmpty function. For more information about empty cells, see the OLE DB documentation.
Example
The following function returns 2000 if respective Sales are 1000, 2000, and 3000:
Avg({USA, Canada, Mexico}, Sales)
---------------------------------------------------------------------------------
Cómo verán la ayuda de sql; pues no ayuda. No entiendo a que se refiere con SET, y luego con el ejemplo que se pone ahí no si USA, Canada y Mexico con columnas o valores o que. Me podrían explicar por favor.
Valora esta pregunta


0