Question

In: Computer Science

QUESTION 1 Which of the following statement is CORRECT about normalisation? A database that is not...

QUESTION 1

  1. Which of the following statement is CORRECT about normalisation?

    A database that is not in at least third normal form cannot be implemented with MySQL.

    A database that is only in first normal form would breach the CAP theorem.

    Normalisation ensures consistent formatting, for example, that all the phone numbers would have the same number of digits.

    All of the above.

    None of the above.

0.5 points   

QUESTION 2

  1. Complete the four blanks in the following SQL query to retrieve all information from the table Customers where birthYear is greater than (or equal to) 1970 but less than (or equal to) 2005. Your answer will be marked incorrect if there is a spelling mistake, missing spaces, or unnecessary spaces.

    SELECT
    FROM
    WHERE  BETWEEN ;

1 points   

QUESTION 3

  1. When normalising from first to third normal form, we would typically have:

    more relations

    less relations

    more data stored

    less data stored

    none of the above

0.5 points   

QUESTION 4

  1. Complete the table below by matching each definition with the appropriate SQL constraint.

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    A mandatory clause that is at the start of all SQL retrieval queries

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    A clause used to return only the values in a result table that are unique

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    A clause used to filter rows according to some condition or predicate

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    A clause that is used to list the tables and any joins required in a query

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    An operator that allows multiple values to be specified in a comparison statement

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    An operator used to assign an alias to a table or column

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    If used, it must be the last clause in a query

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    Allows rows which have the same value for one or more columns to be grouped together and treated as a unit when using aggregate functions

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    A clause which is used to filter aggregate values in the final result table

          -       A.       B.       C.       D.       E.       F.       G.       H.       I.       J.       K.       L.       M.       N.   

    An operator used to create a table with all rows from two tables

    A.

    IN

    B.

    ON

    C.

    UNION

    D.

    AS

    E.

    FROM

    F.

    SELECT

    G.

    WHERE

    H.

    SELECT DISTINCT

    I.

    NATURAL JOIN

    J.

    ORDER BY

    K.

    GROUP BY

    L.

    LIKE

    M.

    INNER JOIN

    N.

    HAVING

Solutions

Expert Solution

Answer 1

The Correct answer is None of the above.

Explanation:

A database that is not in at least third normal form can be implemented with MySQL.

Validation ensures consistent formatting, for example that all the phone numbers would have the same number of digits.

CAP - consistency , availability and partition tolerance. It states that it is not possible to achieve all three properties for data.

Answer 2

The BETWEEN clause will include all values between 1970 and 2005 where 1970 and 2005 are inclusive.

SELECT *

FROM Customers

WHERE birthYear BETWEEN 1970 and 2005 ;

Answer 3

Normalization is used to reduce duplicate data and minimize anomalies in relations.

For normalising tables we use 3 normal forms and when we apply these normal forms, we divide tables into new tables and link them together. So when normalising from 1NF to 3 NF data increase so we have more tables and more relations.

Answer 4

A mandatory clause that is at the start of all SQL retrieval queries – SELECT

A clause used to return only the values in a result table that are unique -SELECT DISTINCT

A clause used to filter rows according to some condition or predicate – WHERE, ORDER BY

A clause that is used to list the tables and any joins required in a query - NATURAL JOIN

An operator that allows multiple values to be specified in a comparison statement – IN, LIKE

An operator used to assign an alias to a table or column – AS

If used, it must be the last clause in a query – HAVING

Allows rows which have the same value for one or more columns to be grouped together and treated as a unit when using aggregate functions – GROUP BY

A clause which is used to filter aggregate values in the final result table – ON

An operator used to create a table with all rows from two tables - UNION

if you like the answer please give me a thumbs up.


Related Solutions

Subject - DataBase / MySQL * Which of the following is not correct about the statement...
Subject - DataBase / MySQL * Which of the following is not correct about the statement provided? SELECT Customer#, FirstName, LastName FROM Customers C JOIN Orders O ON C.Customer# = O.Customer# JOIN OrderItems OI ON O.Order# = OI.Order# JOIN Books B ON OI.ISBN = B.ISBN WHERE Category = 'Fitness' AND Category = 'Computers'; Select one: a. Joins the OrderItems table to the Books table using the field ISBN b. All of these are correct c. Joins the Customer table to...
1. Which of the following is correct about the income statement: * It is an equation...
1. Which of the following is correct about the income statement: * It is an equation used by financial analysts It is an equation used by politicians It is a report that shows the cash inflows and cash outflows of the company It is a report that shows the revenues and expenses of the company None of the above 2. Which of the following is correct about cash flows statement: * It includes only the cash outflows It shows the...
1. Which of the following is correct about the income statement: * It is an equation...
1. Which of the following is correct about the income statement: * It is an equation used by financial analysts It is an equation used by politicians It is a report that shows the cash inflows and cash outflows of the company It is a report that shows the revenues and expenses of the company None of the above 2. Which of the following is correct about cash flows statement: * It includes only the cash outflows It shows the...
1 - Which of the following is not a correct statement about competitive advantage? a. If...
1 - Which of the following is not a correct statement about competitive advantage? a. If France produces 50 bottles of wine per labor hour while Germany 5, France has absolute advantage over Germany in wine. b. If France produces 25 bottles of beer per labor hour while Germany 20, France has comparative advantage over Germany in beer. c. If France produces 50 bottles of wine per labor hour while Germany 5 and beer production is as in “b”, France...
QUESTION 21 Which of the following is not a correct statement about the sliding-filament model of...
QUESTION 21 Which of the following is not a correct statement about the sliding-filament model of muscle contraction? A. Actin crossbridges detach from the myosin filaments with energy from ATP hydrolysis B. A major conformational change in relative size occurs within the sarcomere's zones and bands C. A muscle shortens or lengthens because the thick and thin filaments slide past each other D. The thick and thin filaments do not change length
Choose the correct answer. 1.Which of the following statements about the income statement is correct? The...
Choose the correct answer. 1.Which of the following statements about the income statement is correct? The income statement covers a specific point in time. The elements of the income statement include income from operations and distributions to owners. The income statement summarizes the results of a company's operations for a period. All of the above. 2. A company's balance sheet shows the value of assets, liabilities, and stockholders' equity: Over a period of time for any given period of time...
1. Which of the following statement about the CPI is not correct? a. the CPI tracks...
1. Which of the following statement about the CPI is not correct? a. the CPI tracks changes in the price of import goods. b. the CPI tracks changes in the price of export goods. c. the CPI is based on the same set of goods over a multi-year period. d. the CPI only includes consumption goods – it does not include capital investment goods. 2. Suppose 60% of money is held as currency and the reserve ratio is 0.3. The...
Which of the following is a correct statement about a concave mirror?
Which of the following is a correct statement about a concave mirror? All of the other choices are not correct.A light ray through the center of curvature ofthe mirror is reflected parallel to theprincipal axisA light ray directed to the center of the mirrorreturns in its own path.A light ray parallel to the principal axis isreflected back through the center of curvature.A light ray through the focal point isreflected parallel to the principal axis.When an object is placed beyond the center...
Question 1. which of the of the following statement(s) is(are) correct?         (a) Volatile memory loses...
Question 1. which of the of the following statement(s) is(are) correct?         (a) Volatile memory loses all data when power is removed, but is easy to write to.         (b) DRAM needs to be accessed every few microseconds to refresh the charges, otherwise the information is lost.         (c) The storage of program usually requires nonvolatile memory.         (d) Each memory cell cost more in SRAM than DRAM.         (e) EPROM is electrically programmable but EEPROM is not electrically programmable....
Which statement about sponges is correct?
1.Which statement about sponges is correct?Sponges have two germ layers, which give rise to well-organized tissues.Sponges can only reproduce asexually by fragmentation or budding.Most sponges have bilateral symmetry.Sponges belong to the group of invertebrates known as cnidarians.Sponges are filter feeders.2.  Which are invertebrate chordates?tunicates onlylancelets onlyjawless fishes onlytunicates and lancelets but not jawless fishestunicates, lancelets, and jawless fishes
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT