Database Flashcards
all about database
what is it
A database is a structured collection of data organized in a manner that enables efficient retrieval, storage, and manipulation of information.
Document Field Descriptions
Field Name: The name of the field.
Data Type: The type of data the field can store (e.g., text, numeric, date).
Length: The maximum length or size of the data (applicable for text fields).
Format: Any specific format or pattern required for the data (e.g., date format, currency symbol).
Constraints: Any constraints or rules imposed on the field (e.g., required, unique, foreign key).
Write field description
Open Microsoft Access: Launch Microsoft Access and open the database in which you want to write or modify field descriptions.
Access Table Design View:
Navigate to the “Tables” tab in the main Access window.
Select the table you want to modify or create a new table by clicking on “Table Design.”
Field Name and Description:
In the Table Design View, each row represents a field (column) in your table.
Write the name of the field in the “Field Name” column. This is the identifier for the field.
Click on the “Description” column next to the field name. This is where you can write the description for the field.
Write Field Description:
Click on the “Description” column for the field you want to describe.
Write a brief and informative description of the field. This description should provide context and explain the purpose or meaning of the field’s data.
Save Changes:
After writing the field descriptions, save your changes by clicking on the floppy disk icon in the Quick Access Toolbar or by pressing Ctrl + S.
How to do a query
Create a Query:
Go to the “Create” tab in the main Access window.
Click on “Query Wizard” in the “Queries” group.
Choose Query Type:
In the Query Wizard dialog box, select “Simple Query Wizard” and click “OK.”
Select Table or Query:
Choose the table(s) from which you want to retrieve data and click “Next.”
Select Fields:
Select the fields you want to include in the query result and click “Next.”
Choose Sort Order:
Specify the sort order for the query result if desired and click “Next.”
Name and Finish:
Enter a name for your query and choose whether to open the query or modify the design. Click “Finish.”
What is a Primary Key
A primary key is a unique identifier for each record (row) in a database table.
How Primary Key Works:
Uniqueness: A primary key must contain unique values for each record in the table. No two records can have the same primary key value.
Identification: The primary key uniquely identifies each record within the table. It serves as a reference point for data retrieval, updates, and deletion operations.