User-1509636757 posted
Based on your complexity of Select Statement, you will require to implement different functions to select data from these different sources. I suggest of writing an Abstract class that will hold common functions declaration and inherit different classes
per data source (as name them like Provider classes, for Example) and implement logic to fetch data from different data sources. for SQL Server, you can simply use SQLConnection, SQLCommand (System.Data.SQLClient) (ADO.NET) object to fetch data from SQL Server.
For Oracle, MySQL you may require connectors/binaries to download and reference them in your application to write logic to fetch data from different particular sources.
hope that helps./.