Querynomicon 数据库:表结构和概述
Querynomicon (SQLite) 是一个紧凑的训练数据库,用于学习 SQL 基础知识,提供清晰简单的示例。
本页面展示了表格、关键列和示例行,以便进行实际的 SQL 练习。
Querynomicon 数据库包含 5 个主要表。
表格列表
department - 部门表。
- ident部门 ID
- name部门名称
- building建筑名称
| ident |
name |
building |
| gen |
遗传学 |
Chesson |
little_penguins - 小企鹅表。
- species企鹅种类
- island居住岛屿
- bill_length_mm喙长,毫米
- bill_depth_mm喙深,毫米
- flipper_length_mm鳍长,毫米
- body_mass_g体重,克
- sex性别
| species |
island |
bill_length_mm |
bill_depth_mm |
flipper_length_mm |
body_mass_g |
sex |
| Gentoo |
Biscoe |
52.1 |
17 |
230 |
5550 |
雄性 |
penguins - 企鹅表。
- species企鹅种类
- island居住岛屿
- bill_length_mm喙长,毫米
- bill_depth_mm喙深,毫米
- flipper_length_mm鳍长,毫米
- body_mass_g体重,克
- sex性别
| species |
island |
bill_length_mm |
bill_depth_mm |
flipper_length_mm |
body_mass_g |
sex |
| Gentoo |
Biscoe |
52.1 |
17 |
230 |
5550 |
雄性 |
staff - 员工表。
- ident员工编号
- personal员工名字
- family员工姓氏
- dept部门
- age年龄
| ident |
personal |
family |
dept |
age |
| 7 |
Abram |
Chokshi |
gen |
23 |
machine - 机器表。
- ident机器 ID
- name机器名称
- details包含详细信息的 JSON
| ident |
name |
details |
| 1 |
WY401 |
{"acquired": "2023-05-01"} |
| 2 |
Inphormex |
{"acquired": "2021-07-15", "refurbished": "2023-10-22"} |
| 3 |
AutoPlate 9000 |
{"note": "需要软件更新"} |