Assume the following dataset:
member_id | company | Year_started |
---|---|---|
1 | Apple | 2001 |
1 | IBM | 2002 |
1 | Oracle | 2005 |
1 | Microsoft | 2010 |
2 | IBM | 2002 |
2 | Microsoft | 2004 |
2 | Oracle | 2008 |
Member 1, began work at IBM in 2002, moved to Oracle in 2005 and moved to Microsoft in 2010. Member 2, began workin gat IBM in 2002, moved to Microsoft in 2004 and then Moved to oracle in 2008. Assume that for each member in each year, there is only one company (cannot work at 2 different companies in the same year).
**Question: How many members ever worked at IBM prior to working at Oracle? **
How would you go about solving this? I tried a combination of CASE when's but am lost as to where else to go. Thanks. ... ..