I have the following table with values as
CREATE TABLE stud
(
sname NVARCHAR(10),
hr NVARCHAR(30),
dt DATETIME,
att VARCHAR(3)
)
INSERT INTO stud VALUES ('Abi', '1', '21/01/2013','a')
INSERT INTO stud VALUES ('Abi', '2', '21/01/2013','p')
INSERT INTO stud VALUES ('bala', '1', '21/01/2013','p')
INSERT INTO stud VALUES ('bala', '2', '21/01/2013','a')
INSERT INTO stud VALUES ('bala', '1', '22/01/2013','od')
INSERT INTO stud VALUES ('bala', '2', '22/01/2013','ml')
INSERT INTO stud VALUES ('Abi', '1', '22/01/2013','ml')
INSERT INTO stud VALUES ('Abi', '2', '22/01/2013','od')
If i select this table i get the output as
SELECT *
FROM stud
sname hr dt att Abi 1 2013-01-21 00:00:00.000 a Abi 2 2013-01-21 00:00:00.000 p bala 1 2013-01-21 00:00:00.000 p bala 2 2013-01-21 00:00:00.000 a bala 1 2013-01-22 00:00:00.000 od bala 2 2013-01-22 00:00:00.000 ml Abi 1 2013-01-22 00:00:00.000 ml Abi 2 2013-01-22 00:00:00.000 od
but I want the output as follows in crystal report in ASP.NET ( Note : the date should given as dynamically as from_date to to to_date )
sname 21/01/2013 22/01/2013
I tried for this output from long days itself, but didn't get output.