This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Aguillar Family Wine Festival</title> | |
<style> | |
body { | |
background-color: #242f44; | |
color: white; | |
font-family: 'Oswald', sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title element="Everyday with Isa" /> | |
</head> | |
<body> | |
<a href="#contact"><img | |
src="https://content.codecademy.com/courses/learn-html/elements-and-structure/profile.jpg" | |
/></a> | |
<h3>by Isabelle Rodriguez | 1 day ago</h3> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""analyzing_hotel_dbs_wpy.py""" | |
# %% [markdown] | |
# # Analyzing Hotel Databases with Python | |
# | |
# Sleep Away Inc., a hotel corporation, has just hired you as a data analyst. | |
# | |
# 1. They would like you to analyze their most recent data about: | |
# - customers who cancelled their booking and | |
# - customers who did not cancel. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE book ( | |
title varchar(100), | |
isbn varchar(50) PRIMARY KEY, | |
pages integer, | |
price money, | |
description varchar(256), | |
publisher varchar(100) | |
); | |
CREATE TABLE chapter ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT purchase_id, DATE(purchase_date, '7 days') | |
FROM purchases; | |
SELECT STRFTIME('%H', purchase_date) | |
FROM purchases; | |
SELECT date, (CAST(high AS 'REAL') + | |
CAST(low as 'REAL')) / 2.0 AS 'average' | |
FROM weather | |
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
artist, | |
week, | |
streams_millions, | |
streams_millions - LAG(streams_millions, 1, streams_millions) OVER ( | |
PARTITION BY artist | |
ORDER BY week | |
) AS 'streams_millions_change', | |
chart_position, | |
LAG(chart_position, 1, chart_position) OVER ( |
NewerOlder