no, the fist one
SELECT a.column1, b.column1
FROM table1 a, table1 b
WHERE REPLACE (a.column1, ' ', '') = REPLACE (b.column1, ' ', '')
MINUS
SELECT a.column1, b.column1
FROM table1 a, table1 b
WHERE a.column1 <> b.column1
To explain a little bit better the results, I need to find the duplicate records due to spacing so it can be fix in the database so I want to see
record 1 which is AB has a duplication due to spacing, that record is A B. I need to see both so I am comparing the same column. Once I compare I...
SantaMufasa,
Thank you but I think I did not explain myself right.
I have a table with a row that must be unique. However, some of the records have spacing on it which does not make it unique. I created the first query to find out the duplicated records due to spacing.
My results from my...
Hi,
I have a query that finds any duplicates caused by spacing.
This is my query
Select a.column1, b column1
from table1 as a, table1 as b
where replace (a.column1,' ','') = replace (b.column1,' ','')
and a.column1 <> b.column1
this is my result
column1 column1_1
A+ A +
A + A+
B+ B +
B...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.