Click here to Skip to main content
15,886,258 members
Home / Discussions / Database
   

Database

 
QuestionSQL Query Pin
berba29-Nov-12 2:22
berba29-Nov-12 2:22 
AnswerRe: SQL Query Pin
Richard Deeming29-Nov-12 2:50
mveRichard Deeming29-Nov-12 2:50 
GeneralRe: SQL Query Pin
berba2-Dec-12 18:30
berba2-Dec-12 18:30 
QuestionSQL Server windows authentication Pin
Zeyad Jalil28-Nov-12 23:49
professionalZeyad Jalil28-Nov-12 23:49 
AnswerRe: SQL Server windows authentication Pin
Garth J Lancaster28-Nov-12 23:59
professionalGarth J Lancaster28-Nov-12 23:59 
AnswerRe: SQL Server windows authentication Pin
jschell29-Nov-12 8:09
jschell29-Nov-12 8:09 
GeneralRe: SQL Server windows authentication Pin
Chris Meech30-Nov-12 3:45
Chris Meech30-Nov-12 3:45 
QuestionNeed help with a tricky MS SQL Query Pin
muya mwansa27-Nov-12 6:46
muya mwansa27-Nov-12 6:46 
Hi, I was given a tricky challenge question to attempt and allowed the use of any resources at my disposal. So far all my attempts have produced results close to the expected output but not quiet the expected out put. Here's the link to the question: Question and here's where you can test your query: test here.

Here's my query that produced the closest results:
SELECT        DISTINCT Competencies.CompName AS compname, Users.FirstName AS firstname, Users.SurName AS surname, CompPos.Level AS positionlevel, CompUser.Level AS userlevel
FROM            Positions INNER JOIN CompPos 
				ON Positions.PosId = CompPos.PosID 
				INNER JOIN Competencies   
				ON CompPos.CompID = Competencies.CompID
				INNER JOIN CompUser
				ON Competencies.CompID = CompUser.CompID	
				CROSS JOIN Users
WHERE 		(Users.UserId IN ('999209', 'helpdesk1', '999339', 'helpdesk5', '999827'))
AND        (CompUser.UserID IN ('999209', 'helpdesk1', '999339', 'helpdesk5', '999827'))
AND 		(Positions.Position LIKE '%Corp HR-People Development-Wellness-Manager(Process)%')
ORDER BY CompPos.Level DESC, Competencies.CompName, CompUser.Level, Users.FirstName, Users.SurName

AnswerRe: Need help with a tricky MS SQL Query Pin
Eddy Vluggen27-Nov-12 13:31
professionalEddy Vluggen27-Nov-12 13:31 
GeneralRe: Need help with a tricky MS SQL Query Pin
jschell28-Nov-12 8:43
jschell28-Nov-12 8:43 
AnswerRe: Need help with a tricky MS SQL Query Pin
Deepak Kr128-Nov-12 1:03
Deepak Kr128-Nov-12 1:03 
QuestionBest Approach For Designing Database Pin
AmbiguousName27-Nov-12 3:59
AmbiguousName27-Nov-12 3:59 
AnswerRe: Best Approach For Designing Database Pin
jschell27-Nov-12 13:13
jschell27-Nov-12 13:13 
AnswerRe: Best Approach For Designing Database Pin
Mycroft Holmes27-Nov-12 13:14
professionalMycroft Holmes27-Nov-12 13:14 
AnswerRe: Best Approach For Designing Database Pin
Eddy Vluggen27-Nov-12 13:23
professionalEddy Vluggen27-Nov-12 13:23 
AnswerRe: Best Approach For Designing Database Pin
Krishna Kumar Soni3-Dec-12 1:04
Krishna Kumar Soni3-Dec-12 1:04 
QuestionEXEC sp_helptext Pin
jojoba201126-Nov-12 22:43
jojoba201126-Nov-12 22:43 
AnswerRe: EXEC sp_helptext Pin
Mycroft Holmes26-Nov-12 23:30
professionalMycroft Holmes26-Nov-12 23:30 
QuestionRe: EXEC sp_helptext Pin
jojoba201126-Nov-12 23:38
jojoba201126-Nov-12 23:38 
AnswerRe: EXEC sp_helptext Pin
Corporal Agarn27-Nov-12 0:59
professionalCorporal Agarn27-Nov-12 0:59 
QuestionRe: EXEC sp_helptext Pin
jojoba201127-Nov-12 3:09
jojoba201127-Nov-12 3:09 
AnswerRe: EXEC sp_helptext Pin
Eddy Vluggen27-Nov-12 13:33
professionalEddy Vluggen27-Nov-12 13:33 
QuestionRECORD VALIDATION IN ACCESS Pin
teto26-Nov-12 5:19
teto26-Nov-12 5:19 
SuggestionRe: RECORD VALIDATION IN ACCESS Pin
André Kraak26-Nov-12 5:56
André Kraak26-Nov-12 5:56 
AnswerRe: RECORD VALIDATION IN ACCESS Pin
Corporal Agarn26-Nov-12 6:05
professionalCorporal Agarn26-Nov-12 6:05 

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.