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 18th, 2003, 06:14 PM
Authorized User
 
Join Date: Aug 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default Complex HTML table (at least for me)

In simple terms I have 3 tables: tblStudents, tblAssignments, and tblAssignmentScores where tblAssignmentScores stores 3 fields tblStudents_keyfield, tblAssignments_keyfield and no_Score. To simplify my scenario I've eliminated some criteria tables, however here's the gist of my problem. I want to build an HTML table that has tblStudent.FirstName&" "&tblStudentLastName data as row headers. Then I want that same table to have tblAssignments.Description to be the column headers (which shrink and grow as assignments are manipulated), and last but not least I want the students scores to populate the appropriate intersections in the table.

I'm stumped, I can create a table that shows all students and a given assignment or all assignments for a given student, but I need a printable table that shows all students and all assignments and each students scores. Can anyone help me?

 
Old August 19th, 2003, 03:21 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can't you just use a SQL JOIN to get a recordset containing the data from all 3 tables, then output that recordset to an HTML table?





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to upload complex xml file to 1 db table vangogh XML 3 October 8th, 2007 04:43 AM
HTML Table. rupen HTML Code Clinic 5 March 9th, 2006 08:51 PM
HTML Table p2pMember ASP.NET 1.0 and 1.1 Basics 1 November 9th, 2005 02:51 PM
Complex Table (at least for me) lcsgeek Classic ASP Basics 1 August 19th, 2003 02:53 PM
Complex table (at least for me) lcsgeek Classic ASP Professional 0 August 19th, 2003 10:13 AM





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