GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltactivedata.com — COUNT() Using VoltDBCOUNT()COUNT() — Returns the number of rows selected containing the specified column. SynopsisCOUNT( column-expression ) DescriptionThe COUNT() function returns the number of rows selected for the specified column. Since the actual value of the
column is not used to calculate the count, you can use the asterisk (*) as a wildcard for any column. For example the query
The one case where the column name is significant is if you use the DISTINCT clause to constrain the selection
expression. For example, ExamplesThe following example returns the number of rows where the product name starts with the captial letter A. SELECT COUNT(*) FROM product_list
WHERE product_name LIKE 'A%';The next example returns the total number of unique product categories in the product list. SELECT COUNT(DISTINCT category) FROM product_list; |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |