the question is return c_name where theres more than one order and 0_clerk = 'something'
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
CREATE TABLE CUSTOMER( C_CUSTKEY C_NAME C_ADDRESS C_NATIONKEY C_PHONE C_ACCTBAL C_MKTSEGMENT C_COMMENT C_TOTORDERS CREATE TABLE ORDERS( O_ORDERKEY O_CUSTKEY O_ORDERSTATUS O_TOTALPRICE O_ORDERDATE O_ORDERPRIORITY NUMBER(12) VARCHAR(25) VARCHAR(40) NUMBER(12) CHAR(15) NUMBER(12,2) NOT NULL, CHAR(10) NOT NULL, VARCHAR(117) NOT NULL, NUMBER(5), CONSTRAINT CUSTOMER_PKEY PRIMARY KEY(C_CUSTKEY), CONSTRAINT CUSTOMER_CHECK1 CHECK(C_CUSTKEY >= 0)); O_CLERK O_SHIPPRIORITY O_COMMENT L_LINENUMBER L_QUANTITY L_EXTENDEDPRICE L_DISCOUNT L_TAX L_COMMENT NUMBER(12) NUMBER(12) CHAR(1) NUMBER(12,2) NUMBER(12) VARCHAR(79) NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NUMBER(12) NUMBER(12) NUMBER(12) NUMBER(12) DATE NOT NULL, CHAR(15) NOT NULL, CHAR(15) NOT NULL, NUMBER(12,2) NUMBER(12,2) NUMBER(12,2) NUMBER(12,2) VARCHAR(44) NOT NULL, NOT NULL, NOT NULL, NOT NULL, CONSTRAINT ORDERS_PKEY PRIMARY KEY (O_ORDERKEY), CONSTRAINT ORDERS_FKEY1 FOREIGN KEY (O_CUSTKEY) REFERENCES CUSTOMER(C_CUSTKEY), CONSTRAINT ORDER_CHECK1 CHECK(O_TOTALPRICE >= 0)); CREATE TABLE LINEITEM( L_ORDERKEY L_PARTKEY L_SUPPKEY NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, CONSTRAINT LINEITEM_PKEY PRIMARY KEY (L_ORDERKEY, L_LINENUMBER), CONSTRAINT LINEITEM_FKEY1 FOREIGN KEY (L_ORDERKEY) REFERENCES ORDERS(O_ORDERKEY), CONSTRAINT LINEITEM_CHECK1 CHECK (L_QUANTITY >= 0), CONSTRAINT LINEITEM_CHECK2 CHECK (L_EXTENDEDPRICE >= 0), CONSTRAINT LINEITEM_CHECK3 CHECK (L_TAX >= 0), CONSTRAINT LINEITEM_CHECK4 CHECK (L_DISCOUNT BETWEEN 0.00 AND 1.00)); CREATE TABLE CUSTOMER( C_CUSTKEY C_NAME C_ADDRESS C_NATIONKEY C_PHONE C_ACCTBAL C_MKTSEGMENT C_COMMENT C_TOTORDERS CREATE TABLE ORDERS( O_ORDERKEY O_CUSTKEY O_ORDERSTATUS O_TOTALPRICE O_ORDERDATE O_ORDERPRIORITY NUMBER(12) VARCHAR(25) VARCHAR(40) NUMBER(12) CHAR(15) NUMBER(12,2) NOT NULL, CHAR(10) NOT NULL, VARCHAR(117) NOT NULL, NUMBER(5), CONSTRAINT CUSTOMER_PKEY PRIMARY KEY(C_CUSTKEY), CONSTRAINT CUSTOMER_CHECK1 CHECK(C_CUSTKEY >= 0)); O_CLERK O_SHIPPRIORITY O_COMMENT L_LINENUMBER L_QUANTITY L_EXTENDEDPRICE L_DISCOUNT L_TAX L_COMMENT NUMBER(12) NUMBER(12) CHAR(1) NUMBER(12,2) NUMBER(12) VARCHAR(79) NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NUMBER(12) NUMBER(12) NUMBER(12) NUMBER(12) DATE NOT NULL, CHAR(15) NOT NULL, CHAR(15) NOT NULL, NUMBER(12,2) NUMBER(12,2) NUMBER(12,2) NUMBER(12,2) VARCHAR(44) NOT NULL, NOT NULL, NOT NULL, NOT NULL, CONSTRAINT ORDERS_PKEY PRIMARY KEY (O_ORDERKEY), CONSTRAINT ORDERS_FKEY1 FOREIGN KEY (O_CUSTKEY) REFERENCES CUSTOMER(C_CUSTKEY), CONSTRAINT ORDER_CHECK1 CHECK(O_TOTALPRICE >= 0)); CREATE TABLE LINEITEM( L_ORDERKEY L_PARTKEY L_SUPPKEY NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, NOT NULL, CONSTRAINT LINEITEM_PKEY PRIMARY KEY (L_ORDERKEY, L_LINENUMBER), CONSTRAINT LINEITEM_FKEY1 FOREIGN KEY (L_ORDERKEY) REFERENCES ORDERS(O_ORDERKEY), CONSTRAINT LINEITEM_CHECK1 CHECK (L_QUANTITY >= 0), CONSTRAINT LINEITEM_CHECK2 CHECK (L_EXTENDEDPRICE >= 0), CONSTRAINT LINEITEM_CHECK3 CHECK (L_TAX >= 0), CONSTRAINT LINEITEM_CHECK4 CHECK (L_DISCOUNT BETWEEN 0.00 AND 1.00));
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these databases questions
-
Write the Python code to implement the generator function accumulator_sum (num_1st) where num 1st is a list of numbers. The function generates (yields) a running sum of the numbers in (num_1st,...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
finish this The five components, which are scope, references, configuration item, baseline, and verification, are vital to ensure the configuration management plan establishes control, ensures...
-
For each set of numbers, find the mean, median, and mode. If necessary, round the mean to one decimal place. 1. 45, 36, 28, 46, 52 2. 4.9, 7.1, 6.8, 6.8, 5.3, 4.9 3. 0.6, 0.6, 0.8, 0.4, 0.5, 0.3,...
-
A company buys four products with the following characteristics. Calculate a base-weighted index and a current-weighted index for theproducts. Number of units bought Price paid per unit Product Year...
-
James was driving a vehicle manufactured by a major automobile manufacturer. Accompanying him were his wife and two children. James accidently drove over a curb and crashed into the concrete base of...
-
Depreciation ComputationsSYD, DDBPartial Periods Cosby Company purchased a new plant asset on April 1, 2010, at a cost of $774,000. It was estimated to have a service life of 20 years and a salvage...
-
The video about sign language demonstrated: A . Most sign languages are very similar. B . All sign languages use the same gesture for the word "what". C . English - speaking countries use the same...
-
In a given string, there will be two uppercase letters in between some lowercase letters. Print the substring from the first uppercase letter to the last uppercase letter excluding them. If there are...
-
A large machine that combines wet and dry ingredients for TWIX products is powered down for plant cleaning and maintenance. the machine covers two stories with multiple mixing and funneling...
-
Code a program in the programming language C++, that computes the sum of two fractions x1/y1 and x2/y2 (the inputs) by evaluating: +42122 = zl.y2+x2.yl yl.y2 and returning z as an output. In this...
-
An electron is part of a quantum system. Assume that there are successive state transitions of the electron, such that during the first transition a photon of frequency f is emitted which is followed...
-
A paralegal in your office is the best friend of the soon to be ex-husband of new client. The firm does not represent either party in their divorce matter, but the paralegal's relationship with the...
-
How would you complete a fundamental analysis of stock pricing for Tim Horton's based on the information below? Compare the fundamental value as measured using a textbook method to the current price...
-
A reasonable amount of notice must be given by either party to terminate a contract. This amount varies with the length of time employed and the nature of the job (e.g. an executive will require more...
-
Write a program to move a signed number from smaller register to bigger register. Hint: movzx ax, bl Topic: Data Related Operators and Directives in assembly language
-
Mike sells his home to Jane on April 2, 2012. Jane pays the property taxes covering the full calendar year in October, which amount to $2,500. How much may Mike and Jane each deduct for property...
-
Diego, age 28, married Dolores, age 27, in 2012. Their salaries for the year amounted to $46,479 and they had interest income of $3,500. Diego and Dolores' deductions for adjusted gross income...
-
On July 1, 2012, Ted, age 73 and single, sells his personal residence of the last 30 years for $365,000. Ted's basis in his residence is $35,000. The expenses associated with the sale of his home...
-
Identify and describe the relationship between the strategy formulation process and the strategy implementation process.
-
Identify and briefly describe the purpose and functions of a management system, work process and organization policy.
-
Describe the link between the size of an organization and the formalization process.
Study smarter with the SolutionInn App