hii..
I have written a quary in sqlserver 2000 and the out put is not as expected...
the quary is..
$sql="SELECT NAME,ROOM,DESIG ,EMAIL,PHONE,ST ART_DATE,END_DA TE,CHAIRED_BY FROM CRB_MEETING
WHERE STATUS <>'D'AND (CAST('10-15-2007 ' AS DATETIME) BETWEEN
CONVERT(datetim e, SDATE, 103) AND CONVERT(datetim e, EDATE,103) OR
CAST('10-17-2007 'AS DATETIME)
BETWEEN CONVERT(datetim e, SDATE, 103) AND CONVERT(datetim e, EDATE, 103))"
now the motive is to get the value lying between sdate and edate field...but on executing the quary it is marely giving the first row of the database table.
i am surprised that why the error is coming...can you please help me ..
regards
Dreamer.
I have written a quary in sqlserver 2000 and the out put is not as expected...
the quary is..
$sql="SELECT NAME,ROOM,DESIG ,EMAIL,PHONE,ST ART_DATE,END_DA TE,CHAIRED_BY FROM CRB_MEETING
WHERE STATUS <>'D'AND (CAST('10-15-2007 ' AS DATETIME) BETWEEN
CONVERT(datetim e, SDATE, 103) AND CONVERT(datetim e, EDATE,103) OR
CAST('10-17-2007 'AS DATETIME)
BETWEEN CONVERT(datetim e, SDATE, 103) AND CONVERT(datetim e, EDATE, 103))"
now the motive is to get the value lying between sdate and edate field...but on executing the quary it is marely giving the first row of the database table.
i am surprised that why the error is coming...can you please help me ..
regards
Dreamer.
Comment