Instruction
OK, it's time to review what we've learned in this part.
COUNT(*)counts the number of all rows.COUNT(column1)counts the number of rows wherecolumn1is notNULL.COUNTcan be used to count non-NULLexpressions.- Avoid
COUNT(*)withLEFT JOINs. DISTINCTonly takes into account distinct values.AVG,SUM,MAXandMINignoreNULLs, butCOUNTtakes them into account when counting the number of rows.- You can use
COALESCE(x,y)to replace x with y when x isNULL. For example, you can replaceNULLs with 0. - You can use
AVG,SUM,MINorMAXwithDISTINCT. - You can use
ROUNDto round the score obtained withAVG.
All right! Are you ready for some practice?
Exercise
Click to start our practice.



