We are providing online training of realtime Live project on Asp.Net MVC with Angular and Web API. For more information click here. If you have any query then drop the messase in CONTACT FORM

Friday, August 14, 2015

Create table EmpJoin
(
EmpId int,
EmpName  varchar(50),
joinDate date
)

insert into EmpJoin(EmpId,Empname,joinDate)values(1001,'mithilesh','02-05-2015')
select * from EmpJoin
select DATEDIFF(WEEK,(select joinDate from EmpJoin),GETDATE())



Output:



No comments: