0% found this document useful (0 votes)
32 views1 page

(Account) (Aadhar) (Account) (Aadhar) (Amount) (Churufamin - 1) (Dbo) (Final) (Account) (Aadhar) (Account) 1 (Aadhar) 1

This SQL query selects the account, Aadhar ID, count of duplicate accounts, count of duplicate Aadhar IDs, and sum of amounts from the ChuruFamin_1 database where the account and Aadhar ID are duplicated more than once to find records with duplicate or inconsistent data.

Uploaded by

Devesh Agarwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

(Account) (Aadhar) (Account) (Aadhar) (Amount) (Churufamin - 1) (Dbo) (Final) (Account) (Aadhar) (Account) 1 (Aadhar) 1

This SQL query selects the account, Aadhar ID, count of duplicate accounts, count of duplicate Aadhar IDs, and sum of amounts from the ChuruFamin_1 database where the account and Aadhar ID are duplicated more than once to find records with duplicate or inconsistent data.

Uploaded by

Devesh Agarwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Select [ACCOUNT ], [Aadhar],COUNT([ACCOUNT ]), COUNT([Aadhar]),Sum([AMOUNT ])

FROM [ChuruFamin_1].[dbo].[final]
Group by [ACCOUNT ], [Aadhar]
Having COUNT([ACCOUNT ])>1 and COUNT([Aadhar])>1

You might also like