Viewing 15 posts - 18,031 through 18,045 (of 26,489 total)
I'm confused, what is the question asking? I'd like to answer it today, but with this question it would all be a shot in the dark.
December 10, 2009 at 6:31 am
J M-314995 (12/9/2009)
Lynn Pettis (12/9/2009)
select
AcctNum,
ChargeCode,
ROW_NUMBER() over (partition by AcctNum order by ChargeDate) as ItemNum
from
...
December 9, 2009 at 7:19 pm
New code, does this help?
create table dbo.Charges (
AcctNum int,
ChargeCode varchar(10),
ChargeDate datetime
);
insert into dbo.Charges
select 257...
December 9, 2009 at 7:13 pm
J M-314995 (12/9/2009)
Lynn Pettis (12/9/2009)
December 9, 2009 at 7:10 pm
Answering my own questions (Only part of the output, order of charge code immaterial), here is some code:
create table dbo.Charges (
AcctNum int,
ChargeCode...
December 9, 2009 at 6:44 pm
Two questions. One, is itemnumber part of the table or just part of the output? Two, is the order of the charges per account important?
December 9, 2009 at 6:33 pm
Jeff Moden (12/9/2009)
Lynn Pettis (12/9/2009)
December 9, 2009 at 6:28 pm
What should the result set for these be? They are a part of the sample data as well.
select '2241','eex','8/21/2008 12:00am' union all
select '2241','co2','9/21/2008 12:00am' union all
select '2241','co2','9/23/2008 12:00am' union...
December 9, 2009 at 5:03 pm
TSQLExplorer (12/9/2009)
Sorry .. guess I missed that in your suggested article..I've edited the initial post to reflect this requirement.
Correct, it is missing from the article, but it wasn't missing from...
December 9, 2009 at 4:55 pm
Please don't describe the results you want, show us using the sample data. This way we have something to test against.
December 9, 2009 at 3:17 pm
Would that depend on how the application passing the value back to the database? Not too familiar with ASP.
December 9, 2009 at 2:41 pm
TSQLExplorer (12/9/2009)
Thanks.. took your suggestion and edited the initial post to contain the recommended code.
Okay, now how about the expected output based on the sample data provided?
December 9, 2009 at 2:36 pm
Funny.
Our SSIS projects are saved in VSS (we aren't using Team Edition). If someone on my team creates a new project, I can just check it out from VSS...
December 9, 2009 at 2:32 pm
clive-421796 (12/9/2009)
Is the following order of records guarantteed, or could you get a type 1 with no following type 0, or could you get 2 consecutive type 1's or...
December 9, 2009 at 1:45 pm
Would help if you posted your code. Not much help otherwise.
December 9, 2009 at 1:33 pm
Viewing 15 posts - 18,031 through 18,045 (of 26,489 total)