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 3rd, 2005, 12:59 AM
Authorized User
 
Join Date: Apr 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default challenging sql problem

hi

i have a table of the following format

====================
1 GIACCI BROS PTY LTD
2 Head Office
3 Picton South Western Hwy 6229 (08) 9725 4588
4 After Hours Emergencies (08) 9725 4253
5 Fax (08) 9725 4225
5 Email [email protected]
6 Internet www.giacci.com.au
7
8
9
10 Giacci Bros Pty Ltd
11 South Western Hwy Picton 6229 (08) 9724 9588



  Giacci Port Services Pty Ltd
  397 Marine Tce Geraldton 6530 (08) 9964 1366



  Giacci Port Services Pty Ltd
  Marine Tce Geraldton 6530 (08) 9964 6893



  GIACO'S HAIR DESIGN
  Shop 1/ 8 Brockman St Manjimup 6258 (08) 9771 1774
====================



there are blank rows inbetween 2 records, number of blank rows not fixed.I want to rearrange them in the following order

my requiremnets r
rows do not have numbering i give them for simplicity
1. remove blank rows ie 7,8,9 rows
2. arrange all rows in group in consecutive columns ie arrane rows 1,2,3,4,5,6 in columns.then 2nd record consisting of rows 10,11

final format will be something like this--------
======================
GIACCI BROS PTY LTD Head Office Picton South Western Hwy 6229 (08) 9725 4588 After Hours Emergencies (08) 9725 4253 Fax (08) 9725 4225 Email [email protected] Internet www.giacci.com.au

Giacci Bros Pty Ltd South Western Hwy Picton 6229 (08) 9724 9588

Giacci Port Services Pty Ltd 397 Marine Tce Geraldton 6530 (08) 9964 1366

Giacci Port Services Pty Ltd Marine Tce Geraldton 6530 (08) 9964 6893

GIACO'S HAIR DESIGN Shop 1/ 8 Brockman St Manjimup 6258 (08) 9771 1774
======================

i already developed a logic for it but it slows the system .there r number of files each consisting of thousands of records. i want to speed up the operation

is it possible with sql

thanx

 
Old July 4th, 2005, 12:41 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cross Post

http://p2p.wrox.com/topic.asp?TOPIC_ID=32389






Similar Threads
Thread Thread Starter Forum Replies Last Post
Challenging Problem in simple SELECT software_developer_kk SQL Server 2000 3 January 6th, 2006 05:49 AM
A challenging one....Can this be done? SteveJ Dreamweaver (all versions) 5 September 10th, 2004 04:17 PM
Challenging questions... rguru VS.NET 2002/2003 1 May 26th, 2004 04:40 AM
Challenging questions... rguru VB How-To 0 May 16th, 2004 06:35 AM





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