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


Please Help Members By Posting Answers For Below Questions

Is sql server free?

522


Can we use custom code in ssrs?

583


How to define the name and server for a new dsn?

545


What is the use of nvl work?

561


What is the default value of an integer data type in sql server 2005?

582






How many types of database relationship in sql server?

561


Call by value and call by reference in procedure and function, with NOCOPY.

835


What is the difference between a view and a stored procedure?

552


Can we add our custom code in ssis?

544


What are the transaction properties?

547


What does dml stand for?

504


what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

514


How many triggers you can have on a table?

531


Difference between Sql server reporting services and Crystal reports?

124


what are defaults? : Sql server database administration

515