I'm new to SQL so apologies for the noob question. I have searched other articles but can't seem to find something that works with my issue... 

Essentially I have 2 tables (DOCMASTER, DOSHISTORY), as you may have guessed this a query to our DMS. Essentially a user wants a report about a certain set of documents numbers (these are template documents) with the following information;
- Created date
- Last accessed
- Last Modified
- Document number (unique id)

I can get the above info with the 2 queries below;

CREATED DATE + LAST MODIFIED DATE (from the DOCMASTER table)

```
SELECT [DOCNAME],[DOCNUM],[EDITWHEN] as 'last edited date',[ENTRYWHEN] as 'created date'
FROM [Knowledge_Prod].[MHGROUP].[DOCMASTER]
where DOCNUM in ('10098776', '1355264')

```

LAST ACCESSED DATE (from the DOCHISTORY table) 

```
SELECT DOCNUM, MAX (ACTIVITY_DATETIME) as 'last accessed date'
FROM [Knowledge_Prod].[MHGROUP].[DOCHISTORY]
WHERE ACTIVITY in ('View','Create','Copy', 'Checkin', 'Checkout','Print','Mail')
  and DOCNUM in ('10098776', '1355264')
Group by DOCNUM

```

What would be the best way to join these queries based on the DOCNUM to compile the results together to look like;

DOCNUM - last accessed date - last edited date - created date

Thankyou in advance for your assistance this has been crushing my soul for the last few hours. ALSO I am using SMSS for all my querying.