I have created a Event record under an Account as shown in below screenshot but when i try to fetch the accountId field through SOQL it returns as null though there is a value in the AccountId field.

```
Select Subject,AccountId,WhatId,WhoId,Who.Name,What.Name from Event where Id='00U0v0000016C0Y'

```

[![enter image description here](https://i.stack.imgur.com/l9Lv6.png)](https://i.stack.imgur.com/l9Lv6.png)

[![enter image description here](https://i.stack.imgur.com/fWj64.png)](https://i.stack.imgur.com/fWj64.png)