in how man ways can we get the data from the data base
You can only get data out of the database by using sql (assuming that
you do not want to dump the database and try and analyse the raw data
by hand). Of course there are many ways of invoking the sql, via
ActiveRecord for example.
Perhaps you could explain in more detail exactly what it is that you
want to know.
Worst question ever.