0% found this document useful (0 votes)
16 views12 pages

Ms Access SQL

This document provides an introduction to databases including: - A database is a collection of meaningful information stored electronically in a computer system. - There are structured/relational and document-oriented databases like Oracle, SQL Server, MongoDB, and Cosmos DB. - A database contains data fields, records made of fields, datasets/tables of related records, and the overall database. It also includes a data dictionary. - Advantages of databases include data integrity, security, scalability, and sharing. - MS Access is a relational database system that is easy to use and part of the Microsoft Office suite. - Primary and foreign keys are used to uniquely identify rows and relate tables. Relationship types include
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views12 pages

Ms Access SQL

This document provides an introduction to databases including: - A database is a collection of meaningful information stored electronically in a computer system. - There are structured/relational and document-oriented databases like Oracle, SQL Server, MongoDB, and Cosmos DB. - A database contains data fields, records made of fields, datasets/tables of related records, and the overall database. It also includes a data dictionary. - Advantages of databases include data integrity, security, scalability, and sharing. - MS Access is a relational database system that is easy to use and part of the Microsoft Office suite. - Primary and foreign keys are used to uniquely identify rows and relate tables. Relationship types include
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Introduction to DB

What is a Database?

A database is a collection of meaning full information.


generally stored and accessed electronically from a computer
system.
Type of Databases
• Structured/Relational Database
• Oracle
• SQL Server
• MySQL
• PostgreSQL
• Ms-Access
• Document-oriented database
• MongoDB
• Cosmos DB
• ArangoDB
Different parts of a database
DATA HIERARCHY

• Field/column = represent a single data item

• Records = made up of a related set of fields describing one instance of an entity

• Dataset / Table = a set of related records - as many as instances (occurrence) in the set

• Database = a collection of related files

• Data Dictionary = a collection of names, definitions, and attributes about data


elements that are being used or captured in a database
Example of data structure

Fields

Name FirstName Telephone


Records Mani Kumar 2273416
SevaKumar S 2284450
Clinton Bill 2254538
Murali T 2213890

+ Other files =>complete data


Dataset / Table
Structure = DB
Advantages of Databases
• Data integrity
• Data security
• Data scalability
• Data sharing
•.
• .etc
Ms Access
• Developed by Microsoft

• One of the Office Component

• Easy to use

• MS-Access is a powerful relational database system. Table and query concepts are similar
for any RDB package. MS-Access also has an integrated application development
environment (IDE) for creation of end-user software that can be customized to fit most
personal/departmental needs for data collection and storage.
Primary Keys
• Primary Key is a variable/attribute that uniquely
identifies each row

• Can also be a combination of columns

• You may be tempted to use things like last name+first


name – DON’T
Foreign Key
• Foreign key is a primary key of another table.

• It shows that the two tables are related and how one
row in one table related to another table
Relationships between tables
• One to one – one row in one table goes to only one row in
another table
- Patient Hospital no

• One to Many – one row in one table (parent) goes to multiple


rows in another table (child)
- Patient (primary key) visits Many Departments (foreignkey)

• Many to Many – A row in table (parent) can have many


matching rows in another table (child), and vice versa.
- Patients and Departments
Demo
Exercise
Demographics Glucose Meds
Patient_ID Glucose_ID Med_ID
Fname Patient_ID DrugCombonatio
Lname Date n
Address Med_ID
Phone Glucose value
Gender
DOB
Height
Weight

• Build tables/study
• Add few records
• Show data validation rules
• Import and Export data

You might also like