132k views
1 vote
Write an aggregate expression for the number of entries in the VendorName column, including null values - 1) COUNT(Invoice + Null) 2) SUM(VendorName) 3) COUNTIVendorName) 4) COUNT)

1 Answer

6 votes

Answer:

COUNT(*)

Step-by-step explanation:

COUNT (*) function is the function which returns numbers of the rows which satisfies WHERE clause of the SELECT statement.

There are the following examples to find that, how many rows in Vendor table have value "RAW" in the menu_code column:

=> SELECT COUNT(*) FROM Vendor WHERE menu_code = 'RAW';

User Dan Tuffery
by
5.1k points