isn't there any single mechanical book which can be refer for all subjects
Unfortunately NO. Each individual subject too may need more that 1 or 2 books for reference. If you are asking it from the perspective of buying, it would definiltely be a very costly. Most colleges have libraries with a range of books available for students. It is always advisable to utilise the library for studies.