There is table like Events...in that name ,startdate
,enddate,location are the column names
write a stored Procedure for this table to get events by
Months "GetEventsByMonths"

Answer Posted / krishna mohan thamisetty

select datename(mm, startdate) startdate, datename(mm,
enddate) enddate, location from t1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the server name in sql server?

555


How many categories of data types used by sql server?

593


Can group functions be mixed with non-group selection fields in ms sql server?

540


In what three ways is the return statement used in a stored procedure?

514


What is the beast way to write CTE in SQL Server ?

557






How many database files are there in sql server 2000?what are they?

577


Explain the microsoft sql server delete command?

532


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

852


How many types of triggers are there?

568


what types of replication are supported in sql server? : Sql server database administration

461


How to modify an existing stored procedure in ms sql server?

527


Explain what stored procedure sp_replcounters is used for? : sql server replication

999


Where are sql server usernames and passwords stored in the sql server?

611


Explain what is log shipping?

576


What is the sql profiler?

540