Missed Review Questions Flashcards
(76 cards)
What API only supports one language?
DB-API
Several connections can exist at the same time T/F
True
Stored functions have no parameters T/F
False
What is embedded SQL syntax
Starts with EXEC SQL, follows normal syntax for SQL and ends with semi colon
Which database might have an unordered set of values?
MySQL
What is equijoin?
Condition is based on ‘=’ between columns of two tables
What is self-join?
Table join with itself to compare rows within same table
What is cross join?
Returns Cartesian product of two table (all possible row combinations)
What is non-equijoin?
Uses operators other than ‘=’ to compare the join like <, > etc
Which name refers to a single value selected by flightCursor?
airport
What is the only difference between multi-set and list
Elements are ordered in list types but not multiset
Which datatype is best for storing a cities population from dozen - 24 Million?
unsigned Integer
Does inserting into a table view require a primary key?
Yes, the primary key of the base table
What is the statement to add a column to a table?
ALTER TABLE tableName ADD ColumnName Datatype
Which statements shows all databases in a database system?
SHOW DATABASES;
Do you need to specify a primary key if it has the AUTO_INCREMENT qualifier?
No it will generate the value on its own
Programming languages fall into either ____ or ____ paradigms
imperative, declarative
Which of the following database programming techniques is commonly used with OOP?
API
An application may use a ___ API which in turn uses a ____ API to access unsupported data sources
primary, secondary
In DB APIs, ____ a query is a term used when compiling happens before executing the query
preparing
Given a connection object conn, the following connector /J code fragment executes the stored procedure. What XXX and YYY complete the code?
CallableStatement, registerOutParameter
____ allows a programmer to create an SQL query with a PREPARE statement at runtime
Dynamic SQL
Which of the following DB programming techniques is an extension of the SQL language that is typically used for DP applications?
Procedural SQL
Why would mysql.connector.connect() throw an exception in a connector/python program?
The function was called with a username that does not have access to the DB