You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- We will display a set of cards, each one displaying the result of the multiplication a * b
97
89
select'card'as component,
98
90
5as columns;
99
-
WITH RECURSIVE cnt(x) AS (
100
-
-- cnt is a table that contains the numbers from 1 to 10
101
-
SELECT1
102
-
UNION ALL
103
-
SELECT x +1
104
-
FROM cnt
105
-
WHERE x <10
106
-
)
91
+
107
92
SELECTa.x||' times '||b.xas title,
108
93
CASE
109
94
a.x % 4
@@ -115,8 +100,8 @@ SELECT a.x || ' times ' || b.x as title,
115
100
a.x||' x '||b.x||' = '|| (a.x*b.x) as description,
116
101
'This is basic math'as footer,
117
102
'?x='||a.xas link -- This is the interesting part. Each card has a link. When you click the card, the current page is reloaded with '?x=a' appended to the end of the URL
0 commit comments