Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

The AUX schema contains helpful tables for a variety of common tasks:

List all the queries saved by the trusted users


SAVEDQUERIES
ColumnIDNAMEAUTHORMODIFIEDONDESCRIPTIONQUERY
TypeBIGINTVARCHARVARCHARTIMESTAMPVARCHARVARCHAR
Indexx
x



It allows listing all the users'  saved queries and search by ID or AUTHOR.


Example:

select * from AUX.SAVEDQUERIES where AUTHOR = 'admin'


IDNAMEAUTHORMODIFIEDONDESCRIPTIONQUERY
364foldersadmin2020-01-29 19:53:05.633
SELECT * FROM ZEPHYR.CYCLES c join ZEPHYR.CYCLEFOLDERS f on f.PROJECTID = c.PROJECTID and f.VERSIONID = c.VERSIONID and f.CYCLEID = c.ID where PROJECTKEY = 'MSP'
365cyclesadmin2020-01-28 22:57:53.234
SELECT * FROM ZEPHYR.CYCLES where projectkey = 'MSP'


Convert strings into rows


SPLIT
ColumnOUTPUTINPUTREGEXP
TypeVARCHARVARCHARVARCHAR
Index
xx

This auxiliay table accepts a string as INPUT and a REGEXP expression and returns one record per result.

Ex:

SELECT 
  OUTPUT 
FROM 
  AUX.SPLIT 
WHERE 
  INPUT = 'Hello, World' 
    AND
  REGEXP =','


OUTPUT
Hello
World

Note: Please read the Java String.split() function documentation for more details.

  • No labels