Нечто в этом роде. Но учти, что будет выводиться на каждого юзера столько записей, сколько их с равной макимальной датой. </P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none <SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New' mso-no-proof: yes SELECT</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New' mso-no-proof: yes <FONT color=#000000> UserID<SPAN style="COLOR: gray ,</SPAN><FONT color=#000000> Date<SPAN style="COLOR: gray ,</SPAN><FONT color=#000000> act2<SPAN style="COLOR: gray .</SPAN><SPAN style="COLOR: blue Action<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com

ffice

ffice" /><o

></o

></SPAN></SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none <SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New' mso-no-proof: yes FROM<o

></o

></SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none <SPAN style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Courier New' mso-no-proof: yes (<o

></o

></SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none <SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New' mso-no-proof: yes <SPAN style="mso-tab-count: 1 <FONT color=#000000> </SPAN><SPAN style="COLOR: blue SELECT</SPAN><FONT color=#000000> UserId<SPAN style="COLOR: gray ,</SPAN><FONT color=#000000> <SPAN style="COLOR: fuchsia Max</SPAN><SPAN style="COLOR: gray (</SPAN><FONT color=#000000>Date<SPAN style="COLOR: gray )</SPAN><FONT color=#000000> Date<o

></o

></SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none <SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New' mso-no-proof: yes <SPAN style="mso-tab-count: 1 <FONT color=#000000> </SPAN><SPAN style="COLOR: blue FROM</SPAN><FONT color=#000000> Actions<o

></o

></SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none <SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New' mso-no-proof: yes <SPAN style="mso-tab-count: 1 <FONT color=#000000> </SPAN><SPAN style="COLOR: blue GROUP</SPAN><FONT color=#000000> <SPAN style="COLOR: blue BY</SPAN><FONT color=#000000> UserID<o

></o

></SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none <SPAN style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Courier New' mso-no-proof: yes )</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New' mso-no-proof: yes <FONT color=#000000> act1<o

></o

></SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none <SPAN style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Courier New' mso-no-proof: yes INNER</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New' mso-no-proof: yes <FONT color=#000000> <SPAN style="COLOR: gray JOIN</SPAN><FONT color=#000000> <SPAN style="mso-tab-count: 1 </SPAN>Actions act2 <o

></o

></SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt <SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New' mso-no-proof: yes <SPAN style="mso-tab-count: 1 <FONT color=#000000> </SPAN><SPAN style="COLOR: blue on</SPAN><FONT color=#000000> act1<SPAN style="COLOR: gray .</SPAN><FONT color=#000000>UserID<SPAN style="COLOR: gray =</SPAN><FONT color=#000000>act2<SPAN style="COLOR: gray .</SPAN><FONT color=#000000>UserID <SPAN style="COLOR: gray and</SPAN><FONT color=#000000> act1<SPAN style="COLOR: gray .</SPAN><FONT color=#000000>Date<SPAN style="COLOR: gray =</SPAN><FONT