We shall present with examples how analysis of astronomy data can be used for an educational purpose to train students in methods of data analysis, statistics, programming skills and research problems . Special reference will be made to our IAU-OAD project ` Astronomy from Archival Data' where we are in the process of building a repository of instructional videos and reading material for undergraduate and postgraduate students . Virtual Observatory tools will also be discussed and applied . As this is an ongoing project, by the time of the conference we will have the projects and work done by students included in our presentation . The material produced can be freely used by the community.