Viewing 15 posts - 2,446 through 2,460 (of 3,500 total)
Add another calculated field to your dataset. Instead of:
=IIF(fields!date1.value>fields!date2.value,"yes","no")
use
=IIF(fields!date1.value>fields!date2.value,1,0)
then you can total that.
July 1, 2015 at 10:17 am
Since you're new here, you should definitely read this article... it explains how to post questions to get the best help.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
Once we have some sample data, answering your questions should...
July 1, 2015 at 12:50 am
If you create a placeholder, you can format it any way you want.
June 30, 2015 at 11:41 pm
These are puzzling:
where [term]=@term and ([position]=@position) >=0
and [value_per_month]=@value_per_month >=0
Could you please explain what you're trying to accomplish? I just don't follow.
[position] is a column in your table, and @position would...
June 30, 2015 at 11:34 pm
Check out Paul Randal's article...
Finding out who dropped a table using the transaction log[/url]
Looks like this returns who ran the offending code:
SUSER_SNAME ([Transaction SID]) AS [User]
June 30, 2015 at 11:25 pm
Probably several ways to do this.
One would be to have two tablixes, one on top of the other and set one visible and the other not depending on which parameter...
June 30, 2015 at 10:19 pm
One way...
SELECT *
FROM
(SELECT DDid
, Seq
, Descrip
, ROW_NUMBER() OVER (PARTITION BY DDid, Seq ORDER BY DDid, Seq) AS rn
FROM
(SELECT 1 As DDid, 0 AS Seq, 'AAA' AS Descrip
UNION ALL
SELECT 1, 1,...
June 30, 2015 at 2:22 pm
Sounds like you need a table for this:
The order is B,BB, A, AA, AAA, & AAAA.... something like
CREATE TABLE LoookupTable(
stringValue CHAR(4) PRIMARY KEY,
Seq TINYINT...
June 29, 2015 at 9:21 pm
June 29, 2015 at 4:14 pm
Not really. It's only in TempDB because for him, it's not a permanent part of any database. you would put it in your database and not in TempDB.
The reason...
June 29, 2015 at 2:32 pm
If you're using 2010, then PowerPivot is not installed by default. (Actually, I don't think it was developed until after 2010 came out.) You have to go to MS and...
June 29, 2015 at 10:03 am
I'm cheating for a minute and assuming you're using 2012 (which you're likely not)...
CREATE TABLE salesData
(date_created date,
sales money);
GO
INSERT INTO salesData (date_created, sales)
VALUES ('6-23-15', '20000.00'),
('6-24-15', '22000.00'),
('6-25-15', '25000.00'),
('6-26-15', '28500.00'),
('6-27-15', '32000.00');
-- 2012 solution
--...
June 28, 2015 at 11:48 pm
UNION your real result set with something like
SELECT Null, Null, Null
FROM Tally
WHERE n<=@NumRows
you would need to figure out the count of missing rows to do it, but that would be...
June 27, 2015 at 5:51 pm
Viewing 15 posts - 2,446 through 2,460 (of 3,500 total)