Database Design and SQL Connie Wagner, Instructor.
-
Upload
kerry-carroll -
Category
Documents
-
view
223 -
download
0
Transcript of Database Design and SQL Connie Wagner, Instructor.
![Page 1: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/1.jpg)
Database Design and SQL
Connie Wagner, Instructor
![Page 2: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/2.jpg)
Class
• Syllabus• Schedule• Contact information
![Page 3: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/3.jpg)
Covering In Class
• MS Access – developer’s view• Proper steps in setting up a database• SQL statements
![Page 4: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/4.jpg)
Relational Databases
• Types of Databases– Flat• Word tables, Excel, etc
– Relational• No redundancy• Tables are related
![Page 5: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/5.jpg)
Database Systems
• Three components– Data– Structure– Technology to store and retrieve
• Examples– Telephone book– Dictionary
![Page 6: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/6.jpg)
Data
• All around us• Needs to be shared – easily accessed• Needs to be current• Needs to be organized - structured• Needs to be easily understood• MUST be accurate
![Page 7: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/7.jpg)
Structure
• Must be identified– Entities (fields) that describe the reality of the
business– Attributes (properties) of these entities– Roles of the attributes– Relationships between the entities– Behavior of the entities and attributes when the
data changes
![Page 8: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/8.jpg)
Structure
• Importance of analysis– Primary objective is to know the business and
design a model– Review current procedures, reports and forms
![Page 9: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/9.jpg)
Structure
• Importance of analysis– Work with end-users • Ask what is currently working• Ask if you would change anything, and if so, what
would it be• What is their level of expertise• Any special requirements
– Current/Planned hardware• Server• End-user systems
![Page 10: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/10.jpg)
Technology - Using a Database Application w/ Data Managed by a Database Server
• Create a service that owns the data– Manages how it is accessed to avoid conflicts
• Ensure all applications access data through this service
![Page 11: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/11.jpg)
Complex Application w/Multiple Options for Each Layer
• Stores information in company database• May need to run disconnected from the main
system• Connected to the network– Attached to central database and stores data in
database• Not connected to network– Stores data locally
![Page 12: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/12.jpg)
Interfaces/Connections
• ODBC – open database connectivity– Programming layer• RDO – old• ADO – current (active data object)
• OLE DB – object linking and embedding database
• Others
![Page 13: Database Design and SQL Connie Wagner, Instructor.](https://reader036.fdocuments.in/reader036/viewer/2022082407/56649ef55503460f94c0849d/html5/thumbnails/13.jpg)
Interfaces/Connections
• Efficiency– Fast processing
• Dependable