Download presentation
Presentation is loading. Please wait.
1
Programming Techniques
Keywords SELECT, WHERE, LIKE, ORDER BY. Ascending, Descending, SQL, Query, Criteria. Count. Pattern, Record array, VARCHAR, CHAR, TYPE, Record, Field, Partial matching, Wildcard, Nested SELECT, DISTINCT Programming Techniques Records
2
Big Picture Objectives BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. We all have filled in many surveys and questionnaires in our life. Surveys are important in everyday life. Companies like Survey Monkey get paid for letting people and companies take surveys. Dealing with a large number of columns can be confusing. Our brains are not very good in keeping track of many numbers. Yet, we need a column for every question asked in the survey. Starter activity
3
2D Array vs Record Array Objectives Starter activity
BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. Starter activity
4
Record Structure Objectives
BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. When storing multiple bits of data about multiple objects of a similar type, we end up with tables or 2D arrays. Responses to questions about an object are stored are known as its “property” or “attribute” and stored in a “field”. A collection of fields forms a “record” which roughly corresponds to a row in a table. The example below shows this: Starter activity
5
Named Fields Objectives Starter activity
BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. Starter activity
6
Setting up a Record Structure
Objectives BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. Starter activity
7
Task Objectives BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. Which of these records are invalid for the type and why? Starter activity
8
Task Answer Objectives
BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. Which of these records are invalid for the type and why? Starter activity
9
Saving data in Record Type Variables
Objectives BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. Starter activity
10
Saving data in Record Arrays
Objectives BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. Starter activity
11
2D Array to a 1D Record Array
Objectives BEGINNER: Understand the need for records in reading/storing two-dimensional arrays on file. ADVANCED: Be able to define a record structure using accepted pseudocode methods. EXPERT: Recognise and be able to use SQL statements to search for data, including SELECT, WHERE, LIKE, AND OR NOT, ORDER BY, DISTINCT, LIMIT. Starter activity
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.