Viewing 15 posts - 2,341 through 2,355 (of 3,489 total)
Couple of things ... someone just asked this question on here... (answered maybe 15 minutes ago), and your INSERTS don't work.
if you use ROW_NUMBER() and partition by the UserID column...
August 19, 2015 at 12:28 am
Seems like you might be making this harder than it really is.
Is it not true that the odd-numbered "logins" for each employee are clocking in and the even ones are...
August 19, 2015 at 12:10 am
I guess you could create a report snapshot and expire it after some reasonable amount of time (depending on how often you need the data in the report refreshed). ...
August 18, 2015 at 7:08 pm
I would probably start by reading this article[/url] by Pinal Dave on Simulating LAG in SQL Server 2008.
If possible I would persist the shredded XML to a table and then...
August 17, 2015 at 3:06 pm
Yeah, we silly Anglos can't read that well...
August 17, 2015 at 12:57 pm
Yeah, if you use a smaller font, you can squeeze more letters into the same space. <eye roll >
August 17, 2015 at 11:00 am
Why would you want to?
Sounds like a "Death by UDF" in the making... Kevin Boles did a presentation on it, and it's here
August 14, 2015 at 3:08 am
I think this is right... and it's missing the relationship between Card and Transaction...
CREATE TABLE CCTransaction (
TransactionID INT,
Credit_Card CHAR(19),
TransactionDate DATE,
Result INT
);
INSERT INTO CCTransaction
SELECT 1 AS ID,'3578 4539 4328 4381'...
August 14, 2015 at 12:09 am
Maybe this will help.
http://blog.sqlauthority.com/2011/05/12/sql-server-import-csv-file-into-database-table-using-ssis/
August 13, 2015 at 5:28 pm
Ouch! I hate it when I do that... reminds me of the Far Side cartoon... "Thag, take napkin, have mammoth on face."
August 13, 2015 at 3:38 pm
Not enough information. What do you mean by "incorrect"? Is this a matrix or a table? What did you expect vs what you got?
got sample data?
August 13, 2015 at 2:51 pm
oh, that's <> (not equal), the formatting stuff here screwed it up.
August 13, 2015 at 2:12 pm
Might be as simple as
=Sum(IIf(Fields!Factory.Value <> "ABC", Fields!Total_Progs.Value,0))/Sum(IIf(Fields!Factory.Value <> "ABC", Fields!Anotherfield.Value,0))
If you need the total size of Total_Progs/(Total_Progs + Factory), you would have to alter it a little.
Note, you will...
August 13, 2015 at 9:34 am
This works...
SELECT A, B, C, txt
FROM
(SELECT 1 AS A, 2 AS B, 3 AS C
UNION ALL
SELECT 2,1,3
UNION ALL
SELECT 4,1,2) x
CROSS JOIN
(SELECT 'Text1' AS txt
UNION ALL
SELECT 'Text2') y
In your...
August 13, 2015 at 8:59 am
(See, told ya Eirikur could do it... even if I can't remember how to spell his name!)
August 12, 2015 at 11:42 pm
Viewing 15 posts - 2,341 through 2,355 (of 3,489 total)