placeholder image to represent content

Database Management System II - Midterm Examination

Quiz by Felipe Sinjetsu

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
17 questions
Show answers
  • Q1
    Your people lead asked you what table will serve as the parent table in the relationship given that customer.customer_ID (reference key) = order.customer_ID (foreign key).
    order.customer_ID
    customer_ID
    order
    customer
    30s
  • Q2
    As a database designer, your Project Manager asked you to create an SQL which will join three tables that will show only the record of a specific person. What type of join is appropriate?
    inner join
    left join
    cross join
    right join
    30s
  • Q3
    Your project manager asked you to create a one-to-one relationship between two tables, what constraint/key will you put to the attribute in the foreign key/child table?
    foreign
    index
    unique
    primary
    30s
  • Q4
    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?
    null/not null
    default
    check
    primary key
    30s
  • Q5
    Your lead wants to make the structure of deleting data in your database tables as, the data be deleted first in the child table before the data in parent table. What foreign key option is appropriate?
    set null
    strict
    cascade
    restrict
    30s
  • Q6
    Your manager wants to make the structure of deleting/updating data in your database tables as, if the data in the parent table is updated/deleted, same goes to the child table. What foreign key option is appropriate?
    set null
    restrict
    cascade
    no action
    30s
  • Q7
    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?
    account.customer_ID
    account
    customer.customer_ID
    customer
    30s
  • Q8
    Your people lead asked you to put a constraint to an attribute of your table which will set to Null value if the attribute has no value in it. What constraint is more likely appropriate?
    Not null
    default
    index
    foreign
    30s
  • Q9
    Your project manager asked you to connect or create relationship to the tables of your database. What appropriate constraint will you use?
    foreign
    unique
    index
    primary
    30s
  • Q10
    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 ___________________ = _____________.
    ON Orders.CustomerID = Customers.CustomerID
    WHERE Customers.CustomerID = Orders.CustomerID
    Orders.CustomerID=Customers.CustomerID
    INNER JOIN Customers.CustomerID = Orders.CustomerID
    45s
  • Q11
    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;
    LEFT JOIN Orders
    INNER JOIN Customers
    LEFT JOIN Customers
    INNER JOIN Orders
    45s
  • Q12
    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;
    RIGHT JOIN Customers
    INNER JOIN Customers
    LEFT JOIN Customers
    CROSS JOIN Customers
    45s
  • Q13
    An INNER JOIN returns rows of tables where the data _____.
    Intersects
    Is read-only
    Is different
    Is not NULL
    30s
  • Q14
    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?
    cross join
    inner join
    left and righ join
    full outer join
    30s
  • Q15
    You project lead wants you to put a constraint in an attribute email in customer table that will ensure the values in that attribute always different. What constraint is appropriate?
    spatial
    foreign
    index
    unique
    30s

Teachers give this quiz to your class