JDBC Flashcards
What is a database?
An organized collection of data.
A database management system (DBMS) provides mechanisms for storing, organizing, retrieving, and modifying data.
What does DBMS stand for?
Database Management System
What is SQL?
Structured Query Language, the international standard language used with relational databases to perform queries and manipulate data.
How is ‘SQL’ pronounced?
Either ‘sequel’ or as its individual letters.
What is JDBC?
Java Database Connectivity, an API for Java programs to interact with databases.
What is the purpose of a JDBC driver?
To enable Java applications to connect to a specific database in a DBMS.
What is a relational database?
A logical representation of data that allows access without consideration of its physical structure, storing data in tables.
What are SQL queries used for?
To specify which subsets of data to select from a table.
What is the primary key in a database?
Uniquely identifies each row/record in a database table.
What does the NOT NULL constraint do?
Ensures that a column cannot have a NULL value.
What is the purpose of database normalization?
To efficiently organize data in a database by eliminating redundant data and ensuring data dependencies make sense.
What are the main types of SQL commands?
- DDL - Data Definition Language
- DML - Data Manipulation Language
- DCL - Data Control Language
Fill in the blank: A _______ is used to create and retrieve data from the database very quickly.
INDEX
What is the purpose of the WHERE clause in SQL?
To specify selection criteria for a query.
What do the wildcard characters ‘%’ and ‘_’ represent in SQL?
- ’%’ - zero or more characters
- ‘_’ - a single wildcard character
What does the ORDER BY clause do?
Sorts the rows in the result of a query into ascending or descending order.
What is an INNER JOIN?
A SQL operation that merges rows from two tables by matching values in columns common to both tables.
What is the role of the ON clause in an INNER JOIN?
Specifies the columns compared to determine which rows are merged.
What is the default value constraint?
Provides a default value for a column when none is specified.