Hi
How to Shows Single Records particular Table
create table EmailTesting
(
id int primary key identity(1,1),
emailid nvarchar(100),
Date datetime
)
Insert into EmailTesting VALUES('abc@gmail.com',GETDATE()+1)
Insert into EmailTesting VALUES('abce@gmail.com',GETDATE()+2)
Insert into EmailTesting VALUES('abct@gmail.com',GETDATE()+3)
Insert into EmailTesting VALUES('abc@gmail.com',GETDATE()+4)
Insert into EmailTesting VALUES('abc@gmail.com',GETDATE()+5)
select * from EmailTesting
--I need output
-- How to Show Without Duplicate Emailid only shows
--ID EmailID Date
--2 abce@gmail.com 2018-08-05 13:04:17.720
--3 abct@gmail.com 2018-08-06 13:04:17.720
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com