We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7d21aa commit dacbdafCopy full SHA for dacbdaf
demos/guru_scripts/docker/tutorial/4.x/script/intersectTest.gsql
@@ -0,0 +1,25 @@
1
+USE GRAPH financialGraph
2
+CREATE OR REPLACE QUERY intersectTest () SYNTAX V3{
3
+ S1 = SELECT s
4
+ FROM (s:Phone)
5
+ WHERE s.number == "111" OR s.number == "222";
6
+
7
+ //show what's in S1
8
+ PRINT S1[S1.number];
9
10
+ S2 = SELECT s
11
12
+ WHERE s.number == "222";
13
14
+ //show what's in S2
15
+ PRINT S2[S2.number];
16
17
+ S3 = S1 INTERSECT S2;
18
19
+ //show what's in S3
20
+ PRINT S3[S3.number];
21
22
+}
23
24
+install query intersectTest
25
+run query intersectTest()
0 commit comments