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 May 11th, 2005, 03:08 AM
Authorized User
 
Join Date: Mar 2005
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trouble sorting relational data

My relational data is stored in a MySQL version 4, which doens't support subqueries.

I want to display my relational data in a table which includes columns that has really tricky queries.

If I could have used subqueries, I would only have to use one query for the entire table data.

I have solved the problem by using different recordsets, and displaying for an example the first three columns from one recordset, next two from another recordset and the last column from the third recordset.

The table is always rectangular and could look like this:

| Id | Name | Genre | Number of articles | Total number of replies | Mean article length |

Now to the Question:

How can I sort this table on each column? Say I sort by Name ASC, could I use the ID column to sort the "Number of articles" column?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Relational SQL Data to XML - Vet SQL/ASP - New XML JimiTheJett XML 1 December 4th, 2008 06:06 PM
Creating a local cube with relational data source loydon SQL Server 2000 1 August 31st, 2004 12:16 PM
Creating a local cube with relational data source loydon Oracle 1 August 31st, 2004 12:16 PM
Creating a local cube with relational data source loydon Access 0 August 31st, 2004 07:27 AM
Sorting Data seidici Excel VBA 2 May 21st, 2004 02:24 PM





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