Skip to content

all the files#8

Open
mgriffith-v wants to merge 1 commit intoThe-Marcy-Lab-School:masterfrom
mgriffith-v:master
Open

all the files#8
mgriffith-v wants to merge 1 commit intoThe-Marcy-Lab-School:masterfrom
mgriffith-v:master

Conversation

@mgriffith-v
Copy link

No description provided.

Copy link
Contributor

@ROgbonna1 ROgbonna1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many small errors and styling issues here. Slow down and run these in psql so that you ensure that you catch these next time.

@@ -0,0 +1,16 @@
SELECT count(*id) AS exact_count FROM film;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SELECT count(*id) AS exact_count FROM film;
SELECT count(fid) AS exact_count FROM film_list;

@@ -0,0 +1,16 @@
SELECT count(*id) AS exact_count FROM film;

SELECT title,description From film ORDER BY length(description) Limit 10;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SELECT title,description From film ORDER BY length(description) Limit 10;
SELECT title, description FROM film_list ORDER BY length(description) LIMIT 10;


SELECT title,description From film ORDER BY length(description) Limit 10;

SELECT title FROM film min(length) limit 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SELECT title FROM film min(length) limit 1;
SELECT title FROM film_list min(length) LIMIT 1;


SELECT title FROM film min(length) limit 1;

SELECT title,description FROM film_where WHERE actors LIKE '%CAMERON STREEP%';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SELECT title,description FROM film_where WHERE actors LIKE '%CAMERON STREEP%';
SELECT title, description FROM film_where WHERE actors LIKE '%CAMERON STREEP%';

SELECT title,description FROM film_where WHERE actors LIKE '%CAMERON STREEP%';

SELECT category AS "Genre", avg(price) AS "Average Price", avg(length) AS "Average Length"
FROM film GROUP BY category;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
FROM film GROUP BY category;
FROM film_list GROUP BY category;

SELECT category AS "Genre", avg(price) AS "Average Price", avg(length) AS "Average Length"
FROM film GROUP BY category;

SELECT rating AS "Ratings", count(rating) AS "Count" FROM film GROUP BY
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SELECT rating AS "Ratings", count(rating) AS "Count" FROM film GROUP BY
SELECT rating AS "Ratings", count(rating) AS "Count" FROM film GROUP BY rating;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants