Is there a way to create a table exactly like the database table? I'm using custom query to filter the data. After that I want to create table using the worksheet and the table should be same as the result.
Sorry if I've misunderstood your question. If you are using a custom query on the data from your database. You could easily put that "custom query" into a view if your database technology supports it and connect to that view. That way you will be able to mirror the same results as if you ran the query on your database.