I want to make an ArcSDE view. This kink of tool need an SQL statement. So I want to use SQL expression data type to make it. I want to mention that the view can use more than one or two layers. So the Sql expression variable have to show the list of my layer in the first box and after a selection of a layer, show all field, and make my query.
This exactly what we see in the Select by attributes tool.