W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2009

GROUP BY expressions

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Fri, 25 Sep 2009 15:38:08 +0000
To: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-ID: <B6CF1054FDC8B845BF93A6645D19BEA3693E188791@GVW1118EXC.americas.hpqcorp.net>

Steve and I had a quick chat on IRC about GROUP BY and expressions.

The details to be sorted out but the general direction is allowing expressions in GROUP BY.

Example: (not fixed design):

  SELECT ?productId ?cost
  { . . .
  GROUP BY ?productId (?num * ?price AS ?cost)
  HAVING (?cost > 10 )

which has a named expression for the grouping which is used in the HAVING.

The GROUP BY clause and the SELECT clause will have the same syntax for the variable and expression list and so depends on what we choose.  


  Hewlett-Packard Limited
  Registered Office: Cain Road, Bracknell, Berks RG12 1HN
  Registered No: 690597 England

Received on Friday, 25 September 2009 15:40:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:57 UTC