473,503 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

When DMAX and DMIN aren't enough...

Greetings,

I have a query that returns varying prices for the same item in the
following manner.

Item1 Price1
Item1 Price2
Item1 Price3
Item1 Price4

Item2 Price1
Item2 Price2
Item2 Price3
Item2 Price4

How can I get the query to display as

Item1 Price1 Price2 Price3 Price4
Item2 Price1 Price2 Price3 Price4

I tried the crosstab without success as there too many different
prices. I can use DMAX and DMIN for the highest and lowest values but
how do I get the values in between?

Thanks!

Jun 8 '07 #1
4 2497
SELECT
item_name,
max(price),
min(price)
FROM
QueryYouMentioned

Cheers,
Jason Lepack

On Jun 8, 4:02 pm, Ed Marzan <ducojan...@aol.comwrote:
Greetings,

I have a query that returns varying prices for the same item in the
following manner.

Item1 Price1
Item1 Price2
Item1 Price3
Item1 Price4

Item2 Price1
Item2 Price2
Item2 Price3
Item2 Price4

How can I get the query to display as

Item1 Price1 Price2 Price3 Price4
Item2 Price1 Price2 Price3 Price4

I tried the crosstab without success as there too many different
prices. I can use DMAX and DMIN for the highest and lowest values but
how do I get the values in between?

Thanks!

Jun 8 '07 #2
Ed Marzan <du********@aol.comwrote in
news:11**********************@e65g2000hsc.googlegr oups.com:
Greetings,

I have a query that returns varying prices for the same item
in the following manner.

Item1 Price1
Item1 Price2
Item1 Price3
Item1 Price4

Item2 Price1
Item2 Price2
Item2 Price3
Item2 Price4

How can I get the query to display as

Item1 Price1 Price2 Price3 Price4
Item2 Price1 Price2 Price3 Price4

I tried the crosstab without success as there too many
different prices. I can use DMAX and DMIN for the highest and
lowest values but how do I get the values in between?

Thanks!
use the function fConcatenateChild() that you can find at many
places on the web.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 8 '07 #3
Thanks for the responses.

I believe the DMAX and DMIN would provide the MAX and MIN Values but
not the values in between unless one could figure a slick query that
eliminates the first level of DMAX and DMIN. Perhaps I need a DNEXT()
Function!!

I am aware of the fConcatChild() function, but now that you've
mentioned it I'll need a function to parse the values of the resulting
string to get them into the proper location in the query grid. I
should be able to come up with something. I'll let you know.

Regards

On Jun 8, 5:43 pm, Bob Quintal <rquin...@sPAmpatico.cawrote:
Ed Marzan <ducojan...@aol.comwrote innews:11**********************@e65g2000hsc.google groups.com:


Greetings,
I have a query that returns varying prices for the same item
in the following manner.
Item1 Price1
Item1 Price2
Item1 Price3
Item1 Price4
Item2 Price1
Item2 Price2
Item2 Price3
Item2 Price4
How can I get the query to display as
Item1 Price1 Price2 Price3 Price4
Item2 Price1 Price2 Price3 Price4
I tried the crosstab without success as there too many
different prices. I can use DMAX and DMIN for the highest and
lowest values but how do I get the values in between?
Thanks!

use the function fConcatenateChild() that you can find at many
places on the web.

--
Bob Quintal


Jun 11 '07 #4
Ed Marzan <du********@aol.comwrote in
news:11**********************@u2g2000hsc.googlegro ups.com:
Thanks for the responses.

I believe the DMAX and DMIN would provide the MAX and MIN
Values but not the values in between unless one could figure a
slick query that eliminates the first level of DMAX and DMIN.
Perhaps I need a DNEXT() Function!!

I am aware of the fConcatChild() function, but now that you've
mentioned it I'll need a function to parse the values of the
resulting string to get them into the proper location in the
query grid. I should be able to come up with something. I'll
let you know.
If you setup the fConcatChild() correctly it will place the data
the way you need it, whatever that way is. It will work calling
a query; that query can be designed to present the data in
whatever order you desire.
On Jun 8, 5:43 pm, Bob Quintal <rquin...@sPAmpatico.cawrote:
>Ed Marzan <ducojan...@aol.comwrote
innews:11**********************@e65g2000hsc.googl egroups.com:


Greetings,
I have a query that returns varying prices for the same
item in the following manner.
Item1 Price1
Item1 Price2
Item1 Price3
Item1 Price4
Item2 Price1
Item2 Price2
Item2 Price3
Item2 Price4
How can I get the query to display as
Item1 Price1 Price2 Price3 Price4
Item2 Price1 Price2 Price3 Price4
I tried the crosstab without success as there too many
different prices. I can use DMAX and DMIN for the highest
and lowest values but how do I get the values in between?
Thanks!

use the function fConcatenateChild() that you can find at
many places on the web.

--
Bob Quintal



--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 11 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4570
by: Rich Bernat | last post by:
We have vending machines which are serviced by emptying the money inside the machine and placing it into numbered bags. Each bag is numbered independently of the machines. Each machine has a...
1
1986
by: turtle | last post by:
I need to write an update query that will return the earliest date to a table based on the data of a different table. I have a labor table that looks like this TableLabor JobCode WorkORder ...
8
2830
by: Gompie | last post by:
Why does the function DMin("Abs(!- #" & & "#)";"SomeTable") not work properly with datefields. It always finds the closest difference with a later date only, if an earlier date in the table is...
0
1569
by: N. Demos | last post by:
Hello, I'm having problems accessing a complex XML child node (latitude & longitude), and passing it to a function when the XML file has been read into a DataSet. Specifically, the returned object...
4
4572
by: jacc14 | last post by:
Hi This is the second query I have had with Dmax. The first one I resolved as it was in a form and by using DMAX everytime I click for new record it gave a new order number ie dmax("ordernumber",...
2
5638
by: joeyrhyulz | last post by:
Hi, I'm trying to make a very simple update statement (in Oracle) in jet sql that seems much more difficult than it should be. The root of my problem is that I'm trying to update a field on a...
7
1645
jmoudy77
by: jmoudy77 | last post by:
I've got some vb code that gives me a "previous operation cancelled" error when I try and open the form as a subform in a tabbed control. When I open the form itself I don't get the error. Does...
1
4760
by: nrtyme | last post by:
Hello, I need to add several new records to Table2 from Table1. Table2 contains a field called that needs to be the previous maximum value of incremented by 1. Below is my code but i keep...
7
2714
by: kstevens | last post by:
Lets say i have 2 tables (ok i really do). One is tblShipping, the other is tblShippingDetails. I need to run a query to find all of the maximum values of a qty backordered, so that i can find out...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.