Viewing 15 posts - 1 through 15 (of 123 total)
Thanks Mohamed, but I was thinking about cache only because the user can see a report but not an excel and also we can cache the report for every certain...
August 3, 2015 at 5:25 am
Eirikur Eiriksson (7/9/2015)
Quick question, any reason for not supplying the information needed to answer the question?😎
Sorry I couldn't do it right away because I don't have access to the execution...
July 10, 2015 at 5:33 pm
1) local variables just shift parameter sniffing to a different form of problem
2) remove local variables and use the sproc parameters and then try option recompile (preferably on just the...
July 8, 2015 at 8:22 pm
coachmkavanaugh (7/8/2015)
I cannot thank you enough!!!! You have saved me a many man hours trying to filter and cut down a big list!!!!!
Thank you, thank you,...
July 8, 2015 at 8:15 pm
coachmkavanaugh (7/7/2015)
July 8, 2015 at 12:32 pm
How about this?
;WITH CTE AS
(
select b.id AS SwimmerID --(Assuming you have a swimmer ID)
, b.last_Name
, b.first_name
,FLOOR(DATEDIFF(day, b.birthdate, getDate()) / 365.25) as 'Age'
, c.event_descr as 'Event'
, d.meet_descr as 'Meet'
,...
July 6, 2015 at 4:26 pm
@steve-2, your query failed with an error message LAG doesn't have an OVER clause. So I added that with partition between AccountID.
Next, It actually prints the flag for...
June 30, 2015 at 1:07 pm
Here's another shot at it - I don't have a 2012 instance to test it, and I can definitely learn something from someone testing it and letting me know if...
June 30, 2015 at 12:46 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.
Thanks Luis. Works like a Charm....
June 30, 2015 at 12:29 pm
Luis Cazares (6/30/2015)
Using your new Points table, here's a possible...
June 30, 2015 at 11:44 am
May be the rownum is so high it goes beyond the date datatype of Salesdate. Is salesdate date / datetime?
June 30, 2015 at 11:32 am
I tried to change the @points and tried the below code but the problem is I am seeing the flag active for other period also.
DECLARE @test-2 TABLE
(
AccountID INT,
Datekey...
June 30, 2015 at 11:23 am
Are you looking for the record with lowest cut difference everytime for each swimmer? I am guessing that will have the highest motivational_description according to your data, is that a...
June 30, 2015 at 10:59 am
Matt Miller (#4) (6/25/2015)
June 25, 2015 at 9:49 pm
Viewing 15 posts - 1 through 15 (of 123 total)