Viewing 15 posts - 1,036 through 1,050 (of 3,480 total)
February 18, 2019 at 5:52 pm
I wouldn't back up the structure to Access. There isn't a perfect 1:1 object mapping between the two. Why not just script out all the objects so you have all...
February 18, 2019 at 5:39 pm
In the below given schema and data, we need to find the time...
February 17, 2019 at 10:29 pm
This returns the first of the current month
SELECT DATEADD(month, DATEDIFF(month, 0, GETDATE()), 0) AS StartOfMonth
So you'd just add months to that.
February 15, 2019 at 4:40 pm
Not sure if this will help at all, but here goes.
Say you create one query that calculates the Numerator (and you include the grouping column you need, so you...
February 15, 2019 at 12:51 pm
In the outermost query (the first SELECT), you'd just do something like
SELECT [Aggregate1] / [Aggregate2]
FROM...
As long as the two values are correct in the source query,...
February 15, 2019 at 11:56 am
What did you try? A DATEDIFF to get an individual record's wait and then sum that?
February 15, 2019 at 6:37 am
Your logic explanation makes me think that maybe you want either ROW_NUMBER() or COUNT() with a windowing function.SELECT ID
, Type
, ROW_NUMBER() OVER (PARTITION BY ID,...
February 14, 2019 at 11:45 am
Maybe Kenneth Fisher's article on CROSS APPLY would help, but without some sample data, it's hard to tell.
February 12, 2019 at 12:00 pm
Something like this?
DECLARE @SearchDate DATE = GETDATE();
INSERT INTO MyTable (col1, col2, col3)
SELECT col2, col2, DATEADD(day,1,@SearchDate)
FROM MyTable
WHERE col3 = @SearchDate;
Here's some actually tested...
February 11, 2019 at 10:02 pm
Could you post one or two "row-by-row" inserts that worked as well as the table definition of BIOGRAPH_MASTER table? There's not enough information here to figure out what's wrong.
February 11, 2019 at 7:41 pm
Since sending e-mails is done serially, you could just use a cursor for this. (yeah yeah, I know... cursors are terrible and all that, but I think this is a...
February 9, 2019 at 1:27 pm
I think Andy Leonard wrote an SSIS widget whatever for it. http://www.cozyroc.com
I have never used it, but if it can be done in SSIS, Andy would know how to...
February 7, 2019 at 2:10 pm
If you did not start here then you probably started in the wrong place. If you start with the article I linked to, there's code for creating and...
February 6, 2019 at 6:37 pm
So you mean you're trying to use something like a parameterized stored procedure as the source for the subreport? Can you give us an example of what you're doing?
February 5, 2019 at 8:58 pm
Viewing 15 posts - 1,036 through 1,050 (of 3,480 total)