query statement
-
i use "Select * from tableName Where joinDate >= '02/05/2006' And joinDate <= '15/05/2006'". it does not work but why, i use sql server. plz help me.
-
i use "Select * from tableName Where joinDate >= '02/05/2006' And joinDate <= '15/05/2006'". it does not work but why, i use sql server. plz help me.
what do you mean by its not work ?? Tamimi - Code
-
what do you mean by its not work ?? Tamimi - Code
i mean, it does not return any row but the table contains those type of row which satisfied this condition( joinDate >= '02/05/2006' And joinDate <= '15/06/2006')
-
i mean, it does not return any row but the table contains those type of row which satisfied this condition( joinDate >= '02/05/2006' And joinDate <= '15/06/2006')
try to excute your query in the query analyzer and see what happen. if its work take a look to your code. Tamimi - Code
-
i use "Select * from tableName Where joinDate >= '02/05/2006' And joinDate <= '15/05/2006'". it does not work but why, i use sql server. plz help me.
-
i use "Select * from tableName Where joinDate >= '02/05/2006' And joinDate <= '15/05/2006'". it does not work but why, i use sql server. plz help me.
sometimes the sql server configure the date as mm/dd/yy so 15/05/2006 is not a valid date Tamimi - Code
-
i use "Select * from tableName Where joinDate >= '02/05/2006' And joinDate <= '15/05/2006'". it does not work but why, i use sql server. plz help me.
You better use the yyyyMMdd format with SQL server for dates: This :
foysal mamun wrote:
Select * from tableName Where joinDate >= '02/05/2006' And joinDate <= '15/05/2006'
should be written like:
Select * from tableName Where joinDate >= '20060502' And joinDate <= '20060515'
-
i use "Select * from tableName Where joinDate >= '02/05/2006' And joinDate <= '15/05/2006'". it does not work but why, i use sql server. plz help me.
Does the exact query entered into SQL Server through Query Analyzer return any rows?