What is the sql query for my homework
What is the average quoted price, maximum quoted price, and minimum quoted price of all orders? Display the average as ‘Average Quoted Price’, maximum quoted price as ‘Maximum Quoted Price’, and minimum quoted price as ‘Minimum Quoted Price’. Extra decimal places are okay for now. Insert your snip of the query and resultset together here:

Answers

Answer 1

The SQL Query for the average quoted price, maximum quoted price, and minimum quoted price of all orders is given below:

The SQL Query

Display itemcode and descr of those items.

Filter Closed and Rejected Quotations.

SELECT * FROM QUOTATION WHERE QSTATUS IN ('Rejected','Closed')

Find maximum price of those quotations.

SELECT MAX(QUOTEDPRICE) MAXI FROM QUOTATION WHERE QSTATUS IN ('Rejected','Closed')

Fetch the itemcode of the quoation.

SELECT ITEMCODE FROM QUOTATION WHERE QUOTEDPRICE= (SELECT MAX(QUOTEDPRICE) MAXI FROM QUOTATION WHERE QSTATUS IN ('Rejected','Closed'))

Display the details of the fetched item.

SELECT ITEMCODE, DESCR FROM ITEM WHERE ITEMCODE IN (SELECT DISTINCT ITEMCODE FROM QUOTATION WHERE QUOTEDPRICE = (SELECT MAX(QUOTEDPRICE) MAXI FROM QUOTATION WHERE QSTATUS IN ('Rejected','Closed')))

However,  the following query doesn't show a logical error:

SELECT ITEMCODE, DESCR FROM ITEM WHERE ITEMCODE IN

(

  SELECT DISTINCT ITEMCODE FROM QUOTATION WHERE QUOTEDPRICE =

 (

   SELECT MAX(QUOTEDPRICE) FROM QUOTATION WHERE QSTATUS IN ('Rejected','Closed')

 )

  AND QSTATUS IN ('Rejected','Closed')

)

Read more about SQL here:

https://brainly.com/question/27851066

#SPJ1


Related Questions

I have no idea how to do this coding project.

Answers

Using the knowledge of the computational language in JAVA it is possible to write a code that repeating task is sent using one of the MessageBuilder's repeatXXX() methods.

Writting the code:

MessageBuilder.createMessage()

   .toSubject("FunSubject")

   .signalling()

   .withProvided("time", new ResourceProvider<String>() {

      SimpleDateFormat fmt = new SimpleDateFormat("hh:mm:ss");

          public String get() {

        return fmt.format(new Date(System.currentTimeMillis());

 .toSubject("TimeChannel").signalling()

 .withProvided(TimeServerParts.TimeString, new ResourceProvider<String>() {

    public String get() {

      return String.valueOf(System.currentTimeMillis());

    }

See more about JAVA at brainly.com/question/18502436

#SPJ1

How do I do this coding project?

Answers

import java.util.*;

class prog

{

public useProperGrammar( String text)

{

int i;

char ch;

String p;

for(i=0;i<text.length();i++)

{

ch = text.charAt(i);

if(ch=='2')

{

p = text.replace('2','to');

}

}

System.out.println("Corrected text:" +p);

}

}

Please compile it before putting to use since I haven't done any compiling work.

Using the knowledge of the computational language in JAVA  it is possible to write a code that write a functions that countain a string using the function signature.

Writting the code:

import java.util.*;

class prog

{

public useProperGrammar( String text)

{

int i;

char ch;

String p;

for(i=0;i<text.length();i++)

{

ch = text.charAt(i);

if(ch=='2')

{

p = text.replace('2','to');

}

}

System.out.println("Corrected text:" +p);

}

}

See more about JAVA at brainly.com/question/18502436

#SPJ1

If $due_date contains a DateTime object for a date that comes 1 month
and 7 days before the date stored in the $current_date variable, what will $overdue_message contain
when this code finishes executing:
a. 0 years, 1 months, and 7 days overdue.
b. -0 years, -1 months, and -7 days overdue.
c. 1 month and 7 days overdue.
d. $overdue_message won’t be set because the if clause won’t be executed

Answers

a. 0 years, 1 months, and 7 days overdue.

For this task you have the chance to show what you’ve learned about implementing repetition in code. You are required to create a program that uses the while loop structure.

Write a program that always asks the user to enter a number. When the user enters the negative number -1, the program should stop requesting the user to enter a number. The program must then calculate the average of the numbers entered excluding the -1.

Make use of the while loop repetition structure to implement the program.

Answers

Explanation:

#include <stdio.h>

main(){

int x,c=0,sum=0;

float a;

printf("enter a number (don't enter -1)\n");

scanf("%d",&x);

while(x!=-1){

c++;

sum+=x;

printf("enter a number(enter -1 to calculate the average)\n");

scanf("%d",&x);

}

a=float(sum)/c;

printf("the average is %.2f ",a);

}

Which of the following is the outline of all the stages games go through when
being developed?
(1 point)
production cycle
design cycle
scientific method
alpha stages

Answers

Product Cycle is all the stages games go through when being developed.

What's product cycle?

The product cycle is the period of time from the morning of processing to the finished product during which stocks( raw accoutrements , accoutrements ,semi-finished corridor, and finished factors) live in the manufacturing process. It takes up some of the manufacturing time and comprises of processing and halting phases.

Product cycle for developing a game :

Stage 1 of the game development process :

Although each step in the game development process is important, the original planning cycle has a direct impact on all posterior cycles. It's critical to begin the process of creating a computer game by gathering details about the willed end product, similar as technological specifications.

Stage 2 The product :

The product stage, which is broken down into multiple internal stages, is the stage that takes the longest and requires the topmost labor.

Stage 3 Quality control :

A game of any complexity needs to be tested to insure that it's error-free and bug-free. This is due to the fact that a single issue can have a negative impact on both the stoner experience and the overall enjoyment of a game. As a result, functional,non-functional, and beta testing are constantly carried out.

 

Stage 4 Launch :

The final stage of game product is the product debut, which is largely anticipated by all. But the story does not end with launch. Indeed after a game is finished, there are generally still enough bugs and faults, thus the game development platoon keeps adding new features and perfecting the game coincidently with its release. At the same time, testers gather the first stoner feedback to help inventors make significant adaptations.

Stage 5 Post-production :

Fixes and upgrades need to be continually covered after a game is released on the request to insure that it's stable and performing as intended. Studios should immaculately release updates constantly to cleave to the evolving specialized specifications of platforms.

Learn more about production cycle of game developement click here:

https://brainly.com/question/26006886

#SPJ1


You are reorganizing the drive on your computer. You move several files to a new folder located on the same partition. When you move the files to the new folder,
what happens to their permissions?

Answers

Businesses frequently use a VPN to provide remote workers with access to internal software and data or to establish a single shared network among numerous office locations.

What is a VPN, and why do businesses use them?An encrypted connection between user devices and one or more servers is established by a virtual private network (VPN), a service that provides Internet security. A VPN can safely link a user to the internal network of a business or to the Internet at large. Businesses frequently use a VPN to provide remote workers with access to internal software and data or to establish a single shared network among numerous office locations.  The ultimate objective in both situations is to keep web traffic, especially traffic with proprietary data, off the public Internet.

To Learn more about VPN refer to:

https://brainly.com/question/16632709

#SPJ9

Businesses frequently use a VPN to provide remote workers with access to internal software and data or to establish a single shared network among numerous office locations.

What is a VPN, and why do businesses use them?An encrypted connection between user devices and one or more servers is established by a virtual private network (VPN), a service that provides Internet security.A VPN can safely link a user to the internal network of a business or to the Internet at large.Businesses frequently use a VPN to provide remote workers with access to internal software and data or to establish a single shared network among numerous office locations.  The ultimate objective in both situations is to keep web traffic, especially traffic with proprietary data, off the public Internet.

To Learn more about VPN refer to:

brainly.com/question/16632709

#SPJ9

Other Questions
What is 7) 952 divided? jeremiah is testing the impact of different fertilizers on crop yields. six different fertilizers have been applied to one field. suppose he uses an anova to test whether or not there are differences in yields. how many treatments are in this test? Watch and summarize The Fight Against Fake News video. Summarize in 4 -6 sentences.(Please don't just copy and paste something) The name given to the group of American writers living in Europe who the culture of small towns and business culture were the jasmine corporation has a sales price of $20, variable costs of $16 per unit, and fixed costs of $22,000. contribution margin is $58,000. how many units did jasmine sell? if schizophrenia depended solely on genetic make-up, then compared to rates of schizophrenia in siblings in general, fraternal twins should have: A) A box of mass 9 kg contains x articles each of mass 1.2 kg. Write down an expression for the total mass of the box and its contents.B) How many articles are there in the box if the total mass of the box and articles is 21 kg? global climate models cannot predict the exact global average temperature of the earth in the year 2100 with total certainty. explain two different reasons for this fact. be specific and detailed in your explanations. In ________ the stimulus or experience occurs before the behavior and then gets paired with the behavior. (1) what is the complete ground state electron configuration for the nitrogen atom? (2) what is the complete ground state electron configuration for the vanadium atom? if a perfectly competitive firm increases production from 10 units to 11 units and the market price is $20 per unit, total revenue for 11 units is: PLS HURRY!!!Juan divided 12 jar of fish food into 7 equal parts. He feeds his fish one part each day.What fraction of the jar of food will Juan will feed his fish each day?Enter your answer as a fraction in simplest form by filling in the boxes. iven a prior forecast demand value of 1,100, a related actual demand value of 1,000, and a smoothing constant alpha of 0.3, what is the exponential smoothing forecast value? multiple choice 1,130 1,030 1,070 970 1,000 9x + 7y = 3x - 7y=-8 an at-filled, parallel-plate capacitor has a capacitance of 1.32 pf. the separation of the plates is doubled and wax 1s inserted between them. the new capacitance is 2.57 pf. find the dielectric constant of the wax. 12. Which statement about Tang and Song China is false? *5 pointsA. They built their civil service on the principles of Confucianism.B. They established complex trading routes including a series of canals to transportgoods.C. Women were given great authority in the home, but men maintained a higher socialstatus.D. Warring tribes ensured that dynasties only lasted a few years.E. Wu Zhao, the first female ruler of China, helped bring about a time of lastingprosperity. you wake up thirsty in the middle of the night and walk to the kitchen to get a drink without turning on the light. you are able to successfully make your way through the dark house, thanks to Hi! This assignment is due soon! Can someone help me with transversals of parallel lines: solve for x. Thank you! what do you call the process that allows our brain to receive information about the lines, angels, and edges jonny, zakarius, fernando, and lee each think that dr. awesome may be a slightly better teacher than dr. average. after discussing why each of them believes this to be so, they all conclude that dr. awesome is a much better teacher than dr. average. this episode provides an example of