Viewing 15 posts - 61 through 75 (of 93 total)
Without the DDL to create the schema you are referring to and the DML to insert relevant data, it is very difficult to figure out a solution.
But---it sounds like you...
May 20, 2014 at 6:31 am
Good Morning!
The simplest solution to this would be to use PIVOT to flip the data into the format you are looking for. Please try out this SQL and let...
May 20, 2014 at 6:24 am
Dave Vroman (5/19/2014)
May 19, 2014 at 11:38 am
davoscollective (5/19/2014)
I noticed some queries only today being executed by very experienced analysts doing awful non-sargable sins like joining a date column to a datetime...
May 19, 2014 at 8:26 am
Works for me---I'll submit one for each over the next few weeks!
May 17, 2014 at 6:56 am
I'll take this one. It might be a bit short on its own. If you'd like, I could create a more comprehensive article that discusses all of the...
May 16, 2014 at 1:01 pm
ranmazure (5/15/2014)
One question, on our Insert Statement... The Select Portion...
SELECT
INPUT_TABLE.Key1,
INPUT_TABLE.Key2,
INPUT_TABLE.Key3,
'E' AS Action_Type,
GETDATE() AS Action_Date
FROM Input_Table INPUT_TABLE
WHERE...
May 15, 2014 at 7:39 pm
Glad to hear everything is working! The order does matter somewhat, but I don't believe it will affect the results. Ie if you insert first, then a future...
May 14, 2014 at 5:24 am
That was certainly a use case that we did not take into account before. The trouble was that there were non-unique combinations of Key1 and Key3 (even though Key1+Key2+Key3...
May 13, 2014 at 8:42 am
Jeff Moden (5/12/2014)
May 12, 2014 at 6:20 pm
ranmazure (5/12/2014)
Ed, thanks for the Reply.I've got the code you provided working with my tables and I'm testing it out :-)!
Thanks, I will update you with my results soon!
Good to...
May 12, 2014 at 12:03 pm
Steve Jones - SSC Editor (5/12/2014)
Ed, that looked good on 2012. Closing that thread.
OK---sounds good, I'll do the same for 2012 vs. 2014 and submit when it's all together!
May 12, 2014 at 11:55 am
ranmazure (5/8/2014)
For example, on Day 1, the Change Table will have no records as...
May 12, 2014 at 6:24 am
I just submitted an article about changes in 2012 DMVs...if this is good, I can create one for SQL Server 2014 in a similar format and take this one.
May 9, 2014 at 9:40 am
mrcgray19 (5/6/2014)
Almost perfect.
When the employee does have 2 term records, it of course now returns both records. How would I further filter those...
May 6, 2014 at 9:43 am
Viewing 15 posts - 61 through 75 (of 93 total)