Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

IF LOGIC

$
0
0

hi

i need to know how to see previous value

example, i have two coumns

           category       reason        program

            active            open             1

now for category      reason we can have following value

             active           open

             inactive        close

            not avaiable   

            not rechable

Now if value for category change to inactive and close , i need to do print something.thsi is in stored proc , so each time when u run either it is active or inactive. i  want to know previosuly for that particular program if was open and active

and now its closed and inactive.

any help


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>