GoConqr has a new look! Let us know what you think.

Quiz

+1

Lilian Sw 35 questions 5.0 (1 rating)

Take the quiz

Questions in this quiz (35)

  1. 1The ItemsOnOrder table contains the following data.

    You need to create a query that display the total number of orders, the average line item total, the highest line item
    total, and the grand total of all items ordered. LineItemTotal represents the line item total.

    Which query should you use?
    Image for question 1
    1. ASELECT COUNT (ID), AVG(LineItemTotal), MAX(LineItemTotal),
      SUM(LineItemTotal)
      FROM ItemsOnOrder
      HAVING ItemNumber, Quantity, UnitPrice
    2. BSELECT COUNT (ID), AVG(Unitprice+Quantity), MAX(UnitPrice+Quantity),
      SUM(UnitPrice+Quantity)
      FROM ItemOnOrder
      GROUP By ItemNumber, LineItemTotal
    3. CSELECT SUM(ID), AVG(LineItemTotal), MAX(LineItemTotal), SUM(LineItemTotal)
      FROM ItemOnOrder
    4. DSELECT COUNT(ID), AVG(LineItemTotal), MAX(LineItemTotal), SUM(LineItemTotal)
      FROM ItemOnOrder
  2. 2You create the following query to determine whether Sample Movie appears only once in the Movie table.
    SELECT Title
    FROM Movie
    WHERE Title = ‘Sample Movie’
    ORDER BY Title
    GROUP BY Title
    HAVING COUNT(*) = 1

    When you run this Query, if return a syntax error
    You need to modify the query to run without error and return accurate result
    What should you do?
    1. ARemove the group by clause
    2. BChange the having clause to having count(title) = 1
    3. CRemove the order by clause
    4. DChange the having clause to having count(1) = 1
  3. 3What would you use to combine columns from two different tables?
    1. AAND
    2. BBETWEEN
    3. CJOIN
    4. DCOMBINE
  4. 4You’re the database admin for a university that stores student information in a table named student. This table has
    a foreign key named courseID that links to the primary key in a table named courses.
    You need to return the student name and course name using both tables where there is a match on courseID.
    You execute the following query:
    SELECT students.name, courses.name FROM students
    OUTER JOIN courses WHERE student.courseID = courses.courseID

    The query returns an error.
    How should you correct the query?
    1. ASELECT students.name, courses.name FROM students
      INNER JOIN courses WHERE students.courseID = courses.courseID
    2. BSELECT students.name, courses.name FROM students
      INNER JOIN courses ON students.courseID = courses.coursesID
    3. CSELECT students.name,courses.name FROM students
      INNER JOIN ON students.courseID = courses.coursesID
    4. DSELECT students.name, courses.name FROM students
      INNER JOIN On courses
      WHERE students.courseID = courses.courseID
  5. 5You have two tables named Cars and Color as defined below. The two tables are related by ColorId.

    How many rows does the SQL statement return?
    Image for question 5
    1. A0
    2. B2
    3. C3
    4. D6
  6. 6You have a Customer table and an Order table. You join the Customer table with the Order table by using the
    CusromerID column.
    The results include:
    All customers and their orders
    Customers who have no orders

    Which type of join do these results represent?
    1. AComplete join
    2. BPartial join
    3. CInner join
    4. DOuter join / Full join
  7. 7Which clause used with the SELECT command will return values that you want to exclude from another query's
    result set?
    1. AEXCEPT
    2. BINTERSECT
    3. CSEARCH
    4. DEXCLUDE
  8. 8You execute the following statement:
    SELECT DepartmentName FROM Department
    WHERE DepartmentID =
    (SELECT DepartmentID
    FROM Employee
    WHERE EmployeeID = 1234)
    This statement is an example of a/an:
    1. ASubquery
    2. BUnion
    3. COuter join
    4. DCartesian product
  9. 9You have a table that contains the following data
    This process is referred to as:
    Image for question 9
    1. Adefragmentation
    2. Bnormalization
    3. Cfragmentation
    4. Ddenormalization
  10. 10You need to normalized a database to first normal form.
    Which two requirement must you meet? (Choose 2)
    1. AExclude repeating groups
    2. BExclude foreign key
    3. CExclude composite key
    4. DExclude duplicate rows

Information

Description
Quiz on +1, created by Lilian Sw on 27/04/2026.
Author
Lilian Sw
Language
English
Views
68
Rating
5.0 out of 5 · 1 rating
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?