Click here to Skip to main content
15,896,912 members
Home / Discussions / Database
   

Database

 
QuestionHow to get Cursor's record count (Transact-SQL) ? Pin
Naunt30-Aug-11 15:36
Naunt30-Aug-11 15:36 
AnswerRe: How to get Cursor's record count (Transact-SQL) ? Pin
Mycroft Holmes30-Aug-11 16:23
professionalMycroft Holmes30-Aug-11 16:23 
AnswerRe: How to get Cursor's record count (Transact-SQL) ? Pin
Shameel31-Aug-11 4:09
professionalShameel31-Aug-11 4:09 
GeneralRe: How to get Cursor's record count (Transact-SQL) ? Pin
Naunt31-Aug-11 16:45
Naunt31-Aug-11 16:45 
GeneralRe: How to get Cursor's record count (Transact-SQL) ? Pin
Mycroft Holmes1-Sep-11 13:01
professionalMycroft Holmes1-Sep-11 13:01 
QuestionIF Condition in cursor definition Pin
csetopper_bhanu29-Aug-11 21:10
csetopper_bhanu29-Aug-11 21:10 
AnswerRe: IF Condition in cursor definition Pin
Mycroft Holmes29-Aug-11 22:35
professionalMycroft Holmes29-Aug-11 22:35 
QuestionHow to combine results in cursor? Pin
SledgeHammer0129-Aug-11 12:53
SledgeHammer0129-Aug-11 12:53 
I have a query that returns a table something like this:

102
NULL
101
NULL

the 101 & 102 are FKs into another table, and I need to "expand" those... so what I want to end up with is:

102 b
102 a
<some kind="" of="" marker="" to="" indicate="" the="" null="">
101 b
101 a
<some kind="" of="" marker="" to="" indicate="" the="" null="">

so I figured I'd create a cursor on the first table and loop through the 102, 101, etc. and then do an inner select to "expand" the 101 and 102... this works fine... I end up with 4 result sets though. One for the 102, one for the first null, one of the 101 and one for the second null.

The empty result sets are significant to the query... I figured I could insert a dummy record in there with a special ID... unless there is a better way, but not sure how to combine the 4 result sets into a single one with out losing the empty ones?
AnswerRe: How to combine results in cursor? Pin
Mycroft Holmes29-Aug-11 22:40
professionalMycroft Holmes29-Aug-11 22:40 
AnswerRe: How to combine results in cursor? Pin
Ganu Sharma15-Sep-11 21:09
Ganu Sharma15-Sep-11 21:09 
QuestionNeed Oracle Column Names Pin
PDTUM27-Aug-11 11:46
PDTUM27-Aug-11 11:46 
AnswerRe: Need Oracle Column Names Pin
Luc Pattyn27-Aug-11 12:28
sitebuilderLuc Pattyn27-Aug-11 12:28 
GeneralRe: Need Oracle Column Names Pin
PDTUM27-Aug-11 14:56
PDTUM27-Aug-11 14:56 
AnswerRe: Need Oracle Column Names Pin
Luc Pattyn27-Aug-11 15:09
sitebuilderLuc Pattyn27-Aug-11 15:09 
GeneralRe: Need Oracle Column Names Pin
PDTUM28-Aug-11 4:53
PDTUM28-Aug-11 4:53 
AnswerRe: Need Oracle Column Names Pin
Mycroft Holmes27-Aug-11 13:11
professionalMycroft Holmes27-Aug-11 13:11 
GeneralRe: Need Oracle Column Names Pin
PDTUM27-Aug-11 14:54
PDTUM27-Aug-11 14:54 
GeneralRe: Need Oracle Column Names Pin
Mycroft Holmes28-Aug-11 14:43
professionalMycroft Holmes28-Aug-11 14:43 
AnswerRe: Need Oracle Column Names Pin
A.J.Wegierski27-Aug-11 21:34
A.J.Wegierski27-Aug-11 21:34 
AnswerRe: Need Oracle Column Names [modified] Pin
Shameel27-Aug-11 23:28
professionalShameel27-Aug-11 23:28 
GeneralRe: Need Oracle Column Names Pin
PDTUM28-Aug-11 4:48
PDTUM28-Aug-11 4:48 
AnswerRe: Need Oracle Column Names Pin
PIEBALDconsult28-Aug-11 4:44
mvePIEBALDconsult28-Aug-11 4:44 
GeneralRe: Need Oracle Column Names Pin
PDTUM28-Aug-11 4:56
PDTUM28-Aug-11 4:56 
GeneralRe: Need Oracle Column Names Pin
Shameel28-Aug-11 8:33
professionalShameel28-Aug-11 8:33 
GeneralRe: Need Oracle Column Names Pin
PDTUM28-Aug-11 11:39
PDTUM28-Aug-11 11:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.