A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
For example, to get the latest Sent (if there are several rows with the same FullName and MessageID), try this query:
select FullName, [97], [98], [99], [100]
from
(
select FullName, MessageID, [Sent] from Notifications
) as s
pivot
(
max([Sent]) for MessageID in ( [97], [98], [99], [100] )
) as p
order by [97]
If something else is necessary, show the data.