Viewing 15 posts - 1,681 through 1,695 (of 5,504 total)
You could either use a subquery to get the max effective date per code and join it back to the original table or you could use the ROW_NUMBER approach.
April 13, 2011 at 4:51 pm
You'd need to UNPIVOT your data followed by a PIVOT (either traditional using CrossTab or the PIVOT operator).
April 13, 2011 at 4:47 pm
I truly hope you're not sending the password as plain text and compare it to another plain text value....
What concept do you use to store the password?
@Patrick_Fiedler:
Welcome, dear neighbor! (distance:...
April 13, 2011 at 4:44 pm
WayneS (4/13/2011)
Jack Corbett (4/13/2011)
LutzM (4/13/2011)
April 13, 2011 at 3:47 pm
I posted a slightly different query as my answer to a quiz question (SQLServer Quiz 2011).
This query is modified to query SSRS 2008 and to return the actual parameter values...
April 13, 2011 at 3:05 pm
You might want to have a look at
Jacob Sebastians blog (title: "How to find all stored procedures used by Report Server?") 😉
April 13, 2011 at 2:47 pm
Craig Farrell (4/13/2011)
Is it just me or does the constant resizing of the new ad 'Click here to monitor SSC' annoy the hell out of the rest of you, too?
It...
April 13, 2011 at 12:41 pm
You might want to have a look at Jeffs Running Total article[/url].
Based on the concept described in this article you could use a conditional increment instead of the running total...
April 12, 2011 at 3:49 pm
GilaMonster (4/12/2011)
jcrawf02 (4/12/2011)
Even when I know what's going on, I'm confused.How do you think I feel? :hehe:
Just think about how it'll look like when we all change back to our...
April 12, 2011 at 3:43 pm
You could use
CROSS APPLY
(SELECT 'Added' AS Activity UNION ALL
SELECT 'Deleted') x
Together with
CONVERT(CHAR(19),CASE WHEN x.Activity THEN Added ELSE Deleted END,120) + ' ' + x.Activity
April 12, 2011 at 3:38 pm
I'm in!
@steve-2: how many active posters with GilaMonster avatars are needed before the cube icon in the SSC logo is replaced by a GilaMonster picture? 😛
April 12, 2011 at 3:05 pm
I would use the UNPIVOT approach followed by a self join.
This would cover items 1 to 3.
I don't understand your last requirement (modified column names): How could this happen when...
April 10, 2011 at 7:11 am
Either in your JOIN or your WHERE clause you reference two columns with a different collation.
You need to define one collation you'd like to use.
Something like
SELECT *
FROM ...
April 10, 2011 at 5:23 am
Here's a SQL Server solution. AFAIK, CASE and CAST should work in SyBase 15.
SELECT
t1.part_id,
t1.adt_ts,
CASE
WHEN t1.pay_clct_am = t2.pay_clct_am
THEN 'unchanged'
ELSE 'old:' +...
April 10, 2011 at 4:53 am
Yes, it's possible. I think, XQuery together with CrossApply is the solution here.
You might want to have a look at Jacob Sebastians blog.
April 9, 2011 at 3:18 am
Viewing 15 posts - 1,681 through 1,695 (of 5,504 total)