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 can you control the amount of free space in your index pages?
What is instead of trigger sql server?
What is the difference between left and right outer join?
How to update multiple rows with one update statement in ms sql server?
What is the difference between seek predicate and predicate?
What are the advantages of using stored procedures in sql server?
Does a server store data?
What is rs.exe utility?
What is data file in computer?
How to deploy the Report?
Tell me what is normalization? Explain different forms of normalization?
Does group by or order by come first?
Explain the difference between HTTP and HTTPS in database?
What is the purpose of update statistics and scope_identity() function?
Explain what are the events recorded in a transaction log?