Extracting data from the Synergetic database
Extracting data from the Synergetic database
Extracting data from the Synergetic database
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Advanced Microsoft Query and SQL examples<br />
Using stored procedures to retrieve <strong>Synergetic</strong> <strong>data</strong><br />
Creating mail merge letters using stored procedures<br />
In <strong>the</strong> following example, letters are being prepared to mail to <strong>the</strong> parents of each future student who<br />
has an interview booked with <strong>the</strong> Head of Campus, using <strong>the</strong> crspFutureActivityPrint stored<br />
procedure. An activity has been created on <strong>the</strong> Activity tab of Future Student Maintenance. See<br />
Future Student Maintenance - Activity tab in <strong>the</strong> Future students manual.<br />
In <strong>the</strong> example, <strong>the</strong> interview is booked with Sarah Adamski's and her parents, as displayed on <strong>the</strong>:<br />
• Activity tab (selected above)<br />
• Modify Activity window (seen below).<br />
Activities are selected for <strong>the</strong> mail merge based on <strong>the</strong>ir Activity and <strong>the</strong> Mail Request field.<br />
However, if <strong>the</strong> Mailed Date and Mailed By fields are populated with values, this means that this<br />
activity has already has been printed.<br />
Version 60 Page 6-73