My servers DB is using MySQL ver4.1.10.
I need to use a query in the type CREATE VIEW
CREATE VIEW currentCostOfStock AS
SELECT P.partName, P.partNo, P.manufacturer, S.vehicleType, S.years, S.price, S.stockLevel, S.price * S.stockLevel AS productCost, SUM productCost AS stockCost
FROM Parts...
I have come stuck with averaging a column with type of Time.
I know there is a function AVG() that I can use to filter the average of a column, however, this brings back an integer.
Is there any way to return the average in time format (IE 00:00:00)?
BACKGROUND INFO:
SELECT `estimatedTime`...
I have come stuck with averaging a column with type of Time.
I know there is a function AVG() that I can use to filter the average of a column, however, this brings back an integer.
Is there any way to return the average in time format (IE 00:00:00)?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.