It depends on how dynamic you're trying to be. The columns returned will probably need to always be the same data type, or you'll get unexpected errors. Here's a simple example:
Here is the text of my SQL Command:
[tt]
{?a_Select}
{?b_From}
{?c_Where}
[/tt]
And this is what I enter for each prompt:
1) SELECT CollegeID, Name
2) FROM College
3) WHERE CollegeID > 5
Hope that helps you get started. Stating your intent will assist someone here in helping you more specifically.
Crystal version
Database/connectivity used
Example data
Expected output
Dynamic SQL can be as simple as adjusting a where clause, or you may need a completely different SQL statement, but you're the only one who knows the requirement, and you're not sharing
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.