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
What is difference between delete & truncate commands?
How can you insert null values in a column while inserting the data?
what are the disadvantages of cursors? : Sql server database administration
what type of index will get created after executing the above statement? : Sql server database administration
What is store procedure?
Explain partitioned view?
How to return the date part only from a sql server datetime datatype?
Where are full-text indexes stored?
Give an example of why you would want to denormalize a database
What the difference between UNION and UNIONALL?
List the different index configurations possible for a table?
What are various ways to enhance the ssrs report?
Explain what is public role in sql server?
What is field in algebra?
Can a rule be bound to any column of any data type?