Viewing 15 posts - 571 through 585 (of 1,229 total)
bicky1980 (1/11/2012)
January 18, 2012 at 8:33 am
Laurie-1124340 (1/18/2012)
It's a list of selected stakeholderids from...
January 18, 2012 at 8:00 am
Focus on resolving the string into a temp table first, the rest is straightforward.
Can you provide us with more details about this string?
January 18, 2012 at 7:53 am
SELECT TOP (3) WITH TIES *
FROM ClientRequests
ORDER BY Requests DESC
January 18, 2012 at 5:55 am
Anamika (1/9/2012)
create table #t (d1 int primary key identity(1,1), v1 varchar(50), v2 int, v3 int)
insert into #t values('01/05/2012 5:59:00 PM',322667648,330025988)
insert into...
January 18, 2012 at 4:39 am
mic.con87 (1/18/2012)
Hi Chris, any feedback on the problem? Thanks
Yes - your results don't match your sample data.
The results table #DesiredResults contains ClaCaseID 25622, 42582, 42587 - possibly more -...
January 18, 2012 at 4:23 am
You will need to wrap the SUM around a conditional which selects only the rows you wish to sum, like this:
set @submission = 'actual'
set @Period = '06'
set @Year = '2011'
use...
January 18, 2012 at 4:03 am
Works ok for me:
DECLARE@MaxLenINT= (SELECT MAX(LEN(Name)) FROM sys.filegroups);
SELECT
[name],
[MaxLen] = @MaxLen,
[Shortname] = LEFT(name,@MaxLen),
[ShortLength] = LEN(LEFT(name,@MaxLen)),
CASE is_read_only
WHEN 0 THEN 'Read Write'
WHEN 1 THEN 'Read Only'
ELSE 'Unknown'
END AS AccessMode
FROMsys.filegroups
January 18, 2012 at 3:23 am
mic.con87 (1/18/2012)
Hi Chris, any feedback on the problem? Thanks
Gosh, I'm sorry, this one fell by the wayside. On it now.
January 18, 2012 at 2:17 am
DBA Rafi (1/18/2012)
is there a way for conditional joins.like,
when (1=1) inner join table1 on column1 = column2.
when (1=2) inner join table1 on column1 = column2.
etc..
Appreciating your help.
You mean...
INNER JOIN...
January 18, 2012 at 2:15 am
nfpacct (1/18/2012)
Instead of printing the values I would like to view the result as
if...
January 18, 2012 at 12:25 am
With a tiny mod, this produces the same results as Bicky's original query:
;WITH Level1 AS (
SELECT indkey, datakey, landline
FROM (
SELECT indkey, datakey, landline,
rnll = ROW_NUMBER() OVER(PARTITION BY landline ORDER...
January 17, 2012 at 3:22 pm
bicky1980 (1/17/2012)
SQLKnowItAll (1/17/2012)
SQLKnowItAll (1/17/2012)
If the data could be processed in the following manner that would be great
1. Extract all the data with a landline
2. Dedupe the data on datakey -...
January 17, 2012 at 3:07 pm
L' Eomot Inversé (1/17/2012)
Here's another attempt at making some progress towards a precise statement or the requirement....
Tom, how does the query I posted here fit in with all this? Be...
January 17, 2012 at 1:06 pm
bicky1980 (1/17/2012)
SQLKnowItAll (1/17/2012)
L' Eomot Inversé (1/17/2012)a set of datakey-landline pairs such that each landline and each datakey occurs only once
As far as I can tell, this is an impossible statement...
January 17, 2012 at 11:19 am
Viewing 15 posts - 571 through 585 (of 1,229 total)