Chapter 2, Understanding Data Flashcards
Which common encoding standard (character set) enables use of non-Latin characters?
UTF-8
Which data type is used to store status of a flag?
The Bit data type
The author states there are two data-types relating to numbers. what are these and what’s the different between them and what does the author get wrong?
Integer - used for whole numbers only
Numeric - used for numbers with a decimal point (rational numbers)
The author uses numeric to describe numbers with a decimal point when this is ambiguous. It should be Floating Point/Decimal and not ‘Numeric’
Name the 3 types of rational number datatypes named in the book?
Which ones aren’t used by Microsoft SQL server and MySQL?
Decimal, Shortdecimal and number
shortdecimal and number is not used by Microsoft SQL server or MySQL
Which database discussed in the book is the only one that had datatypes specifically for storing currency?
Microsoft SQL
For what reason does the currency datatype not really get used?
The currency data type uses floating-point numbers as it’s underlying data-type. As they’re stored as binary numbers, they suffer from binary rounding errors.
The book mentions the reason is due to the 4 decimal place limitation, this is nonsense. It could be 10 decimal places, and there would still be rounding errors because Currency is floating-point and stored as binary. However, 4 is still limited as there are many examples in financial calculations where you need more than this.
Which data type would you pick if you had to store unstructured data in the form of Office files?
binary datatype
Aside from being character/alphanumeric data types, what data structure would large text datatype names longtext,varchar(max) and CLOB fall into?
Unstructured - because all of these data-types could hold many paragraphs worth of unstructured text
A ____ _______ is an attribute about a person, place or thing.
data element
What describes the characteristics of activities?
Data elements
Review book. This question needs more context.
What kind of data is organized into a table made up of rows and columns?
Tabular data
What kind of database is an extension of the tabular model and organizes data across multiple tables instead of having it all in just one table?
An RDMS or Relational Database Management System
What makes structured data structured?
1) it is tabular in nature
2) the columns have consistent data types, i.e. Only seeing numbers in the “Weight” column.
What is the most common data-type used to store Characters in a cell?
Alphanumeric
Describe strong typing and weak typing?
Strong typing refers to the strictly enforced type of data that is allowed in a database cell. The cell simply won’t accept a data type outside of what is configured. Whereas weak typing refers to what is used in spreadsheets in which they loosely enforce a data type allowed in a given cell. The software will still allow a different data type to be used.
Regardless of structure, data is either __________ or ___________
Qualitative, Quantitative