Click here to Skip to main content
15,881,812 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to secure a database? Pin
jschell25-Jun-12 10:15
jschell25-Jun-12 10:15 
QuestionHow To Convert Sql Query Result Into Report Pin
thakrerakesh22-Jun-12 22:28
thakrerakesh22-Jun-12 22:28 
AnswerRe: How To Convert Sql Query Result Into Report Pin
Richard MacCutchan22-Jun-12 22:39
mveRichard MacCutchan22-Jun-12 22:39 
QuestionNOLOCK Applicable to All Tables Pin
vvashishta21-Jun-12 20:05
vvashishta21-Jun-12 20:05 
AnswerRe: NOLOCK Applicable to All Tables Pin
Corporal Agarn22-Jun-12 2:04
professionalCorporal Agarn22-Jun-12 2:04 
GeneralRe: NOLOCK Applicable to All Tables Pin
vvashishta25-Jun-12 20:31
vvashishta25-Jun-12 20:31 
AnswerRe: NOLOCK Applicable to All Tables Pin
Corporal Agarn3-Jul-12 7:26
professionalCorporal Agarn3-Jul-12 7:26 
QuestionHow to get a static result from a table? Pin
daiwuju21-Jun-12 5:10
daiwuju21-Jun-12 5:10 
I have a table in SQL Server 2008 like this:
EventID UserID State
1 0987 A
2 0987 A
3 0987 B
4 0956 A
5 0987 A
6 0019 A
7 0019 B
8 1289 B
9 1289 B
10 0019 A

I want to get some results from this table in such form:
UserID StateCount_of_A StateCount_of_B
0987 3 1
0019 2 1
1289 0 2
0956 1 0

I have try a few days, but I could get a disappointed result for ony one UserID. My result likes this one, for example with UserID 0987:
StateCount_of_A 3
StateCount_of_B 1

Thanks for anyone who could give me some tip.
AnswerRe: How to get a static result from a table? Pin
David Mujica21-Jun-12 5:34
David Mujica21-Jun-12 5:34 
GeneralRe: How to get a static result from a table? Pin
Mycroft Holmes22-Jun-12 13:14
professionalMycroft Holmes22-Jun-12 13:14 
AnswerRe: How to get a static result from a table? Pin
Luc Pattyn21-Jun-12 5:39
sitebuilderLuc Pattyn21-Jun-12 5:39 
AnswerRe: How to get a static result from a table? Pin
PIEBALDconsult21-Jun-12 6:32
mvePIEBALDconsult21-Jun-12 6:32 
QuestionCannot Register New Server in SQL Server 2008 Pin
Kujtim Hyseni21-Jun-12 2:31
Kujtim Hyseni21-Jun-12 2:31 
AnswerRe: Cannot Register New Server in SQL Server 2008 Pin
jschell22-Jun-12 13:24
jschell22-Jun-12 13:24 
GeneralRe: Cannot Register New Server in SQL Server 2008 Pin
Kujtim Hyseni23-Jun-12 1:02
Kujtim Hyseni23-Jun-12 1:02 
GeneralRe: Cannot Register New Server in SQL Server 2008 Pin
jschell24-Jun-12 12:17
jschell24-Jun-12 12:17 
GeneralRe: Cannot Register New Server in SQL Server 2008 Pin
Kujtim Hyseni24-Jun-12 22:45
Kujtim Hyseni24-Jun-12 22:45 
GeneralRe: Cannot Register New Server in SQL Server 2008 Pin
jschell25-Jun-12 9:34
jschell25-Jun-12 9:34 
GeneralRe: Cannot Register New Server in SQL Server 2008 Pin
Kujtim Hyseni25-Jun-12 10:35
Kujtim Hyseni25-Jun-12 10:35 
GeneralRe: Cannot Register New Server in SQL Server 2008 Pin
jschell26-Jun-12 8:09
jschell26-Jun-12 8:09 
AnswerRe: Cannot Register New Server in SQL Server 2008 Pin
Eddy Vluggen25-Jun-12 1:23
professionalEddy Vluggen25-Jun-12 1:23 
QuestionInserting rows dynamiccaly on based on calculation Pin
vkap20-Jun-12 11:45
vkap20-Jun-12 11:45 
AnswerRe: Inserting rows dynamiccaly on based on calculation Pin
Mycroft Holmes20-Jun-12 13:05
professionalMycroft Holmes20-Jun-12 13:05 
AnswerRe: Inserting rows dynamiccaly on based on calculation Pin
__TR__3-Jul-12 20:41
__TR__3-Jul-12 20:41 
Questionlan chat software Pin
Member 913183919-Jun-12 1:42
Member 913183919-Jun-12 1:42 

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.