<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://springboardsolutions.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Direct_Reports</id>
		<title>Direct Reports - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://springboardsolutions.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Direct_Reports"/>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Direct_Reports&amp;action=history"/>
		<updated>2026-10-17T03:26:45Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.2</generator>

	<entry>
		<id>http://springboardsolutions.com/wiki/index.php?title=Direct_Reports&amp;diff=229&amp;oldid=prev</id>
		<title>WikiSysop: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Direct_Reports&amp;diff=229&amp;oldid=prev"/>
				<updated>2016-03-25T08:51:08Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:51, 25 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>	</entry>

	<entry>
		<id>http://springboardsolutions.com/wiki/index.php?title=Direct_Reports&amp;diff=227&amp;oldid=prev</id>
		<title>WikiSysop at 18:44, 28 November 2015</title>
		<link rel="alternate" type="text/html" href="http://springboardsolutions.com/wiki/index.php?title=Direct_Reports&amp;diff=227&amp;oldid=prev"/>
				<updated>2015-11-28T18:44:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Microsoft SQL Server]] SQL query to find Direct and Indirect Reports of a manager in [[PeopleSoft HRMS]] (that determines the management hierarchy by Position Management):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WITH POSITION_TREE AS ( &lt;br /&gt;
	SELECT PD.POSITION_NBR AS ROOT_POSITION , PD.POSITION_NBR , PD.REPORTS_TO , PD.DESCR , PD.BUSINESS_UNIT , PD.DEPTID , PD.LOCATION , PD.COMPANY , PD.JOBCODE , PD.POSN_STATUS , 0 AS LEVEL &lt;br /&gt;
	FROM PS_POSN_EFF_VW PD &lt;br /&gt;
UNION ALL &lt;br /&gt;
	SELECT POSITION_TREE.ROOT_POSITION AS ROOT_POSITION , PD2.POSITION_NBR , PD2.REPORTS_TO , PD2.DESCR , PD2.BUSINESS_UNIT , PD2.DEPTID , PD2.LOCATION , PD2.COMPANY , PD2.JOBCODE , PD2.POSN_STATUS , LEVEL+1 AS LEVEL &lt;br /&gt;
	FROM PS_POSN_EFF_VW PD2 &lt;br /&gt;
	JOIN POSITION_TREE ON PD2.REPORTS_TO = POSITION_TREE.POSITION_NBR &lt;br /&gt;
	WHERE PD2.REPORTS_TO NOT IN (PD2.POSITION_NBR, ' ')&lt;br /&gt;
) &lt;br /&gt;
SELECT PD.POSITION_NBR , PT.POSITION_NBR , PT.DESCR , PT.BUSINESS_UNIT , PT.DEPTID , PT.LOCATION , PT.COMPANY , PT.JOBCODE , PT.POSN_STATUS , PT.REPORTS_TO , LEVEL &lt;br /&gt;
FROM PS_POSN_EFF_VW PD , POSITION_TREE PT &lt;br /&gt;
WHERE &lt;br /&gt;
PT.ROOT_POSITION = PD.POSITION_NBR &lt;br /&gt;
AND LEVEL &amp;lt;&amp;gt; 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is an example of an ANSI SQL recursive query. Recursive queries have the general format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WITH view_table AS ( &lt;br /&gt;
	SELECT ... &lt;br /&gt;
UNION ALL &lt;br /&gt;
	SELECT ...&lt;br /&gt;
	JOIN view_table ON connect_criteria&lt;br /&gt;
)&lt;br /&gt;
SELECT ...&lt;br /&gt;
FROM view_table&lt;br /&gt;
WHERE&lt;br /&gt;
start_node_criteria&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Microsoft SQL Server]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>	</entry>

	</feed>