hi
i have the below table and the outcomes i want are in the last column.
ID period rate In result?
1 2015-01 1% No
1 2015-03 2% No
1 2015-03 2% No
1 2016-02 2% Yes
1 2016-02 3% Yes
1 2017-03 4% No
1 2017-03 4% No
1 2017-03 4% No
1 2017-04 4% Yes
1 2017-04 1% Yes
1 2017-04 4% Yes
i have so far the below -
SELECT ID, period, count(period)
INTO temp
FROM table 1
Group by ID, period
having count(period) >1
but how do i put rate into all this?
Is this your homework?