Click here to Skip to main content
15,908,776 members
Home / Discussions / Database
   

Database

 
Questiongive DTS source file at runtime Pin
indian1436-Apr-07 22:04
indian1436-Apr-07 22:04 
QuestionStored Procedure Pin
vengaqua6-Apr-07 21:44
vengaqua6-Apr-07 21:44 
AnswerRe: Stored Procedure Pin
Rob Graham7-Apr-07 4:24
Rob Graham7-Apr-07 4:24 
Questionwhat is different between SqlDataAdapter and SqlDataReader?.what is different between SqlDataAdapter and SqlDataReader?.these 2 r different from dataadapter and datareader. Pin
sathyan_82946-Apr-07 18:53
sathyan_82946-Apr-07 18:53 
AnswerRe: what is different between SqlDataAdapter and SqlDataReader?.what is different between SqlDataAdapter and SqlDataReader?.these 2 r different from dataadapter and datareader. Pin
vengaqua6-Apr-07 21:56
vengaqua6-Apr-07 21:56 
AnswerRe: what is different between SqlDataAdapter and SqlDataReader?.what is different between SqlDataAdapter and SqlDataReader?.these 2 r different from dataadapter and datareader. Pin
Rob Graham7-Apr-07 4:17
Rob Graham7-Apr-07 4:17 
AnswerRe: what is different between SqlDataAdapter and SqlDataReader?.what is different between SqlDataAdapter and SqlDataReader?.these 2 r different from dataadapter and datareader. Pin
Vinay Dornala8-Apr-07 21:00
Vinay Dornala8-Apr-07 21:00 
QuestionSQL triple-join question Pin
GregStevens6-Apr-07 7:15
GregStevens6-Apr-07 7:15 
This is a question about the best way to construct a query.

Each person is associated with a team, and each team is associated with an office. This is represented in three tables:

a table of users (tblUsers) that have an id (userID) and a team (userTeamID)

a table of teams (tblTeams) that have an id (teamID) and an office (teamOfficeID)

a table of offices (tblOffices) that have an id (officeID).


How can I (with a single query) retrieve a list of all of the people (in tblUsers) who are in a particular office (officeID)?

Initially I tried this (in this example, I'm finding all the people in the office with officeID of XYZ):

SELECT userID 
  FROM tblUsers,tblTeams,tblOffices 
  WHERE
     officeID='XYZ'
     teamOfficeID=officeID
     userTeamID=teamID


But that doesn't seem to be working for me.

Any thoughts?



---Greg
AnswerRe: SQL triple-join question Pin
Ian Dennis6-Apr-07 7:42
Ian Dennis6-Apr-07 7:42 
AnswerRe: SQL triple-join question Pin
Hayder Marzouk6-Apr-07 7:46
Hayder Marzouk6-Apr-07 7:46 
AnswerRe: SQL triple-join question Pin
Jaiprakash M Bankolli6-Apr-07 18:10
Jaiprakash M Bankolli6-Apr-07 18:10 
QuestionDatabase isn't updated.. Pin
nadinekamal6-Apr-07 7:06
nadinekamal6-Apr-07 7:06 
AnswerRe: Database isn't updated.. Pin
Colin Angus Mackay6-Apr-07 10:39
Colin Angus Mackay6-Apr-07 10:39 
GeneralRe: Database isn't updated.. Pin
nadinekamal6-Apr-07 12:51
nadinekamal6-Apr-07 12:51 
GeneralRe: Database isn't updated.. Pin
Colin Angus Mackay6-Apr-07 14:58
Colin Angus Mackay6-Apr-07 14:58 
QuestionExcessive unused space Pin
Ian Dennis6-Apr-07 7:03
Ian Dennis6-Apr-07 7:03 
AnswerRe: Excessive unused space Pin
Marek Grzenkowicz8-Apr-07 9:24
Marek Grzenkowicz8-Apr-07 9:24 
GeneralRe: Excessive unused space Pin
Ian Dennis9-Apr-07 5:31
Ian Dennis9-Apr-07 5:31 
GeneralRe: Excessive unused space Pin
Marek Grzenkowicz9-Apr-07 6:49
Marek Grzenkowicz9-Apr-07 6:49 
GeneralRe: Excessive unused space Pin
Ian Dennis9-Apr-07 7:05
Ian Dennis9-Apr-07 7:05 
GeneralRe: Excessive unused space Pin
Marek Grzenkowicz9-Apr-07 21:43
Marek Grzenkowicz9-Apr-07 21:43 
GeneralRe: Excessive unused space Pin
Ian Dennis11-Apr-07 7:59
Ian Dennis11-Apr-07 7:59 
AnswerRe: Excessive unused space Pin
Ian Dennis11-Apr-07 8:11
Ian Dennis11-Apr-07 8:11 
GeneralRe: Excessive unused space Pin
Marek Grzenkowicz24-Apr-07 1:56
Marek Grzenkowicz24-Apr-07 1:56 
GeneralRe: Excessive unused space Pin
Ian Dennis24-Apr-07 7:41
Ian Dennis24-Apr-07 7:41 

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.