SQL-for-Data-Analytics
SQL-for-Data-Analytics copied to clipboard
Lesson 8 Activity 15
This code didn't work when I ran it.
Is it because it is written as?:
sqlda$# END; $channel_avg$
and should be?:
sqlda$# END; $sales_avg$
also, it calls the wrong function name at the end:
Written as:
sqlda=# SELECT avg_sales_since('2013-04-12', '2014-04-12')
Should be:
sqlda=# SELECT avg_sales_window('2013-04-12', '2014-04-12');