Joining conditions for accounts with multiple owners

Hi Team,
I am stuck getting the query for this requirement. Below is my requirement how to get this using SQL query
Thanks,Eshwar.
Please don't forget to Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful. It will helpful to other users.

PFB code
Declare @t1 table(CnsmrID int,Name Varchar(20))
Declare @t2 table(AccntID int,CnsmrID int,col2 Varchar(20))
Declare @JoinTab table(IP int,CnsmrID int,AccntID Varchar(20))
insert into @t1
select 1,'acb' union all
select 2,'bcd'
insert into @t2
select 1,1,'Value1' union all
select 2,2,'Value2'
insert into @JoinTab
select 1,1,1 union all
select 2,2,1 union all
select 2,2,2
select a.CnsmrID, a.AccntID,c.Name from @JoinTab a
left outer join @t2 b on a.CnsmrID=b.CnsmrID and a.AccntID=b.AccntID
left outer join @t1 c on a.CnsmrID=c.CnsmrID
where b.CnsmrID is null
Thanks
Saravana Kumar C

Similar Messages

  • UAR Approvals for roles with multiple owners

    Hi All,  We have in many cases, two role owners for roles defined in CUP. When running the UAR, both owners are notified.
    However, when one of the owners submits the approved/removals UAR request, the request closes out and the other owner does not have the opportunity to validate the request also.
    Any suggestions how to be able to accomodate both owners?
    The UAR CAD option is out of scope since it makes no sense to upload and maintain 4000 roles in the CAD.
    Thanks! -Dylan

    FYI, We were not able to find an acceptable workflow solution but decided to restrict access via authorization. We will allow the role primary Role Owner to make the UAR line item updates but not allow the Role Owner to submit the UAR.
    The Secondary Role Owner will be allowed to Submit final version of the UAR.
    Role makeup:
    ZAE_UAR_ROLE_OWNER (UAR Role Owner Approver)
    AE.ViewAccessEnforcer
    AE.ViewRemoveAccess
    AE.ViewApprove
    AE.ViewSaveRequest
    ZAE_UAR_QUARTERLY_OWNER (UAR Quarterly Owner Approver)
    AE.ViewAccessEnforcer
    AE.ViewSubmitRequest
    Hopefully, more workflow flexibility is will be built-in to the UAR just like with normal CUP requests.
    Best Regards, Dylan

  • I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    This sounds like the age old problem with keychain & Safari. I don't know of a way to solve it without using something like 1Password.
    The iOS app has it's own built in browser, so it has more control over what gets autofilled. Safari on OS X has an 1Password extension that handles account selection & autofill etc.
    Keychain is great in principle, but it quickly falls down when you need tight integration with many ID's & different use cases (work, home etc).
    I'd suggest you submit feedback to Apple about your thoughts. I did so years ago about this issue & this is how far we have come (back to the point where me.com synced passwords) :^)
    http://apple.com/feedback/macosx.html
    Other tools like lastpass or keypassx may also help if you want to truly segregate password storage, but that doesn't fix autofill, the way around that issue is to dedicate one browser for work.

  • New to Apple products (finally) - can I use my Itunes account with multiple products e.g. Iphone and Ipad?

    New to Apple products (finally) - can I use my Itunes account with multiple products e.g. Iphone and Ipad?

    Oh yes! Apple will be happy for you to buy as many Apple products as you can afford.
    As and when needed, each can be given its own selections of content to sync with.
    tt2

  • Powershell script to get all the AD accounts with multiple primary SMTP addresses

    I require a script to be run in powershell for Win Server 2008 R2, to look to AD accounts with multiple primary SMTP addresses ?
    Description: In my Organization, there can be a configuration error which might have resulted in multiple primary SMTP addresses to be assigned to a user. I want to get the list of these AD accounts which have multiple primary SMTP addresses

    Hi,
    You can use the PowerShell command given below to get the AD User name and primary smtp address in a OU,
    Get-ADuser -filter {proxyAddresses -like "*"} -searchbase "ou=testOU,dc=MyDomain,dc=local" -properties * | select name,proxyaddresses | fl
    NOTE: proxyAddresses attribute in AD User matches the primary SMTP address.
    Regards,
    Gopi
    JiJi
    Technologies

  • How to Restrict Single Delivery Date for PO with Multiple Line Items

    Dear Experts,
    How to Restrict Single Delivery Date for PO with Multiple Line Items.
    System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
    Can we achive this by Some Enhancement in SAP or Not ???
    If so how to do it.
    Any Inputs is highly appreciated.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
    we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
    You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
    (for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
    Regards,
    Madhu.

  • Partial goods receipt for PO with multiple line items

    Hello All,
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Regards,
    RJS

    Hi
    While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
    No. You cannot post the MIGO, if even one of the PO line item is having problem or giving error.
    We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
    If you skip a line irem and do GR with next line item, how will you match quantity & value with the vendor Invoice at LIV ?
    If partial goods receipt if possible for PO with multiple line items, how do we do it?
    Partial goods receipt is possible for PO line items. That means, if PO has 100 qty for line item 1 then you can do GR for 50 now and 50 later depending on the vendors delivery.
    Hope this is what you mean by "Partial Goods Receipt".
    Edited by: Arun R on May 10, 2010 2:03 PM

  • HT4436 What is the best way to set up business accounts with multiple ipads?

    What is the best way to set up business accounts with multiple ipads?

    Here are three different methods >
    How to use multiple iPods, iPads, or iPhones with one computer, http://support.apple.com/kb/HT1495
    This article > iOS: How to transfer or sync content to your computer, http://support.apple.com/kb/HT1296
    suggests using contacts groups.
    When syncing contacts, you can choose to sync all of your contacts or only selected groups.
    You can select a group of contacts to which all new contacts created on your iOS device will be added.
    You can set up groups in the Address Book application.
    If you are all going to use the same iTunes apps library, turn off "Automatically sync new apps" in the apps tab just below the list of apps.  Then you won't get new apps on your device unless you select them.

  • Non valuated Goods Receipt for materials with multiple account assignments

    We have been using multiple a/c assignments for services on purchase orders for sometime with no issues.  Recently we used a multiple a/c assignment distribution for a material P/O.  this didn't work the same and the Goods Receipt was set as non valuated.
    This leaves the cost showing as a commitment and we do not get any actual costs charged at the GR point until we get and post the invoice.  This only happens with multiple account assignments, all material P/O goods receipts for single assignments get valuated.
    Were not sure why this happens, and want it treated the same.  Is there any way we can get these valuated the same way single assignment materials or multi assignment services are.
    The non valuated GR flag is getting set automatically, but we can't see where this is coming from for this scenario, so were a bit stuck.
    Any advice/direction would be greatly appreciated.
    Thanks
    Graham

    Hi Deshamol, No the materials are all valuated, as mentioned, they all work fine when used as single a/c assignment.
    Anupam, Your answer doesn't make sense to me, this is 1 line on the P/O, therefore 1 material.  It can't be both valuated and none valuated for each a/c assignment. 
    I have read in a note there there is a business function that you can apply to get this working, has anybody tried it?
    Thanks
    Graham

  • How to share account with multiple devices?

    3 kids with 3 devices - an iPod Touch and two iPads Mini - family shares one account with Apple/iTunes and one library on our family PC.  They use FACETIME and MESSAGES with their friends, and they all see each others messages and conversations.  How do I fix this?  Is there a setting or a way to create sub-accounts off the family account so they can still share the main library for music and video OR do I have to create separate Apple/iTunes accounts for each kid?  Is there a setting on their devices that can help?  Any help is greatly appreciated.  I'm not even sure the right question to ask...

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • More than one join condition for 2 tables in obiee

    Hello,
    I am using obiee 11g.
    There are 2 tables tableA and tableB where the join condition is like (tableA.col1=tableB.col1) or (tableA.col1 is null and tableB.col1 is null)
    where should i do these type of joins.
    I tried putting in physcial layer->f(x) but giving error like here only columns an d opertaors are allowed.
    Thanks

    ok here it goes.
    I have a tableA with columns col1(pk),col2 and other columns
    I have tableB with columns col1(pk),col2..Only these 2 columns.
    Now distinct tableA.col2 values are put in tableB.col2. For those distinct values i have put the tableB.col1 values.
    Now tableA.col2 as well as tableB.col2 can be null beacuse there may be null values in tableA.col2.
    Now in tableB i have added one more row which has col1 as value and col2 as null.
    Now when in physical layer when i do tableA.col2=tableB.col2 i dont get the null values.
    What i want is whenever the tableA.col2 and tableB.col2 is null then take tableB.col1 for those vales.
    So when i query i do
    select * from tableA,tableB where
    ((tableA.col2=tableB.col2) or (tableA.col2 is null and tableB.col2 is null))
    What i want is when i do a join i should be able to give this OR condition in rpd thats it.
    because when i do in where clause of content tab it goes like a AND condition and not OR.
    Thanks
    Edited by: user123 on Jul 5, 2011 1:57 PM

  • Reg: Join Conditions for Tables to create a View for Generic Extraction

    Hi Experts,
    Am trying to extract the data from Solman, for this purpose am creating a Generic Extractor based on three tables. So, can anyone please help me out by providing the join conditions to create a view based upon the following three tables,
    1. CRM_ORDERM_H
    2. DNOD_NOTIF
    3. DNOD_NOTIF_S
    Anyways i require the following fields in the extractor finally:
    CRM CHANGED AT
    GUID
    SAP COMPONENT
    RELEASE
    REPORTED BY
    These are the some of the major fields that i require in the final extractior. Please help me out ASAP with the table join conditions..
    Will Assign Points for the helpfull answer...
    Thanks,
    Gattu.

    Hi,
    I don't know the table CRM_ORDERM_H however you can link DNOD_NOTIF and DNOD_NOTIF_S
    DNOD_NOTIF_S-CLIENT = DNOD_NOTIF-CLIENT
    DNOD_NOTIF_S-GUIDS = DNOD_NOTIF-GUIDS
    For the third table could you please paste here its definition like the hereunder?
    Transp. table      DNOD_NOTIF       Active                                                                   
    Short Text         Notification Header                                                                       
       Field           KeyInitData element    Data TyLengthDecimaShort Text                                      
       CLIENT        X    X   MANDT           CLNT        3     0Client                                          
       GUIDH         X    X   DNOT_GUIDH      RAW        16     0GUID Notification                               
       .INCLUDE               DNOS_NOTIF_INT  STRU        0     0Notifications (Header, Internal Fields)         
       OBJNR                  DNOT_OBJNR      CHAR       22     0Status Management Object Number                 
       STATUS                 DNOT_STATUS     CHAR        1     0Notification Status                             
       DELETED                DNOT_DELE_N     CHAR        1     0Deletion Indicator Notification                 
       PROCESSOR              DNOT_PROC       CHAR       12     0Current Processor                               
       TYPE_PROC              DNOT_TYPE_PRC   CHAR        2     0Type of Processor                               
       REPORTER               DNOT_REPORTER   CHAR       12     0Reported By                                     
       TYPE_REPO              DNOT_TYPE_REP   CHAR        2     0Type of Notification Creator                    
       CREA_TSTMP             DNOT_CREA_TSTMP DEC        15     0Entry Time Stamp                                
       CHNG_TSTMP             DNOT_CHNG_TSTMP DEC        15     0Time of Last Change                             
       START_TSTMP            DNOT_START_TSTMPDEC        15     0Initial Response Time - Time Stamp              
       END_TSTMP              DNOT_END_TSTMP  DEC        15     0Requested End of Processing - Time Stamp        
       CLO_TSTMP              DNOT_CLO_TSTMP  DEC        15     0Completion Time Stamp                           
       .INCLUDE               DNOS_NOTIF_EXT  STRU        0     0Notifications (Header, External Fields)         
       NUMB                   DNOT_NUM        CHAR       12     0Notification Number (External)                  
       REFNUM                 DNOT_REFNUM     CHAR       20     0External Reference Number                       
       TYPE_NOTIF             DNOT_TYPE_N     CHAR        6     0Message category                                
       CATEGORY               DNOT_CATEGORY   CHAR       12     0Topic, Area                                     
       SUBJECT                DNOT_SUBJECT    CHAR       60     0Re:                                             
       PRIORITY               DNOT_PRIORITY   CHAR        1     0Notification priority                           
       LANGUAGE               DNOT_LANG_N     LANG        1     0Notification Language                           
    hope this helps...
    Olivier.

  • Entity with multiple owners

    I'm trying to find how I can set up an entity which is owned by 5 different entities and has an element of external ownership. This entiy and its 5 partial owners all belong to one legal hierarchy of entities but are in different nodes in the hierarchy.  Additionally, some of the ownership is equity based (one line equity entry) and some of the ownership is consolidated (with appropriate minority interest reflected on the financial statements.   Once set up, I want to be able to run the automated consolidation and elimination entries.
    Thank you

    Hey Tara,
    In BPC, when you define a dimension of type ENTITY you can have a property called "OWNER". This property allows you to specify the owner of this particular entity. All nodes in the hierarchy in BPC show up as members as well. Therefore, you can specify the owner for all base members and nodes. Additionally, if you have multiple owners of an entity, you can populate this in the "Maintain Dimension Members" for the entity dimension and owner property. Within the owner column, you can have multiple BPC users there by using commas to separate the users.
    Now how this works:
    1. Work Status locking allows the different owners to set and control their own entities.
    2. Additionally, within work status settings, you can specify that either the owner, manager, or both can control this entity. The manager is the owner of the parent of this member and the owner is the user in the owner property of the entity.
    NOTE: Keep in mind that the hierarchy that defines this relationship doesn't have to be PARENTH1. It can be any hierarchy. You can set this by defining the APPROVALORG web admin parameter.
    Once you set this up, you can use the automated consolidation and elimination.
    Cheers,
    Prakash
    Solution Manager - Financial Performance Management
    (Product Manager - BPC)
    Business Objects, an SAP Company

  • How to set default email address for contact with multiple addresses.

    Apologies if this has been asked before, it seems a very basic question but I'm unable to find an answer.
    Can a default address be set in Address Book for a contact with multiple addresses? Or if not, which address does it send to "automatically" when this condition exists? I know you can manually select the address you want to use, but what if the contact is added to a group?
    Thanks
    Denis

    Thanks for the reply, buy I have no idea what this means.
    I have the same question. I have a contact that has five email addresses. When I add the person to a group, Mail automatically selects one of the addresses, but not the one I want. I need to go back and manually select the correct address. Can't I select one of these addresses as the default to be used all the time?
    Apologies for not quite understanding the first reply.

  • How Can I Use a Gmail Account with Multiple Email Addresses in iPhone Mail?

    So I have a Gmail account with 4 POP accounts that it checks...  Is there a way to get "Reply From" from multiple addresses?
    I've tried the following sites...  No luck with iOS 5...
    http://email.about.com/od/iphonemailtips/qt/gmail_multiaddr.htm
    http://modernerd.com/post/535350679/solved-gmail-ipad-iphone-and-multiple-from

    By setting up your GMail account to forward emails to your iCloud email account address.
    You won't be able to reply from your Gmail address from within iCloud though.

Maybe you are looking for

  • Line item description

    Hi Experts, I need to fetch the cost element or account number or ??? line item <b>description</b> for the posting without purchase order. The description has to come based on the document type (BLART). I have done for SA and KR document type (SA For

  • How to process Customer Open Items? If that Customer is also an Vendor.

    Hi All, I need some help for  the below configuations, 1. How to process Customer Open Items? If that Customer is also an Vendor to the Company. ( How to adjust these open amounts) 1. How to process Vendor Open Items? If that Vendor is also an Custom

  • HP Photosmart C5180 and Photo Tray

    I just updated to Leopard and iPhoto 7.1 (ver 347) and now I can't seem to print from iPhoto to the photo tray on my printer. The photo tray typically uses 4x6 paper. No matter whether I try to print with 4 x 6 borderless or not borderless it tells m

  • C/C++ Alphabetical Linked List

    For my programming class, we have to create a linked list, which is arranged in order of when you added them. This was Assignment Six. Assignment 8 is to add an alphabetical list to this program, alongside the list in order. My professor wants us to

  • 404 not found The requested URL /pls/apex11/wwv_flow.accept was not found on this server.

    Hi, i tried to connect to Apex on Internal workspace. I get the error ORA-00604: error occurred at recursive SQL level 1 ORA-00972: identifier is too long ORA-06512: at line 10 ORA-06550: line 22, column 3: PLS-00306: wrong number or types of argumen