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 / 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 |
Can a table have 2 foreign keys?
How to handle errors in Stored Procedures.
You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?
What is the use of group by clause?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?
How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?
how can u select the Distinct values in the table, table having 20 columns , i want all columns
how to invoke a trigger on demand? : Sql server database administration
How do you read transaction logs
Hi..here i would like to know the Backup and Restore models?
What are the types of indexing?
Which virtual table does a trigger use?