I have a queryA
select AccountID,name,Manager from Account
where AccountID = '007'
the results is
================================
AccountID Name Manager
007 TEST Joe
007 TEST Mary
================================
In fact what I like to have is: if this account has 2 managers, then get the result:
=========================================
AccountID Name Manager1 Manager2
007 TEST Joe Mary
==========================================
How to write this query?
select AccountID,name,Manager from Account
where AccountID = '007'
the results is
================================
AccountID Name Manager
007 TEST Joe
007 TEST Mary
================================
In fact what I like to have is: if this account has 2 managers, then get the result:
=========================================
AccountID Name Manager1 Manager2
007 TEST Joe Mary
==========================================
How to write this query?