Click here to Skip to main content
16,017,638 members
Home / Discussions / Database
   

Database

 
AnswerRe: Suggestion is needed in sql server 2000 Database [modified] Pin
Blue_Boy20-Aug-08 21:18
Blue_Boy20-Aug-08 21:18 
AnswerSQL Server Profiler Pin
David Mujica21-Aug-08 4:56
David Mujica21-Aug-08 4:56 
AnswerRe: Suggestion is needed in sql server 2000 Database Pin
shubhi25-Aug-08 23:48
shubhi25-Aug-08 23:48 
QuestionT-SQL Help [modified] Pin
Hulicat20-Aug-08 7:47
Hulicat20-Aug-08 7:47 
AnswerRe: T-SQL Help Pin
Blue_Boy20-Aug-08 8:21
Blue_Boy20-Aug-08 8:21 
GeneralRe: T-SQL Help Pin
Hulicat20-Aug-08 9:24
Hulicat20-Aug-08 9:24 
AnswerRe: T-SQL Help Pin
TheFM23420-Aug-08 11:59
TheFM23420-Aug-08 11:59 
GeneralRe: T-SQL Help Pin
Hulicat20-Aug-08 12:52
Hulicat20-Aug-08 12:52 
Thank for that; it gived me two errors one on line 11 and one on 23 the last.
1st error on 11 is a syntax error near ")"
2nd error is on line 23 the last is error near "closed"


Heere it is revised a bit...this one is tuff for me thanks for the help!!!


Select total.Client,TotalTicketsAssigned,
TotalClosedForRangeFrom select count(*) as
'TotalTicketsAssigned' , location_name
'Client'from job_ticket jinner join priority_type p
on p.priority_type_id = j.priority_type_idinner join
tech t on t.client_id = j.assigned_tech_idinner join
location l on l.location_id = j.location_id WHERE Report_Date
>= DATEADD(dd,-7,CONVERT(DATETIME,CONVERT(CHAR(8),GETDATE(),112)))
AND Report_Date
< DATEADD(dd,1,CONVERT(DATETIME,CONVERT(CHAR(8),GETDATE(),112)))
group by l.location_name)
total.client
Left Join (select count(*)
as 'TotalClosedforRange', location_name 'Client'from
job_ticket jinner join priority_type p on p.priority_type_id =
j.priority_type_idinner join tech t on t.client_id =
j.assigned_tech_idinner join location l on l.location_id =
j.location_id where (last_status_update_time >=
DATEADD(dd,-7,CONVERT(DATETIME,CONVERT(CHAR(8),GETDATE(),112)))
AND Report_Date < DATEADD(dd,1,CONVERT(DATETIME,CONVERT(CHAR(8),
GETDATE(),112))) ) and status_type_id ='3'
group by l.location_name)
Closed on total.Client = closed.Client

Regards,
Hulicat

GeneralRe: T-SQL Help Pin
TheFM23420-Aug-08 16:01
TheFM23420-Aug-08 16:01 
GeneralRe: T-SQL Help Pin
Hulicat20-Aug-08 16:34
Hulicat20-Aug-08 16:34 
QuestionVB.net mysql subtract value Pin
Pestinha198420-Aug-08 6:11
Pestinha198420-Aug-08 6:11 
AnswerRe: VB.net mysql subtract value Pin
Blue_Boy20-Aug-08 8:24
Blue_Boy20-Aug-08 8:24 
GeneralRe: VB.net mysql subtract value Pin
Pestinha198420-Aug-08 10:49
Pestinha198420-Aug-08 10:49 
GeneralRe: VB.net mysql subtract value Pin
Blue_Boy20-Aug-08 14:05
Blue_Boy20-Aug-08 14:05 
QuestionPackages in SQL server 2005 Pin
geekfromindia20-Aug-08 5:44
geekfromindia20-Aug-08 5:44 
AnswerRe: Packages in SQL server 2005 Pin
DerekFL20-Aug-08 6:07
DerekFL20-Aug-08 6:07 
Questionmysql data type Pin
dianenacario20-Aug-08 1:34
dianenacario20-Aug-08 1:34 
AnswerRe: mysql data type Pin
TheFM23420-Aug-08 7:13
TheFM23420-Aug-08 7:13 
QuestionA question about the DB construction Pin
makumazan8420-Aug-08 1:00
makumazan8420-Aug-08 1:00 
AnswerRe: A question about the DB construction Pin
TheFM23420-Aug-08 7:22
TheFM23420-Aug-08 7:22 
GeneralRe: A question about the DB construction Pin
makumazan8420-Aug-08 8:46
makumazan8420-Aug-08 8:46 
GeneralRe: A question about the DB construction Pin
TheFM23420-Aug-08 16:10
TheFM23420-Aug-08 16:10 
QuestionForeign Key Column Pin
Subramaniam s.V.19-Aug-08 23:25
Subramaniam s.V.19-Aug-08 23:25 
AnswerRe: Foreign Key Column Pin
Wendelius20-Aug-08 3:01
mentorWendelius20-Aug-08 3:01 
QuestionNeed help with View <noobie></noobie> Pin
Ltek19-Aug-08 20:47
Ltek19-Aug-08 20:47 

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.