Click here to Skip to main content
15,902,875 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQl Server 2005 Vs. SQl Server 2000 Pin
leckey31-Jan-07 6:13
leckey31-Jan-07 6:13 
QuestionSSIS Package Pin
NK731-Jan-07 0:13
NK731-Jan-07 0:13 
QuestionQuery Help Its Urgent Pin
amjad ali shah30-Jan-07 21:00
amjad ali shah30-Jan-07 21:00 
AnswerRe: Query Help Its Urgent Pin
andyharman30-Jan-07 21:26
professionalandyharman30-Jan-07 21:26 
GeneralRe: Query Help Its Urgent Pin
amjad ali shah30-Jan-07 23:13
amjad ali shah30-Jan-07 23:13 
Questionhow to find a trigger is enabled or disabled for a particular table Pin
smjp30-Jan-07 18:08
smjp30-Jan-07 18:08 
AnswerRe: how to find a trigger is enabled or disabled for a particular table Pin
Ware@Work5-Feb-07 10:58
Ware@Work5-Feb-07 10:58 
QuestionSQL Query Help Pin
Hulicat30-Jan-07 13:36
Hulicat30-Jan-07 13:36 
I am trying to join the two following select statements into a single result that would look like the following:

Ticket Number, Open Issues, Email

meeting this criteria from table "job_ticket" WHERE job_ticket.location_id = '5' and status_type_id like '[1-2]'


Both select statements run fine alone


SELECT job_ticket.job_ticket_id 'Ticket Number', job_ticket.subject 'Open Issues'
FROM job_ticket
WHERE job_ticket.location_id = '5' and status_type_id like '[1-2]'

Select email from client where client_id ='5'



Data from Table "Job_ticket"
ticket_id
subject
client_id
location_id
Status_type_id


Data from table "Client"
client_id
email


I am trying to pull the client.email via the job_ticket.client_id into the 1st sql statement:
SELECT job_ticket.job_ticket_id 'Ticket Number', job_ticket.subject 'Open Issues'
FROM job_ticket
WHERE job_ticket.location_id = '5' and status_type_id like '[1-2]'


I have tried various methods and read through "books online", however; I am not making much progress.



What is the best way to do this?

Any information would be greatly appreciated.

Thanks and Regards,
H


Regards,
Hulicat

AnswerRe: SQL Query Help Pin
andyharman30-Jan-07 19:50
professionalandyharman30-Jan-07 19:50 
GeneralRe: SQL Query Help Pin
Hulicat31-Jan-07 9:10
Hulicat31-Jan-07 9:10 
QuestionDataGrid and DataGridView Pin
Blekk30-Jan-07 12:48
Blekk30-Jan-07 12:48 
AnswerRe: DataGrid and DataGridView Pin
smjp30-Jan-07 18:45
smjp30-Jan-07 18:45 
GeneralRe: DataGrid and DataGridView Pin
Blekk31-Jan-07 7:48
Blekk31-Jan-07 7:48 
QuestionQuestion about using PIVOT in SQL Pin
leckey30-Jan-07 11:33
leckey30-Jan-07 11:33 
Questioncan i return dataReader in ado.net method on web serviec ? Pin
PavanPareta30-Jan-07 3:05
PavanPareta30-Jan-07 3:05 
AnswerRe: can i return dataReader in ado.net method on web serviec ? Pin
Pete O'Hanlon30-Jan-07 3:48
mvePete O'Hanlon30-Jan-07 3:48 
AnswerRe: can i return dataReader in ado.net method on web serviec ? Pin
Parwej Ahamad30-Jan-07 4:55
professionalParwej Ahamad30-Jan-07 4:55 
AnswerNo Pin
Ennis Ray Lynch, Jr.30-Jan-07 11:37
Ennis Ray Lynch, Jr.30-Jan-07 11:37 
QuestionHow to make constraint for column based on pattern Pin
El'Cachubrey30-Jan-07 2:20
El'Cachubrey30-Jan-07 2:20 
AnswerRe: How to make constraint for column based on pattern Pin
Pete O'Hanlon30-Jan-07 3:44
mvePete O'Hanlon30-Jan-07 3:44 
QuestionGeneral brains required on SQL Performance Pin
Rob Philpott30-Jan-07 0:55
Rob Philpott30-Jan-07 0:55 
AnswerRe: General brains required on SQL Performance Pin
Pete O'Hanlon30-Jan-07 1:10
mvePete O'Hanlon30-Jan-07 1:10 
QuestionRetrieving sybase data from sql server 2005 instance Pin
basith55529-Jan-07 18:59
basith55529-Jan-07 18:59 
AnswerRe: Retrieving sybase data from sql server 2005 instance Pin
andyharman29-Jan-07 22:22
professionalandyharman29-Jan-07 22:22 
QuestionAccess SUM() Pin
myNameIsRon29-Jan-07 10:08
myNameIsRon29-Jan-07 10:08 

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.