Click here to Skip to main content
15,888,521 members
Home / Discussions / Database
   

Database

 
Questiontrigger on system tables Pin
sunit_822-Jul-09 22:54
sunit_822-Jul-09 22:54 
AnswerRe: trigger on system tables [modified] Pin
Niladri_Biswas3-Jul-09 17:29
Niladri_Biswas3-Jul-09 17:29 
GeneralRe: trigger on system tables Pin
sunit_825-Jul-09 22:39
sunit_825-Jul-09 22:39 
QuestionHow SQL View can be used in this scenario Pin
Krishna Aditya2-Jul-09 22:29
Krishna Aditya2-Jul-09 22:29 
AnswerRe: How SQL View can be used in this scenario Pin
Krishna Aditya2-Jul-09 22:41
Krishna Aditya2-Jul-09 22:41 
AnswerRe: How SQL View can be used in this scenario Pin
David Skelly3-Jul-09 2:26
David Skelly3-Jul-09 2:26 
GeneralRe: How SQL View can be used in this scenario Pin
Krishna Aditya3-Jul-09 2:58
Krishna Aditya3-Jul-09 2:58 
GeneralRe: How SQL View can be used in this scenario Pin
David Skelly3-Jul-09 5:57
David Skelly3-Jul-09 5:57 
To be completely honest, I don't have time to write your query for you. I have my own work to do.

I've given you an idea of how to do it: a self-join on the table to link the Primary user to the associated Backup user will give you what you want.

If you want to simplify things for yourself you could create a view that only includes Primary users. Then create another view that only includes Backup users. Then join them together on role id. That would make the query easier to work with.
QuestionFull Text Search in SQL Server 2005 Pin
Isaac Gordon2-Jul-09 18:21
Isaac Gordon2-Jul-09 18:21 
AnswerRe: Full Text Search in SQL Server 2005 Pin
Niladri_Biswas2-Jul-09 18:53
Niladri_Biswas2-Jul-09 18:53 
QuestionComplicated Summation Query Help Pin
JohnQuar12-Jul-09 7:44
JohnQuar12-Jul-09 7:44 
AnswerRe: Complicated Summation Query Help Pin
David Mujica2-Jul-09 8:37
David Mujica2-Jul-09 8:37 
GeneralRe: Complicated Summation Query Help Pin
JohnQuar12-Jul-09 8:44
JohnQuar12-Jul-09 8:44 
QuestionSequential updates Pin
Gymnast1-Jul-09 18:42
Gymnast1-Jul-09 18:42 
AnswerRe: Sequential updates [modified] Pin
Niladri_Biswas1-Jul-09 18:58
Niladri_Biswas1-Jul-09 18:58 
GeneralRe: Sequential updates Pin
Mycroft Holmes1-Jul-09 21:37
professionalMycroft Holmes1-Jul-09 21:37 
GeneralRe: Sequential updates Pin
Niladri_Biswas1-Jul-09 22:17
Niladri_Biswas1-Jul-09 22:17 
GeneralRe: Sequential updates Pin
Mycroft Holmes1-Jul-09 22:42
professionalMycroft Holmes1-Jul-09 22:42 
GeneralRe: Sequential updates Pin
Niladri_Biswas1-Jul-09 23:02
Niladri_Biswas1-Jul-09 23:02 
GeneralRe: Sequential updates Pin
Gymnast2-Jul-09 16:27
Gymnast2-Jul-09 16:27 
QuestionHelp necessary in making Query Pin
Saiyed Alam1-Jul-09 16:28
Saiyed Alam1-Jul-09 16:28 
AnswerRe: Help necessary in making Query Pin
Not Active1-Jul-09 18:02
mentorNot Active1-Jul-09 18:02 
General[Message Deleted] Pin
Niladri_Biswas1-Jul-09 18:36
Niladri_Biswas1-Jul-09 18:36 
GeneralRe: Help necessary in making Query Pin
Mycroft Holmes1-Jul-09 21:39
professionalMycroft Holmes1-Jul-09 21:39 
General[Message Deleted] Pin
Niladri_Biswas1-Jul-09 22:19
Niladri_Biswas1-Jul-09 22:19 

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.