Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Query Database

Hi, 

I am trying to run this querry in query database but getting an error: 

SELECT ID,PRIORITY,CREATION,DURATION,FIRM_GROUP,IS_SCHEDULED,STATUS FROM XYZ_VIEW
WHERE IS_TEMP=1 AND STATUS NOT IN ('Closed', 'Complete', 'Cancelled') AND IS_SCHEDULED = 1 ;

Error: 

TIA

  Discussion posts and replies are publicly visible

Parents Reply
  • hi,

    I don't want to open new question but I have same problem.

    I need to provide in criteria dynamically but I get no results. There is no error and no data. In data section the in criteria are definded as : 

    ="'abc1', 'ddddd33333'"

    part of sql: 

    and c.userid in ( ac!sqlMailboxes )

    full sql:

    select c.userid as Milbox,
    cast(a.Creationtime as date) as RFDate,
    count(a.uniqueid) as NoOfFaxes
    from users c
    join documents a
    on c.handle = a.ownerid
    where c.userid in ( ac!sqlMailboxes )
    group by c.userid,
    cast(a.Creationtime as date)

    Same query run on SQL Server return data.

    How to deliver this in criteria based on string array variable ?

Children