Question

1) In which clause of a query can a subquery not be used? (Choose two.) 2)...

1) In which clause of a query can a subquery not be used? (Choose two.)

2) The ORDER BY clause is allowed in an inline view true or false

3) the order by clause is not allowed in subqueries true or false

4) The operators IN and EXISTS are somewhat equivalent true or false

5) this Oracle error message? ORA-01427: single- row subquery returns more than one row >= = IN <=

6) SELECT 'TRUE' FROM dual WHERE 6 = ANY (6, 9); SELECT 'TRUE' FROM dual WHERE 6 IN (6, 9);

7) What is the result of the following query? SELECT 10 * ( SELECT 10 * (SELECT 10 * (SELECT COUNT(10 * 10 * 10) FROM dual) FROM dual) FROM dual) FROM dual); 8) What operator would you choose to prevent this Oracle error message? ORA-01427: single- row subquery returns more than one row

Homework Answers

Answer #1

1. ORDER BY CLAUSE, HAVING CLAUSE

2. True

3. True

4. False

5. Yes, it is indeed an Oracle error message

6. SELECT 'TRUE' FROM dual WHERE 6 IN (6, 9);

7. Returns the number of sub records present in the last sub query

8. To resolve that error we must change query and try to use any of the following operator:

  • ANY
  • ALL
  • IN
  • NOT IN

Hope I answered the question.

If you have any doubts, or queries, feel free to ask

I'll respond to you as soon as I can.

Have a nice day

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Which query lists all products with a total quantity sold less than the average quantity sold?...
Which query lists all products with a total quantity sold less than the average quantity sold? Select one: a. SELECT P_CODE, SUM(LINE_UNITS) AS TOTALUNITS FROM LINE GROUP BY P_CODE HAVING SUM(LINE_UNITS) < AVG(LINE_UNITS); b. SELECT P_CODE, AVG(LINE_UNITS) AS TOTALUNITS FROM LINE GROUP BY P_CODE HAVING AVG(LINE_UNITS) < (SELECT AVG(LINE_UNITS) FROM LINE); c. SELECT P_CODE, SUM(LINE_UNITS) AS TOTALUNITS FROM LINE GROUP BY P_CODE HAVING SUM(LINE_UNITS) < (SELECT AVG(LINE_UNITS) FROM LINE); d. SELECT P_CODE, SUM(LINE_UNITS) AS TOTALUNITS FROM LINE GROUP BY P_CODE...
1, The following query is called_________ SQL>select e.empno,e.ename, m.ename, m.empno from emp e, emp m where...
1, The following query is called_________ SQL>select e.empno,e.ename, m.ename, m.empno from emp e, emp m where e.mgr = m.empno; cross join outer join Self join Full join Natural Joins 2. Steve wants to write a query to display the employee last name, department name, location id, and city of all employees who earn a commission. He wrote the following query. is it true or false. SELECT e.last_name, d.department_name, d.location_id, l.city FROM employees e, departments d, locations l WHERE e.department_id =...
The relational schema for the Academics database is as follows: DEPARTMENT(deptnum, descrip, instname, deptname, state, postcode)...
The relational schema for the Academics database is as follows: DEPARTMENT(deptnum, descrip, instname, deptname, state, postcode) ACADEMIC(acnum, deptnum*, famname, givename, initials, title) PAPER(panum, title) AUTHOR(panum*, acnum*) FIELD(fieldnum, id, title) INTEREST(fieldnum*, acnum*, descrip) Some notes on the Academics database: An academic department belongs to one institution (instname) and often has many academics. An academic only works for one department. Research papers (PAPER) are often authored by several academics, and of course an academic often writes several papers (AUTHOR). A research field...
True False Select the most correct answer. Question 1 (1 point) Most databases are just in...
True False Select the most correct answer. Question 1 (1 point) Most databases are just in 1NF. Question 1 options: True False Question 2 (1 point) A subquery is always preferred over a join. Question 2 options: True False Question 3 (1 point) A database may consist only of multiple files. Question 3 options: True False Question 4 (1 point) A database may exist without a database management system. Question 4 options: True False Question 5 (1 point) The insert...
Lab 5 Queries with Multiple Tables In this lab, we do queries more than one table....
Lab 5 Queries with Multiple Tables In this lab, we do queries more than one table. SQL provides two different techniques for querying data from multiple tables: • The SQL subquery • The SQL join As you will learn, although both work with multiple tables, they are used for slightly different purposes. We used WMCRM database which is what we created in Lab 4. Here is the summary of the database schema (where schema is used in its meaning of...
(1) A real estate agent says he can approximate the value of a house through the...
(1) A real estate agent says he can approximate the value of a house through the following equation: SP = 125,000 + 3000BR + 500BDR + 4000WC –6000P; where BR= # of bathrooms, BDR= # bedrooms, WC =Wine cellar and P=Pool. There are _____ zero-one variables in this regression model. Select one: a. 4 b. 3 c. 2 d. 1 (2) A researcher believes, among other things, the town one lives in within the state influences the likelihood of contracting...
QUESTION 1: Passive euthanasia is legal in all states. True False    QUESTION 2: Active Euthanasia...
QUESTION 1: Passive euthanasia is legal in all states. True False    QUESTION 2: Active Euthanasia is legal in all states. True False QUESTION 3: Active Euthanasia is the intentional killing of a patient by non-natural means. True False QUESTION 4: What famous case ruled that a woman's right to privacy extends to fertility decisions? a. Roe vs. Wade b. Medical power of attorney c. Conscience clause d. Uniform Anatomical Gift Act QUESTION 5: Match each term to its explanation:...
Question 1 A binomial distribution reflects two possible outcomes, which can be denoted as "success and...
Question 1 A binomial distribution reflects two possible outcomes, which can be denoted as "success and failure" True False 1 points Question 2 As a binomial distribution is discrete, we can not ever use the normal distribution? True False 1 points Question 3 The text mentions that in order to use the normal distribution for binomial distributions that EITHER n(p) OR n(q) must be > 5. True False 1 points Question 4 The reason that both n(p) and n(q) are...
Question2 1-Age segmentation involves identifying how different people choose to express their personality and their beliefs....
Question2 1-Age segmentation involves identifying how different people choose to express their personality and their beliefs. A-True B-False 2-Pricing a product at 9.99$ is an example on psychological pricing. A-True B-False 3-Semi-finished goods are part of capital goods. A-True B-False 4-Market research involves the gathering and analysis of data about consumers’ preferences, spending patterns and other market conditions, such as prices and competition. A-True B-False 5-Recruiting and training staff is not expensive at all. A-True B-False 6-The purpose of the...
1) When we fit a model to data, which is typically larger? a) Test Error b)...
1) When we fit a model to data, which is typically larger? a) Test Error b) Training Error 2) What are reasons why test error could be LESS than training error? (Pick all that applies) a) By chance, the test set has easier cases than the training set. b) The model is highly complex, so training error systematically overestimates test error c) The model is not very complex, so training error systematically overestimates test error 3) Suppose we want to...