Databases Flashcards
Define Database
A structured collection of data, allowing organized extraction of information
What is a record?
A single row that contains all the information for a specific item or entity
What is a primary key and what is its purpose?
a primary key is a unique identifier for each record in a table, which makes sure there are no duplicate entries
Describe the difference between validation and verification
Validation checks if the right type of data is entered. Verification checks for exact data which matches the input
What are the different data types and explain them
Real: Single floating-point number
Integer: Whole number
Character: Characters
Text: Groups of characters
Date: Date
Boolean: TRUE/FALSE or YES/NO
What does SQL stand for and what is its primary focus?
Structured Query Language, Used for writing scripts and queries to retrieve information from a database.
How can data be sorted in SQL queries?
(ORDER BY) clause, arranges results by a specified field either alphabetically or numerically.
What does the wildcard (*) symbol do?
Selects all records from a specified table.
What does the SELECT statement do in SQL
used to fetch specific fields in a database
What is the difference between COUNT and SUM
COUNT is the number of records the meet the specific criteria, While SUM adds up all values in a specifies column.