Working with databases/Create a database/Records and tables
Working with databases | |
---|---|
Create a database | Introduction | Table design | Data types | Field properties | Primary keys | Adding information | Records and tables | Key points | Assessment |
Sort a table
We can sort a table - that is, we sort the records into numeric or alphabetical order.
Please note: the following tutorial will open in a new window/tab. When you have finished the tutorial, simply close the window/tab and you'll return to this page. Before you go on, please work through the following tutorial:
|
In the heading row that contains the field names, locate the small black triangle. Click on this.
A menu will pop up. From the menu choose how you would like to sort your table: Sort A ⇒ Z or Z ⇒ A. This also works in fields that contain numerical data.
Although you will not be assessed on this, you can also use this menu to filter out and display only certain information. In our example we could choose to display only students from Glenfield.
The same principle applies to sorting a query (You will learn how to create a simple query later on) which is displayed on the screen like a table.
To clear and reset sorting, go to Home Tab ⇒Sort and Filter Group ⇒Clear All Sorts
We are going to print your sorted table:
Tables that are very wide may be best printed in Landscape Format.
|
Can we edit or change a table once it has data in it? Yes you can, but with a few provisos:
|
We are going to add a new field into our table called Book in Stock. This will be a Yes/No type field. Every time we sell a book we will untick this field. This way we can reorder new copies of popular books and indicate that we have them without having to delete and re-enter data all the time.
|