- Which of the following displays the correct general syntax for the SELECT statement that also includes a predicate? SELECT * FROM <TABLENAME> WHERE <LOGICAL STATEMENT>
- Which of the following is the correct general syntax for the INSERT statement? INSERT INTO <table name> (column1, column2…) VALUES (value1, value2…);
- Which of the following would be attributes in an entity-relationship (ER) diagram for an entity named “Dog?” breed, fur type, name, eye color, gender
- Which of the following is classified as a data manipulation language (DML) statement? SELECT
- Which of the following SQL statements is equivalent to “SELECT title, pages FROM BookDetails WHERE pages >= 250 AND pages <= 300;” for the table displayed below? SELECT TITLE, PAGES FROM BOOKDETAILS WHERE PAGES BETWEEN 250 AND 300;
- Which statement is the correct way to retrieve the average number of GamePoints scored by each basketball team from the table displayed below?
SELECT TeamName, AVG(GamePoints) FROM Scores GROUP BY TeamName;
- Which statement describes a schema? It groups a set of tables together in a database.
- How should dates and times be mapped from R to a relational database management system (RDBMS)? As strings
- Which SQL statement is used to delete records from a table? DELETE
- Data that needs transformed into a factor is generally transferred from an R object database management system (RODBMS) into R as what data type? A character
- Which of the following displays the correct syntax for the SELECT statement that retrieves data from the “MovieName” column in a table named “Movie?” SELECT MovieName FROM Movie;
- Which two statements are true regarding data manipulation language (DML) operations? They are often referred to as create, read, update, and delete (CRUD) operations. They are used to read and modify data in tables
- What data would be returned from this SQL statement for the table displayed below? returns data from the column name “firstname” from the “bookdetails” table if the first letter of “firstname” is “R”
- Which statement is the correct way to retrieve the average number of GamePoints scored by each basketball team from the table displayed below?
SELECT TeamName, AVG(GamePoints) FROM Scores GROUP BY TeamName;
- How do entities and attributes in an entity-relationship (ER) diagram map to a relational database? An entity represents a table and an attribute represents a column.
- Question 6 Which would be the result of the SQL statement: SELECT TeamName, COUNT(*) FROM Roster GROUP BY TeamName; for the table displayed below: Table: Roster Lists a specific count associated with each team.
- What feature in a relational database management system is similar to an observation in R? A row
- What SQL statement is used to modify data in a database table? update
- Which statement best describes what a factor is in R? A variable that represents categorical date
- Which statement best describes the use of the INSERT statement? It can be used to add rows to a table.
- Which statement is the correct way to retrieve the player who scored the most points per game on each basketball team from the table displayed below? select teamName, game, max(playername), Max(gamepoints) from scores group by teamname, game;
- What feature in a relational database management system is similar to a “namespace” in R? schemeas
- How is character data in R mapped to a relational database management system (RDBMS)? either a fixed sized CHARACTER column or a variable size VARCHAR column
- What is the purpose of the sqlFetch() function? to fetch all the data in a table
- What is a primary key? It is a unique value for each row in a table.
- What is wrong with the following INSERT statement? It is missing a value.
- In SQL, which clause is used to sort the result set in ascending or descending order? order by
- What would be the result of this SELECT statement for the table displayed below? Only retrieves the data from the cells in the “BookName” column from the “Book” table where the copyright date is later than the year 2000.
- Which statement best describes data definition language (DDL) operations? They are used to manipulate database objects such as table
Other Links:
See other websites for quiz:
Check on QUIZLET