M
Mitch_A
I setup a website for my softball team to use which includes a database that
keeps statistics.
Ive got everything working just fine but my queries for batting average show
the decimal positions incorrectly. I want them to show up as .389 not
..38943343243. Ive researched SQL for weeks now and I can find the
NUMERIC(4,3) statement but I cant seem to get it into the working query.
Would the ROUND function work?
Here is the query
SELECT sum(Hits)/(sum(ABs)-sum(Walks))
FROM Results
Can someone PLEASE show me where it goes?
TIA
Mitch
keeps statistics.
Ive got everything working just fine but my queries for batting average show
the decimal positions incorrectly. I want them to show up as .389 not
..38943343243. Ive researched SQL for weeks now and I can find the
NUMERIC(4,3) statement but I cant seem to get it into the working query.
Would the ROUND function work?
Here is the query
SELECT sum(Hits)/(sum(ABs)-sum(Walks))
FROM Results
Can someone PLEASE show me where it goes?
TIA
Mitch