Create and Edit Tables Using Wizard and SQL 11
Create and Edit Tables Using Wizard and SQL 11
Table
Query
Forms
Reports
The table in the database is used to store and organized data in the
database. The query in the database is used to recover data from the
database.
Tables
In tables, data is organized in rows and columns. Rows are arranged
horizontally and columns are arranged vertically. Rows are also known
as records in a database. Information related to every object is stored in
the row. Rows are subdivided into the field.
Queries
A query in the database retrieves the information from the database
means it selects the required result from the database. The information
is retrieved according to the user requirement means according to the
given criteria. It is the best way to choose, filter, and sort the record.
SQL is the most commonly used language for queries. In the database,
the user can also change the data by the query. It is also used for the
calculation of the different fields.
In a query, data is viewed and analyzed in multiple ways. It is actually
the result of stored requests and questions. They are designed in the
Design view of MS Access.
25 Sonia MSc
55 Sidra BSc
54 Muneeb FSc
Forms
The forms are reports are important features of a database system.
Almost all database systems provide these facilities A graphical interface
used to interact with a database is called a form. Forms are used to
enter data into the database. A form typically consists of textboxes,
labels, buttons, and other graphical objects. These objects enable the
user to interact with the database in an easy and user-friendly way.
The user can also retrieve, change, delete, and update data by using
forms. Application programmers create the user interface by designing
forms in different ways to meet the specific needs of their project or
company.
Advantages of forms
Disadvantages of forms
Reports
Reports are one of the most important features of database applications
as they provide a way to retrieve and present data in a formatted
manner. Reports can be generated in various ways depending on the
needs of the user and may contain different types of information such as
graphs, charts, and tables.
Disadvantages of report
Field
A field is the smallest unit of data in a database. It represents a single
attribute or property of an entity.
Fields have a data type associated with them, such as text, number,
date, or other specific types depending on the nature of the data they
are meant to store.
Record
A record, also known as a row or tuple, is a complete set of related fields
that represents a single entry or instance of data in a database.
3. Open Table Wizard: In the Database window, click Tables in the left
pane. Then, click the Use Wizard to Create Table button on the
toolbar.
4. Select Table Category: Choose a category that best fits your data,
such as "Business" or "Personal". Click Next.
9. Table Name and Summary: Enter a descriptive name for your table
and an optional summary. Click Finish.
10. Review and Edit Table: Base will create the table based on
your choices. You can now review the table structure in Design
View and make any necessary changes.
Option to set the primary key
1. Understand the Purpose: A primary key is a unique identifier for
each record in a database table.
It ensures that each row in the table is distinct.
3. Specify the Primary Key Constraint: Use the SQL command or the
database management system's interface to declare the primary
key constraint on the chosen column(s).
Ensure Uniqueness: Verify that the chosen column(s) do not
contain duplicate values.
If duplicates exist, resolve them before setting the primary key.
1. CREATE Command
2. DROP Command
3. ALTER Command
4. TRUNCATE Command