




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































2
Databases Modeling and Development SQL and Database implementation in MS SQLServer
4
What is a database and a DBMS?
Data definition language (DDL) - Permits specification of data types, structures and any data constraints. Data manipulation language (DML) - General enquiry facility (query language) of the data. Controlled access to database may include: a security system an integrity system a concurrency control system a recovery control system
Management system controls access
For example…
Invoice No.
Stereos To Go Invoice No. Date: / / Account No. Item Number Product Description/Manufacturer^ Qty^ Price Product Code 1 2 3 4 5 Date Shipped: / / Customer: Address: City State Zip Code Invoice Customer Invoice Items purchased on the Invoice Products and Manufacturers
FD Invoice-File. 01 Invoice-Record. 05 Invoice-number PIC X(5). 05 Invoice-date PIC X(6). 05 Cust-account-number PIC X(10). 05 Cust-First-Name PIC X(15). 05 Cust-Last-Name PIC X(20). 05 Cust-Address PIC X(30). FD Invoice-File. 01 Invoice-Record. 05 Invoice-number PIC X(5). 05 Invoice-date PIC X(6). 05 Cust-account-number PIC X(10). 05 Cust-First-Name PIC X(15). 05 Cust-Last-Name PIC X(20). 05 Cust-Address PIC X(30).
Invoice Program Invoices Customer Account Program Account Report Customer Mailings Program Mailing List Customer Orders “A collection of application programs that perform services for the end users such as the production of reports. Each program defines and manages its own data.” Customer Mailing List Customer Accounts File
Separation and isolation of data ( one file, one program ) Duplication of data
Data dependence - application program defines the data Incompatibility of file formats Fixed queries of application programs - little flexibility in meeting changing information needs
Data and Data Definitions Applications
Central Repository Separation
Tightly binds the data file and program
FD Master-File. 01 Master-Record. 05 ID PIC X(10). 05 Customer-Fname PIC X(25). . . .
Data Output Program
Data and Data Definitions Applications Central Repository
Application programs can be run on either the clients or server