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
Burka [1]
4 years ago
10

Hands-on Assignment To these assignments, refer to the tables in the JustLee Books database. Generate and test two SQL queries f

or each of the following tasks: a) the SQL statement needed to perform the stated task with the traditional approach, and b) the needed to perform the stated task with the JOIN keyword. Apply table aliases in all queries 1. create a list that displays the title of each book and the name and phone number of the contact at the publishers office for reordering each book. 2. Determine which orders haven't yet shipped and the name of the customer who placed the order. Sort the results by the date on which the order was placed. 3. Produce a list of all customers who live in the state of Florida and have ordered books about computers. 4. which books customer Jake Lucas has purchased. Perform the search using the customer name, not the customer number. If he has purchased multiple copies of the same book, unduplicate the results. 5. Determine the profit of each book sold to Jake Lucas, using the actual price the customer paid the book's regular retail price). Sort the results by order date. If more than one book was ordered, sort results by profit amount order. Perform the search using the customer name, not the customer number. 6. Which books were written by an author with the last name Adams? Perform the search using the author name. 7. What gift will a customer who orders the book shortest Poems receive? Use the actual book retail value to determine the gift.

Computers and Technology
1 answer:
WARRIOR [948]4 years ago
6 0

Answer:

1 )

a) using Traditional way

b) Using Join

2) In this case we need to join 3 Tables and print values from more than 1 tableso there is no traditional way other than JOINS.

3)

a) This problem can be solved using subqueries

b) Using Joins

4)

a ) This problem can be solved using subqueries

b) Using Join

Attached is the full answer. Tried writing it here but it refused submitting

You might be interested in
Assume you are given three variables, revenue, expenses, and profit, all of type Money (a structured type with two int fields, d
Andre45 [30]

Answer:

if(revenue.cents - expenses.cents < 0){

profit.dollars = revenue.dollars - expenses.dollars - 1;

profit.cents = 1 - revenue.cents - expenses.cents;

}

else{

profit.dollars = revenue.dollars - expenses.dollars;

profit.cents = revenue.cents - expenses.cents;

}

Explanation:

We know that profit is given as: revenue - expenses from the question.

From the given expression above;

if(revenue.cents - expenses.cents < 0)

then profit.dollar will be revenue.dollars - expenses.dollars - 1; the 1 is to be carry over to the cent part. And the profit.cent will be 1 - revenue.cents - expenses.cents;

else the profit.dollars and the profit.cent is computed directly without needing to carry over:

profit.dollars = revenue.dollars - expenses.dollars;

profit.cents = revenue.cents - expenses.cents;

7 0
3 years ago
Which of the following is not a valid SQL command? (Points : 2) UPDATE acctmanager SET amedate = SYSDATE WHERE amid = 'J500';
Volgvan

Answer:

UPDATE acctmanager WHERE amid = 'J500';

Explanation:

The statement written above is not valid SQL statement because there is no SET after UPDATE. Update is always used with SET.If you are updating something then you need to specify the value with which that value should be replaced.

UPDATE acctmanager SET amname = UPPER(amname);

This statement does not contains WHERE clause but it will run all the values of amname column will get updated in the table acctmanager.

6 0
3 years ago
In python, sorry if it’s blurry
stepan [7]

Answer:

nice

Explanation:

3 0
3 years ago
Read 2 more answers
State the function of a URL in a website​
mihalych1998 [28]

Answer:

It's purpose is to access a webpage.

Explanation:

A URL contains detailed information on the webpage such as, the domain name, protocol, and path. This information directs the browser to the desired page.

3 0
3 years ago
What number will be output by the console.log command on line 5?
bagirrra123 [75]

Answer:

The output is 35

Explanation:

Required

Determine the output on line 5

We start by analysing the program line by line.

On line 1: kit = 20

On line 2: roo = 10

On line 3: kit = kit + 5

Substitute 20 for kit.

So, we have

kit = 20 + 5

kit = 25

On line 4:

roo = kit + roo

Substitute values for kit and too

roo = 25 + 10

roo = 35

On line 5: Output roo

So, 35 is displayed as an output

4 0
3 years ago
Other questions:
  • Hello, can you help me answer these questions?
    9·2 answers
  • 50 Points being offered for the fastest and most correct response<br><br> How do I fix this?
    6·2 answers
  • All of the nested folders you created will carry the same permissions as the __________ until you make changes.
    10·1 answer
  • Identify any eight new programming languages and classify them based on their functionality.
    14·2 answers
  • Your boss is very skeptical about the idea of storing his files up in the cloud rather than on a local storage drive. He asks yo
    7·1 answer
  • The blank contains the computer's brain the central processing unit CPU
    8·1 answer
  • How do I type the integral symbol?
    6·1 answer
  • JUST NEED TO KNOW WHO ALL DOSE EDGINUITY
    12·2 answers
  • What are the advantages of using digital signals over analog signals? Scientist have found advantages when they convert digital
    5·2 answers
  • Ns.office.com/Pages/ResponsePage.aspx?id=bd8
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!