1.
How do you create a database? Which command is correct?
Correct Answer
B. Create database NAME;
Explanation
You must always NAME your database.
2.
What are databases generally used for? Which is correct?
Correct Answer
A. The storage of data for business/schools or universities
Explanation
Databases are commonly used for the storage and organization of data in various sectors such as business, schools, and universities. They serve as a centralized system to store, retrieve, and manage large amounts of structured data efficiently. This allows businesses and educational institutions to store and access information related to their operations, including customer data, inventory, financial records, student records, and more. Therefore, the correct answer is "The storage of data for business/schools or universities."
3.
What would the statement 'Select * from Student;' do?
Correct Answer
B. Select all of the data from the student table
Explanation
The statement 'Select * from Student;' would retrieve all of the data from the student table. The asterisk (*) is used as a wildcard character in SQL queries to represent all columns in a table. By using 'Select *', the query is instructing the database to return all columns and rows from the specified table, in this case, the student table.
4.
Why are WHERE statements useful in SQL?
Correct Answer
B. They allow the user to select what they want to see from a criteria in the WHERE statement
Explanation
WHERE statements are useful in SQL because they allow the user to select specific data from a criteria specified in the WHERE statement. This means that the user can filter and retrieve only the data that meets certain conditions, such as retrieving all rows where a certain column value equals a specific value. By using WHERE statements, users can easily narrow down their search and retrieve the exact data they need from the database.
5.
Fill in the blank: Select StudentID, StudentName, StudentCourseNo ________ Student?
Correct Answer
FROM
Explanation
The word "FROM" is the correct answer because it is the missing keyword in the query. The query is asking to select the StudentID, StudentName, and StudentCourseNo fields from the table, but it does not specify which table to select from. The "FROM" keyword is used to specify the table from which the data should be selected.
6.
Advanced question: Why would you use a JOIN in a SQL statement?
Correct Answer
A. To join multiple tables together in a statement
Explanation
A JOIN in a SQL statement is used to combine data from multiple tables based on a related column between them. By using a JOIN, you can retrieve data from multiple tables in a single query, eliminating the need for separate queries and improving efficiency. It allows you to access and analyze data from different tables simultaneously, enabling you to retrieve meaningful information by combining related data from different sources. JOINs are essential for complex queries that involve multiple tables and are a fundamental aspect of relational database management systems.
7.
Advanced Question: From the list below, select the correct DMBS's
Correct Answer(s)
A. Oracle
B. MIcrosoft SQL
D. MYSQL
Explanation
The correct answer includes three options: Oracle, Microsoft SQL, and MYSQL. These are all well-known and widely used Database Management Systems (DBMS). Oracle is a popular choice for large-scale enterprise applications, Microsoft SQL is commonly used in Windows environments, and MYSQL is an open-source DBMS that is widely used for web applications. The incorrect option "Potatoe" is not a recognized or commonly used DBMS.