Click here to Skip to main content
15,887,267 members
Home / Discussions / Database
   

Database

 
AnswerRe: Sql Server Table Partitioning Pin
countmein15-Sep-11 7:22
countmein15-Sep-11 7:22 
GeneralRe: Sql Server Table Partitioning Pin
Jörgen Andersson15-Sep-11 8:46
professionalJörgen Andersson15-Sep-11 8:46 
QuestionHow To Write Database Backup Pin
black0712-Sep-11 20:05
black0712-Sep-11 20:05 
AnswerRe: How To Write Database Backup PinPopular
Pravin Patil, Mumbai12-Sep-11 21:05
Pravin Patil, Mumbai12-Sep-11 21:05 
GeneralRe: How To Write Database Backup Pin
Pradeep Shukla17-Sep-11 15:19
professionalPradeep Shukla17-Sep-11 15:19 
GeneralRe: How To Write Database Backup Pin
Pravin Patil, Mumbai23-Sep-11 7:15
Pravin Patil, Mumbai23-Sep-11 7:15 
QuestionCDC and views Pin
Gennady Oster12-Sep-11 1:57
Gennady Oster12-Sep-11 1:57 
QuestionThis should be simple Pin
Andy_L_J11-Sep-11 23:19
Andy_L_J11-Sep-11 23:19 
I have the following table structure:

Company:
Id (Int),
Name (VarChar)

Group:
Id (Int),
Name (VarChar)

Division:
Id (Int),
GroupId (Int) FK,
Name

Company_Group:
CompanyId (Int) FK,
GroupId (Int) FK

Team:
Id (Int),
DivisionId (Int) FK,
Name (VarChar)

I am trying to retrieve the Team Id and Name according to the CompanyId and DivisionId supplied.
Note that it is entirely possible that a team may belong to a division in multiple Company's.

I have tried various things but seem to get always get unwanted Teams in the results.
I don't speak Idiot - please talk slowly and clearly

'This space for rent'

Driven to the arms of Heineken by the wife

AnswerRe: This should be simple Pin
Blue_Boy11-Sep-11 23:44
Blue_Boy11-Sep-11 23:44 
GeneralRe: This should be simple Pin
Andy_L_J12-Sep-11 0:37
Andy_L_J12-Sep-11 0:37 
GeneralRe: This should be simple Pin
Blue_Boy12-Sep-11 0:48
Blue_Boy12-Sep-11 0:48 
GeneralRe: This should be simple Pin
Andy_L_J12-Sep-11 1:31
Andy_L_J12-Sep-11 1:31 
GeneralRe: This should be simple Pin
Blue_Boy12-Sep-11 1:35
Blue_Boy12-Sep-11 1:35 
QuestionSQL Server Time data type and negative TimeSpan values? Pin
kbalias8-Sep-11 22:16
kbalias8-Sep-11 22:16 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Wayne Gaylard8-Sep-11 22:27
professionalWayne Gaylard8-Sep-11 22:27 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Mycroft Holmes8-Sep-11 23:15
professionalMycroft Holmes8-Sep-11 23:15 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
David Skelly9-Sep-11 1:41
David Skelly9-Sep-11 1:41 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Jörgen Andersson9-Sep-11 5:09
professionalJörgen Andersson9-Sep-11 5:09 
GeneralRe: SQL Server Time data type and negative TimeSpan values? Pin
Corporal Agarn9-Sep-11 6:19
professionalCorporal Agarn9-Sep-11 6:19 
JokeRe: SQL Server Time data type and negative TimeSpan values? Pin
Chris Meech9-Sep-11 7:40
Chris Meech9-Sep-11 7:40 
GeneralRe: SQL Server Time data type and negative TimeSpan values? Pin
Jörgen Andersson9-Sep-11 8:29
professionalJörgen Andersson9-Sep-11 8:29 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
jschell9-Sep-11 7:16
jschell9-Sep-11 7:16 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Jörgen Andersson9-Sep-11 8:18
professionalJörgen Andersson9-Sep-11 8:18 
GeneralRe: SQL Server Time data type and negative TimeSpan values? Pin
Wendelius9-Sep-11 11:18
mentorWendelius9-Sep-11 11:18 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Wendelius9-Sep-11 11:17
mentorWendelius9-Sep-11 11:17 

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.