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 |
How to find the date and time of last updated table?
What do you understand by recursive stored procedure?
Explain the difference between functions and stored procedures in sql server?
What is the bookmark lookup and rid lookup?
How reterive duplicate value in SQL?
How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?
What are transactions and its controls?
Which are ddl commands?
What's the difference between a primary key and a unique key?
Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?
1. How to fetch all the duplicate records from the table. 2. How to fetch the second highest salary from the table.
What is extended stored procedures?