Viewing 15 posts - 1 through 15 (of 25 total)
Smalldatetime
October 25, 2006 at 4:37 am
Nice indeed J
It´s better now, however date1 and date2, can also be on Sundays and Saturdays…
October 23, 2006 at 7:42 am
Ok. Thanks!
I have identified the origin of the error, it’s when for example I have an hour like ‘9:53’ instead of ’09:53’ I think the datediff...
October 20, 2006 at 10:57 am
Ok , i have corrected the char(12) , nerveless I still get the same error
I agree with you it must be a problematic...
October 20, 2006 at 9:35 am
Ok i found the problem, now it works :
select cliente, processo, cdu_slaok from processos where dataabertura >='2006-01-01' and
cdu_fechado='1' and
--cliente=any
--cliente exists
cliente in
(
SELECT cliente
FROM
processos where cdu_fechado='1'and dataabertura >='2006-01-01'and
cliente not in...
September 8, 2006 at 5:52 am
Great. The statement works just fine.
Now I want to use the result of this query as an input to select certain rows ..a subquery….
September 8, 2006 at 3:19 am
Result of
SELECT SERVERPROPERTY('productlevel'),
SERVERPROPERTY('productversion'),
SERVERPROPERTY('edition')
SP4 8.00.2039 Enterprise Edition
September 7, 2006 at 10:24 am
SELECT cliente, COUNT(cdu_slaok) AS Total , SUM(CASE WHEN cdu_slaok = '1' THEN 1 ELSE 0 END) AS SLA_OK,
CAST(SUM(CASE WHEN cdu_slaok = '1' THEN 1 ELSE 0 END)AS DECIMAL)*100 /...
September 7, 2006 at 10:21 am
SELECT cliente, COUNT(cdu_slaok) AS Total , SUM(CASE WHEN cdu_slaok = '1' THEN 1 ELSE 0 END) AS SLA_OK,
CAST(SUM(CASE WHEN cdu_slaok = '1' THEN 1 ELSE 0 END)AS DECIMAL)*100 /...
September 7, 2006 at 9:43 am
Changed the last column to "PERC", but is still get the message:
Server: Msg 207, Level 16, State 3, Line 1
Invalid column name 'PERC'.
Server: Msg 207, Level 16, State 1, Line...
September 7, 2006 at 9:36 am
And if i want to compare the value for total , for example total > 80 ?
If i do so i get an error... it...
September 7, 2006 at 9:25 am
Viewing 15 posts - 1 through 15 (of 25 total)