Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 July 26th, 2003, 02:06 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default join pains

Hi,

i need a query to fetch output similar to that shown below this table on which it is based -

CatId Category ParentCatId
----- -------- ------------
1 Men's Wear 0
2 Full Shirts 1
3 Half Shirts 1
4 Formal 2
5 Casual 2
6 Formal 3
7 Casual 3



field1 field2 field3
-------- ------------ ------------
Men's Wear Full Shirts Formal
Men's Wear Full Shirts Casual
Men's Wear Half Shirts Formal
Men's Wear Half Shirts Casual


Thanks for your time....
 
Old July 28th, 2003, 04:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Isn't your question essentially the same as this one?
http://p2p.wrox.com/topic.asp?TOPIC_ID=2216





Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm new to join oneilsteven BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 9th, 2008 06:07 PM
Join or not join madhukp SQL Server 2000 3 February 2nd, 2005 01:11 AM
More than one join jaywhy13 Classic ASP Basics 2 January 31st, 2005 11:38 PM
Oracle 8i inner join and left join problem puteri_84 Oracle 2 August 19th, 2004 07:14 AM
join erin SQL Language 4 October 27th, 2003 03:37 PM





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