Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Prompt error in derived table

$
0
0

Hi All,

Can you please help me out why am I getting this error when i try to add a prompt in the derived table

below is the simple DT table Query.

 

select

ENTITY TYPE,

COL 2,

COL 3,

'

'

'

'

COL 7,

date

FROM Table name

WHERE ENTITY TYPE = 'AA'

AND date IS NULL

 

I'm trying to add a prompt as a value for where condition as below

 

select

ENTITY TYPE,

COL 2,

COL 3,

'

'

'

'

COL 7,

date

FROM Table name

WHERE ENTITY TYPE = @Prompt('Enter Entity type :','A','India Books Lov':'Col 0',Mono,Free,Not_Persistent,,User:-1,) 

AND date IS NULL

 

But I get error when I try to validate as below

 

Invalid Prompt definition.  (IES 00005)

 

Can anyone help me out with this ASAP.

 

Thanks,

Niki


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>