Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 August 23rd, 2004, 03:27 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiple records!!!!

Hi everyone,

First of all, thx to all of you out there for providing so much help to other people.

I have been struggling with this problem for the past few days and I don't think I can get it resolved myself. I need some help from you.

I am required to build a report and this is what my report looks like at this point:

ID OrderNum Status

Student1 100 Completed
Student1 200 Processing
Student1 300 Ignore

Student2 100 Completed
Student2 400 Working
Student2 200 NotAvailabe

Student3 600 Processing
Student3 200 Working
Student3 300 Working


Student4 400 Completed
Student4 200 Cancelled
Student4 300 Skip


The new report should look like this:

Student1 200 Processing
Student2 400 Working
Student3 200 Working
Student4 400 Completed


In other words, here are the conditions/requirements for the new report:

1) If a record has status = "Processing" then
         display that record(Student1)
2) If a record has status = "Working" then
         display the record that record (student2)
3) If a record has status = "Processing" and "Working" then
         display either Processing or Working, whatever
         has the lowest OrderNum (Student3)
4) If a record is not "Processing" nor "Working" then
         display the record that has max OrderNum (Student4)

The hard part is that each student has multiple status on their products....

Any input is greatly appreciated.
Vicki





 
Old August 24th, 2004, 04:53 AM
Authorized User
 
Join Date: Aug 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sinapra Send a message via MSN to sinapra Send a message via Yahoo to sinapra
Default

may be select......... case would help

regards


sinapra





Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenate multiple records into one Raman Pahwa SQL Server ASP 1 August 19th, 2008 02:57 PM
adding multiple records Vince_421 VB Databases Basics 4 February 28th, 2007 07:22 AM
Update Multiple Records cancer10 Classic ASP Databases 0 October 25th, 2006 01:01 AM
update multiple records mateenmohd Classic ASP Basics 4 June 28th, 2004 03:38 AM
Best way to insert multiple records koo9 ADO.NET 2 June 28th, 2003 08:37 PM





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