Viewing 15 posts - 436 through 450 (of 5,504 total)
you might want to look into a FULL JOIN of all four tables.
February 23, 2013 at 3:36 pm
Hi,
please help us help you and provide ready to use sample data and expected result as described in the first article referenced in my signature.
February 23, 2013 at 5:14 am
I agree it looks like homework.
But the funny part is: the expected result is wrong based on the given requirement (at least form my point of view)... :w00t:
@daglugub: what...
February 23, 2013 at 3:30 am
I'd use the cte approach. I'm confident it can be compressed a little further but this would be my starting point:
WITH cte_originalquery AS
(
SELECT 1 AS Number UNION ALL
SELECT 2 AS...
February 23, 2013 at 3:23 am
Thank you for your reply. I'll give it a try even though I don't think it will make a difference for two reasons:
a) the proxy I'm using is based on...
February 23, 2013 at 3:10 am
You might want to look into the Dynamic Cross Tab approach as referenced in my signature.
Might be the less strugglig way to achieve what you're looking for.
As a side note:...
February 23, 2013 at 3:05 am
You could use the OUTPUT clause in the INSERT statement and capture the primary key together with the values inserted in a table variable.
See BOL (BooksOnLine) for an example (keyword...
February 23, 2013 at 2:49 am
I'll bring some hay for the hippo!!
April 9, 2012 at 2:37 pm
Here's the link to the solution I posted.
The OP's answer?
Neither "This will work." nor "The logic should be..."
But instead: "Where should I put this query in my original SQL...
April 9, 2012 at 1:51 pm
You still havent learned that we'd like to know your EXPECTED result. NOT the ACTUAL result which we all know is not what you're looking for.
PLEASE, PLEASE, PLEASE tell us...
April 9, 2012 at 1:37 pm
You still haven't learned that we don't sit around a glass ball and figure out what "it doesn't work" means in your case.
I'm also surprised you continue to use a...
April 9, 2012 at 8:45 am
Jeff, I'm feeling today is one of those days where I'm just getting ignored... 😉
April 7, 2012 at 12:24 pm
Ok, here's the only way I can think of: to use the "Quirky update" as described in Jeff Modens article[/url]
It is absolutely required to read the article and fully understand...
April 7, 2012 at 9:30 am
Per definition a CASE function will return the result based on the first match.
There's very little we can do. The requirement doesn't make much sense to me.
Please provide table def...
April 7, 2012 at 3:07 am
Neither one of your statements "I don't get the result" nor "i get the substring error" do really help us to narrow down the issue. SQL Server is kind enough...
April 7, 2012 at 2:59 am
Viewing 15 posts - 436 through 450 (of 5,504 total)