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
Social engineering attacks can be carried out:______.
Alik [6]
The answer most likely B NOT SURE )
3 0
3 years ago
Which was the first home game console to be launched?
Makovka662 [10]

Answer:

B: Odyssey

Explanation:

Odyssey, by Magnavox, was the first console ever made.

4 0
3 years ago
Read 2 more answers
Convert hexadecimal number 1AF2 to a decimal number.
dalvyx [7]

Answer:

6898

Explanation:

Given that 1AF2 is a hexadecimal number.

We have in hexadecimal, the digits are 0,1,2,3...9, A,B,C,D,E,F for the 16 digits used.

Using the above we say in the given number, we have

2 in units column

F in 16 column

A in 16 square column

and 1 in 16 cube column

Place value= 2(1) +15(16)+10(16^2)+1(16^3)\\= 2+240+2560+4096\\=6898

Hence 1AF2 = 6898 in decimal

8 0
3 years ago
Critical Thinking Questions Case 5-1 ​ You recently purchased a new laptop for home. You want to ensure that you are safe from m
Kobotan [32]

Answer:

Firewall

Explanation:

7 0
3 years ago
Write a program that takes a sentence as input and prints all the vowels in the sentence. Your program must use a for loop. Samp
oksian1 [2.3K]

Answer:

Python.

Explanation:

// Ask user for input string and store it to variable

sentence = input("Enter a sentence: ")

// Loop through each character in string

for character in sentence:

   //  Check for vowel

  if character == 'a' or character == 'e' or character == 'i' or character == 'o' or character == 'u':

       // print the vowel

       print(letter)

5 0
3 years ago
Other questions:
  • Computer communications describes a process in which two or more computers or devices transfer ____.
    10·1 answer
  • When a user stores data in "the cloud", the data is stored on the user's premise in what is called a "cloud server"?
    6·1 answer
  • If you want to refine your google search results by date, which option should you use?
    10·1 answer
  • ​A(n) ________ database makes it possible to store information across millions of machines in hundreds of data centers around th
    6·1 answer
  • If you’re torn between more than one option while making a decision, which of the following would most likely be the best strate
    10·1 answer
  • When a member function is defined outside of the class declaration, the function name must be qualified with theWhen a member fu
    14·1 answer
  • In C++ please.
    8·1 answer
  • who thinks homework is anoyying? (freddy randomly started thinking scince he was the leader he caould start acting like a teache
    8·2 answers
  • The difference between Return key and word Wrap
    14·1 answer
  • Suppose we want an error correcting code that will allow all single-bit errors to be corrected for memory words of length 15. 1.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!