Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Masum7
Starting Member
33 Posts |
Posted - 2010-05-30 : 21:18:45
|
| Hello everyone=============================inbox table---------sender status8801 08802 0ticket table---------msisdn ticket8801 T 123458801 T 123468802 T 12347outbox table-----------receiver message8801 your ticket: T123455, T1234568802 your ticket: T123457=============According to above scenario, I need a SP that will read unprocessed rows(status=0) from inbox table and for each unprocessed row from inbox it will build message of outbox rows from the ticket table.For example for a request from sender 8801 it goes to ticket table and finds rows for 8801 and then put in outbox table that tickets are T123455, T123456.This can be done by nested cursor like the following:loop cursor for each unprocessed rows from inbox loop cursor from tickets for current row of cursor build message insert into outbox======================Can anyone please suggest me how I can avoid this nested cursor here please.Masum |
|
|
Masum7
Starting Member
33 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2010-05-31 : 05:54:29
|
8 hours is a long time without reply? N 56°04'39.26"E 12°55'05.63" |
 |
|
|
|
|
|