Introduction to NoSQL
Jake Roach
Data Engineer
Column-oriented databases:
SELECT
title,
price
FROM books
WHERE price < 50.00;
$$
SELECT
title,
price
FROM books
WHERE price < 50.00;
This query executes by:
price
column, identify records with price < 50.00
title
columnLater, we'll look at:
JOIN
simport snowflake.connector
conn = snowflake.connector.connect(
user="<user>",
password="<password>",
account="<account_identifier>",
database="<database_name>",
schema="<schema_name>",
warehouse="<warehouse_name>"
)
conn
variable will be created for you, pre-exercise# Build a query in a string (or multi-line string)
query = """
SELECT
title,
price
FROM books
WHERE price < 50.00;
"""
# Execute the query, print the results
results = conn.cursor().execute(query).fetch_pandas_all()
print(results)
Introduction to NoSQL