Viewing 15 posts - 1 through 15 (of 19 total)
I found the solution.
I had to change to:
declare @rows_deleted int
declare @rows_inserted int
declare @currSTRM varchar(4)
declare @TSQL varchar(8000)
set @currSTRM=(select OS_CURR_STRM from SIS.dbo.PS_OS_TERM_INFO_VW where ACAD_CAREER='GRAD')
--begin tran
-- Delete all rows from local table
--delete from...
September 9, 2016 at 8:53 am
Thanks for the information. Do you recommend I utilize cursors or a while statement to loop through and assign?
March 1, 2016 at 10:31 am
MMartin1 (2/25/2016)
February 26, 2016 at 8:14 am
MMartin1 (2/25/2016)
February 25, 2016 at 2:00 pm
Steve Jones - SSC Editor (2/25/2016)
How do you decide that item A (Pitbull) becomes Item B (Boxer)? I am guessing you assume that the...
February 25, 2016 at 1:28 pm
I appreciate everyone's help and patience.
To begin I have temp table that has all the data (the dummy canine table). The breed was previously assigned to each record. ...
February 25, 2016 at 12:31 pm
This is dummy data. I can not post the actual production data. The idea is that if a certain value is in the table more than a certain number of...
February 25, 2016 at 8:21 am
Original data
AppIDBreedage
101Pitbull2
102Boxer4
103Pitbull1
104Pitbull5
105Boxer2
106Pitbull2
107Boxer8
108Pitbull1
109Pitbull3
110Boxer8
Expected output
AppIDBreedage
101Pitbull2
102Boxer4
103Pitbull1
104Pitbull5
105Boxer2
106Pitbull2
107Boxer8
108Pitbull1
109Boxer 3
110Boxer8
February 10, 2016 at 7:38 am
I am attempting to update the temp table not delete the records or insert new ones.
February 10, 2016 at 6:40 am
The age column is not important. Just need to find a way to level the groups out.
February 10, 2016 at 6:37 am
Thank you! I edited my original post and added the INSERT statements.
February 7, 2016 at 3:15 pm
are you referring to the the insert statement for the data from the child_TBL and Health_TBL? I am using the select into #table.
example: SELECT App_ID, LEFT(Major, CHARINDEX('-', Major)-1) AS...
February 7, 2016 at 2:01 pm
Thank you for all the assistance so far. I made some updates to my original post. I did have a syntax error from an extra comma that I removed.
February 7, 2016 at 10:20 am
I added the DDL statements to create tables. I apologize for not supplying all the needed information. I am new to this site but will make sure in the future...
February 7, 2016 at 7:32 am
I added the DML statements that I am using to insert into the temp tables.
February 6, 2016 at 4:51 pm
Viewing 15 posts - 1 through 15 (of 19 total)