Direct Reports

From TekiWiki

Jump to: navigation, search

This whole wiki has now moved to http://www.springboardsolutions.com/wiki

Go to this page Direct Reports

 
Line 1: Line 1:
-
SQL to find Direct and Indirect Reports of a manager in PeopleSoft HRMS (that determines the management hierarchy by Position Management):
+
[[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):
<pre>
<pre>
WITH POSITION_TREE AS (  
WITH POSITION_TREE AS (  
Line 17: Line 17:
</pre>
</pre>
-
[Microsoft SQL Server]
+
This is an example of an ANSI SQL recursive query. Recursive queries have the general format:
 +
 
 +
<pre>
 +
WITH view_table AS (
 +
SELECT ...
 +
UNION ALL
 +
SELECT ...
 +
JOIN view_table ON connect_criteria
 +
)
 +
SELECT ...
 +
FROM view_table
 +
WHERE
 +
start_node_criteria
 +
</pre>
 +
 
 +
[[Microsoft SQL Server]]

Latest revision as of 18:44, 28 November 2015

Personal tools