Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Q 1/20
Score 0
Your team lead ask you to combine all fields of two tables (employee & department) and show matching data. What SQL Join statement are you going to use.
120
SELECT * FROM employees, departments INNER JOIN ON employees.department_id = departments.department_id
SELECT * FROM employees INNER JOIN departments ON employees.department_id = departments.department_id
SELECT * FROM employees FULL JOIN departments ON employees.department_id = departments.department_id
SELECT employees FROM * LEFT JOIN departments ON employees.department_id = departments.department_id
Q 2/20
Score 0
Your are in an interview for a job and the interviewer is asking you which is the table that contains the primary key between the two tables in the SQL (SELECT * FROM employees INNER JOIN departments ON employees.department_id = departments.department_id). Which is it?
30
department
employees
departments.deparment_id
employees.department_id
Q 3/20
Score 0
Your project manager wants you to combine two table which the first table will show all its record and the second table will match the record from the first table. Which join will you use?
30
Left join
Inner Join
Self-Join
Full Join
Q 4/20
Score 0
A key constraint that can be inserted once in the table and must be no duplicate.
30
Index Key
Unique Key
Foreign Key
Primary Key
Q 5/20
Score 0
Your project manager wants the relationship between your tables must be the parent table will refuse record deletion or update if there are records in the child table. What foreign key option will be used?
30
<P>Set Refuse</P>
Restrict
Set Null
Cascade
Q 6/20
Score 0
(Primary) key is used to connect two tables, the secondary table to the PRIMARY table.
30
False, Foreign
True
False, Index
False, Unique
Q 7/20
Score 0
A (view) is populated invoked using SELECT statement. Its data/record can be derive from other tables.
30
False, Index
False, table
False, Schema
True
Q 8/20
Score 0
Your lead is asking you to change the connection option of the table to, if the parent table will be updated or deleted, same should be in the child table. What foreign key option will you used?
30
Restrict
<P>Swift</P>
Cascade
Set Combine
Q 9/20
Score 0
When linking two tables in MySQL designer, the foreign key is pertaining to what?
30
a unique key or index key in child table
foreign key in the child table
primary key of the parent table
primary key of the child table
Q 10/20
Score 0
If you will be setting a one-to-one relationship in two tables, the child table attribute for foreign key must have (index) key.
30
False, unique
False, foreign
False, primary
True
Q 11/20
Score 0
<P>Your manager wants you to make the attribute name in the customer table to have "No name" as value if a user didn't put any name on it. What type of constraint will you use?</P>
30
Cluster
Index
Check
Default
Q 12/20
Score 0
Between the relation customer with an attribute of customer_ID (primary key) and relation account with an attribute of customer_ID (unique key) where should be the reference key be located?
30
customer.customer_ID
account
account.customer_ID
customer
Q 13/20
Score 0
In database, it allows you to define rules for the data in your table.
30
Index
Constraints
Synonyms
Cluster
Q 14/20
Score 0
equals, less than, greater than, greater than or equal, less than or equal are examples of what operator?
30
string
arithmetic
logical
relational
Q 15/20
Score 0
Using the SQL statement:
Select Firstname From Account Where Barangay='tres'
will output the following:
Philip
120
True
False, statement has an error
False, PI4
False, will output Ines
Q 16/20
Score 0
Supply the missing parts in the JOIN clause to join the two tables Orders and Customers, using the CustomerID field in both tables as the relationship between the two tables. SELECT * FROM Orders LEFT JOIN Customers ___________________ = _____________.
Choose the correct JOIN clause to select all records from the two tables where there is a match in both tables. SELECT * FROM Orders ________________ ON Orders.CustomerID=Customers.CustomerID;
45
<P>LEFT JOIN Orders</P>
<I></I>INNER JOIN Customers
INNER JOIN Orders
LEFT JOIN Customers
Q 18/20
Score 0
<P>Choose the correct JOIN clause to select all the records from the Customers table plus all the matches in the Orders table. SELECT * FROM Orders ____________________ ON Orders.CustomerID=Customers.CustomerID;</P>
45
<P>CROSS JOIN Customers</P>
<P>LEFT JOIN Customers</P>
<P>RIGHT JOIN Customers</P>
<P>INNER JOIN Customers</P>
Q 19/20
Score 0
<P>Your manager wants you to return all the records from both tables customers and orders which will return in a very large result-sets of record. What appropriate join is needed in MySQL?</P>
30
<P>cross join</P>
<P>full outer join</P>
<P>inner join</P>
<P>left and righ join</P>
Q 20/20
Score 0
<P>As a database designer, you are asked to ensure the uniqueness of values in an attribute as well as that attribute will uniquely identify each row or table record in the table. What constraint is appropriate to use?</P>
30
<P>foreign key</P>
<P>index key</P>
<P>unique key</P>
<P>primary key</P>
20 questions
Q.Your team lead ask you to combine all fields of two tables (employee & department) and show matching data. What SQL Join statement are you going to use.
1
120 sec
Q.Your are in an interview for a job and the interviewer is asking you which is the table that contains the primary key between the two tables in the SQL (SELECT * FROM employees INNER JOIN departments ON employees.department_id = departments.department_id). Which is it?
2
30 sec
Q.Your project manager wants you to combine two table which the first table will show all its record and the second table will match the record from the first table. Which join will you use?
3
30 sec
Q.A key constraint that can be inserted once in the table and must be no duplicate.
4
30 sec
Q.Your project manager wants the relationship between your tables must be the parent table will refuse record deletion or update if there are records in the child table. What foreign key option will be used?
5
30 sec
Q.(Primary) key is used to connect two tables, the secondary table to the PRIMARY table.
6
30 sec
Q.A (view) is populated invoked using SELECT statement. Its data/record can be derive from other tables.
7
30 sec
Q.Your lead is asking you to change the connection option of the table to, if the parent table will be updated or deleted, same should be in the child table. What foreign key option will you used?
8
30 sec
Q.When linking two tables in MySQL designer, the foreign key is pertaining to what?
9
30 sec
Q.If you will be setting a one-to-one relationship in two tables, the child table attribute for foreign key must have (index) key.
10
30 sec
Q.Your manager wants you to make the attribute name in the customer table to have "No name" as value if a user didn't put any name on it. What type of constraint will you use?
11
30 sec
Q.Between the relation customer with an attribute of customer_ID (primary key) and relation account with an attribute of customer_ID (unique key) where should be the reference key be located?
12
30 sec
Q.In database, it allows you to define rules for the data in your table.
13
30 sec
Q.equals, less than, greater than, greater than or equal, less than or equal are examples of what operator?
14
30 sec
Q.Using the SQL statement:
Select Firstname From Account Where Barangay='tres'
will output the following:
Philip
15
120 sec
Q.Supply the missing parts in the JOIN clause to join the two tables Orders and Customers, using the CustomerID field in both tables as the relationship between the two tables. SELECT * FROM Orders LEFT JOIN Customers ___________________ = _____________.
16
45 sec
Q.Choose the correct JOIN clause to select all records from the two tables where there is a match in both tables. SELECT * FROM Orders ________________ ON Orders.CustomerID=Customers.CustomerID;
17
45 sec
Q.Choose the correct JOIN clause to select all the records from the Customers table plus all the matches in the Orders table. SELECT * FROM Orders ____________________ ON Orders.CustomerID=Customers.CustomerID;
18
45 sec
Q.Your manager wants you to return all the records from both tables customers and orders which will return in a very large result-sets of record. What appropriate join is needed in MySQL?
19
30 sec
Q.As a database designer, you are asked to ensure the uniqueness of values in an attribute as well as that attribute will uniquely identify each row or table record in the table. What constraint is appropriate to use?