Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 31st, 2008, 10:40 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO Data Shape - Filter aggregate

Using the standard syntax of a Hierarchy with Aggregate eg.

Code:
SHAPE  (select * from orders}
   APPEND ({select od.orderid, od.UnitPrice * od.quantity as ExtendedPrice
            from [order details] As od}
          RELATE orderid TO orderid) As rsDetails,
          SUM(ExtendedPrice) AS OrderTotal
Can anyone tell me if there is a way to filter the parent set based on the value of the aggregate field?

ie. WHERE SUM(ExtendedPrice) > 100

Without using the COMPUTE syntax?







Similar Threads
Thread Thread Starter Forum Replies Last Post
ado.recorset.filter "like" trouble hamid1345 VB Databases Basics 2 April 14th, 2017 03:21 PM
ado shape syntax sunpalozzi SQL Language 0 November 2nd, 2006 04:43 PM
Rotating shape in VBA (not center of shape) Piblon Excel VBA 3 April 13th, 2006 04:04 AM
ADO Filter: Case Insensitive moshepack All Other Wrox Books 0 April 29th, 2004 08:51 AM
Data Shape + Temp Tables BAHill SQL Server ASP 2 November 10th, 2003 04:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.