create table with fields ID, reserved_by,res_date
res_date is datefield like 2010-03-09 00:00:00.000 from
2005 to 2006 any date assume
based on res_date need to slect table and display
based on month (full jan details in database irrespective
of date and year
Answer Posted / thangas sujith prabu.s
select * from tablename where res_date>'2010-01-01
00:00:00.000' and res_date<'2010-02-01 00:00:00.000'
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to use union to merge outputs from two queries together in ms sql server?
explain different types of backups avaialabe in sql server? : Sql server database administration
How to reaname table name without using sp_Rename in sql server..?
How each E-R model constructs can be mapped to the relational model?
What are synonyms?
what is blocking? : Sql server database administration
How to include date and time values in sql statements?
How to receive output values from stored procedures?
How display code or Text of Stored Procedure using Sql query in Sql Server ?
Explain partitioned view?
What is change data capture (cdc) in sql server 2008?
What is the default sql server instance name?
What is the difference between indexing and hashing?
Why and when do stored procedure recompile?
How to connect to SQL Azure Database by using sqlcmd?