Viewing 15 posts - 1 through 15 (of 45 total)
Excellent, thank you Des and Chris. I will be studying this today! I always love posting here, I learn something new every time.
May 8, 2017 at 9:12 am
Having said that, I would prefer to not rely on an "edited" column being updated by the client as client times could be inaccurate/time zone dependent.
I would either replace that...
August 21, 2016 at 6:18 pm
mister.magoo (8/21/2016)
WITH CTE AS
(
SELECT
seq
, ROW_NUMBER() OVER
(
...
August 21, 2016 at 6:15 pm
CELKO (8/17/2016)
August 17, 2016 at 1:07 pm
drew.allen (8/17/2016)
August 17, 2016 at 10:40 am
drew.allen (8/16/2016)
DECLARE @a TABLE (
seqINT,
orig_seq INT
)
INSERT @a( seq, orig_seq)
VALUES(1, 1), (2, 2),...
August 17, 2016 at 8:07 am
Luis Cazares (8/16/2016)
WITH CTE AS(
SELECT *, ROW_NUMBER() OVER( ORDER BY CASE WHEN seq = @OldSeq THEN @NewSeq
...
August 16, 2016 at 3:38 pm
Luis Cazares (8/16/2016)
create table #temp(seq int,step varchar(50))
insert into #temp (seq,step) values (1,'do this first')
insert into #temp (seq,step) values (2,'then do this')
insert into #temp (seq,step) values (3,'finally do this')
insert...
August 16, 2016 at 2:03 pm
Luis Cazares (8/16/2016)
How would you identify which step 1 is the first and which one is the second?
Ah good point :Whistling: That was most likely my stumbling block prior to...
August 16, 2016 at 1:23 pm
Lavanyasri (11/30/2015)
Thanks a lot. it worked for me also.But still i am getting ------ one complete row after the header columns
I started this thread years ago - brings...
December 1, 2015 at 12:21 pm
drew.allen (8/12/2015)
DECLARE @temp TABLE (id int,logonid varchar(15),reviewer varchar(15))
insert into...
August 12, 2015 at 10:36 am
Luis Cazares (8/12/2015)
Does the assignment need to be balanced?
Yes. By balanced I'm guessing you mean each Logonid must be assigned as a Reviewer and can only be assigned once.
Thank...
August 12, 2015 at 9:29 am
Jack Corbett (8/12/2015)
A different person to each what?Something like this will create a random order:
SELECT * FROM #temp AS T ORDER BY NEWID();
For example, personA would be assigned...
August 12, 2015 at 9:19 am
Luis Cazares (8/12/2015)
Are you missing information? Where do you get the persons that will be assigned? Are those the reviewers?
Those listed in the Logonid column will be the reviewers. So...
August 12, 2015 at 9:17 am
Those listed in the Logonid column are the reviewes. So personA might be assigned to personC etc. PersonA obviously can't be assigned as a reviewer to PersonA, that...
August 12, 2015 at 9:15 am
Viewing 15 posts - 1 through 15 (of 45 total)