Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
CREATE TABLE employee_active_on_proj
(
    EmpName varchar(50),
    ProjectName varchar(50),
    startofproject datetime,
    EndOfProject datetime
);

And here is one row of data

SQL
insert into employee_active_on_proj values('JOhn','Projet 1','03/04/2015','14/04/2015')

insert into employee_active_on_proj values('JOhn','Projet 2','16/04/2015','24/04/2015')


My output should be based on the inputs Month and year using stored procedure



=======================================================================
Empname 01/04/2015 .. 03/04/2015 14/04/2014 .... 31/04/2015

=======================================================================
JOhn N/A ACTIVE Project ends

========================================================================
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900