Click here to Skip to main content
15,889,767 members
Home / Discussions / Database
   

Database

 
Question890213 - Installing SQL Server 2008 failover cluster Pin
ilostmyid22-May-10 19:25
professionalilostmyid22-May-10 19:25 
AnswerRe: 890213 - Installing SQL Server 2008 failover cluster Pin
Michel Godfroid2-May-10 20:53
Michel Godfroid2-May-10 20:53 
QuestionUpdate query in sql server 2005 Pin
msomar2-May-10 8:57
msomar2-May-10 8:57 
QuestionHow I can pass session parameters to SqlDataSource Pin
msomar1-May-10 20:45
msomar1-May-10 20:45 
AnswerRe: How I can pass session parameters to SqlDataSource Pin
Michel Godfroid1-May-10 22:24
Michel Godfroid1-May-10 22:24 
QuestionSelect error Pin
msomar1-May-10 9:34
msomar1-May-10 9:34 
AnswerRe: Select error Pin
Michel Godfroid1-May-10 22:22
Michel Godfroid1-May-10 22:22 
QuestionNeed help with this query so it returns only a single record per user Pin
Michael J. Eber30-Apr-10 8:39
Michael J. Eber30-Apr-10 8:39 
We have a group of users who can access various locations within the datacenter.
For the largest group of users, if they can access one location they can access all of the locations.
For a very small population, the user can only access the office and not the data center locations. These users are causing me a problem.

The query is aimed at basically giving me the count of active locations. But in the mixed case I get BOTH a record with a null count AND a record with access count. In otherwords: Amy can access only the office and cannot access dc1 or dc2. The query returns Amy's record as Amy, null and Amy, 1. I want it to return ONLY Amy, 1.

Any suggestions on the changes I need to accomplish that?

Here is the current query:
SELECT        dbo.ContactMaster.BmcCustKey,
                 (SELECT        COUNT(dbo.LocationAccessGrant.CanAccessLocation) 
                   WHERE        (dbo.LocationAccessGrant.CanAccessLocation = 1)) AS AccessCount
FROM            dbo.ContactMaster LEFT OUTER JOIN
                         dbo.LocationAccessGrant ON dbo.ContactMaster.CompanyID = dbo.LocationAccessGrant.CompanyID AND 
                         dbo.ContactMaster.ContactIdentity = dbo.LocationAccessGrant.ContactIdentity
GROUP BY dbo.ContactMaster.BmcCustKey, dbo.LocationAccessGrant.CanAccessLocation
ORDER BY dbo.ContactMaster.BmcCustKey

AnswerRe: Need help with this query so it returns only a single record per user Pin
Jörgen Andersson30-Apr-10 23:47
professionalJörgen Andersson30-Apr-10 23:47 
QuestionHow many concurrent we can have in SQL Server 2005 Express? Pin
divyesh143229-Apr-10 21:26
divyesh143229-Apr-10 21:26 
AnswerRe: How many concurrent we can have in SQL Server 2005 Express? Pin
Michel Godfroid29-Apr-10 23:48
Michel Godfroid29-Apr-10 23:48 
GeneralRe: How many concurrent we can have in SQL Server 2005 Express? Pin
Roger Wright30-Apr-10 7:06
professionalRoger Wright30-Apr-10 7:06 
GeneralRe: How many concurrent we can have in SQL Server 2005 Express? Pin
Michel Godfroid30-Apr-10 7:24
Michel Godfroid30-Apr-10 7:24 
QuestionCyrillic characters · Serbian characters in sql server 2005 Pin
abcurl28-Apr-10 20:38
abcurl28-Apr-10 20:38 
AnswerRe: Cyrillic characters · Serbian characters in sql server 2005 Pin
Bernhard Hiller28-Apr-10 22:32
Bernhard Hiller28-Apr-10 22:32 
GeneralRe: Cyrillic characters · Serbian characters in sql server 2005 Pin
abcurl29-Apr-10 3:32
abcurl29-Apr-10 3:32 
GeneralRe: Cyrillic characters · Serbian characters in sql server 2005 Pin
Bernhard Hiller29-Apr-10 22:54
Bernhard Hiller29-Apr-10 22:54 
QuestionmySQL query question Pin
Jon Braunsma28-Apr-10 10:16
Jon Braunsma28-Apr-10 10:16 
AnswerRe: mySQL query question Pin
Luc Pattyn28-Apr-10 10:59
sitebuilderLuc Pattyn28-Apr-10 10:59 
GeneralRe: mySQL query question Pin
Md. Marufuzzaman28-Apr-10 22:31
professionalMd. Marufuzzaman28-Apr-10 22:31 
GeneralRe: mySQL query question Pin
Luc Pattyn29-Apr-10 0:49
sitebuilderLuc Pattyn29-Apr-10 0:49 
GeneralRe: mySQL query question Pin
Md. Marufuzzaman29-Apr-10 0:58
professionalMd. Marufuzzaman29-Apr-10 0:58 
AnswerRe: mySQL query question Pin
Md. Marufuzzaman28-Apr-10 22:27
professionalMd. Marufuzzaman28-Apr-10 22:27 
GeneralRe: mySQL query question Pin
Mycroft Holmes28-Apr-10 23:35
professionalMycroft Holmes28-Apr-10 23:35 
AnswerRe: mySQL query question Pin
Chris Meech29-Apr-10 2:37
Chris Meech29-Apr-10 2:37 

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.