|
Hello to all, I am a DBA of 8 months so please bear with me. I am working on this prject for the company I am currently with for the past 4 months and I am almost finished. This is one of the last parts that I need to have functioning. I am needing to write a code that will find a particular ProductIdentifier. When this particular ProductIdentifier is found, 1. I need to grab that ProductIdentifier. 2. I need to go 2 rows up, then place that ProductIdentifier in the field that is 2 rows above it. Here is my code(everything is sorted properly already in this table) SELECT SipID, I will better show you what needs to be done ![alt text][1] [1]: http://ask.sqlservercentral.com/storage/temp/187-picture-of-what-i-need.jpg
(comments are locked)
|
The question has been closed May 04 '12 at 10:14 PM by ThomasRushton for the following reason:
Duplicate of http://ask.sqlservercentral.com/questions/88962/i-need-to-write-a-query-that-will-find-a-certain-v.html


Is there a unique identifier in the table? Possibly SIPID? If so, is that an integer by chance?
@John M
Yes, the unique identifier is the SipID and it is an integer which consists of 5 digits.