Sample SQL Scripts for AIQ Testing
MySQLRecommended with limitguidance
Sample
--SQL dbvendor=MYSQL
--scripts username=aiq
--should password=thePassword
--demonstrate host=mysqlsmoketest.c7nn5t4czzya.us-west-2.rds.amazonaws.com
--safe, schema=aiq
--repeatable port=3306
--validation limit=21-50
--patterns tag=executions
--for connect
SELECTAIQ *testing. FROMExamples `aiq`.`UTPScenarioExecution`;
--must storeInLocker=
--avoid disconnectproduction RedshiftExample hygiene
- Use
--placeholderdbvendor=REDSHIFT--connectionusername=theUser--values,password=thePassword--schemahost=sqlclient-test.cqzappbyyyx5.us-east-2.redshift.amazonaws.com--names,schema=dev--tableport=5439--names,limit=1-50000-- tag=saleswb-- connectselect sellerid, username, (firstname ||' '|| lastname) as name,city, sum(qtysold)from sales, date, userswhere sales.sellerid = users.userid
andsales.dateidcredentials. - Prefer
=read-onlydate.dateid
queries unless the article explicitly covers controlled setup or cleanup. - Explain expected results, assumptions, and
yearfailure=conditions. - Include
2008
transaction or rollback guidance when data changes are required.
Validation workflow
- Run scripts in a non-production database first.
- Confirm permissions match the intended AIQ execution account.
- Review output in AIQ and
citydatabase=logs. - Remove
'SanorDiego'group by sellerid, username, name, cityorder by 5 desc;-- storeInWhiteboard=-- disconnect
Snowflake
-- dbvendor=SNOWFLAKE
-- region=us-west-2
-- account=qrazxhk-kiw37206
-- role=ACCOUNTADMIN
-- username=theUser
-- password=thePassword
-- warehouse=COMPUTE_WH
-- db=APPVANCE
-- schema=AIQ
-- connect
update COUNTRIESobsolete
setexamples COUNTRY_NAME='NAMEthat CHANGED'no
wherelonger COUNTRY_CODE=999;
--match disconnectcurrent MSSQL
-- dbvendor=MSSQL
-- username=theUser
-- password=thePassword
-- host=mssqlsmoketest.c6mn5c3czyyb.us-west-2.rds.amazonaws.com
-- schema=master
-- port=1433
-- connect
call sp_tables;
-- storeInLocker=
-- disconnectOracle
-- dbvendor=ORACLE
-- username=theUser
-- password=thePassword
-- host=oraclestest.c4nm5t3czzya.us-west-2.rds.amazonaws.com
-- schema=ORCL
-- port=1521
-- connect
SELECT aiq.getversion() FROM dual;
-- tag=results
-- storeInLocker=
-- disconnectworkflows.
Last updated: SeptemberOctober 19,7, 20242026
If you have any feedback on this topic, please contact us at documentation@appvance.ai