Question

In: Computer Science

You are the DBA in the service of the British Royal Museum. You need to update...

  1. You are the DBA in the service of the British Royal Museum. You need to update the database of all Britons that have been knighted in the past. You want to build in a validation of the data to find all these people.

    Which of the following metacharacter combinations would you use?

    A.

    'Sir .'

    B.

    'Sir +'

    C.

    'Sir ?1'

    D.

    'Sir EG*1'  

  2. ou query the database with this SQL statement:

    SELECT *
    FROM transaction;
    
    

    For which purpose was this statement created?

    A.

    to insert data into the TRANSACTION table

    B.

    to view the data in the TRANSACTION table

    C.

    to review the structure of the TRANSACTION table

    D.

    to delete selected data from the TRANSACTION table

  3. The four phases that indicate the different phases of SQL statement execution are as follows:

    1. execute

    2. fetch

    3. parse

    4. bind

    Which option represents the correct sequence of events while executing a statement?

    a.

    1, 2, 3, 4

    b.

    2, 3, 4, 1

    c.

    3, 4, 1, 2

    d.

    4, 3, 1, 2

  4. Which three statements about constraints are true? (Choose three.)

    A.

    Constraints only enforce rules at the table level.

    B.

    Constraints prevent rows with dependencies from being deleted.

    C.

    You must provide a name for each constraint at the time of its creation.

    D.

    Constraint names are not required to follow the standard object-naming rules.

    E.

    Constraints can be created at the same time as the table or after the table is created.

Solutions

Expert Solution

QUESTION 1 :

You are the DBA in the service of the British Royal Museum. You need to update the database of all Britons that have been knighted in the past. You want to build in a validation of the data to find all these people.

Which of the following metacharacter combinations would you use?

A. 'Sir .'

B. 'Sir +'

C. 'Sir ?1'

D. 'Sir EG*1'  

Answer : Option A - 'Sir .'

Explanation : The option A is correct because to update Britons who have been knighted in the past that persons are represented with 'Sir .' So to find all these people in database metacharacter combination 'Sir .' is used to build the dat as valid.

QUESTION 2 :

ou query the database with this SQL statement:

SELECT *

FROM transaction;

For which purpose was this statement created?

A. to insert data into the TRANSACTION table

B. to view the data in the TRANSACTION table

C. to review the structure of the TRANSACTION table

D. to delete selected data from the TRANSACTION table

Answer : Option B - to view the data in the TRANSACTION table

Explanation : The Option B is correct because to view the data of entire table , "SELECT" is used in query to select the table and '*' is used to display all rows and columns of entire table, "from" is used to fetch particular table, "transaction" is a table name which is to be view. This query statement display the entire "transaction" table.

QUESTION 3 :

The four phases that indicate the different phases of SQL statement execution are as follows:

1. execute

2. fetch

3. parse

4. bind

Which option represents the correct sequence of events while executing a statement?

a. 1, 2, 3, 4

b. 2, 3, 4, 1

c. 3, 4, 1, 2

d. 4, 3, 1, 2

Answer : Option c - 3, 4, 1, 2

Explanation : The Option c is correct because the first step is "Parse" which checks the syntax of the statement and second step is "bind" which combines the different objects in a SQL query, and the third step is "execute" which runs the statement and last "fetch" which retrieves the results of a query.

QUESTION 4 :

Which three statements about constraints are true? (Choose three.)

A. Constraints only enforce rules at the table level.

B. Constraints prevent rows with dependencies from being deleted.

C. You must provide a name for each constraint at the time of its creation.

D. Constraint names are not required to follow the standard object-naming rules.

E. Constraints can be created at the same time as the table or after the table is created.

Answer : A, C, E,

Explanation : The Options A,C,E are correct statements about constraints. Constraints are the rules enforced at the table level only because constraints are applied to the particular columns in a table. A name must be provide at the time of constraint creation because it defines for which column it is to be applied. Constraints can be created at the time of table creation with "Create table" statement and it can also created even after the table is created by using "ALTER" keyword which is used to make changes to the table columns or rows.


Related Solutions

you are the curator of a museum. the museum is running short of funds, so you...
you are the curator of a museum. the museum is running short of funds, so you decided to increase revenue. should you increase or decrease the price of admission? explain
Please Answer All 4 questions The British Museum, located in the Bloomsbury area of London in...
Please Answer All 4 questions The British Museum, located in the Bloomsbury area of London in the United Kingdom, is a public institution dedicated to human history, art, and culture. To ensure the safety of its famous and precious collections, engineers selected the 100 most crowded and popular exhibition areas within the museum and checked their environment to avoid potential damages to collections. 1.) b) What is the sample in this problem? The British Museum All exhibition areas in the...
I need to update this program to follow the these requirements please and thank you :...
I need to update this program to follow the these requirements please and thank you : Do not use packages Every class but the main routine class must have a toString method . The toString method for Quadrilateral should display its fields: 4 Points. All instance variables should be declared explicitly private . Area incorrect : enter points no: 1 1 3 enter points no: 2 6 3 enter points no: 3 0 0 enter points no: 4 5 0...
(a) Royal Garden Industries and the need for Management Accountants Royal Garden manufactures equipment that are...
(a) Royal Garden Industries and the need for Management Accountants Royal Garden manufactures equipment that are used in agriculture sector. The company has been performing well in GCC Countries and hoping to expand its territories across Europe and Asia. Some of the key attributes for their success been cost leadership and distinguished products. In order to improve their operational efficiency and improve its decision making process, he top level of the company has been thinking seriously on implementing a management...
DBMS Create/Insert/Update SQL I need the create, insert, and update SQL statement for this table as...
DBMS Create/Insert/Update SQL I need the create, insert, and update SQL statement for this table as if it were being added to MySQL (please give explanations for each line of SQL code and a copy of the code as it would be entered into the query by itself: Customer PK Customer ID Text Phone Number int name text address ID int email text FK vendor ID int Vendor is the name of the table the FK comes from.
Sales, Production, Direct Materials Purchases, and Direct LaborCostThe budget director of Royal British Furniture...
Sales, Production, Direct Materials Purchases, and Direct Labor CostThe budget director of Royal British Furniture Company requests estimates of sales, production, and other operating data from the various administrative units every month. Selected information concerning sales and production for March is summarized as follows:a. Estimated sales of William and Kate chairs for March by sales territory:Eastern Domestic:William8,500 units at $800 per unitKate6,000 units at $650 per unitWestern Domestic:William6,000 units at $700 per unitKate6,000 units at $550 per unitInternational:William3,000 units at...
Canadian history Discuss the constitutional evolution of British North America from the Royal Proclamation of 1763...
Canadian history Discuss the constitutional evolution of British North America from the Royal Proclamation of 1763 to the British North America Act of 1867. What were the most important features of each constitution? Why did the British keep changing the constitutions? What is your overall assessment of the relationship between the British empire and the peoples of Canada?
DBMS Create/Insert/Update SQL I need the create, insert, and update SQL statement for this table: Customer...
DBMS Create/Insert/Update SQL I need the create, insert, and update SQL statement for this table: Customer PK Customer ID Text Phone Number int name text address ID int email text FK vendor ID int Vendor is the name of the table the FK comes from.
Sales, Production, Direct Materials Purchases, and Direct Labor Cost The budget director of Royal British Furniture...
Sales, Production, Direct Materials Purchases, and Direct Labor Cost The budget director of Royal British Furniture Company requests estimates of sales, production, and other operating data from the various administrative units every month. Selected information concerning sales and production for March is summarized as follows: a. Estimated sales of William and Kate chairs for March by sales territory: Eastern Domestic: William 7,500 units at $800 per unit Kate 6,000 units at $650 per unit Western Domestic: William 6,000 units at...
Sales, Production, Direct Materials Purchases, and Direct Labor Cost The budget director of Royal British Furniture...
Sales, Production, Direct Materials Purchases, and Direct Labor Cost The budget director of Royal British Furniture Company requests estimates of sales, production, and other operating data from the various administrative units every month. Selected information concerning sales and production for March is summarized as follows: a. Estimated sales of William and Kate chairs for March by sales territory: Eastern Domestic: William 8,500 units at $800 per unit Kate 6,000 units at $650 per unit Western Domestic: William 6,000 units at...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT