on 02-09-2010 11:16 AM
Hi,
is it possible to create a derived table within a @prompt in tablename?
I have many tables with the same structure. The SQL of the reports are equal except for the owner of the tables.
I hope you have an answer
Best regards in forward
Michael
Hi,
This is supported in a Derived Table. But you have to pay attention that you have to set the datatype to numeric to avoid quotes generation enclosing table name.
Here is a sample based on the Club database that returns the column data from a table.
The column name and the table name are equal.
Select @Prompt('Table?','N',{'Country','Region','City'},mono,constrained) as label from @Prompt('Table?','N',{'Country','Region','City'},mono,constrained)
Hope this helps
Regards;
Didier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is possible prompt on derived table.......
Eg: A_DRV.sysdate=@Prompt('Enter Date','D','sysdate',,,,)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is possible prompt on derived table.......
Eg: A_DRV.sysdate>=@Prompt('Enter Date','D','sysdate',,,,)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.