Viewing 15 posts - 676 through 690 (of 8,731 total)
February 15, 2018 at 9:26 am
Then you have multiple options:
Preaggregate using a derived table or CTE:
SELECT W.ID,
W.Group,
SUM( WD.Payment) AS TotalPayment,
...
February 14, 2018 at 2:25 pm
Don't aggregate the values on your Widget table, just group by them.
SELECT W.ID,
W.Group,
SUM( WD.Payment) AS Payment,
...
February 14, 2018 at 1:55 pm
I find that it's easier to learn about Tally Tables in this article from Dwain Camps:
Tally Tables in T-SQL « dwaincsql
February 14, 2018 at 1:31 pm
February 14, 2018 at 11:29 am
If you want to have any chance of being helped. I suggest that you start with the best practices to post in forums.
How to Post Performance Problems...
February 14, 2018 at 7:11 am
One simply does not introduces Dynamic SQL
without a section on how to prevent SQL Injection.
The basic changes are simple enough to include them in...
February 13, 2018 at 12:00 pm
February 12, 2018 at 1:53 pm
Have you tried something like this?
(left(Fields!SLAHours.Value,Len(Fields!SLAHours.Value)-6)*3600)
+(mid(Fields!SLAHours.Value,Len(Fields!SLAHours.Value)-4,2)*60)
+(right(Fields!SLAHours.Value,2))
February 12, 2018 at 10:53 am
This should be an improvement.
select DEP_Code, DEP_Name, cast(0 as bit) Favourite,
case
when DEP_Code = 'ACHR' then 7
when DEP_Code = 'IT' then...
February 12, 2018 at 8:16 am
February 9, 2018 at 11:20 am
February 8, 2018 at 5:50 pm
Maybe this is a simpler solution:
SELECT *
FROM dbo.Candidate AS c
WHERE c.candidate_id NOT IN(
SELECT c.candidate_id
FROM dbo.Candidate AS c
CROSS JOIN dbo.Skill AS...
February 8, 2018 at 2:10 pm
Your solutions seem very clever, but I wouldn't test my luck like that when having a varchar(max) column.
February 8, 2018 at 1:44 pm
February 8, 2018 at 9:31 am
Viewing 15 posts - 676 through 690 (of 8,731 total)