If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Location: The extremely Royal borough of Kensington, London
Posts: 778
I do not know the specifics of MS SQL, however a general approach to your problem might be
select column, count(*)
from table
where term > 1
group by student;
__________________
Bessie Braddock: Winston, you are drunk!
Churchill: And Madam, you are ugly. And tomorrow, I'll be sober, and you will still be ugly.