GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • V4.x Documentation
  • Contact
  • Privacy Statement
  • Contributor License Agreement
  • Software License Agreement
  • Trademarks

This view

  • Original page
  • New address

GeezerVison is showing docs.voltdb.com — QUARTER()

  • VoltDB Home
  • Forums
  • V4.x Books
    • VoltDB Tutorial
    • Using VoltDB
    • VoltDB Performance Guide
    • VoltDB Planning Guide
    • VoltDB Administrator's Guide
  • Current docs ▶
QUARTER()

Documentation

VoltDB Home » Documentation » Using VoltDB
< previoustable of contentsnext >

QUARTER()

QUARTER() — Returns the quarter of the year as an integer value

Synopsis

QUARTER( timestamp-value )

Description

The QUARTER() function returns an integer value between 1 and 4 representing the quarter of the year in a TIMESTAMP value. The QUARTER() function produces the same result as using the QUARTER keyword with the EXTRACT() function.

Examples

The following example uses the QUARTER() and YEAR() functions to group and sort records containing a timestamp.

SELECT year(starttime), quarter(starttime), 
    count(*) as eventsperquarter
    FROM event
    GROUP BY year(starttime), quarter(starttime) 
    ORDER BY year(starttime), quarter(starttime);
< previoustable of contentsnext >
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.