[AccessD] Partition Function A97

Jim DeMarco Jdemarco at hshhp.org
Tue Feb 11 06:53:00 CST 2003


Thanks Mike.  I do have it working in A97 and A2K just not in a demo app I was putting together.  I have to start testing references from my original mdb where it works I guess.

Jim DeMarco



-----Original Message-----
From: Michael R Mattys [mailto:michael.mattys at adelphia.net]
Sent: Tuesday, February 11, 2003 12:20 AM
To: accessd at databaseadvisors.com
Subject: Re: [AccessD] Partition Function A97


Hi Jim,

I did this a couple of years ago, so bear with me...
In a 97 db I have the following and it works fast and clean:

SELECT DISTINCTROW Customers.Freight, Partition([freight],0,500,50) AS
Range,
Count([Range]) AS Count
FROM Customers
GROUP BY Customers.Freight, Partition([freight],0,500,50);

I believe you must get the Freight column first in order to do any
calculation on it.

Mike Mattys
Mattys Consulting

----- Original Message -----
From: "Jim DeMarco" <Jdemarco at hshhp.org>
To: "AccessD (E-mail)" <AccessD at databaseadvisors.com>
Sent: Monday, February 10, 2003 2:40 PM
Subject: [AccessD] Partition Function A97


> Shouldn't the following SQL work in A97?  I can get the Partition function
working in a loop in a test module but not when I try to run it against a
table.
> I'm running this against the Northwind Orders table to test and get "This
expression is typed incorrectly or is too complex..." error anytime I try to
use Partition in a query.  Works fine in A2K though.
>
> <sql>
> SELECT DISTINCTROW Partition([Freight],0,1000,50) AS Range,
Count(Orders.Freight) AS Count
> FROM Orders
> GROUP BY Partition([Freight],0,1000,50);
> </sql>
>
>
> TIA,
>
> Jim DeMarco
> Director of Product Development
> HealthSource/Hudson Health Plan
>
>
>
>
****************************************************************************
*******
> "This electronic message is intended to be for the use only of the named
recipient, and may contain information from HealthSource/Hudson Health Plan
(HS/HHP) that is confidential or privileged.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or use of the contents of this message is strictly prohibited.
If you have received this message in error or are not the named recipient,
please notify us immediately, either by contacting the sender at the
electronic mail address noted above or calling HS/HHP at (914) 631-1611. If
you are not the intended recipient, please do not forward this email to
anyone, and delete and destroy all copies of this message.  Thank You".
>
****************************************************************************
*******
>
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************




More information about the AccessD mailing list