Databases Flashcards
What is a database?
Structured, persistent collection of related data
What data format is String?
Any combination of characters
What data format is Character?
A single character
What data format is integer?
Any whole number
What data format are real numbers?
Any numeric data with a decimal point
What data format is Boolean?
True or False, 1 or 0
What data format is Date/Time?
A data type that stores dates and/or time
What is entity in database?
Something that we store data about
What is fields in database?
The Attributes of a record, tables on the top
What is record in database?
A row of information about an entity
What is primary key in database?
Unique for each record in the table so there are no duplicate records
What does SQL stand for and what does it do?
Structured Query Language, manipulates a databse.
What will this query do? SELECT * FROM ExampleTable
It will return all complete records from that table
What will this query do? SELECT * FROM ExampleTable WHERE Name = ‘John’;
Return all records from ExampleTable where the field Name is equal to John
What will this query do? SELECT * FROM ExampleTable WHERE Name = ‘John’ ORDER BY favoriteMovie;
Return all records from ExampleTable where the field Name is equal to John and the data will be ordered by the field favoriteMovie in alphabetical order.