
SQL
文章平均质量分 73
没有出口的猎户座
这个作者很懒,什么都没留下…
展开
-
Week3 Practice Quiz
再用leftjoin的语法,依次列出tracks.albumid,albums.albumid,albums.title,再用albumid连接album和tracks两张表。解析需要一个list包含Audioslave这位艺术家的价钱和专辑名字,艺术家的专辑名字来自表格artists的name,价钱来自tracks的unitprice。看上图得知,专辑的数量在albumid里来自表格albums,专辑艺术家的名字在表格artists的name里。用leftjoin合并,再计算数量。......原创 2022-07-19 13:47:54 · 530 阅读 · 0 评论 -
SQL WEEK2 ASSIGNMENT2解析
https://ucde-rey.s3.amazonaws.com/DSV1015/ChinookDatabaseSchema.pnghttps://ucde-rey.s3.amazonaws.com/DSV1015/ChinookDatabaseSchema.pngER-DIAGRAM如上图9. Show the number of orders placed by each customer (hint: this is found in the invoices table) and s原创 2022-07-10 05:49:29 · 198 阅读 · 0 评论 -
SQL WEEK2 Assignment
1. Find the distinct values for the extended step. The code has been started for you, but you will need to program the third line yourself before running the query.错误原因:没有看清楚题目,以为是找所有column的distinct,后面发现只要根据格式在最后加上FROM 什么table即可+---------------+| Exten原创 2022-07-07 13:04:28 · 4078 阅读 · 0 评论 -
SQL for Data Science Quiz Week1
Question 3Which of the following statements are true of Entity Relationship (ER) Diagrams?They show you the relationships between tables.They only represent entities in the diagram.They identify the Primary KeysThey are usually a representation of a busin原创 2022-06-26 12:38:13 · 316 阅读 · 0 评论 -
SQL for Data Science - Week 1 练习
Question 5What is the query below missing in order to execute?代码报错的原因是:Select -- 没懂为什么是这个The Column NamesA Comma From Question 3When using SQLite, what datatypes can you assign to a column when creating a new table? Select all that apply.RealNullIntege原创 2022-06-25 12:37:46 · 261 阅读 · 0 评论