Viewing 15 posts - 25,456 through 25,470 (of 26,487 total)
Actually, Matt, I was agreeing with you on your comment.
September 24, 2007 at 3:49 pm
Just giving to OP what was requested. I'd prefer this for the percentage column:
cast((Total/GrandTotal) * 100 as decimal(5,2)) as Percent
😎
September 24, 2007 at 3:12 pm
Try this:
;with TotalAmt (
GrandTotal
) as (
select
sum(Total)
from
dbo.yourView
)
select
RegionDesc,
MATotal,
PartsTotal,
DemandTotal,
Total,
cast(( GrandTotal/ Total) as decimal(5,2)) as Percent
from
dbo.yourView
cross join TotalAmt
😎
September 24, 2007 at 2:50 pm
Could you be more specific? Please show us how this calculation should be done using the data you provided in your original post.
😎
September 24, 2007 at 2:35 pm
Is the servername correct in your example using an UNC? I just tried it on one of my servers and it works fine going down several directories.
September 24, 2007 at 2:28 pm
Without seeing the code for the stored procedure, it is a guess. It could be parameter sniffing at work. Are you using the variables declared in the header of the...
September 24, 2007 at 12:37 pm
Is the schedule still enabled? it almost sounds like the schedule had an end date set so that it would not run after a specified date.
😎
September 24, 2007 at 12:17 pm
Try this:
SELECT
t.schoolc as School_Code,
RTRIM(k.schname) as School,
s.ident as Ident,
RTRIM(s.lastname) + ', ' + RTRIM(s.firstname) AS Student,
ss.graden as [Current Grade],
left(sb.descript,20) as Subject,
max(sc.testscore) as Score
FROM...
September 24, 2007 at 11:17 am
I use a Script Task to format the date for creating an archive subdirectory using a datestamp. You can use the same mechanism to format the datetime stamp for...
September 24, 2007 at 7:35 am
Perhaps you'd like to explain the lack of large pices in the crash of flight 585 (hope I have the right flight number) that crashed in park less than 2...
September 22, 2007 at 7:36 pm
As I said, go on believing what you want, based on everything I have seen and read, I don't believe anything that you have espoused is true.
September 21, 2007 at 7:26 pm
Johan,
Go on believing what you want. I have seen and read enough to know what you are espousing is untrue.
September 21, 2007 at 4:52 pm
How many recrods are in #report when you run this update? Also, how many records in TableA and TableB? How are TableA and TableB indexed?
September 21, 2007 at 4:48 pm
Based on what I have read, I think the answer to your question about there being a function that will return the datatype of an input; a table column in...
September 21, 2007 at 4:46 pm
Don't confuse writing editorials with reporting of news events. Editorials are a journalists opinion based on what ever facts they may (or may not) have found while researching a topic. ...
September 21, 2007 at 4:21 pm
Viewing 15 posts - 25,456 through 25,470 (of 26,487 total)