Is Bhagavad Gita tells about one avatar and Shrimad Bhagavatam tells about all the Avatars? 

Are they equivalent to each other or both are different?

Which is first written? 
And when and why the later one is written if both are same?

Are both of the same author or different books?