Skip to content
Advertisement

SQL Query, What have I done wrong? I am fairly new to mySQL

Solution problem

  • solution uploaded

Advertisement

Answer

You have to tell the count() function what to count. You can insert an individual column, or * for all of it etc. But you have to count something.

This is a fiddle, showing how it works: https://www.db-fiddle.com/f/dbPnE4BXv8oRRkQY4WQs8v/1

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