Geeks Talk

Prepare for your Next Interview




Get immediate reporting managers id

This is a discussion on Get immediate reporting managers id within the SQL forums, part of the Databases category; I have a table with employee ids and their manager ids. I want to get all their immediate reporting managers ids for that employee. I have used the connect by ...


Go Back   Geeks Talk > Databases > SQL

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-14-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 164 Times in 138 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
Get immediate reporting managers id

I have a table with employee ids and their manager ids. I want to get all their immediate reporting managers ids for that employee. I have used the connect by function. But its showing all the mangers like if the emp A reports to Mgr A and Mgr A reports to Mgr B. say if Mgr A also reports to Mgr C, then my current query retrieves all the Mgrs (A,B and C) but i need only Mgr A and B. Kindly help me here.

Question asked by visitor Suresh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-14-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,432
Thanks: 8
Thanked 126 Times in 113 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: Get immediate reporting managers id

Kindly post with your table structure with all the relations .

also post the query that you have tried to solve this .
Reply With Quote
Reply

  Geeks Talk > Databases > SQL


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
best reporting tool raj44jce307anna Data Warehousing 5 03-05-2008 04:20 PM
Disable Error Reporting in XP Lokesh M Geeks Lounge 2 05-11-2007 09:46 AM
How time you took to prepare review, case design, execution, reporting... JobHelper Testing Issues 3 04-19-2007 03:42 AM
Real time reporting Geek_Guest Data Warehousing 0 03-30-2007 02:19 AM
Types of JDBC Deriver Managers timmy Java 1 07-17-2006 05:12 PM


All times are GMT -4. The time now is 12:32 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved