Click here to Skip to main content
15,903,385 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server Indexes Pin
Chris Meech3-May-10 6:43
Chris Meech3-May-10 6:43 
GeneralRe: SQL Server Indexes Pin
Luc Pattyn3-May-10 6:55
sitebuilderLuc Pattyn3-May-10 6:55 
AnswerRe: SQL Server Indexes Pin
PIEBALDconsult3-May-10 16:59
mvePIEBALDconsult3-May-10 16:59 
QuestionCyrillic characters · Serbian characters in sql server 2005 Pin
abcurl3-May-10 2:02
abcurl3-May-10 2:02 
AnswerRe: Cyrillic characters · Serbian characters in sql server 2005 Pin
Bernhard Hiller4-May-10 20:36
Bernhard Hiller4-May-10 20:36 
QuestionSelect value of DropDawnList Inside GridView Pin
msomar3-May-10 0:30
msomar3-May-10 0:30 
AnswerRe: Select value of DropDawnList Inside GridView Pin
Paramhans Dubey3-May-10 2:57
professionalParamhans Dubey3-May-10 2:57 
GeneralRe: Select value of DropDawnList Inside GridView Pin
msomar3-May-10 4:34
msomar3-May-10 4:34 
GeneralRe: Select value of DropDawnList Inside GridView Pin
Paramhans Dubey3-May-10 7:02
professionalParamhans Dubey3-May-10 7:02 
GeneralRe: Select value of DropDawnList Inside GridView Pin
Paramhans Dubey3-May-10 19:48
professionalParamhans Dubey3-May-10 19:48 
AnswerRe: Select value of DropDawnList Inside GridView Pin
msomar6-May-10 0:25
msomar6-May-10 0:25 
QuestionUpdating related 2 Tables Pin
msomar2-May-10 23:12
msomar2-May-10 23:12 
AnswerRe: Updating related 2 Tables Pin
SeMartens3-May-10 0:07
SeMartens3-May-10 0:07 
QuestionSEARCH QUERY:) Pin
diyaa_082-May-10 21:33
diyaa_082-May-10 21:33 
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 

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.