Skip to content
Advertisement

Average value for Money Datatype

The following is the “pc” table which contains details about pc.

Now I want to take the average value of price. So tried the following way. But it produce error.

So, what is the way to get the average value of the price column which is in money datatype.

Advertisement

Answer

or

As per PostgreSQL 8 .4’s Monetary Types

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement