i need to run query to insert data from one table to another,
but only the unique rows,
kindly assist, below is the query,
Insert into [Test_Audit_DB].[dbo].[New_Login_Audit]
SELECT
EventName ,
subclass_name ,
DatabaseName ,
DatabaseID ,
NTDomainName ,
ApplicationName ,
LoginName ,
distinct SPID ,
StartTime ,
RoleName ,
TargetUserName ,
TargetLoginName ,
SessionLoginName
FROM [Test_Audit_DB].[dbo].[Audit_Table]