Question: how to extract data from database in uipath?
Answer: ExistingDbConnection: use the output from Connect activity.
SQL: Write the Sql query between inverted commas as a string.
Right click on DataTable field , Create Variable and give a name to your datatable.