Viewing 15 posts - 1,621 through 1,635 (of 3,957 total)
Your sample data looks good. But the results set is simply the sample data directly SELECTed out of the table you provided.
You need to give us consumable sample data...
August 1, 2013 at 4:33 am
Steven Willis (7/31/2013)
August 1, 2013 at 3:58 am
Sounds like you have what is called an adjacency list with people/houses and you may be able to resolve this with a recursive CTE (or perhaps not).
Two questions:
1. Do you...
July 31, 2013 at 8:01 pm
For display purposes these 2 results would be identical (except of course for the specific words):
SELECT 'THIS IS A VARCHAR STRING', N'THIS IS AN NVARCHAR STRING';
There may be a slight...
July 31, 2013 at 7:48 pm
Sean Lange (7/31/2013)
dwain.c (7/30/2013)
Before I suggest a solution, shouldn't the answer...
July 31, 2013 at 7:36 am
Here's another approach for your dissection table:
with SCC_CTE(VENDID, VENDTYPE)
as (select 'ABC', 1 union all
select 'ABC', 0 union all
select 'ABC', 0 union all
select 'XYZ', 1 union all
select 'XYZ', 0 union all
select...
July 31, 2013 at 3:32 am
Rakesh.Chaudhary (7/30/2013)
I want to put results into excel from Sql script , In results it is having three different result sets returned
Like as below.
Select * from...
July 30, 2013 at 7:44 pm
Here's an example that processes 100 random integers up to 3-tuples with target value of 100. It takes less than 3 seconds to run on my box.
DECLARE @t TABLE...
July 30, 2013 at 7:39 pm
I love SQL bin-packing problems! Hate to disagree with you Sean but they don't need to be overly complicated.
Before I suggest a solution, shouldn't the answer be 4, 6...
July 30, 2013 at 7:12 pm
Just wanted you all to know I appreciate the research you've done and I haven't absconded from this thread. Merely lurking until I have something of value to add.
July 30, 2013 at 6:22 pm
mario17 (7/29/2013)
Dwain, is this your trophy fish?Mario
That is my 45kg Mekong Catfish! Not a record by any means (they grow well over 100kg) but a record for me.
And you're...
July 29, 2013 at 11:54 pm
Steven Willis (7/29/2013)
dwain.c (7/29/2013)
Steven Willis (7/29/2013)
Dwain is a master of minimilism...
I like it. I'm trying to think of a way to incorporate it in my signature.
Reminds me of the...
July 29, 2013 at 8:04 pm
Steven Willis (7/29/2013)
Dwain is a master of minimilism...
I like it. I'm trying to think of a way to incorporate it in my signature.
Reminds me of the quote ChrisM has...
July 29, 2013 at 7:43 pm
Your expected results are off for the <30 days column (can't be less of a percent than <20 days), but something like this should do it:
SELECT datein
...
July 29, 2013 at 6:43 pm
ChrisM@Work (7/29/2013)
Thanks for the very generous feedback, Mr Kapsicum.If you're interested in how the method works, here's an excellent article by Dwain Camps[/url].
Oh my! The word is out.
And here...
July 29, 2013 at 6:20 pm
Viewing 15 posts - 1,621 through 1,635 (of 3,957 total)