1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Over [174]
1 year ago
12

4. Return the card number, first name, last name, and average late fee of each customer. Name this column as "Fee".

Computers and Technology
1 answer:
andrew-mc [135]1 year ago
4 0

Answer:

To write these queries using Oracle SQL sub selects, the following syntax can be used:

1. Return the card number, first name, last name, and average late fee of each customer. Name this column as "Fee".

SELECT card_number, first_name, last_name, AVG(late_fee) AS "Fee"

FROM customers

GROUP BY card_number, first_name, last_name;

2. Return the authors whose first names are shorter than all last names.

SELECT *

FROM authors

WHERE LENGTH(first_name) < ALL (SELECT LENGTH(last_name) FROM authors);

3. Return the first 10 borrowing which late fee is unknown.

SELECT *

FROM borrowings

WHERE late_fee IS NULL

AND ROWNUM <= 10;

Explanation:

In these queries, sub selects are used to select specific data from a table and use it in the main query. For example, in the second query, a sub select is used to select the length of all last names from the authors table, and this data is then used in the main query to filter the authors whose first names are shorter than all last names. In the third query, a sub select is used to filter the borrowings with unknown late fees, and the main query is used to limit the result to the first 10 rows.

You might be interested in
How can you make sure that your private information<br> stays private?
Olegator [25]

Answer:

Be Alert to Impersonators. Safely Dispose of Personal Information. Encrypt Your Data. keep Passwords Private. Don't Overshare on Social Networking Sites.

Use Security Software. Avoid Phishing Emails.

Be Wise About Wi-Fi.

3 0
3 years ago
The ability of a person booking a flight on Southwest's website to reserve a car from Dollar Rent-A-Car without having to leave
katen-ka-za [31]

Answer:

Web Services

Explanation:

<em>Web Services</em>  is a technology that uses a set of protocols and protocols that serve to exchange data between applications. Different software applications developed in different programming languages, and executed on any platform, can use web services to exchange data on computer networks such as the Internet. Interoperability is achieved through the adoption of open openings.

5 0
4 years ago
The Internet Engineering Task Force (IETF) defines the protocols and standards for how the Internet works. The members of the IE
marta [7]

i believe the answer is b.

8 0
4 years ago
A standard computer monitor is 1024 pixels wide and 768 pixels tall
Annette [7]
If this is a true or false question the answer is true
8 0
4 years ago
Free Brainliest Again
REY [17]

Answer:

hi

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • Given the following word addresses: 3, 180, 43, 2, 191, 88, 190, 14, 181, 44, 186, 253a.Show the final cache contents for a thre
    12·1 answer
  • Do we have to use intersection?
    6·1 answer
  • If you wanna buy a Monitor, please explain why you wanna buy it! PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!
    9·1 answer
  • "This command will give you a listing of your basic IP information for the computer you are using"
    6·1 answer
  • Is something wrong with Brainly?
    5·2 answers
  • Differences between barcode reader and character recognition devices​
    9·2 answers
  • Select the correct answer. Tom recently visited a science exhibition where he learned that computer experts programmed robots to
    6·2 answers
  • Consider a Dog class and a Mammal class. Which is true? Group of answer choices The Dog class is abstract The Mammal class is co
    10·1 answer
  • Match each role to the corresponding web development task.
    14·1 answer
  • a) In an office, it is required to take hundreds of copies of the same type written document. Which traditional method of docume
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!