Skip to content

Commit cbff302

Browse files
author
Stefano Lottini
committed
full table scan part in cql
1 parent adbedcf commit cbff302

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ It doesn't matter if you join our workshop live or you prefer to do at your own
2020

2121
To get the verified badge, you have to complete the following steps:
2222

23-
1. Complete the practice steps of this workshop as explained below. Steps 1-4 (account, tabular, document, key-value) are mandatory, step 5 (graph database) is optional. Take a screenshot of the last completed step for steps 2, 3 and 4. _NOTE: When taking screenshots ensure NOT to copy your Astra DB secrets!_
23+
1. Complete the practice steps of this workshop as explained below. Steps 1-4 (Astra account + tabular/document/key-value databases) are mandatory, step 5 (graph database) is optional. Take a screenshot of the last completed step for steps 2, 3 and 4. _NOTE: When taking screenshots ensure NOT to copy your Astra DB secrets!_
2424
<!-- x. Complete [try-it-out scenario](https://www.datastax.com/try-it-out) and make a screenshot of the "scenario completed" screen -->
2525
2. Submit the practice [here](https://dtsx.io/nosql-ws-hw), answering test questions and attaching the screenshots.
2626

@@ -75,14 +75,14 @@ In Astra DB go to CQL Console to enter the following commands
7575

7676
- *Enter the command*
7777
```sql
78-
describe keyspaces;
78+
DESCRIBE KEYSPACES;
7979
```
8080

8181
![image](images/03.png?raw=true)
8282

8383
**✅ 2b. Create table**
8484

85-
- *Execute the following Cassandra Query Language*
85+
- *Execute the following Cassandra Query Language commands:*
8686

8787
```sql
8888
USE nosql1;
@@ -98,7 +98,7 @@ CREATE TABLE IF NOT EXISTS accounts_by_user (
9898
) WITH CLUSTERING ORDER BY (account_id ASC);
9999
```
100100

101-
- *Visualize structure*
101+
- *Visualize keyspace structure:*
102102

103103
```sql
104104
DESCRIBE KEYSPACE nosql1;
@@ -135,7 +135,7 @@ CREATE TABLE nosql1.accounts_by_user (
135135

136136
**✅ 2c. Working with DATA** :
137137

138-
- *Insert some entries on first table*
138+
- *Insert some entries into the table:*
139139

140140
```sql
141141
INSERT INTO accounts_by_user(user_id, account_id, account_balance, account_type, user_email, user_name)
@@ -185,7 +185,7 @@ SELECT * FROM accounts_by_user;
185185
(3 rows)
186186
```
187187

188-
> Notice that all three rows are "filled with data", despite the second insertion above skipping the `user_email` and `user_name` columns:
188+
> Notice that all three rows are "filled with data", despite the second of the insertions above skipping the `user_email` and `user_name` columns:
189189
> this is because these are **static columns** (i.e. associated to the whole partition) and in this case their value had been written already.
190190
191191
- *Read by primary key*
@@ -211,7 +211,9 @@ SELECT user_email, account_type, account_balance
211211

212212
But data can be grouped, we stored together what should be retrieved together.
213213

214-
</details><summary>- *Try a query not compatible with the data model* (optional, click to expand)</summary>
214+
- *Try a query not compatible with the data model*
215+
216+
</details><summary>(Optional: click to expand)</summary>
215217

216218
```
217219
SELECT account_id, account_type, account_balance
@@ -694,7 +696,7 @@ Astra DB does not contain yet a way to implement Graph Databases use cases. But
694696

695697
For graph databases, the presenter will show a demo based on the example in the slides.
696698

697-
The practice is based on another example. Since it cannot be done in the browser using
699+
The hands-on practice for you is different. But since it cannot be done in the browser using
698700
Astra DB like the rest, it is kept separate and not included in today's curriculum.
699701

700702
🔥 Yet, you are strongly encouraged to try it at your own pace, on your own computer,

0 commit comments

Comments
 (0)