日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

Coursera课程Python for everyone:Quiz: Multi-Table Relational SQL

發布時間:2025/3/21 python 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Coursera课程Python for everyone:Quiz: Multi-Table Relational SQL 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Multi-Table Relational SQL

10?試題

1.?

What is the primary added value of relational databases over flat files?

Ability to store data in a format that can be sent across a network

Ability to quickly convert data to HTML

Ability to execute JavaScript in the file

Ability to scan large amounts of data quickly

Ability to execute Python code within the file

2.?

What is the purpose of a primary key?

To point to a particular row in another table

To look up a row based on a string that comes from outside the program

To track the number of duplicate values in another column

To look up a particular row in a table very quickly

3.?

Which of the following is NOT a good rule to follow when developing a database model?

Use integers as primary keys

Use a person's email address as their primary key

Model each "object" in the application as one or more tables

Never repeat string data in more than one table in a data model

4.?

If our user interface (i.e., like iTunes) has repeated strings on one column of the user interface, how should we model this properly in a database?

Make a table that maps the strings in the column to numbers and then use those numbers in the column

Put the string in the first row where it occurs and then put that row number in the column of all of the rest of the rows where the string occurs

Put the string in the first row where it occurs and then put NULL in all of the other rows

Encode the entire row as JSON and store it in a TEXT column in the database

Put the string in the last row where it occurs and put the number of that row in the column of all of the rest of the rows where the string occurs

5.?

Which of the following is the label we give a column that the "outside world" uses to look up a particular row?

Logical key

Primary key

Remote key

Foreign key

Local key

6.?

What is the label we give to a column that is an integer and used to point to a row in a different table?

Logical key

Primary key

Local key

Foreign key

Remote key

7.?

What SQLite keyword is added to primary keys in a CREATE TABLE statement to indicate that the database is to provide a value for the column when records are inserted?

AUTO_INCREMENT

INSERT_AUTO_PROVIDE

ASSERT_UNIQUE

AUTOINCREMENT

8.?

What is the SQL keyword that reconnects rows that have foreign keys with the corresponding data in the table that the foreign key points to?

COUNT

APPEND

CONNECT

JOIN

CONSTRAINT

9.?

What happens when you JOIN two tables together without an ON clause?

The number of rows you get is the number of rows in the first table times the number of rows in the second table

You get all of the rows of the left table in the JOIN and NULLs in all of the columns of the right table

You get no rows at all

Leaving out the ON clause when joining two tables is an SQL syntax error

The rows of the left table are connected to the rows in the right table when their primary key matches

10.?

When you are doing a SELECT with a JOIN across multiple tables with identical column names, how do you distinguish the column names?

tablename/columnname

tablename['columnname']

tablename->columnname

tablename.columnname

總結

以上是生活随笔為你收集整理的Coursera课程Python for everyone:Quiz: Multi-Table Relational SQL的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。