Viewing 15 posts - 4,771 through 4,785 (of 8,731 total)
If the performance improvement is almost immesurable, why do we have NOLOCK/READ UNCOMMITED?
Basically, they're useful when we want an approximate result of a changing data set. These cases happen and...
June 30, 2015 at 2:08 pm
Here's a possible solution. I included the full DDL and added some sample data. Take a look and ask any questions that you might have.
DECLARE @test-2 TABLE
(
AccountID INT,
Datekey INT,
RunningTotal INT
)
DECLARE...
June 30, 2015 at 12:19 pm
a4apple (6/30/2015)
Luis Cazares (6/30/2015)
Using your new Points table, here's a...
June 30, 2015 at 11:54 am
I was exactly going to suggest the @Points table because I had to use a triangular join which might cause problems.
Using your new Points table, here's a possible solution. I...
June 30, 2015 at 11:37 am
Congratulations Alan! Enjoy her as much as you can.
June 29, 2015 at 12:32 pm
Brandie Tarvin (6/29/2015)
Steve Jones - SSC Editor (6/29/2015)
Lynn Pettis (6/29/2015)
Yea, then they grow up to be cats.
They catch mice then.
And bugs.
So that's what the office needs. 😀
June 29, 2015 at 12:25 pm
That makes absolutely no sense.
How does that reflect your data? Your problem is with the relation between 2 tables and you post only one without significant data types.
June 29, 2015 at 12:24 pm
Please post what I asked you to in the previous post. I can't figure out what you want. I'm sure that you have it very clear, but you might be...
June 29, 2015 at 10:48 am
Mostly what Sean said. I just wanted to add that if you want to be sure that you're not losing data, you can do some checks before changing the datatype.
June 29, 2015 at 9:58 am
That's weird Sean, I would be more scared of rar files.
About the solution, I'm not sure if you got confused with the dates because the values with zero hours don't...
June 29, 2015 at 9:55 am
If you're lost, imagine us that only have a piece of code.
Why are you joining the table twice and then using it in subqueries within the CASE?
Can you post DDL...
June 29, 2015 at 9:22 am
I got it wrong because figured out that NEWID() was the only one that would show different results if called more than once in the same row. Also because I...
June 29, 2015 at 9:12 am
gazy007 (6/26/2015)
Sorry and I am grateful for your help and something I have never understood about aggregate probelm
SELECT
ca.AccountNumber , CompanyName, Value,
SUM(...
June 26, 2015 at 10:15 am
jasona.work (6/24/2015)
I've gone for a walk around the campus to try to...
June 24, 2015 at 11:01 am
Viewing 15 posts - 4,771 through 4,785 (of 8,731 total)