I use tigergraph version 3.1.
I have an SQL-like select in my code:
SELECT p1.name,p1.category, count(p2) as p2_cnt INTO ResTable
FROM vertex1:p1-()-vertex2:p2 ;
I tried to perform something like with VertexSet or container types but nothing is allowed.
- to print only some of fields
PRINT ResTable.name;
PRINT ResTable[ResTable.name]; - Use as a source in next select
SELECT pcn
FROM ResTable:pcn; - Iterate in a loop
FOREACH a_res in ResTable DO
PRINT a_res ;
END; - Find the number of rows
ResTable.size() - Calculate some measures based on table
PRINT avg(ResTable.p2_cnt)
What can I do with tabular output except PRINT?
Thank you