Preview

Some SQL Multiple Choice revision

Satisfactory Essays
Open Document
Open Document
396 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Some SQL Multiple Choice revision
Week 2
9. Which of the following is not a valid SELECT statement?
a. SELECT cost-retail FROM books;
b. SELECT retail+cost FROM books;
c. SELECT retail * retail * retail FROM books;
d. SELECT retail^3 from books;

Week 3
3. Which of the following SQL statements is valid?
a. SELECT order# FROM orders WHERE shipdate = NULL;
b. SELECT order# FROM orders WHERE shipdate = 'NULL';
c. SELECT order# FROM orders WHERE shipdate = "NULL";
d. None of the statements are valid.

9. Which of the following includes a customer with the first name BONITA in the results?
a. SELECT * FROM customers WHERE firstname = 'B%';
b. SELECT * FROM customers WHERE firstname LIKE '%N%';
c. SELECT * FROM customers WHERE firstname = '%N%';
d. SELECT * FROM customers WHERE firstname LIKE '_B%';
Week 4
1. Which of the following is a valid SQL statement?
a. SELECT SYSDATE;
b. SELECT UPPER(Hello) FROM dual;
c. SELECT TO_CHAR(SYSDATE, 'Month DD, YYYY')
FROM dual;
d. all of the above
e. none of the above

5. Which of the following functions can be used to substitute a value for a NULL value?
a. NVL
b. TRUNC
c. NVL2
d. SUBSTR
e. both a and d
f. both a and c

9. Which of the following displays the order date for order 1000 as 03/31?
a. SELECT TO_CHAR(orderdate, 'MM/DD')
FROM orders
WHERE order# = 1000;
b. SELECT TO_CHAR(orderdate, 'Mth/DD')
FROM orders
WHERE order# = 1000;
c. SELECT TO_CHAR(orderdate, 'MONTH/YY')
FROM orders
WHERE order# = 1000;
d. both a and b
e. none of the above

Week 5
3. Which of the following queries contains an equality join?
a. SELECT title, authored FROM books, bookauthor
WHERE books.isbn = bookauthor.isbn AND retail > 20;
b. SELECT title, name FROM books CROSS JOIN publisher;
c. SELECT title, gift FROM books, promotion
WHERE retail >= minretail AND retail 20;
b. SELECT title, name
FROM books JOIN publisher
USING (pubid);
c. SELECT title, gift
FROM books, promotion
WHERE retail >= minretail AND retail ‘01-APR-09’;

You May Also Find These Documents Helpful

  • Satisfactory Essays

    In the file ACC 291 Week 2 Discussion Question 2 there are right answers on the following questions: "What types of industries have unearned revenue? Why is unearned revenue considered a liability? When is the unearned revenue recognized in the financial statements? What does your Annual Report say about unearned revenue?"…

    • 688 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    1. SELECT e.ename, e.deptno, d.dname, d.deptno FROM dept d LEFT OUTER JOIN emp e ON d.deptno = e.deptno ORDER BY d.deptno; SQL> SELECT e.ename, e.deptno, d.dname, d.deptno 2 FROM dept d 3 LEFT OUTER JOIN emp e 4 ON d.deptno = e.deptno 5 ORDER BY d.deptno; ENAME DEPTNO DNAME DEPTNO ---------- ---------- -------------- ----------…

    • 1542 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    In painting and drawing, artists often use the technique of ________ to describe the way shadows and light define the mass of forms.…

    • 781 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This file MGT 311 Week 3 Discussion Questions 1 Set 2 shows solution on the following task "How can understanding stages of group development and group properties help employees in a work group function more effectively? As a manager, how would you help employees come to that understanding?"…

    • 377 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In this file MGT 330 Week 5 Discussion Questions 2 there is a solution on this problem: "What are the different types of control systems? What are some advantages and disadvantages of the various control mechanisms? How does your organization use the steps of the control process?"…

    • 465 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This file MGT 330 Week 3 Discussion Questions 2 shows solution on this task: "What are the different types of organizational structures? Which type of structure do you feel is the most effective? Why? How can organizations determine if they are structured in the most effective and efficient manner?"…

    • 473 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In the file MGT 350 Week 3 Discussion Questions 1 Critical Thinking Strategies in Decision Making there is a solution on the following task: "Post a 150-200-word response to the following discussion question by clicking on Reply. Discuss a decision-making tool or technique as described on the course website (please see the Problem Solving Tools and Techniques supplement in Week 4.) or another Internet site. Make sure your discussion includes a description of the tool or technique as well as an application example from your workplace…

    • 431 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    DBQ Chapter 3

    • 409 Words
    • 2 Pages

    The relationship between the British North Colonies and the government back in England was basically based on religion and politics. The British colonies were under the supervision of the government back home, and because of that, they eventually rebelled.…

    • 409 Words
    • 2 Pages
    Good Essays
  • Good Essays

    How To Do A DBQ Part I

    • 551 Words
    • 4 Pages

    Part I Before we begin… 1. Labels are identifications and NOT chronological periods of time!!!! 2. DBQ MUST use DOCUMENTS!!!…

    • 551 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Dbq #3

    • 809 Words
    • 4 Pages

    During the early 1800's France and Britain were at war and for many years America remained neutral. But, Great Britain began seizing American ships and through the practice of impressments made the Americans join the British Navy. Great Britain was also starting to supply the Native Americans in North America with guns and, in response America finally declared war on Britain in 1812. The title "Era of Good Feelings" was used to describe the presidency of James Monroe in 1816 but the truth of this phrase is questioned. Many believe that the period after the war of 1812 was an "Era of Good Feelings" due to the nation's gain of nationalism and expansion of the country, but it was also due to the growing sense of sectionalism and state issues.…

    • 809 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    In 1732, the slave ship Diligent under Captain Pierre Mary purchased slaves from Jacquin and transported them to Martinique.…

    • 361 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    • Develop at least two tables, using the same step of the accounting cycle selected for your previous Learning Team assignments, that could be used in a database for your selected accounting cycle.…

    • 103 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    1. Explain why decisions about acceptable audit risk, inherent risk the preliminary judgment about materiality and performance materiality should be made early in the audit during the planning phase.…

    • 327 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    IIS Smooth Streaming Management REST Services authorization is performed by checking user access rights to the publishing point (.isml) file. GET operations require read access to the publishing point file. PUT or DELETE operations require write access for the files. Creating a new publishing point using the POST operation…

    • 390 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    A Written test is an effective way to conduct the assessment of the learning this will then help ensure the work is their own, in addition to this the person sat at the side of them could have a different test paper, however to keep it fair both papers have to be at the same level, the best way to do this would be to change the wording and or the order of the question on the test paper.…

    • 6922 Words
    • 22 Pages
    Powerful Essays

Related Topics