Sorting databases

Preview:

Citation preview

Sorting Databases

Module 7 Lesson 2

Sort

To arrange data in alphabetical or numerical order.– Ascending: Sorting data in alphabetical order

from A-Z or numerical order from 0-9.– Descending: Sorting data the opposite of

ascending order. (Z-A & 9-0)

Sort

Ascending by Rank

Descending by Rank

Sort

Ascending by Rank

Descending by Rank

Sort

Ascending by Rank

Descending by Rank

Primary/Secondary Sorts

• Primary key: The field selected as the unique identifier for the database.(i.e. Student number)

• Primary sort: The first field that a database is sorted on.

• Secondary sort: The second field that a database is sorted on.

Student No.

Last Name Age Grade

001 Pate 12 6

005 Brown 14 8

010 Brown 16 10

Primary Key:Student No.

Primary Sort:Last name (in Descending order)

Secondary Sort:Age (in ascendingorder)

Sorting in Access

You can use the icons on the tool bar to sort your data.

ascending descending

Sorting in Access

You can use the Advanced Sort.

Record—Filter—Advanced Filter/Sort

Sorting in Access

Choose your field and your sort order

Sorting in AccessYou can have a Primary Sort and Secondary Sorts

Sorting in AccessApply your Sort: Filter—Apply Filter/Sort

Sorting in AccessView the results!

Ascending by Name Descending by Age

Video Demonstration

Click the button for a brief video. A new

website will open, be sure to return to this

presentation.

Recommended