SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL Conversion from dump file
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

44443
Starting Member

10 Posts

Posted - 06/06/2005 :  08:47:13  Show Profile
Guys
I have exported data from a dump file. I have to now convert into our schema.
I have following scenario which is stopping my conversion.

col1 col2
1000301619740214WDWARNTY 3016
2000301619740214000 3016
30003016WYSONG 3016
30003016WYSONG RTM 3016
50003016WYSONG 3016
6000301600050012001400CWEST 3016
6000301600050012001500CWEST 3016

1000301719740214WDWARNTY 3017
2000301719740214000 3017
30003017WYSONG2 3017





The problem is I have to place all the col1 values starting with 1, 2, 3 and having same values of col2 (in
this case 3016, 3017) in single of row of new table.

I have tried using insert subquery with group by clause but it doesnt seem to solve the problem.

Any suggestions/insights would be helpful

Thanks

Merkin
Funky Drop Bear Fearing SQL Dude!

Australia
4970 Posts

Posted - 06/06/2005 :  08:51:02  Show Profile  Visit Merkin's Homepage
Cross post

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=50731



Damian
Ita erat quando hic adveni.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000