Sequence Clustering Algorithm <span class=value>This is the table that i have<br/> <br/> StudentID  ClassID CentreID  EnrollType                  History     JoinYear        Month <br/>  1000020    1           1             NEW Student              NULL        2005             JAN<br/>  1000020    2           1             Current                       NuLL        2005             JAN <br/>  1000020    3           1             Current                       NuLL        2005             JAN <br/>   1000020    2           1             EXIT                            NuLL       2005            JAN <br/>   1000099    4           3             NEW STudent           NULL         2007            MAR<br/>    1000104   2           5             Internal Transfer       NULL        2009            MAR<br/>  .................................................................................<br/>   <br/> I need to use SEQUENCE Clustering algorithm to capture events.  For example <br/> <br/> STUDENT JOIN EVENT<br/> <br/>  IF the StudentID(j-1) &lt; &gt; Student(j) &amp; enroltype= &quot;NEWSTUDENT&quot; ----&gt; student joined at &quot;j&quot;<br/>  IF the StudentID(j-1) &lt; &gt; Student(j) &amp; enroltype= &quot;Internal Transfer&quot; ----&gt; student joined at &quot;j&quot;<br/> <br/> Each student has multiple records .<br/> When this above condition occurs , Few attributes like firstname, lastname  ,joinyear have to be displayed.<br/> <br/> I am new to SSAS ....Can anyone please tel me how i could implement this using sequence clustering algorithm. All the data is coming from one single table. What would go in my nested table and case table.???? Do i have to make use MDX to solve this problem.</span>© 2009 Microsoft Corporation. All rights reserved.Mon, 29 Jun 2009 17:29:01 Zc9edf61f-db8d-4007-b467-3bcfb1cc0852http://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#c9edf61f-db8d-4007-b467-3bcfb1cc0852http://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#c9edf61f-db8d-4007-b467-3bcfb1cc0852LEOROYhttp://social.msdn.microsoft.com/Profile/en-US/?user=LEOROYSequence Clustering Algorithm <span class=value>This is the table that i have<br/> <br/> StudentID  ClassID CentreID  EnrollType                  History     JoinYear        Month <br/>  1000020    1           1             NEW Student              NULL        2005             JAN<br/>  1000020    2           1             Current                       NuLL        2005             JAN <br/>  1000020    3           1             Current                       NuLL        2005             JAN <br/>   1000020    2           1             EXIT                            NuLL       2005            JAN <br/>   1000099    4           3             NEW STudent           NULL         2007            MAR<br/>    1000104   2           5             Internal Transfer       NULL        2009            MAR<br/>  .................................................................................<br/>   <br/> I need to use SEQUENCE Clustering algorithm to capture events.  For example <br/> <br/> STUDENT JOIN EVENT<br/> <br/>  IF the StudentID(j-1) &lt; &gt; Student(j) &amp; enroltype= &quot;NEWSTUDENT&quot; ----&gt; student joined at &quot;j&quot;<br/>  IF the StudentID(j-1) &lt; &gt; Student(j) &amp; enroltype= &quot;Internal Transfer&quot; ----&gt; student joined at &quot;j&quot;<br/> <br/> Each student has multiple records .<br/> When this above condition occurs , Few attributes like firstname, lastname  ,joinyear have to be displayed.<br/> <br/> I am new to SSAS ....Can anyone please tel me how i could implement this using sequence clustering algorithm. All the data is coming from one single table. What would go in my nested table and case table.???? Do i have to make use MDX to solve this problem.</span>Mon, 22 Jun 2009 20:18:21 Z2009-06-22T20:18:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#9f5d64e8-e9ca-4ee9-8d8a-eec8642de7eahttp://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#9f5d64e8-e9ca-4ee9-8d8a-eec8642de7eaJamie MacLennanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jamie%20MacLennanSequence Clustering Algorithm Can you clarify the question - I'm not quite understanding what you are trying to do here.<hr class="sig">-- Jamie MacLennan -- SQL Server Data Mining -- http://blogs.msdn.com/jamiemacTue, 23 Jun 2009 18:25:57 Z2009-06-23T18:25:57Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#685e90dd-a275-477f-9862-bafcb490e0e6http://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#685e90dd-a275-477f-9862-bafcb490e0e6LEOROYhttp://social.msdn.microsoft.com/Profile/en-US/?user=LEOROYSequence Clustering Algorithm Hi jamie,<br/> <br/> Thanks for your reply.<br/> <span style="font-size:12pt;font-family:'Times New Roman','serif'">I am trying to capture all of the following event sequences. Once I can successfully capture them, I need to generate one record for one captured event in a new table.<br/> </span> <br/> The following Events are of my interest. <br/> <p class=MsoListParagraphCxSpFirst style="margin:0in 0in 0.0001pt 0.25in;text-indent:-0.25in"><span style="font-family:Symbol"> ·</span> <span style="font-size:7pt">Student Join Event -        </span></p> <span class=value> IF the StudentID(j-1) &lt; &gt; Student(j) &amp; enrolltype= &quot;NEWSTUDENT&quot; ----&gt; student joined at &quot;j&quot;<br/>  IF the StudentID(j-1) &lt; &gt; Student(j) &amp; enrolltype= &quot;Internal Transfer&quot; ----&gt; student joined at &quot;j&quot;<br/> <br/> <br/> When the above pattern is observed , The following data should be generated.<br/> <br/> <span style="text-decoration:underline">For Student Join Event</span> <br/> </span> <br/> <ul> <li>StudentID</li> <li>Year/Month</li> <li>Enrolltype.</li> </ul> <p class=MsoListParagraphCxSpMiddle style="margin:0in 0in 0.0001pt 1in;text-indent:-0.25in"><span style="font-size:7pt">   </span></p> <br/>Thu, 25 Jun 2009 14:01:42 Z2009-06-25T14:03:14Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#1651d76c-da2a-402e-832c-ef7e8a2d7464http://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#1651d76c-da2a-402e-832c-ef7e8a2d7464Sudeep Rajhttp://social.msdn.microsoft.com/Profile/en-US/?user=Sudeep%20RajSequence Clustering Algorithm Hi Leo,<br/>Im just taking a guess, im dont know data mining.<br/><br/>Can u do a sort on StudentID, ClassID.<br/>Then use a while to check the Student join event.<br/><br/>This way you coud get the required result hopefullly from a query.<hr class="sig">Hope this helps !! - Sudeep | Please mark the post(s) as “Answered” that answers your query.Thu, 25 Jun 2009 15:36:59 Z2009-06-25T15:36:59Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#ec7ab63a-0b18-488a-bc17-c1acd1eb1158http://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#ec7ab63a-0b18-488a-bc17-c1acd1eb1158LEOROYhttp://social.msdn.microsoft.com/Profile/en-US/?user=LEOROYSequence Clustering Algorithm Hi sudeep,<br/> <br/> I gave up on this and i am trying to use SSIS to accomplish the same task..Thanks for ur helpMon, 29 Jun 2009 16:31:31 Z2009-06-29T16:31:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#6af50e1f-a7bc-46f2-88f9-be2daec53e48http://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#6af50e1f-a7bc-46f2-88f9-be2daec53e48Allan Mitchellhttp://social.msdn.microsoft.com/Profile/en-US/?user=Allan%20MitchellSequence Clustering Algorithm <blockquote>Hi sudeep,<br/> <br/> I gave up on this and i am trying to use SSIS to accomplish the same task..Thanks for ur help</blockquote> I would be looking to solve this relationally in the database. I do not think it is a problem that Sequence Clsutering is going to help you with to be honest. SSIS will also work for you.Mon, 29 Jun 2009 16:40:43 Z2009-06-29T16:40:43Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#0728893f-0092-42d8-b653-fb38cdc43d2chttp://social.msdn.microsoft.com/Forums/en-US/sqldatamining/thread/c9edf61f-db8d-4007-b467-3bcfb1cc0852#0728893f-0092-42d8-b653-fb38cdc43d2cLEOROYhttp://social.msdn.microsoft.com/Profile/en-US/?user=LEOROYSequence Clustering Algorithm Ya even i realized that ..Thanks anyways allanMon, 29 Jun 2009 17:28:39 Z2009-06-29T17:28:39Z