Viewing 12 posts - 106 through 117 (of 117 total)
Pretty Neat 😎
CREATE PROCEDURE usp_CONF_reg_historicals
/*==============================================================================================
IRON CHEF
Today's secret ingredient: Cursors
==============================================================================================*/
AS
BEGIN
DECLARE @pa_eventmeetingsetupid NVARCHAR(38)
DECLARE @pa_eventidname NVARCHAR(55)
DECLARE @pa_meetingstartdate DATETIME
DECLARE @CT INT
DECLARE @createdbyname NVARCHAR(55)
DECLARE @registrationsetupidname NVARCHAR(55)
DECLARE @extendedamount MONEY
DELETE FROM ironchef_database_user.dbo.war_ConferenceRegistrations
-- meetings
DECLARE...
July 28, 2009 at 11:24 am
OOOOH okay. that makes perfect sense now.
I was thinking the first one was all I needed but it makes sense now because the second FETCH is inside the BEGIN END...
July 28, 2009 at 8:30 am
Thanks guys.
I'm just curious why another fetch is needed. I tested your suggestion and it worked.
July 28, 2009 at 7:32 am
I've read cursors are slow. It's not for a production type environment.
I'm just trying to learn how to create cursors since I'm not familar with them.
Honestly I'm not sure why...
July 27, 2009 at 3:00 pm
I'm starting to think the solution is to somehow merge records? I'm not sure if that would be the right approach or if it even exists in t-sql
July 22, 2009 at 9:53 am
that is correct.
I didn't know how to approach it so I created temporary tables and splitted the columns but then I didn't know how to not show the duplicate values...
July 22, 2009 at 9:31 am
Did you find enough info?
the original data got changed over night so I had to send you the newer data that needed to be displayed differently
July 22, 2009 at 9:21 am
I forgot to mention three or more STGs for each individual.
It's ok if John Doe in row 1 and Jane Doe in row 2 and Peter Doe in row 3...
July 22, 2009 at 8:57 am
Sorry.
Attachments for more sample data. ignore the first sample data I sent earlier.
Here is a pic of the output that is required:
Thanks again so much for wanting to help 😀
July 22, 2009 at 8:49 am
Hi Lynn
attached are the table ddl and sample inserts
thanks
July 22, 2009 at 8:10 am
You are the man. It worked however I do need to do it dynamically because I don't know the maximum number of ballotcommitteename in advance.
CTE is way new to me.
July 9, 2009 at 2:38 pm
Thanks Guys.
Hey Mark I changed what you told me and it worked so far. However the problem is I don't know how many time's I'll have to add the...
July 9, 2009 at 2:02 pm
Viewing 12 posts - 106 through 117 (of 117 total)