Yes, you can do that, if you are using sql then check below
Once you done with the connection, you can use Execute query and write your own sql query to retrive the data, after that you can use For Each row activity and use TypeInto to write the data to webpage
Hope this may help you
Thanks