Viewing 15 posts - 31 through 45 (of 287 total)
By virtue of using the MERGE statement you have already specified the TARGET table, so no need to quality the INSERT, UPDATE or DELETE:
INSERT ([Name]
...
August 5, 2011 at 11:53 am
I'm not sure if I'm following what you want to do, but can't you simply delete the rows?
DELETE CityStates
WHERE StateID = 1
OR PartneID = 1
August 5, 2011 at 11:44 am
It was just an example of other ways to get rangom rows.
July 22, 2011 at 12:50 pm
I'm not sure I understand waht you are tryign to do, but myabe this will help? SELECT
...
WHERE
1 = CASE
...
July 1, 2011 at 2:41 pm
I'm not sure I fully understand, but maybe this will get you going:SELECT
*
FROM
(
SELECT *
...
June 24, 2011 at 10:55 am
I found the issue. The filter for CHARINDEX('=', Item) > 0 was being evaluated after the SUBSTRING. I changed the AttribValues CTE to this and it works:,AttribValues
AS
(
...
June 24, 2011 at 10:34 am
This doesn't seem to have any affect on the sampel data you provided but the NULL check and the LENGH seem to be out of order:,N(N)
AS
(
...
June 24, 2011 at 10:19 am
I know there are some articles out there (sorry I don't have a link), but the conclusion is that "it depends." I don't know of any hard and fast rules...
June 14, 2011 at 8:29 am
A little late to the part and it sounds like you might have it coverd. But, do the statistis show the correct row count? I've seen them get out of...
June 10, 2011 at 10:58 am
I don't know about your indexs, but applying a function to a column makes it so that predicate is not SARGable.
You might try chaning:
AND left(c.comment_code, 3) = '220'
to something like:
AND...
May 26, 2011 at 9:46 am
I realize this doesn't actually help provide a solution to your actual question, but I've been through this before, albeit non-medical. And, trust me, there is no valid solution unless...
May 25, 2011 at 1:42 pm
I'm not sure if this is the case but according to Microsoft, there is no guarentee that nondeterministic scalar functions will executed for every row.
I submitted a "bug" a while...
May 25, 2011 at 1:27 pm
SkyBox (5/25/2011)
May 25, 2011 at 12:56 pm
EdVassie (5/23/2011)
Row Versioning is what happens to rows. Every change to a row changes the row version Id.
Row versioning has...
May 24, 2011 at 11:41 am
Assuming all parsed values are INTs, it's pretty easy:
;with cte(vers)
as
(
select '10.00.1818'
union all
select '10.00.1823'
union all
select '9.00.4315'
union all
select '9.00.4317'
union all
select '10.50.1600.1'
union all
select '10.50.1600'
union all
select '10.50.1600.2'
union all
select '-10.50.1600.2')
select vers
from cte
cross apply(select REVERSE(vers)) as...
May 20, 2011 at 1:59 pm
Viewing 15 posts - 31 through 45 (of 287 total)