数据库应用基础 Fundamental and Application of Database 第二讲 测控技术与自动化教研中心冯仁剑
Fundamental and Application of Fundamental and Application of Database Database 数据库应用基础 数据库应用基础 第二讲 测控技术与自动化教研中心 测控技术与自动化教研中心 冯仁剑
第2章关系模型 >21基本概念 >22关系代数 >23查询优化
第2章 关系模型 ¾ 2.1 基本概念 ¾ 2.2 关系代数 ¾ 2.3 查询优化
2.1关系模型的基本概念 1970年,IBME.F.Cod提出 二维表 表名 自动化学院01班学生名单 表头 学号姓名性别出生日期 身高 200001林男1982-12北京188 20010联大民男198302】辽宁165 教数据)1200023顾芳女1982-09天津100 200024刘得华男1982-09香港176 填表囗修改删除查淘
2.1 关系模型的基本概念 关系模型的基本概念 1970年,IBM E. F. IBM E. F. Codd 提出 二维表 表名 自动化学院01班学生名单 表头 学 号 姓 名 性别 出生日期 籍贯 身高 20000121 王 林 男 1982-12 北京 188 20000122 张大民 男 1983-02 辽宁 165 20000123 顾 芳 女 1982-09 天津 160 20000124 刘得华 男 1982-09 香港 176 ……. ……. ……. ……. ……. ……. 数据 填表 修改 删除 查询
21关系模型的基本概念 关系规范化的二维表 (关系名 关系模式 Student(Sno, Sname, Ssex, Sbirthday, Soren, Height 元组》20001林男19212北京188 200002张大民男1983-02辽宁165 实例>20003顾芳女198249天津10 20000124刘得华男1982-09香港176
2.1 关系模型的基本概念 关系模型的基本概念 关系 规范化的二维表 ……. ……. ……. ……. ……. ……. 20000124 20000124 刘得华 男 1982-09 香港 176 20000123 20000123 顾 芳 女 1982-09 天津 160 20000122 20000122 张大民 男 1983-02 辽宁 165 20000121 20000121 王 林 男 1982-12 北京 188 Student(Sno Student(Sno, Sname, Ssex, Sbirthday Sbirthday, Sorient Sorient, Sheight Sheight 关系模式 元组 关系名 实例
文件()编辑E查(Q工具(D窗口()帮助出 Northwind 胃〓 刘器0) x Cust omer ID CompanyName ICont Name Cont actTitle Address ciaomao (sa) LALFKI Alfreds Futterkiste Maria Anders Sales Represent ative Obere Str. 57 2ANATR na Trujillo Emparedados y helados Ana Trujillo Avda. de la constitucion 222 master 3ANTON Ant onio Moreno Taqueria Antonio Mor Mataderos2312 Around the horn Thomas Hardy ales Represent ative 120 Hanover Sq. BERGS Berglunds snabbkop Christina Berglund Order Administrator Berguvsvagen8 Blauer See Delikatessen Hanna Moos Sales Represent ative Forsterstr. 57 口用户表 BLONPBlondesddsl pere et fils Frederique Citeaux Marketing Manager 24, place Kleber 8BOLID mldas prepar adas Martin Sommer 中国dbo9 BONAP Bon Elizabeth Lincoln Accounting Manager 23 Tsawassen Blva o Lebihan Owmer ue des bout 10 BOTTM Bottom-Dollar Markets 11BSBEV Bs Beverages Victoria Ashworth Sales Represent ative Fauntleroy circus +中+ 12 CACTU Cactus Comidas para llevar Patricio Simpson Sales Agent Cerrito 333 Centro comercial Moctezuma Francisco Chang Marketing Manager Sierras de Granada 9993 14 CHOPS Chop-suey Chinese Yang Yang Owmer Hauptstr. 29 15c0 Comercio mineiro Pedro afonso Sales Associate Av. dos lusi adas, 23 16 CONSH Consolidated Holdings Elizabeth Brown Sales Represent ative Berkeley Gardens 12 Brewery 17 Drachenblut Delikatessen Syen Ottlieb Order Administrator Walserweg 21 DUMON Du monde entier Janine Labrune 67, rue des Cinquante otages 19 EASTC Eastern Cornection Ann devon Sales Agent 35 King George 口系统表 Ernst handel Roland Mendel es ager 口视图 21FAMIA Familia Arquibaldo iaCruz Marketing Assist ant Rua Ords,92 存储过2 FISSAFISSA Fabrica Inter. Salchichas S.A. Diego Roel Accounting Manager C/Moralzarzal,86 函数 23FOLIG Folies gourmandes Mart i ine Nan Assist ant Sales Agent184,c中…幽目rmai 口用户定24 FOLKo Folk och fa Maria larsson Owmer Akergat an 「25 Frankenversand Peter Franken Marketing Manager Berliner Platz 4 26 FRANR France restauration Carine Schmitt Marketing Manager 54, rue royale 公用对象 27FRANS Franchi S.p.A. Paolo Accorti Sales Represent ative Via Monte Bianco 34 配置函数 28 FURIB Furia Bacalhau e Frutos do Mar Lino Rodrigue Sales Manager Jardim das rosas n.32 游标函数 29 GALED Galeri a del gastronome 日期和时 Eduardo Saavedra Marketing Manager Rambla de Catalui 数学函数 30 GODos Godos Cocina Tipica Jose Pedro Freyre Sales Manager C/Romero,33 聚合函数 31 GOURL Gourmet Anchoret tes andre fe onseca a⊥es Av.Brasil,442 元数据函菱 32 GREAL Great Lakes Food Market HowardSryder Marketing Manager 2732 Baker Blvd. 安全函数 GROSELLA-Resta aurant e Manuel Pereira 5 Ave, Los Palos grandes 1字算串函 Hanari Carnes Mario Pontes Accounting Manager Rua do Paso,67 对象模板 aoao(60)s(53) Northwind9!行行1,列 NUM