Viewing 15 posts - 1,381 through 1,395 (of 3,489 total)
January 11, 2018 at 7:45 pm
why what works? The ROW_NUMBER() OVER (PARTITION...) part?
PARTITION OVER is super simple - it's analogous to grouping in a totals/aggregate query, but you still get the individual records, which...
January 9, 2018 at 4:14 pm
I find it hard to believe you've been coding this long (and asking questions) and can't write a simple correlated subquery.
Say I want to show all the details...
January 7, 2018 at 9:21 pm
You could use
WHERE EXISTS and correlated subqueries. It will slow things down, but right answers are better than fast answers.
Do you inherit these stored procedures or...
January 7, 2018 at 11:59 am
I have a column, Column3, that has the expression =iif(Fields!ARR.Value=1, Fields!COLL.Value,0). Is it possible to sum this expression...
January 5, 2018 at 5:43 pm
Thanks Sue. I'll have a look.
I may not have been thinking... probably the really simple answer is "Mark the optional parameters as optional!" Yeah, "here's my sign!" =)
January 5, 2018 at 5:35 pm
Could you explain what this does? (Is this Oracle?)SELECT
@Od = :a2,
@Do = :a3,
@TipSobe = :a1,
@KodaCenika = :a4;
January 2, 2018 at 8:46 pm
It's probably not a syntax issue. It's a permissions issue. If it were a syntax issue, the code would stop and you'd get an error message that the T-SQL "statement...
January 1, 2018 at 11:28 am
Welcome aboard!
since you appear to be new here, you owe it to yourself to read this article:
December 31, 2017 at 12:33 am
Note to self: last status check per computer
Without data, it's harder to see what's going on, but you could try this pattern. I'm using AdventureWorks2014 for data.
December 28, 2017 at 8:56 am
Why would you want to do that? I can see shrinking a database if you have to move it and space is at a premium. But that's hopefully a rare...
December 27, 2017 at 7:16 pm
Remove the s.StateDuration from the GROUP BY. You're SUMMING that... Your query should look like this:SELECT s.AgentName
, s.ReasonCode
, Sum(s.StateDuration) AS 'StateDuration'
FROM (
December 27, 2017 at 6:33 pm
This sounds like something you'd want to schedule with a job instead of using a trigger... well, at least to my mostly ignorant way of thinking. Then you could find...
December 7, 2017 at 3:32 pm
I just did this earlier today. I downloaded the most popular firstnames and lastnames from some website... so they're in their own tables. Then I did this (appended a partial...
December 1, 2017 at 3:46 pm
Viewing 15 posts - 1,381 through 1,395 (of 3,489 total)