please bar with my english
i having a database called tblhallreservation in which
res_date is date field
has to select all the fields in table deponding on month
either has to display all details for the month jan or feb
and so on
Answer Posted / kiran bala rath
select datename(mm,res_date),* from Tablename order by
convert(int,right(left(convert(varchar,res_date,105),5),2))
asc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to return the date part only from a sql server datetime datatype?
State a few properties of relational databases?
Can we call stored procedure in trigger?
What are the advantages of using a stored procedure?
what is datawarehouse?
Define left outer join?
What is the partitioning method?
Why is replication required on the sql server?
How do you rename a table in sql server?
What security features are available for stored procedure?
what are the new features in SSRS?
What is the new security features added in sql server 2014? : sql server security
How to change the name of a database user?
What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?
What is named query? : sql server analysis services, ssas