Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
which produces the following result set
select t.acc1 , t.TranDate , t.rate , case when t.TranDate = D.tranDate then 'Base' when t.rate > d.rate then 'Increase' when t.rate < d.rate then 'Decrease' else 'Equal' end as Movement from YourTable t inner join ( select acc1, TranDate, rate, row_number() over(partition by acc1 order by TranDate ASC) as rn from YourTable ) d ON t.acc1 = d.acc1 and d.rn=1 where ( t.TranDate = d.TranDate or t.rate < d.rate ) order by acc1, TranDate