473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Query for an Auction

Hello,

I have an problem. I made a small auction using .asp and access2000
where the user bids and a table holds the following information;

table - bids

ID
auction_id - integer
usernumber - text
lot_no - integer
bid - currency
bidtime(mm/dd/yy hh:mm:ss) - date/time

There is a separate table for the auction lots

ID
auction_id - integer
lot_no - integer
description - text
minbid - currency
vendor - text

What I want is a query where all the following happens(selected from
specific auctionnumber):

1. All lots are selected whether there is a bid or not.
2. If no bids then "n/s" is put in bid column
3. Highest bid only is placed in bid column for multiple bids
4. For identical high bids, the earliest one is selected and a asterix
(*) is put to the right of the highest bid indicating tie bids

Here is what I have so far:

SELECT bids.auction_id, bids.lot_no, Max(bids.bid) AS MaxOfbid
FROM bids
GROUP BY bids.auction_id, bids.lot_no
HAVING (((bids.auction_id)=[Enter Auction No]));

The problem is that this does not give me all lots, does not put "n/s"
in unsold lots, and does not check for tie bids and place an asterix
(*) beside the tie bid amount.

Any help would be appreciated.

worldbadger

Jul 16 '06 #1
3 1599
Hi Worldbadger,

Think is that I would have my doubts about using an access application
with a front end application that can have potentially unlimited users.

Access can only handle, at the very most (and I am open to correction
if anybody has other opinions) 20 users.

Good luck

Nick

worldbadger wrote:
Hello,

I have an problem. I made a small auction using .asp and access2000
where the user bids and a table holds the following information;

table - bids

ID
auction_id - integer
usernumber - text
lot_no - integer
bid - currency
bidtime(mm/dd/yy hh:mm:ss) - date/time

There is a separate table for the auction lots

ID
auction_id - integer
lot_no - integer
description - text
minbid - currency
vendor - text

What I want is a query where all the following happens(selected from
specific auctionnumber):

1. All lots are selected whether there is a bid or not.
2. If no bids then "n/s" is put in bid column
3. Highest bid only is placed in bid column for multiple bids
4. For identical high bids, the earliest one is selected and a asterix
(*) is put to the right of the highest bid indicating tie bids

Here is what I have so far:

SELECT bids.auction_id, bids.lot_no, Max(bids.bid) AS MaxOfbid
FROM bids
GROUP BY bids.auction_id, bids.lot_no
HAVING (((bids.auction_id)=[Enter Auction No]));

The problem is that this does not give me all lots, does not put "n/s"
in unsold lots, and does not check for tie bids and place an asterix
(*) beside the tie bid amount.

Any help would be appreciated.

worldbadger
Jul 17 '06 #2
"Nick 'The Database Guy'" wrote
Think is that I would have my doubts
about using an access application
with a front end application that can
have potentially unlimited users.

Access can only handle, at the very most
(and I am open to correction
if anybody has other opinions) 20 users.
There is no such limitation in Access/Jet -- the physical limitation is 255
concurrent users, but not many people will contend that you can actually
support 255 users. However, there are many reports of significantly more
than 20 concurrent users. How many users can be supported with good response
and performance depends on a number of factors, and the factors are
different if you are using a Jet database with .asp code, as this poster
described.

Depending on the way the website is coded, it is possible that no matter how
many people are using the website, there will only be a single user of the
Jet database (see other threads, re: Access vs. Jet -- you are using a Jet
database). If you expect heavy traffic, and many people to be using your
site concurrently, I'd suggest you use a server DB, instead of Access, but
if it will only have a modest number (in the tens, say) of concurrent users,
Access may serve your purposes.

If I were doing in Access what you describe, there'd be multiple Queries,
with one or more being data source for the final Query. As you will be, no
doubt, want one Query with subqueries, I'll leave that exercise to someone
else who enjoys writing SQL from scratch.

Or as an alternative, get a copy of Access, build your basic Queries in the
Query Builder, and copy/merge the SQL.

Larry Linson
Microsoft Access MVP


Jul 17 '06 #3
Nick 'The Database Guy' wrote:
Hi Worldbadger,

Think is that I would have my doubts about using an access application
with a front end application that can have potentially unlimited users.

Access can only handle, at the very most (and I am open to correction
if anybody has other opinions) 20 users.
ASPs can't maintain a connection [and there are no pills for that].
They connect for a few millionths of a second. They get some data. They
write some html. They send the html to client's browser. They close.
Any connection they may have had is gone forever, even if the ASP
writer didn't explicitly close it.
The cleint may modify delete or add something in the html form. Then
it's submitted to an asp file. The ASP file connects for a few
millionths of a second to effect the changes. It may write and send
some more html. Then it closes. The connection is history.
There are no Concurrent Users with ASP, or it's just a freak if there
are.
A lotta people can use an ASP page. Probably the Web Server is going to
choke before the Access DB does.

Jul 17 '06 #4

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

Similar topics

6
by: worldbadger | last post by:
Hello, Similar to my last post I have another SQL problem. If you are running an auction and you have the following fields; lot_no bidder_no bid bid_time bid_date
1
by: Davef | last post by:
I have to make a Auction progam for a client. Does anyone know some free basic code to one to get me started? -- ______________________ David Fetrow HelixPoint LLC....
0
by: Ravi | last post by:
Hi, I am currently working on a web auctioning project using .NET technologies as part of my University dissertation. I have gathered a fair amount of information through my research on the...
0
by: Ravi Puri | last post by:
Hi, I am currently working on a web auctioning project using .NET technologies as part of my University dissertation. I have gathered a fair amount of information through my research on the...
3
by: tbone | last post by:
I'd like to have a way to add bidders who have won at least $1000 in the last auction to my mailing list. I'm having trouble with the update step. To find bidders who have won at least $1000 in...
2
by: jon121970 | last post by:
I'm new here.. I am hoping to get some Professional Advice. I want to start my own online Auction. I anticipate it will grow into a high volume/high traffic online auction. I need some...
0
by: ajauctionpro | last post by:
AJ Auction software is the latest and most advanced Auction Script to set up an online auction site with excellent navigation features. They help you build your own online Auction. Auction Script...
0
by: ajauctionpro | last post by:
AJ Auction software is the latest and most advanced Auction Script to set up an online auction site with excellent navigation features. They help you build your own online Auction. Auction Script...
2
by: buzzy18 | last post by:
Hi all, I am using CakePHP to develop a bidding site. I have created a controller called 'daemons' and it performs 4 different tasks which I need to run continuously on the server every minute. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.