Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server ASP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 18th, 2004, 05:01 PM
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data Shaping Problem .. im stuck!

I cant figure out what im doing wrong... the tables are related, and the parent
and child sort fine, but the grandchild recordset repeats itself for each
iteration. Can anyone help me? Ive been stuck for a while :(



 dbo.Section
 -Section_No

 dbo.Subsection
 -Section_No
 -SubSection_No

 dbo.Heading
 -Section_No
 -Subsection_No
 -Heading_No

 QUERY
 SQL = "SHAPE { SELECT * FROM dbo.Section ORDER BY Section_No } "
 SQL = SQL + "APPEND(( Shape {SELECT * FROM dbo.Sub_Section ORDER BY
SubSection_No } AS rsSubSections"
 SQL = SQL + " APPEND({SELECT * FROM Heading ORDER BY Heading_No} AS rsHeadings
"
 SQL = SQL + " Relate subSection_No to subSection_No)) "
 SQL = SQL + " RELATE Section_No to section_No )"

 RESULTS
 Section 1
   Subsection 01 Raw Material and Packaging Specifications
        Heading 1 Plant Requirements
        Heading 1 Bags
        Heading 1 Procedures
        Heading 3 Plant Audits - AIB
        Heading 4 Purchased Flour Specs - Go to DBC QA31

 Section 2
   Subsection 02 Operating Procedures
        Heading 1 Plant Requirements
        Heading 1 Bags
        Heading 1 Procedures
        Heading 3 Plant Audits - AIB
        Heading 4 Purchased Flour Specs - Go to DBC QA31


Reply With Quote
  #2 (permalink)  
Old March 19th, 2004, 04:52 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Are you certain your tables are constructed correctly with the correct relationships?

--

Joe
Reply With Quote
  #3 (permalink)  
Old March 19th, 2004, 11:09 AM
Registered User
 
Join Date: Mar 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this is my db

http://techmix.net/rel.gif

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Shaping Connection String mat41 Classic ASP Professional 4 August 6th, 2008 02:19 AM
Im trying to insert data into mysql using jsp paulhamo SQL Language 1 September 12th, 2006 02:35 AM
I've downloaded Jakarta-tomcat-5.5.9, now Im stuck xena BOOK: Professional Apache Tomcat 0 October 13th, 2005 08:05 AM
data shaping... slooooow results page pshudgins Classic ASP Databases 0 June 23rd, 2005 02:01 PM
Data Shaping In SQL Server 2000 nidgep SQL Server ASP 5 August 29th, 2003 03:30 PM



All times are GMT -4. The time now is 08:35 PM.


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