Skip to content

Commit

Permalink
Create minusTest.gsql
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Jan 21, 2025
1 parent dacbdaf commit 1e97d61
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/script/minusTest.gsql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
USE GRAPH financialGraph

CREATE OR REPLACE QUERY minusTest () SYNTAX V3 {
S1 = SELECT s
FROM (s:Phone)
WHERE s.number == "111" OR s.number == "222";

//show what's in S1
PRINT S1[S1.number];

S2 = SELECT s
FROM (s:Phone)
WHERE s.number == "222";

//show what's in S2
PRINT S2[S2.number];

S3 = S1 MINUS S2;

//show what's in S3
PRINT S3[S3.number];

}

install query minusTest
run query minusTest()

0 comments on commit 1e97d61

Please sign in to comment.