NinjaTurtle
08-06-2002, 05:59 AM
dear
i have 2 tables: Category & Product
the database structure is:
Category
=======
categoryID
categoryName
Product
=======
categoryID
productID
productName
*categoryID in Product table is link to Category table.
And now i want the record displayed by category, the format is:
categoryID - categoryName
------------------------------------
Product Name
Product Name
Product Name
Product Name
example:
C0001 - Computer:
-------------------------
CPU
Harddisk
Mouse
C0002 - Fruit:
------------------------
Watermelon
Apple
Orange
Durian
C0003 - Car:
------------------------
no record.
P/S : I'm using ASP and SQL Server 2000.... how?
i have 2 tables: Category & Product
the database structure is:
Category
=======
categoryID
categoryName
Product
=======
categoryID
productID
productName
*categoryID in Product table is link to Category table.
And now i want the record displayed by category, the format is:
categoryID - categoryName
------------------------------------
Product Name
Product Name
Product Name
Product Name
example:
C0001 - Computer:
-------------------------
CPU
Harddisk
Mouse
C0002 - Fruit:
------------------------
Watermelon
Apple
Orange
Durian
C0003 - Car:
------------------------
no record.
P/S : I'm using ASP and SQL Server 2000.... how?