Viewing 15 posts - 136 through 150 (of 194 total)
DBAgal (1/26/2012)
January 26, 2012 at 2:55 pm
2 options.
1. Use "ISNULL(field,0)" on each field.
or
2. Modify the table/load procedure to default a "0.00" on each field and mark as NOT NULL. This option will require...
January 24, 2012 at 11:36 am
Very well written article, I hope to see more about service broker in the future. As to implementations of Service Broker, basically it's only as complicated as you...
December 15, 2011 at 6:21 am
MasterDB (12/3/2011)
since two days am facing problem with service broker. its just like data is not dequeuing from queue.
usually data should dequeued automatically,but since two days data is enqueing...
December 5, 2011 at 6:45 am
You need to add join criteria. so your query would be something like
...
FROM A INNER JOIN
B ON A.ID = B.ID
WHERE...
November 2, 2011 at 12:21 pm
notoriousdba (10/25/2011)
Let me...
October 26, 2011 at 11:41 am
I'm not an expert but I'd take a look at your joins. You join to Partnership which has multiple rows for ID 1, then join to the other tables...
October 26, 2011 at 6:38 am
Mike,
For option 1, Use a view in place of the CTE. That's all it's doing is providing a query on the Data.
October 24, 2011 at 1:18 pm
OP can correct, but it looks like you start at the top. Select the first row that is "D" and the first row of "A" that have matching DataKeys....
October 24, 2011 at 1:16 pm
Kraig,
I think what it's analyzing is on the whole find all pairs that match DataKey and have opposite Types. Any "orphan" or "single" DataKey is "Not a dup". ...
October 24, 2011 at 1:12 pm
hm... not has hard as I might have thought...
UPDATE #TestTBL SET DupInd = -2;
WITH mycte AS (
SELECT
Row = ROW_NUMBER() OVER (PARTITION BY [datakey] ORDER BY [RecID]),
[RecID], [DataKey], [DupInd]
FROM
#TestTBL
WHERE
TransCode = 'A'
),
mycte2...
October 24, 2011 at 12:23 pm
If I may, that won't be an easy one to do. You might want to have a look at the cumulative update or running total articles by Jeff Moden...
October 24, 2011 at 12:07 pm
Here's the Query plan for both... it shows both batches.
October 19, 2011 at 11:50 am
Sounds like a home work question, so this is a very very basic SQL update with case statement. You should be able to start there.
October 17, 2011 at 12:18 pm
I found that XQuery tends to be slow... so when I've had to parse XML I used OPENXML and the edge tables to parse it... it's basically a 1 time...
October 12, 2011 at 11:29 am
Viewing 15 posts - 136 through 150 (of 194 total)