In my table EmpName column has some names .I want to display both column values but im not able to display both in gridview
Miranda Breaed
Miranda
in the below query .im able to pass either one of above names but both names are related to same person. How can I get both names with firstname and lastname or firstname .In the Emp table I don't have Firstname ,LastName columns ,I have only EmpName .
SqlCommand cmd = new SqlCommand("select distinct EmpID,EmpName,StartDate,EndDate,
Total from Emp where ClientID = @ClientID and EmpName=@EmpName order
by EmpID desc ", sqlConn);