Bussiness Central Online does not give you direct access to the SQL database.
So you will have to extract data through API's or the user interface.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.