asked on
ASKER
Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.
TRUSTED BY
with t1 as
(
select row_number() over (partition by doc_ref1,acct_name,amt1,do
doc_ref1,
acct_name,
amt1,
doc_datei1,
doc_type
from
glf_ldg_acc_trans
)
delete from t1 where rown > 1
note that this will delete all duplicate records leaving you with one copy of each duplicate
if you have many duplicate records you might consider breaking this into multiple statements