I am new to PostgreSQL. I am watching the tutirial from FreeCodeCamp by following their examples:
https://www.youtube.com/watch?v=qw--VYLpxG4&t=7241s&ab_channel=freeCodeCamp.org
But instead of PostgreSQL I use the Server-based platform (PhpPgAdmin).
The problem is, that neither SUM nor AVG and many others aggregate functions cannot be executed.
The problem seem to be the same constantly:
"Function ... does not exist"
No function matches the given name and argument types. You might need to add explicit type casts.
I found some similar problem here:
No function matches the given name and argument types
but it's related to more complicated example.
What I guess, the PhpPgAdmin treats all my numbers as the strings and here is the problem.
I tried this example:
How do I convert an integer to string as part of a PostgreSQL query?
but it returns the other error:
operator does not exist: character varying = bigint
I think the $ before the price is not a problem as the MIN and MAX functions work.
What is the reason behind it?