Premium Essay

Database Processing Chapt 2

In:

Submitted By manrayboy
Words 476
Pages 2
2.22 Write an SQL statement to display all of the columns using *.
SELECT *
FROM INVENTORY;

2.26 Write an SQL statement to display the SKU, SKU_Description, and Warehouse on products having QuantityOnHand equal to 0. Sort the results in descending order by Warehouse and ascending order of SKU.
SELECT SKU, SKU_Description, Warehouse
FROM INVENTORY
WHERE QuantityOnHand =0
ORDER BY Warehouse DESC, SKU;

2.30 Write an SQL statement to display the SKU, SKU_Description, WarehouseID, and QuantityOnHand for all products having a QuantityOnHand greater than 1 and less than 10. Use the BETWEEN keyword.
SELECT SKU, SKU_Description, WarehouseID, QuantityOnHand
FROM INVENTORY
WHERE QuantityOnHand BETWEEN 2 AND 9;

2.30 (11th Edition) Write an SQL statement to display the SKU and SKU_Description of all items stored in the Seattle, Chicago, or New Jersey warehouse. Use the IN keyword.
SELECT SKU, SKU_Description
FROM INVENTORY
WHERE Warehouse IN ('Seattle', 'Chicago', 'New Jersey');

2.35 Explain the difference between the SQL built-in functions COUNT and SUM.
COUNT counts the number of rows or records in a table, while SUM adds up the data values in the specified column.
2.35 (11th Edition) Write an SQL statement to show SKU and SKU_Description for all products having an SKU_Description starting with “Half-dome”.
SELECT SKU, SKU_Description
FROM INVENTORY
WHERE SKU_Description LIKE 'Half-dome%';

2.36 Write an SQL statement to show SKU and SKU_Description for all products having Description that includes the word “Foot”.
SELECT SKU, SKU_Description
FROM INVENTORY
WHERE SKU_Description LIKE '%Foot%';

2.38 Write an SQL statement that uses all of the built-in functions on the QuantityOnHand column. Include meaningful column names in the result.
SELECT COUNT (QuantityOnHand) AS Number_Of_Records, SUM (QuantityOnHand)

Similar Documents

Premium Essay

Auditing Eilifsen Solutions Manual

...compared to other accounting courses. Rather than focusing on learning the rules, techniques, and computations required to prepare financial statements, auditing emphasizes learning a framework of analytical and logical skills to evaluate the relevance and reliability of the systems and processes responsible for financial information, as well as the information itself. To be successful, students must learn the framework and then learn to use logic and common sense in applying auditing concepts to various circumstances and situations. Understanding auditing can improve the decision making ability of consultants, business managers, and accountants by providing a framework for evaluating the usefulness and reliability of information. 1-2 There is a demand for auditing in a free-market economy because the agency relationship between an absentee owner and a manager produces a natural conflict of interest due to the information asymmetry that exists between the owner and manager. As a result, the agent agrees to be monitored as part of his/her employment contract. Auditing appears to be a cost-effective form of monitoring. The empirical evidence suggests auditing was demanded prior to government regulation such as statutory audit requirements. Additionally, many private companies and other entities not subject to government auditing regulations also demand auditing. 1-3 The agency relationship between an owner and manager produces a natural conflict of interest because...

Words: 26005 - Pages: 105

Premium Essay

Scp and Sap Apo

...or parts thereof is permitted only under the provisions of the German Copyright Law of September 9, 1965, in its current version, and permission for use must always be obtained from Springer-Verlag. Violations are liable for prosecution under the German Copyright Law. Springer is a part of Springer Science+Business Media springeronline.com ° Springer Berlin ´ Heidelberg 2000, 2002, 2005 Printed in Germany The use of general descriptive names, registered names, trademarks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. Hardcover-Design: Erich Kirchner, Heidelberg SPIN 11010463 42/3130-5 4 3 2 1 0 ± Printed on acid-free paper...

Words: 180845 - Pages: 724

Premium Essay

Asoka Dhamma

...chilot.wordpress.com Legal Research Methods Teaching Material Prepared by: Prof (Dr) Khushal Vibhute & Filipos Aynale m Prepared under the Sponsorship of the Justice and Legal System Research Institute 2009 chilot.wordpress.com TABLE OF CONTENTS UNIT 1: INTRODUCTION-------------------------------------------------------------------1 1.1 Introduction--------------------------------------------------------------------------------------------------------2 1.2 Law and Society: Mutual Relationship & Interaction-----------------------------------------------------3 1.3 Legal System: A System of Norms and Social System?---------------------------------------------------4 1.4 Role of Law in A Planned Socio-Economic Development------------------------------------------------6 UNIT 2: LEGAL RESEARCH: AN INTRODUCTION----------------------------------8 2.1 What is research?-----------------------------------------------------------------------------------------------10 2.1.1 2.1.2 2.1.3 2.1.4 Meaning of research---------------------------------------------------------------------------------10 Objectives of research-------------------------------------------------------------------------------12 Motivation in research------------------------------------------------------------------------------13 Research and scientific method-------------------------------------------------------------------14 2.2 Types of research------------------------------------------------------------------------------------------------15...

Words: 83907 - Pages: 336