Viewing 15 posts - 18,031 through 18,045 (of 26,484 total)
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
Based on your sample table and data:
with CombinedData as (
select
row_number() over (partition by ItemId order by LocationDateTime asc) as RowNum,
ItemId,
...
December 9, 2009 at 1:27 pm
Try this:
SELECT DISTINCT
PER_NR,
isnull(CHCM.OUTGOING_DATA, IPC.STATUS) AS 'STATUS',
SOC_MAPPING
FROM
CHCM_TO_PSOFT_MAPPING CHCM --Master Table used for mapping the data
...
December 9, 2009 at 1:19 pm
In SQL Server, triggers are fired once regardless if it is one row or multiple rows. You need to write triggers to handle both situations.
December 9, 2009 at 1:10 pm
Viewing 15 posts - 18,031 through 18,045 (of 26,484 total)