In sql query report , from date and to date filters were worked , but brand and warehouse filters are not filltered the data we need

In sql query report , from date and to date filters were worked , but brand and warehouse filters are not filltered the data we need.

please provide SQL query you used.

I used normal select , from and where ,inside the where condition I used three filters, First is : From and to date. Second is : For brand.Third is : Warehouse.Its not filtered for the brand and warehouse

How did you manage to apply date filters? I created a js file with this field and they shows up, but I donĀ“t know how to put it in SQL query.