Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce 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 16th, 2004, 01:19 PM
Registered User
 
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default formatting a classifieds section

HI
I have a products table, which has a foreign key reference from a markets table.

Markets table is like this
1. Market (PK) the market column is the primary key
2. Description

and a product table with a one to many relationship
1. Product (PK) primary key
2. Market(Fk) foreign key
3. Product description

Now i want to extract DISTINCT from the products table, and all values from the products table, or summary values. e.g 3 of the products.

markets category

electronics sonyJ70
electronics toshiba3000
computers dell navasion
computers compaq30000
computers Compaq500
books At the speed of light -Bill gates
etc


I have a repeated region on my site. That repeats the products table. But what i get is this a repeat of both the products and markets. I only want DISTINCT markets repeated and all products repeated, or summary of 3 products. As below


e.g.

ELECTRONICS
sonyj70, toshiba3000 etc

COMPUTERS
dell navasion, compaq3000, compaq500

BOOKS
at the speed of light

how do i loop through this collection to format it the way i want, e.g. present it to be in the format as in http://shopping.yahoo.com

thanks
afrika







Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a CDATA section; add nodeset to CDATA section kssudhish XSLT 3 January 3rd, 2008 07:13 AM
formatting a classifieds section. Part 2 afrika_people Classic ASP Databases 1 August 13th, 2004 04:40 PM
Section formatting cankalu Crystal Reports 1 May 31st, 2004 07:28 PM
Formatting Report Detail Section rickf Access 3 February 3rd, 2004 07:15 PM





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