Pengantar NoSQL
Jake Roach
Data Engineer


Database berorientasi kolom:


SELECT
title,
price
FROM books
WHERE price < 50.00;
$$
SELECT
title,
price
FROM books
WHERE price < 50.00;
Kueri ini berjalan dengan:
price, mengidentifikasi record dengan price < 50.00title
Nanti, kita akan membahas:
JOIN yang cepatimport snowflake.connector
conn = snowflake.connector.connect(
user="<user>",
password="<password>",
account="<account_identifier>",
database="<database_name>",
schema="<schema_name>",
warehouse="<warehouse_name>"
)
conn akan disiapkan untuk Anda sebelum latihan# 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)
Pengantar NoSQL