Check out the help regarding popups in ArcGIS Online.
Hi Kiran,
If you need to leverage live data from an on premise database, you will have to use ArcGIS Server to publish your data as a Service. You can leverage this service within ArcGIS Online to create maps and applications.
Cheers,
Andrew