Viewing 15 posts - 3,421 through 3,435 (of 8,731 total)
Brandie Tarvin (2/3/2016)
Luis Cazares (2/3/2016)
Brandie Tarvin (2/3/2016)
SQLian (2/3/2016)
delete [FROM] Customers
where CustID NOT in (
...
February 3, 2016 at 9:56 am
misscrf (2/3/2016)
February 3, 2016 at 9:40 am
SQLian (2/3/2016)
Yes, my bad as I failed to read the original question properly. I assumed wrongly that CustId was a PK.I'll return to my cave.
Your approach is certainly better than...
February 3, 2016 at 9:07 am
It might be caused by how the date ranges are handled. The union might allow to get a more straight forward plan.
Maybe if you combine the solutions, you could get...
February 3, 2016 at 8:07 am
Hugo Kornelis (2/3/2016)
Then I recalled that the connect option at server level is actually called CONNECT SQL, not just CONNECT, so...
February 3, 2016 at 7:51 am
Brandie Tarvin (2/3/2016)
SQLian (2/3/2016)
delete Customers
where CustID NOT in (
...
February 3, 2016 at 7:37 am
Ed Wagner (2/2/2016)
Luis Cazares (2/2/2016)
o.kaesmann (2/2/2016)
My faforite method to clean-up duplicated rows is this (I used the example code from above):
That's certainly interesting. I've never heard of %%physloc%% before and...
February 2, 2016 at 1:31 pm
Sean Lange (2/2/2016)
Luis Cazares (2/2/2016)
I'm not sure what's worse. An article promoting RBAR code or comments arguing that the code in the article won't work even if it does.
Some people's...
February 2, 2016 at 1:04 pm
<rant>
I'm not sure what's worse. An article promoting RBAR code or comments arguing that the code in the article won't work even if it does.
Some people's fingers work faster than...
February 2, 2016 at 12:53 pm
John Donaldson (2/2/2016)
This will delete all of the records that have more than 1 occurrence including the original.
I guess you didn't try the code. Here, let me give you the...
February 2, 2016 at 12:49 pm
Can you post sample data with expected results?
This seems like an EAV design which wouldn't need self joins, it only needs cross tabs using the MAX() aggregate function.
Here's a basic...
February 2, 2016 at 12:40 pm
Why are you converting RowID to strings? You're only adding work to the server with no real purpose.
Try this to see if it works correctly.
SELECT Tt.rowid,
...
February 2, 2016 at 12:30 pm
You're trying to replace using the wildcard, which is not a wildcard in the REPLACE function.
Here's an example of possible corrections:
CREATE TABLE #Titles_Import(
[LC Call Num] nvarchar(255) collate SQL_Latin1_General_CP1_CI_AS...
February 2, 2016 at 11:04 am
Something like this?
DECLARE @SpecialChar char(3) = '%#%' --Example of special character
SELECT *
FROM myTable
WHERE Stringcol1 LIKE @SpecialChar
OR Stringcol2 LIKE @SpecialChar
OR Stringcol3 LIKE @SpecialChar;
Don't use this in production code. This should be...
February 2, 2016 at 10:53 am
marquito_61 (2/2/2016)
But this method eliminates all duplicate recordsthat is wrong
As far as I know, none of the code posted in the article of the forum eliminates all rows with duplicates,...
February 2, 2016 at 9:27 am
Viewing 15 posts - 3,421 through 3,435 (of 8,731 total)