1. Do a query that tests for condition A and condition B and show me the results....
Fantastic news! We've Found the answer you've been seeking!
Question:
1. Do a query that tests for condition A and condition B and show me the results.
2. Do a query that tests for condition A or condition B or condition C and show me the results.
3. Do a query that tests for condition A and condition B are both true or condition C and condition D EMENO ENAME JOB MGR HIREDATE SAL COMM ---------- ---------- ---- ----- --------- DEPTNO are both true. --------
4. Do a query that tests for condition A and condition B being true or condition C is true.
5.Do a query that tests for condition A being true or condition B and condition C both being true.
6. Do a query that tests for condition A being true and either condition B or condition C being true.
Transcribed Image Text:
SQL> des GARL Name EMPNO ENAME JOB MGR HIREDATE SAL COMM DEFTNO SQL> select from SSSRZE JOB EMPNO ENAME DEPTNO 7369 SMITH 20 7499 ALLEN 30 7521 HARD 30 EMENO ENAME DEPTNO 7566 JONES 20 7654 MARTIN 30 7369 SMITH 20 EMPNO ENAME DEPTNO 7499 ALLEN 30 7521 WARD 30 7566 JONES 20 EMPNO ENAME DEPTNO 7654 MARTIN 30 7782 CLARK 10 7839 KING 10 EMPNO ENAME DEPTNO 7844 TURNER 30 7876 ADAMS 20 7900 JAMES 30 CLERK SALESMAN SALESMAN JOB MANAGER SALESMAN CLERK JOB SALESMAN SALESMAN MANAGER JOB SALESMAN MANAGER FRESIDENT ЈОБ SALESMAN CLERK CLERK Null? MGR HIREDATE 7902 17-DEC-80 MGR HIREDATE 7698 20-FEB-81 7698 22-FEB-81 Туре NUMBER (4) VARCHAR2 (10) VARCHAR2 (9) 7902 17-DEC-80 7839 02-APR-81 MGR HIREDATE 7698 28-SEP-81 NUMBER (4) DATE NUMBER (7,2) NUMBER (7,2) NUMBER 7698 20-FEB-81 7839 02-APR-81 MGR HIREDATE 7698 22-FEB-81 7698 28-SEP-81 7839 09-JUN-81 MGR HIREDATE 17-NOV-81 7698 08-SEP-81 7788 23-MAY-87 7698 03-DEC-81 SAL 800 1600 1250 SAL 2975 1250 800 SAL 1600 1250 2975 SAL 1250 2450 5000 SAL 1500 1100 950 COMM 300 500 COMM 1400 COMM 300 500 COMM 1400 COMM 0 SQL> des GARL Name EMPNO ENAME JOB MGR HIREDATE SAL COMM DEFTNO SQL> select from SSSRZE JOB EMPNO ENAME DEPTNO 7369 SMITH 20 7499 ALLEN 30 7521 HARD 30 EMENO ENAME DEPTNO 7566 JONES 20 7654 MARTIN 30 7369 SMITH 20 EMPNO ENAME DEPTNO 7499 ALLEN 30 7521 WARD 30 7566 JONES 20 EMPNO ENAME DEPTNO 7654 MARTIN 30 7782 CLARK 10 7839 KING 10 EMPNO ENAME DEPTNO 7844 TURNER 30 7876 ADAMS 20 7900 JAMES 30 CLERK SALESMAN SALESMAN JOB MANAGER SALESMAN CLERK JOB SALESMAN SALESMAN MANAGER JOB SALESMAN MANAGER FRESIDENT ЈОБ SALESMAN CLERK CLERK Null? MGR HIREDATE 7902 17-DEC-80 MGR HIREDATE 7698 20-FEB-81 7698 22-FEB-81 Туре NUMBER (4) VARCHAR2 (10) VARCHAR2 (9) 7902 17-DEC-80 7839 02-APR-81 MGR HIREDATE 7698 28-SEP-81 NUMBER (4) DATE NUMBER (7,2) NUMBER (7,2) NUMBER 7698 20-FEB-81 7839 02-APR-81 MGR HIREDATE 7698 22-FEB-81 7698 28-SEP-81 7839 09-JUN-81 MGR HIREDATE 17-NOV-81 7698 08-SEP-81 7788 23-MAY-87 7698 03-DEC-81 SAL 800 1600 1250 SAL 2975 1250 800 SAL 1600 1250 2975 SAL 1250 2450 5000 SAL 1500 1100 950 COMM 300 500 COMM 1400 COMM 300 500 COMM 1400 COMM 0
Expert Answer:
Answer rating: 100% (QA)
It looks like your question is about constructing SQL queries with various conditions Lets assume yo... View the full answer
Posted Date:
Students also viewed these programming questions
-
4 cubed + 10 X 20 + 8 squared 23
-
From a lot of 10 missiles, 4 are selected at random and fired. If the lot contains 3 defective missiles that will not fire, what is the probability that (a) All 4 will fire? (b) At most 2 will not...
-
9 5 1 2 2 2 4 7 0 10. Let A 8 00 B= 0 0 0 and C = 0 31 0 3 2 4 6 8 0 0 2 Compute 1. - 2B + , 2. [3(A+ B)]", 3. (4A + B C)". T
-
Count Dracula, the most famous vampire, rumored to have killed at least 200,000 people, was based on a real person who lived in eastern Europe about 600 years ago. He was indeed a "monster," although...
-
Classify the following services by their degree of customer contact (high, medium, or low). Also, determine how much uncertainty the customer introduces into the service delivery system by the...
-
The following balances were taken from the general ledger of Holland Company on January 1, 2012: During 2012, the company completed the following transactions: a. Purchased inventory for $95,000 on...
-
Prim launched in mid-2013, after passing through the prestigious Y Combinator business accelerator program earlier that year. Heres how Prims laundry service worked. Customers bagged their laundry...
-
Davenport Construction Associates compares actual results with a flexible budget. The standard direct labor rates used in the flexible budget are established each year at the time the annual plan is...
-
The definition, " ' Chiropractor ' means a person who is a medical quack with no legitimate scientific background," is an example of: Theoretical definition Definition by subclass Persuasive...
-
Determine the theoretical and actual material required to produce the part, shown in figure. Raw stock is supplied in 0.875 in. diameter. A lathe cutoff tool width is 0 125 in. A 0.015 in. stock...
-
A rod 12.0 cm long is uniformly charged and has a total charge of -21.0 C. Determine the magnitude and direction of the electric field along the axis of the rod at a point 32.0 cm from its center....
-
Why did airlines offer internet- only fares?
-
In the summer of 2008, at Heathrow airport in London, Bestofthebest (BB), a private company, offered a lottery to win a Ferrari or 100,000 British pounds, equivalent at the time to about $200,000....
-
What are Labor Protective Provisions and what aspect of an airline merger are they designed to protect?
-
What are two types of complex airline structures? What management challenges do these complex structures present?
-
Why would liquid hydrogen require new aircraft designs?
-
Topic: Google Analytics Submit your answers to each of the 10 questions and the accompanying screenshots. Question 1 Company One wants an overview of the website activity of its users. Provide...
-
The ultimate goal of Google, Bing, and other consumer search engines is to provide users with search listings that contain useful information on the topic of their search. What recommendations would...
-
Fine Furniture Ltd had a balance in its Work in Process Inventory account on 1 October 2019 of $13 600 made up of two jobs: Job 730, $6400; and Job 731, $7200. At the end of October, costs assigned...
-
Refer to the latest financial report of JB Hi-Fi Limited on its website, www.jbhifi.com.au, and answer the following questions. 1. Is it likely that JB Hi-Fi Limited would have to confront such...
-
Imelda Instruments Ltd manufactures two products: missile range instruments and space pressure gauges. During January, 53 range instruments and 360 pressure gauges were produced, and overhead costs...
Study smarter with the SolutionInn App