![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
i'm trying to write a batch that will perform a complex task using set-based selects instead of a row-based cursor. let me know if you can help me figure out how. description of what i'm trying to do: there is TABLE1, TABLE2, and TABLE3 i want to select each row from TABLE1, do some analysis on the data of that row, and then perform an insert of some data into TABLE2, and some data into TABLE3 how do i do this in a T-SQL batch? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
i'm trying to write a batch that will perform a complex task using set-based selects instead of a row-based cursor. let me know if you can help me figure out how. description of what i'm trying to do: there is TABLE1, TABLE2, and TABLE3 i want to select each row from TABLE1, do some analysis on the data of that row, and then perform an insert of some data into TABLE2, and some data into TABLE3 how do i do this in a T-SQL batch? |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
even though the groups cover identical topics, and might have very different audiences? allow me to demonstrate with an analogy: if a city has two newspapers, and you have news about a particular person in the city, would it not be wise to publish an article in each newspaper to ensure it reaches the appropriate audience? i didn't decide that there should be two identical newsgroups for this particular topic, but it seems reasonable to me to publish a topic to any groups where that news would be relevant. is that misguided? |
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
#10
| |||
| |||
|
|
i will learn how to cross-post before i next have a topic that applies to more than one group. |
![]() |
| Thread Tools | |
| Display Modes | |
| |