Viewing 15 posts - 7,996 through 8,010 (of 8,731 total)
paul.knibbs (6/26/2013)
Jeff Moden (6/25/2013)
No. NULLs cannot be compared to so they would also be excluded from any check for <> 0. Try it an see.
I would tend to...
June 26, 2013 at 7:47 pm
I'm not sure is an aversion from Jeff towards the TempSPs, but more of a "let's learn together". I've heard of the TSPs before but had never found any real...
June 26, 2013 at 7:41 pm
r.mitchell (6/26/2013)
June 26, 2013 at 4:40 pm
It might not be the best option but it should give you the correct result according to your test data.
WITH cte AS(
SELECT *,
ROW_NUMBER() OVER( PARTITION BY CustID ORDER BY TxnTime)...
June 26, 2013 at 3:08 pm
Sean Lange (6/26/2013)
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form of INSERT INTO statements
3. Expected results based on the...
June 26, 2013 at 10:48 am
Without sample data and expected results, I'm only taking a shot in the dark.
You should really read and understand the articles mentioned by Sean as there's some sample code in...
June 25, 2013 at 4:16 pm
There's not enough information to answer this. Please give more details, DDL, sample data and expected results based on it. For more information, read the article linked in my signature.
June 25, 2013 at 1:52 pm
Without a master table of regions, the query can perform poorly with large data.
CREATE TABLE #MyTable(
REGION char(1), date_apprvd date, sal int)
INSERT #MyTable VALUES
('a', '20130101', 1000),
('a', '20130201', 2000),
('a', '20130301', 3000),
('b', '20140101',...
June 25, 2013 at 1:20 pm
All of those asking for cases on when Temp Stored Procedures would be useful ever read the entire article? At the end, it mentions some acceptable scenarios.
June 25, 2013 at 10:42 am
Sean Pearce (6/25/2013)
michal.lisinski (6/25/2013)
You have the right to disagree with my opinion, but there is no "right" answer here. For data that is not meant to persist beyond the...
June 25, 2013 at 8:26 am
Not difficult but we need something more to work with. Please post DDL and sample data to get the help needed. For more information on how to do it, read...
June 24, 2013 at 12:40 pm
This seems to be part of the problem posted in here
http://www.sqlservercentral.com/Forums/Topic1466855-1291-1.aspx
June 24, 2013 at 12:12 pm
Welcome to SQLServerCentral.
You posted a lot of code and it will be hard to get help with your post as it is.
June 24, 2013 at 12:05 pm
Hi,
What you're asking is not difficult but it sounds a lot like homework. Could you show us what have you tried?
June 24, 2013 at 6:50 am
Viewing 15 posts - 7,996 through 8,010 (of 8,731 total)