Viewing 15 posts - 18,046 through 18,060 (of 26,489 total)
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
clive-421796 (12/9/2009)
Hi Lynn, I attached the script to create the table and insert the data.Please view attachment: script for tmpTable1.rar
Before I look, could you at least answer my question?
December 9, 2009 at 1:06 pm
GSquared (12/9/2009)
Bru Medishetty (12/9/2009)
Hey Gus, how is it going on at your workplace? Are things settling down?
The rumor mill is seriously overclocked at this point. I think it's running...
December 9, 2009 at 1:03 pm
Here is a little more knowledge that will be beneficial here on SSC. Read the first article I reference below in my signature block regarding asking for assistance, then...
December 9, 2009 at 1:01 pm
Post the code for your trigger. Since you have made changes, it would be helpful to see the new code.
December 9, 2009 at 12:49 pm
Bru Medishetty (12/8/2009)
ray 78019 (12/8/2009)
December 9, 2009 at 12:44 pm
GSquared (12/9/2009)
Lynn Pettis (12/9/2009)
How the .... did this person get a job in IT?????The force in this one is not only weak, I think it is nonexistant.
I just checked the...
December 9, 2009 at 12:28 pm
Hope this code helps:
select substring(YourColumn, 1, charindex('-',YourColumn) - 1), substring(YourColumn, charindex('-',YourColumn) + 1,len(YourColumn) - charindex('-',YourColumn))
December 9, 2009 at 12:26 pm
Bru Medishetty (12/9/2009)
Lynn Pettis (12/9/2009)
Krasavita (12/9/2009)
Microsoft SQL Server 2000 - 8.00.2040 (Intel X86) May 13 2005 18:33:17 Copyright (c) 1988-2003 Microsoft...
December 9, 2009 at 12:15 pm
Hard to help with just the problem description provided. Please read the first article I reference below in my signature block regarding asking for assistance. If you follow...
December 9, 2009 at 12:14 pm
jcrawf02 (12/9/2009)
December 9, 2009 at 12:10 pm
Thank you, Gus. There are times I can't post certain code snippets from work, and this was one of them. Can't include d r o p t...
December 9, 2009 at 12:06 pm
Repost the code for your trigger. Since you have made changes we really need to see what you are actually running.
December 9, 2009 at 12:01 pm
Viewing 15 posts - 18,046 through 18,060 (of 26,489 total)