Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
70 views

Database Design: - Tables - Constraints - Relationships - Queries

This document provides an overview of database design in Microsoft Access, including how to create and design tables, define fields and field properties, set primary keys and indexes, and work with different data types like text, numbers, dates, and formatting options. It covers topics such as creating and modifying table designs, working with different field types, setting field validation rules and lookups, and using various numeric and date/time formats.

Uploaded by

rahul
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views

Database Design: - Tables - Constraints - Relationships - Queries

This document provides an overview of database design in Microsoft Access, including how to create and design tables, define fields and field properties, set primary keys and indexes, and work with different data types like text, numbers, dates, and formatting options. It covers topics such as creating and modifying table designs, working with different field types, setting field validation rules and lookups, and using various numeric and date/time formats.

Uploaded by

rahul
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Database Design

• Tables
• Constraints
• Relationships
• Queries

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #1


Table Design

• Create Table
• Define fields, Data type
• Define field properties
• Set primary keys
• Create indexes
• Save the design

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #2


Table Design

• Design view
• Primary key
• Insert rows
• Delete rows
• Property Sheet
• Indexes

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #3


Table Fields

• Field Name
• 1-64 characters
• Letters, digits, special chars
• Avoid . ! [ ] `
• Data Types
• Text, Number, Date
• AutoNumber
• Currency, Yes/No, Memo
• OLE object, Hyperlink

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #4


Table Fields

Type Spec Type of Data stored Size


Text Alphanumeric 0-255
Memo Alphanumeric 0-65536
Number Numeric 1,2,3,4 bytes
Date/Time Date and Time 8 bytes
AutoNumber Auto incremented no. 4 bytes
Yes/No True/False 1 or 0 1 bit
OLE Pic, Sound, video Up to 1GB
Hyperlink URL Up to 64k char

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #5


Table Fields

• Formatting
• Format (< > @)
• Input Mask
• Validation
• Caption
• Rule
• Mandatory
• Lookup
• List
• Table

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #6


Numeric Fields

Type Spec Range Size


Byte 0 – 255 1 byte
Integer -32K to 32K 2 bytes
Long Integer -2 Gb to 2 Gb 4 bytes
Single - 3.4x 1038 to 3.4x 1038 7 Decimal 8 bytes
Double - 1.797x 10308 to 1.797x 10308 15 Decimal 4 bytes
Decimal 1 – 28 Precision, 15 decimal places 8 bytes

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #7


Number Formats

Type Spec Format Number Entered Number Displayed


General ######.# 987654.321 987654.3
Currency $###,##0.00 987654.321 $987654.32
Fixed ######.## 987654.321 987654.32
Standard ###,###.## 987654.321 987,654.32
Percent ###.##% .987 98.7%
Scientific ###E+00 987654.321 9.88E+05

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #8


Date Formats

Type Spec Format


Long Date Sunday, October 5, 2008
Medium Date 5-Oct-2008
Short Date 10/5/08
Long Time 9:21:17 AM
Medium Time 09:21 AM
Short Time 9:21:17

IBS, Chennai II IT Workshop on MS Access October 3-6, 2008 #9

You might also like