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



please bar with my english i having a database called tblhallreservation in which res_date is dat..

Answer / 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

More SQL Server Interview Questions

What is the command used to recompile the stored procedure at run time?

0 Answers  


i need to know how i display department which has salary > =5000 for the below table Department ----------- salary deptname 1000 a 3000 a 2000 b 3000 b 4000 c 5000 c kindly send the query to thilakvinoth13@gmail.com

6 Answers  


Give me a SQL Query to find out the second largest company?

0 Answers   Ernst Young,


Can we insert data into view sql server?

0 Answers  


How is table type constraint applied to a table?

0 Answers  






What are a scheduled jobs?

0 Answers  


How to write character string constants or literals in ms sql server?

0 Answers  


What is multi-statement table-value user-defined function?

0 Answers  


Tell me what is difference between view and materialized view?

0 Answers  


What is difference between views and stored procedures?

0 Answers  


Do you know what are various aggregate functions that are available?

0 Answers  


List the advantages of using stored procedures?

0 Answers  


Categories