0% found this document useful (0 votes)
10 views7 pages

Lab 2 (IS)

The document discusses creating a database and tables, including data types and how to create tables for students, courses, and instructors.

Uploaded by

adhamahmed110804
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

Lab 2 (IS)

The document discusses creating a database and tables, including data types and how to create tables for students, courses, and instructors.

Uploaded by

adhamahmed110804
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Introduction to Information System 2023/2024 Handout: Lab 2

Lab 2
Lap contents:
➢ Create Database
➢ Data Type
➢ Create Table

Eng. Rana Khaled| Eng. Nadeen Ayman| Eng. Omnia Khaled


Create Database:

Eng. Rana Khaled| Eng. Nadeen Ayman| Eng. Omnia Khaled


Eng. Rana Khaled| Eng. Nadeen Ayman| Eng. Omnia Khaled
Data Type:

Type of Data Description Size Example

Text or combinations of text and


numbers,including numbers that do
Short Text Up to 255 characters. "John Doe", "ABC123"
not require calculating (e.g. phone
numbers).
Lengthy text or
Detailed paragraphs,
Long Text combinations of text and
Up to 63, 999characters. notes
numbers.

Numeric data used in mathematical 1, 2, 4, or 8 bytes(16


Number 123, 45.67, -10
calculations. bytes if set toReplication
ID).

Extended numeric values with


Long number Varies 123456789, -987654321
larger range than Number

Date and time values for the years


Date/Time 2022-02-24, 14:30:00
100 through9999. 8 bytes.

Date/Time Date and time values with higher 2022-02-24


16 bytes
Extended precision 14:30:15.123

Currency values and numeric


data used in mathematical
calculations involving data $1000.50, €75.25
Currency 8 bytes.
withone to four decimal
places.
A unique sequential
(incremented by 1) number
or random number assigned 4 bytes (16 bytes ifset to 1, 2, 3, ...
AutoNumber by Microsoft Access Replication ID).
whenever a new record is
added to a table.

Yes and No values and fields


that contain onlyone of two Yes, No, True, False
Yes/No values (Yes/No, True/False, or 1 bit.
On/Off).

Eng. Rana Khaled| Eng. Nadeen Ayman| Eng. Omnia Khaled


Data Types Description Size

Files, such as digital photos. Attached image file


Multiple files can be attached Up to 2GB.
Attachment
per record. This data type is
not available in earlier
versions of Access.

OLE objects
OLE objects can store pictures, Up to about 2GB. Dropdown list of options
audio, video, or otherBLOBs
(Binary Large Objects)
Up to 8,192 (each http://www.example.com
part of a Hyperlink
Text or combinations of text data type can
Hyperlink containup to 2048
and numbers stored astext
and used as a hyperlink characters).
address.
The Lookup Wizard entry in Dropdown list of options
the Data Type column in the
Design view is not actually a
data type. When you choose
this entry, a wizard starts to Dependent on the
Lookup help you define either a simple data type ofthe
Wizard or complex lookup field. lookup field.

A simple lookup field uses the


contents of another table or a
value list to validate the
contents of a single value per
row. A complex lookup field
allows you to store multiple
values of the same data type
in each row.
You can create an [Price] * 0.8
expression that
uses data from one
You can create an expression or more fields. You
Calculated that uses data from one or can designate
more fields. You can designate different result data
different result data types types from
from the expression. the expression.

Eng. Rana Khaled| Eng. Nadeen Ayman| Eng. Omnia Khaled


Create Table:

Student:

Eng. Rana Khaled| Eng. Nadeen Ayman| Eng. Omnia Khaled


Courses:

Instructors:

Eng. Rana Khaled| Eng. Nadeen Ayman| Eng. Omnia Khaled

You might also like