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
Mention the differences between having and where clause.
What is isolation levels?
Why is normalisation important?
What is query cost in sql server?
What is difference between drop truncate and delete?
What are sp_configure commands and set commands?
What is Command line parameters in PLSQL.?
What are drilldown reports?
How to Sync Two SQL Azure Databases?
What are the properties of the transaction?
What type of Index will get created after executing the above statement?
What is a transact-sql statement?
How to modify an existing user defined function?
What are types of scd? : sql server analysis services, ssas
What is efficiency data?