Employee not showing under correct manager

I have been using this query inside the package that I created to load data into cube. From this cube I am fetching records for my cascaded parameterized report. The issue here is one of the employee is showing under different team manager and site manager.
This team manager has left the company and now the employee is back to its previous team manager. here is the code:
Truncate table CallCenterEmployee.dbo.tblCube_Staff;
GO
Insert Into CallCenterEmployee.dbo.tblCube_Staff
SELECT     dbo.tblStaff.Emp_N
, CONVERT(varchar, dbo.tblStaff.Emp_N) + CONVERT(varchar, tblDate.ID) AS SurrogateKey
, dbo.tblStaff.StaffId
, dbo.tblStaff.First_M
, dbo.tblStaff.Last_M
, dbo.tblStaff.PreferredName
, dbo.tblStaff.First_M + ' ' + dbo.tblStaff.Last_M AS FullName
, dbo.tblStaff.SupervisorEmp_N as SupervisorEmployeeNumber
, CONVERT(varchar, dbo.tblStaff.SupervisorEmp_N) + CONVERT(varchar, tblDate.ID) AS SupervisorKey
, SupervisorStaff.First_M as SupervisorFirst_M
, SupervisorStaff.Last_M as SupervisorLast_M
, SupervisorStaff.PreferredName as SupervisorPreferredName
, SupervisorStaff.First_M + ' ' + SupervisorStaff.Last_M AS SupervisorFullName
, SupervisorStaff.NTID as SupervisorNTID
, SupervisorStaff.EmailAddress as SupervisorEmailAddress
, case when AgentHierarchy.HierarchyLevel = 'Agent' and isnull(SupervisorHierarchy.HierarchyLevel,'999999') = '999999' then STN.SupervisorTeamName 
  when AgentHierarchy.HierarchyLevel = 'Agent' and SupervisorHierarchy.HierarchyLevel <> 'Supervisor' then STN.SupervisorTeamName 
  else SupervisorStaff.First_M + ' ' + SupervisorStaff.Last_M  end as HierarchySupervisor
, CONVERT(varchar, SupervisorStaff.SupervisorEmp_N) + CONVERT(varchar, tblDate.ID) AS TeamMgrKey
, CONVERT(varchar, SupervisorStaff.SupervisorEmp_N) as TeamMgrEmployeeNumber
, TeamMgr.First_M as TeamMgrFirst_M
, TeamMgr.Last_M as TeamMgrLast_M
, dbo.tblStaff.PreferredName as TeamMgrPreferredName
, TeamMgr.First_M + ' ' + TeamMgr.Last_M AS TeamMgrFullName
, dbo.tblStaff.NTID as TeamMgrNTID
, dbo.tblStaff.EmailAddress as TeamMgrEmailAddress
, Case when AgentHierarchy.HierarchyLevel = 'Agent' and isnull(TeamMgrHierarchy.HierarchyLevel,'999999') = '999999' then FIRM_Section + ' Unknown Team Mgr' 
  when AgentHierarchy.HierarchyLevel = 'Agent' and TeamMgrHierarchy.HierarchyLevel <> 'Team Mgr' then FIRM_Section + ' Unknown Team Mgr' 
  else TeamMgr.First_M + ' ' + TeamMgr.Last_M end as HierarchyTeamMgr
, dbo.tblStaff.NTID
, dbo.tblStaff.EmailAddress
, dbo.tblStaff.Location_C
, dbo.tblStaff.FIRM
, dbo.tblStaff.Status_C
, dbo.tblStaff.JobClass
, dbo.tblStaff.JobTitle
, dbo.tblStaff.Job_C
, dbo.tblStaff.Shift_N
, dbo.tblStaff.FTE
, CONVERT(varchar, dbo.tblStaff.Hire_D, 112) AS HireDate
, CONVERT(varchar, dbo.tblStaff.AdjHire_D, 112) AS AdjHireDate
, CONVERT(varchar, dbo.tblStaff.Seniority_D, 112) AS SeniorityDate
, tblDate.ID AS DateKey
, tblStaffStatusHours.StatusHrs_N AS StatusHoursKey
FROM         CCBR_DATA.dbo.tblDate AS tblDate WITH (nolock) 
INNER JOIN dbo.tblStaff WITH (nolock) 
ON tblDate.[Year] BETWEEN 2012 AND YEAR(GETDATE()) 
AND tblDate.StandardDate BETWEEN tblSTaff.Eff_D AND CASE WHEN tblStaff.Exp_D > getdate() THEN  DATEADD(MILLISECOND, -3,DATEADD(YEAR, DATEDIFF(YEAR, 0, GETDATE()) + 1, 0)) ELSE tblStaff.Exp_D END AND tblDate.StandardDate <= ISNULL(tblStaff.Term_D,
DATEADD(MILLISECOND, -3,DATEADD(YEAR, DATEDIFF(YEAR, 0, GETDATE()) + 1, 0))) 
Left Join CallCenterEmployee.dbo.tblStaff as SupervisorStaff(nolock)
on SupervisorStaff.SupervisorEmp_N = SupervisorStaff.Emp_N
and tblDate.StandardDate between SupervisorStaff.Eff_D and CASE WHEN SupervisorStaff.Exp_D > getdate() THEN DATEADD(MILLISECOND, -3,DATEADD(YEAR, DATEDIFF(YEAR, 0, GETDATE()) + 1, 0)) ELSE SupervisorStaff.Exp_D END AND tblDate.StandardDate <= ISNULL(SupervisorStaff.Term_D,
DATEADD(MILLISECOND, -3,DATEADD(YEAR, DATEDIFF(YEAR, 0, GETDATE()) + 1, 0))) 
Left Join CallCenterEmployee.dbo.tblStaffHierarchy as AgentHierarchy(nolock)
on tblStaff.Job_C = AgentHierarchy.Job_C
Left Join CallCenterEmployee.dbo.tblStaffHierarchy as SupervisorHierarchy(nolock)
on SupervisorStaff.Job_C = SupervisorHierarchy.Job_C
Left Join (
Select substring(GSW_EMPLOYEE_ID,1,6) as GSW_EMPLOYEE_ID
, WM_START_DATE
, isnull(WM_END_DATE,'12/31/2999') as WM_END_DATE
, b.WM_NAME as SupervisorTeamName
from MRKREPORTS.dbo.WM_AGENTS a (nolock)
Inner Join MRKREPORTS.dbo.WM_TEAMS b (nolock)
on a.WM_TEAM_ID = b.WM_TEAM_ID
where ISNUMERIC(GSW_EMPLOYEE_ID) = 1
) STN
on tblStaff.Emp_N = STN.GSW_EMPLOYEE_ID
and tblDate.StandardDate between STN.WM_START_DATE and STN.WM_END_DATE
Left Join dbo.tblStaff as TeamMgr(nolock)
on SupervisorStaff.SupervisorEmp_N = TeamMgr.Emp_N
and tblDate.StandardDate between TeamMgr.Eff_D and CASE WHEN TeamMgr.Exp_D > getdate() THEN  dateadd(y,1,getdate()) ELSE TeamMgr.Exp_D END AND tblDate.StandardDate <= ISNULL(TeamMgr.Term_D, GETDATE()) 
Left Join CallCenterEmployee.dbo.tblStaffHierarchy as TeamMgrHierarchy(nolock)
on TeamMgr.Job_C = TeamMgrHierarchy.Job_C
INNER JOIN CCBR_DATA.dbo.tblStaffFirm WITH (nolock) 
ON dbo.tblStaff.FIRM = tblStaffFirm.FIRM_SECTION 
AND tblStaffFirm.BUS_UNIT IN ('B029','B620','B629','B420','B020','B278','B291','B028', 'B432', 'B732','B748') 
INNER JOIN CallCenterEmployee.dbo.tblStaffStatusHours WITH (nolock) 
ON tblStaffStatusHours.StatusHrs_N = case when dbo.tblStaff.FTE = '0.00000' then 98 else ISNULL(dbo.tblStaff.FTE * 40, 99) end

Hi Dee25, 
Thank you for your question.  
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.  
Thank you for your understanding and support. 
Thanks,                                       
Simon Hou
Simon Hou
TechNet Community Support

Similar Messages

  • Menus Not Showing Under Site Manager?

    Here's a heads up to users of BC...
    Even some well known BC gurus didn't know this, so I thought I'd share it.
    After going slightly nuts trying to figure out why I couldn't see this "menu" button, I contacted support, and figured out why.
    For the record - I'm not using MUSE for this. And - This is my first BC site, so I'm learning a few tricks as I go on.
    All I wanted to do was customise a template a bit, and change the menu to reflect the pages in that template that I wanted to show...
    - nothing unusual in that right?
    Wrong.
    Here's why:
    If you have set up a trial site on the lowest webBasics plan (using a template) and want to EDIT the menus, it's not going to happen. Because you won't see the menu function (as in the following diagram)
    On the adobe sales page for BC hosting:
    http://www.adobe.com/products/business-catalyst/buying-guide-subscriptions.html
    It says that there is a dynamic menu builder under WebBasics+ or above.
    SO, what I suggest you do is this:
    BEFORE YOU CREATE A TRIAL SITE:
    If you want to edit the menus, you NEED to have more than a simple "WebBasics" hosting plan, otherwise the "menus" function won't show on the left hand side...
    ...And if you inadvertently do this, there is no way you can upgrade it from your BC partner admin.
    If you want to edit dynamic menus that come with a template, you must have Web Basics+ as the hosting option FIRST, and then you can manually request support to "downgrade" the hosting plan to WebBasics... after you've edited the menus...
    Unbelievable, but true!!
    I was gobsmacked that I couldn't do such a simple thing as alter a menu on the lowest hosting plan.
    Anyway - That's taken HOURS of my time, I could have built this whole site from scratch multiple times over not using BC...
    ..But I'm commited to learning how this beast works!! :-)
    Cheers
    Dave

    Yes, this kinda really shocks me that menus are not avaiable? Even the lowest of low plans likely need some sort of menu to get from page to page.
    I hope that was just an oversight and menus will be added to the lower plans. Any plan or site that has pages needs a menu.

  • Labels Not Showing Up Correctly in Workflow Manager Web Page

    I have installed the Workflow Server 2.6.3 on Red Hat 7.2 against the Oracle 10g database. When I go to the Workflow Manager web page and login, all the labels appear between brackets "[]" and have incorrect names such as the following:
    WF_WORKFLOW_TITLE
    WFA_WTITLE
    OPEN_NOTIFICATIONS
    WFA_FINDTITLE
    WFRTG_FIND_TITLE
    etc......
    I ran the Configuration Assistant again and this didn't solve the problem and I've also verified that the mappings in the server configuration file are correct for OA_JAVA, OA_DOC, OA_MEDIA. Looked through workflow installation log and no errors appear. I installed the web server (Oracle Apache Standalone downloaded from OTN in a separate Oracle Home). Any ideas how to fix these incorrect labels or why they're not showing up correctly??
    Thanks in advance,
    Rich

    Hi,
    I've not seen the problem myself, but it seems that the language has not created the correct lookups in the WF_RESOURCES table.
    If you look for a name of (for example) 'OPEN_NOTIFICATIONS', there should be an entry for the language you are using (US) which translates the prompt for you. If it's not there then you will probably need to add a language through the installer - I don't think there is a SQL file that you can just run to do it. Alternatively, install it in a new environment and then just extract the resources you need from that system and insert them into this one.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • My new iPad mini does not show under manage devices

    I just purchased a new iPad mini for my husband. I removed his old one from the section of iTunes that reads manage devices. And even though his new iPad mini is synced and backed up, now the new one does not show under manage devices.
    Can anyone tell me how to get it to show up? I called Apple support and the lady trying to help me did not even know what I was talking about.
    Thank you.

    If you're on Windows read this support article.
    If on Mac, read this one.

  • Finding all employees who come under the manager

    Hi experts,
    I have created a report which is attahced in MSS. So i want to restrict the manager to view the details of  only the employees who come under this manager.  At present the report is showing the details of all employees. So pls tell me whehter i can use O-S-P relation for finding all direct and indirect employees of the mnagaer by passing the org unit of the manager (or) should i need to find all position holders who report to the manager's position?..  If so, how?
    Finding the list of all employees who come under manager org unit is same as finding the list of position holders who report to the manager position? Pls telll me which is correct and how to find the same?

    hello shanthi,
    mashhour is right, it largely depends on how data is being maintained in your system.
    first, you are generally mixing two concepts together of finding "direct" & "indirect" employees for a manager. In standard implementations, typically the data is maintain in such a way where only 1 method is appropriate to find a manager's employee, and the most common scenario is where the employee has an indirect relationship with their manager. 
    So typically the two are not used together.  In certain circumstances companies will implement both to create matrix like scenarios, but they are better ways to handle this. 
    The indirect method: is called this way, because the manager has a relationship to an org unit as the chief (a012), and his/her employees are in positions, which have relationships to those same org units, hence no direct relationship.
    In the direct method, a relationship is created directly between the manager's position and any subordinates positions using the A/B 002 relationship. 
    Assuming that you are using indirect only, then O-S-P with no depth defined, will all employees belonging to that entire org structure.  this is assuming your program knows the root ID of the manager relationship, which is the a012 to the root org unit. 
    best regards,
    michael

  • I have an iPod Touch but I currently don't have a PC.  I found an app that would allow me to connect to my network drive and I was able to transfer music files to it.  These files do not show under the Music app and I can't find any way to do it.

    I need help from some Apple people. I have an iPod Touch and I wanted to load it up with some fresh music but I currently don't have a PC. I found an app that would allow me to connect to my 2TB network drive directly and I was able to transfer a bunch of music files to the iPod. Unfortunately, these new files do not show under the Music app and I can't seem to find any way to convince the iPod that they are music. I can play them through the file manager only. Android doesn't have this problem, any music I put on my phone is recognized as music and can be played through any of the music apps. Am I missing something or is Apple to inflexible to handle this?

    You can't. The only way to get songs in the Music app is to sync from a computer or to download from iTunes.

  • IPhone 4s not showing up in manage devices

    My wife's iPhone 4s shows up in the side bar of iTunes and sincs fine, but does not show up in Manage devices on her account, where as her iPad does. it clearly shows you how to remove devices, but how can we add one?

    "Manage Devices" appears under the broad heading "iTunes in the Cloud".  I suggest you (or she) do this on her iPhone 4S:
    Go to Settings > iCloud and make sure she is signed on there with her Apple ID.

  • Oam does not show the correct configuration information

    Oracle apps,
    An issue with the oam.
    There are 2 nodes in our system. In 12
    One is for db and cm
    The other is for forms and apache.
    The system is running fine.
    But from the OAM, where it does not show the correct configuration info.
    From the OAM, all the services are (including db, cm, forms, apache) on one node.
    The issue might be caused by the fact that the web tier was cloned from the cm tier as a workaround for some patch errors in web tier.
    I even used the EXEC FND_CONC_CLONE.SETUP_CLEAN; to clean the system tables and ran
    Autocfg on all tiers. But it didn’t solve this issue.
    How can I fix this OAM problem to make it show the correct information?
    Thanks,
    Lily

    Thanks for reply.
    Yes, I did commit it.
    The hostname information is correct.
    On oam, this web node is there but all the service actually running on this node is
    showing under the cm node .
    <TIER_DB oa_var="s_isDB">NO</TIER_DB>
    <TIER_ADMIN oa_var="s_isAdmin">YES</TIER_ADMIN>
    <TIER_WEB oa_var="s_isWeb">YES</TIER_WEB>
    <TIER_FORMS oa_var="s_isForms">YES</TIER_FORMS>
    <TIER_NODE oa_var="s_isConc">YES</TIER_NODE>
    <TIER_FORMSDEV oa_var="s_isFormsDev">YES</TIER_FORMSDEV>
    <TIER_NODEDEV oa_var="s_isConcDev">YES</TIER_NODEDEV>
    <TIER_WEBDEV oa_var="s_isWebDev">YES</TIER_WEBDEV>

  • G470 Bluetooth not listed under Device Manager and not working

    Hi,
    Can someone teach me how to solve my G470 problem?
    Its Bluetooth is not listed under Device Manager and I can't find it anywhere.
    Before that, it isn't working at all.
    Thanks
    Solved!
    Go to Solution.

    hi athirah11,
    Welcome to the Lenovo Forums.
    Can you try the following:
    1. Press the Windows key‌ +R, type devmgmt.msc and press Enter. On the Device Manager, click View > Show hidden devices and check if the Bluetooth device is being listed.
    - Link to picture
    - Link to picture
    2. If the bluetooth device shows up under the Device Manager, do the following:
        a. Under Control Panel > Programs, uninstall the Bluetooth driver/software (reboot if necessary)
        b. Run the Bluetooth Driver Installer
         -  this will identify the type of Bluetooth Device installed on the system (eg. Qualcom Atheros, Intel, etc.) and it will install a generic Bluetooth driver. If successful, the Bluetooth device and its components should now appear normally under the Device Manager.
    If the bluetooth device still doesn't show up, can you provide the model number of your G470 (eg. 59xxxxxx) fur further checking.
    Let me know how it goes.
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Photoshop CC2014 running under window 8.1.  How do I access mini bridge.  It does not show under FILE or WINDOW-EXTENSIONS.  Works ok with CS6

    Photoshop CC2014 running under window 8.1.  How do I access mini bridge.  It does not show under FILE or WINDOW-EXTENSIONS.  Works ok with CS6

    Photoshop: Spring Cleaning | PHOTOSHOP.COM BLOG

  • IPod Nano does not show under Devices (in iTunes) but is recognized in My Device and Printers (My Comouter) as "Unspecified"

    My ipod nano is not showing under the devices tab in iTunes however, is is recognized in My Computer (Devices and Printers) as "Unspecified" I just want to be able to sync and add/remove music!!!

    Hi there!
    have you tried any of the steps mentioned here?
    http://support.apple.com/kb/TS1363

  • While updating Ipod we now have a blank screen and when connecting to itunes the ipod is not showing under devices

    While updating ipod touch we now have a blank screen. I have updated itunes but am unable to sync because the ipod does not show under devices. I have tried shuttng down and restarting but only have a blank screen or ap0ple logo. Sometimes the screen shows connect to itunes but that has been it.

    I have the same problem, after upgrading my itouch to iOS6, it doesNOT respond to anything, apple logo stays on the screen all the time and does NOTHING! restore does not work either.... i hope we can get an answer from someone soon... apple support did not have an asnwer.

  • External hard drive seagate 3.0 cant read and not showing in disk management.

    Why my external hard drive seagate 3.0 cant read and not showing in disk management, while 2.0 can read. please help me to solve it. BIG THANK YOU.. 

    Hi,
    Yes, like Vegan said, you should check if your Seagate hard drive if it could available in USB 3.0 port. This is hardware related.
    Karen Hu
    TechNet Community Support

  • HT201272 I updated my IPhone and it took away all music including my ring tones. I have been able to recover the songs but my ringtones are not showing under purchased. How do I get my ringtones back?

    I updated my phone and all my music, including rigntones went away. I was able to recover my songs under purchased. My ringtones are not showing under purcahsed. How do I get my ringtones back?

    I don't understand this answer. What do you mean " your contacts should be in whatever program/service you have selected to sync."? The address book is created on the phone not in Itunes or any other program/service. When Itunes says backing up phone I have to assume it backs up everything on the phone. Most of what's on my phone does not come out of itunes. I download apps directly on the phone. When the software updates it does not bring those apps back. I have to go into the appstore and install them all over again. Itunes music library syncs with whatever is on the device your linked up to BUT the phone book just dissappears after you update the phone. There is no way to save it anywhere else.

  • Adobe Photoshop elements 10 Editor not showing under application support;adobe

    Adobe Photoshop elements 10 Editor not showing under application support;adobe on a MAC.  I would like to add actions in photo effects but can't add like instructios say because it is not in adobe.

    SSharpPhotography I would recommend posting your inquiry to the Photoshop Elements forum.

Maybe you are looking for

  • XML Publisher report errors out when RDF report has no data

    Hi everyone, I created a template and attached it to an RDF. When i run the oracle report with the attached template, if the report has 'not data exists' the report is erroring out. is it the normal functionality of XML publiher??. Because i remember

  • "The user profile service failed the logon. User profile cannot be loaded."

    I recently purchased a refurbished laptop from MTC (windows 7) and have been trying to remote into the windows systems at my school but I keep receiving this error message.  I'm aware there are dozens of threads on this topic but mine is slightly dif

  • ITunes store not loading with iOS 7 on iPhone 4S

    iTunes store not loading with iOS 7 on iPhone 4S. I have tried reset network connections I have restored I have backuped I have erased all content I have rebooted I have DFUed. I have also the same issue with iTunes on pc, with -50 error. Is this an

  • Why can't I open or download PDF files in Firefox

    Why can't I open or download PDF files in Firefox.  In Safari PDF files open automatic.  Firefox won't open anything.

  • Using WD messages with DropDownByKey in a table

    Hello, Has anyone here tried using the method reportContextAttributeMessage with dropdownbykey in a table? For some reason, the dropdownbykey field is marked as a missing field but the <b>cursor doesn't jump</b> to the field. Thanks. Ruthie.