130 likes | 230 Views
CT 5705701 Database Systems and Information Technology. Course Introduction by Hung-Ming Chen. Conceptual Design of Databases (The E-R Model). Relational Model. Table (Relation, Relational Schema). Schema # 1. Schema # 2. : Entity. : Relationship. : attribute.
E N D
CT 5705701 Database Systems and Information Technology Course Introduction by Hung-Ming Chen
Relational Model Table (Relation, Relational Schema)
: Entity : Relationship : attribute The E-R Diagram for Schema #2 sid name class cid instructor grade Enrolled Students Courses
Creating Relations Using SQL (DDL) CREATE TABLE Students ( sid CHAR(20), name CHAR(30), login CHAR(20), age INTEGER, gpa REAL )
Modifying Relations (DML) INSERT INTO Students(sid, name, login, age, gpa) VALUES(53688, ‘Smith’, ‘smith@ee’, 18, 3.2) DELETE FROM Students S WHERE S.name = ‘Smith’
SQL Queries (DQL) Find the name of all students who enrolled in the course numbered by ‘CT5705’. SELECT S.name FROM Students S, Enrolled E WHERE S.sid = E.sid AND E.cid = ‘CT5705’
Relational Algebra and Calculus Relational Algebra: Relational Calculus:
Schema Refinement and Normal Forms • Schema Refinement: Reduce redundancy by replace a relation schema with several smaller relation schemas. • A normal form is a property of a relation schema indicating the type of redundancy that the relation schema exhibits.
HTML A simple HTML document: <HTML> <HEAD> <TITLE> CT 5705 </TITLE> </HEAD> <BODY> Welcome to <BR> CT5705! </BODY> </HTML>
Scripting Languages • Scripts is a program that can be embedded in an HTML page. • Scripting language can be used to add interactivity to your web page. • JavaScript and VBScript: client-side programs. • ASP: server-side program, can utilize the resources on the server, such as a database to produce more customized effect.