Viewing 15 posts - 391 through 405 (of 600 total)
Hi moeessack123,
The problem with what you have given us is that it leaves us with a lot of detective work to do, and makes it a lot more work to...
October 10, 2013 at 7:05 am
jshahan (10/9/2013)
Thanks for the responses and they both tell me “what”. I am after the “why”.
“Why doesn’t a virtual table in a FROM clause behave like other subqueries in...
October 9, 2013 at 9:57 am
First, minor terminology sticking point: I think you mean DERIVED table.
And second, you need to think of a derived table as a query unto itself. Think of it like...
October 9, 2013 at 9:50 am
First, you could probably be using COALESCE instead of a case statement there.
Second, can you provide some sample data for the tables which demonstrates the problem?
October 9, 2013 at 7:23 am
Be careful here, getdate() is getting you the current date AND time. And that timestamp stays after adding or subtracting days.
Do you want to compare against seven and 21...
October 8, 2013 at 2:55 pm
tshad (10/7/2013)
But the other issue...
October 7, 2013 at 4:02 pm
It appears that unpivot sets the sort order according to the order given in the IN clause, which is what you want anyway.
If you don't trust that, or something more...
October 7, 2013 at 2:35 pm
Basically, looks like SSIS is trying to guess at the precision and scale needed, and when you multiply the smallest number first it is doing some rounding.
If you know the...
October 7, 2013 at 1:44 pm
It seems to me that just because buzzwords start appearing on job descriptions doesn't mean that they are what determines who gets the job when push comes to shove.
The job...
September 30, 2013 at 6:51 am
Its still pretty tough to understand all your business rules here. I think its probably just a weird data model throwing this out of whack, and location and resource...
June 15, 2013 at 10:43 am
Looks to me like you are one step away. Make the last query (the union) into another CTE, and then select from it grouping by plant number and summing...
June 14, 2013 at 12:16 pm
Here is what I have. Sort order is not the same as the original post suggested, so we could still use a clairification on those rules.
There is likely a...
June 12, 2013 at 12:34 pm
Tricky.
Could you clarify your first sample output from above? With HSBC you intersperse the vacation with the new rows of HSBC. With the other banks you show the...
June 12, 2013 at 11:47 am
Viewing 15 posts - 391 through 405 (of 600 total)