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"
Answers were Sorted based on User's Feedback
Answer / newbie
CREATE PROCEDURE GetEventsByMonths
@MONTH VARCHAR(15)
AS
SET NOCOUNT ON
SELECT name,DATENAME(MONTH,startdate) AS Startmonth
FROM Events
WHERE DATENAME(MONTH,startdate) = @MONTH
GROUP BY name,DATENAME(MONTH,startdate)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / krishna mohan thamisetty
select datename(mm, startdate) startdate, datename(mm,
enddate) enddate, location from t1
Is This Answer Correct ? | 0 Yes | 2 No |
What is forward - only cursors / read only cursor?
What is merge?
Explain linked server in sql?
Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table?
What is user-defined function? Explain its types i.e. Scalar and inline table value user-defined function?
How to download microsoft sql server 2005 express edition?
How do I run sql server 2014?
What is stretch database in sql server?
How to drop an existing table?
What is a cube? : sql server analysis services, ssas
When a primary key constraint is included in a table, what other constraints does this imply?
How to insert multiple rows with one insert statement in ms sql server?