Viewing 15 posts - 2,296 through 2,310 (of 3,489 total)
like I said "Sharp as a MARBLE!!!"
Got it to work... Makes me feel like Ralph Wiggum "I'm learnding!!!" <with crayon in nose>
September 14, 2015 at 2:46 pm
I looked there, but didn't see a link to download, so that's why I asked here. He explains the patterns, but without the database they're working from, I can't...
September 14, 2015 at 2:02 pm
Are you doing a running total? Is this in SSRS that you need to do this? Or in T-SQL?
September 14, 2015 at 1:42 pm
thanks for the data. Helps a lot, but really you should post it in a consumable format (because folks here are busy... so set the scenario up for them)....
September 14, 2015 at 12:00 am
Oh, ouch. That's painful slow. <hanging head>
September 13, 2015 at 3:54 pm
Something like...
CREATE TABLE Actuals (
FY INT
,P1 SMALLMONEY
,P2 SMALLMONEY
,P3 SMALLMONEY
,P4 SMALLMONEY
,P5 SMALLMONEY
,P6 SMALLMONEY
,P7 SMALLMONEY
,P8 SMALLMONEY
,P9 SMALLMONEY
,P10 SMALLMONEY
,P11 SMALLMONEY
,P12 SMALLMONEY
CONSTRAINT pkActuals PRIMARY KEY (FY)
);
GO
-- insert some dummy values...
INSERT INTO dbo.Actuals(FY,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P2)
-- 2000...
September 11, 2015 at 9:27 pm
That's what I thought... if they gave me the scripts to create a database and said "write a stored procedure that does X", then it would make sense. Otherwise, the...
September 10, 2015 at 10:47 am
John,
It's a recruiter, which makes me wonder, because the number of recruiters in this town that understand and can evaluate the "goodness" of T-SQL code is less than 5. In...
September 10, 2015 at 10:16 am
That's kind of what I was thinking. Without context, the solution is somewhat meaningless. For example, in a previous job, I had to summarize data in tables that I...
September 10, 2015 at 2:51 am
Sweetbea,
Maybe you should start by reading this article:
How to post a T-SQL question on a public forum
It's impossible to answer your question as stated, because we can't see the table...
September 9, 2015 at 7:42 pm
So you need to use DATEPART() to get the time the user logged in:
SELECT LoginDate
, DATEPART(hour,LoginDate) AS LoginHour
FROM UserLogins;
Then it's just a count of Logins per LoginHour, and you're home...
September 9, 2015 at 3:56 pm
Getting really good at double-posting, so I might as well fix up this reply with something useful....
Here's how to post some sample data:
CREATE TABLE Payments(
LoanID INT
,CollectorName CHAR(3) NOT NULL
,TransactionAmount MONEY
,PaymentType...
September 9, 2015 at 12:52 pm
If I understand the question, this is trivial. You add a Row Group Total on [LoanID] or [CollectorName] (depends what you're getting totals on), and then you just use SUM([TransactionAmount])...
September 9, 2015 at 12:49 pm
What if you set TimeOut for this report to 0? (It means "do not timeout"). I would do it on a Dev server first... you don't want it hogging up...
September 9, 2015 at 12:27 pm
Viewing 15 posts - 2,296 through 2,310 (of 3,489 total)