Question

Create the report that is shown below. This a query to produce the summary of the...

Create the report that is shown below. This a query to produce the summary of the value of products currently in inventory, that have a value of more than $4,000, as shown below. Note that the value of each product is produced by the multiplication of the units currently in inventory and the unit price. We are only interested in the attributes shown and in the order shown. We want the subtotal displayed as currency

What I have, but it gives me an error in line 3 that says "missing expression":

select prod_descript, prod_qoh, prod_price, prod_qoh * prod_price AS subtotal
from lgproduct order by prod_descript
where subtotal > 4000;

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER

Select prod_descript, prod_qoh, prod_price, prod_qoh * prod_price AS "subtotal" from lgproduct where subtotal > 4000 order by prod_descript;

Above querry is excuted correct.

Note:- Theb subtotal must be a column name.

Mistake :- order by clause are putting after the where clause.

Hope it is helpfull to you.

Add a comment
Know the answer?
Add Answer to:
Create the report that is shown below. This a query to produce the summary of the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create the report that is shown below. This a query to produce the summary of the...

    Create the report that is shown below. This a query to produce the summary of the value of products currently in inventory, that have a value of more than $4,000, as shown below. Note that the value of each product is produced by the multiplication of the units currently in inventory and the unit price. We are only interested in the attributes shown and in the order shown. We want the subtotal displayed as currency What I have, but it...

  • Summarize these pages in your own style and you have to include in your report some...

    Summarize these pages in your own style and you have to include in your report some figures highlighting the relation between these operations. Basic AGGREGATE functions (Revision) COUNT: returns the number of tuples, which meet the specified condition: SELECT COUNT(DISTINCT Dept) AS Num_Depts FROM subject: SUM: returns the sum of the values in a specified column (i.e. numeric column) SELECT COUNT(*) AS hi_sal, SUM(salary) FROM Lecturer WHERE Salary > 4500 MIN: returns the minimum value in a specified column (numeri...

  • You will develop an E-Commerce database used to maintain customers, products and sales information. You are...

    You will develop an E-Commerce database used to maintain customers, products and sales information. You are required to 1) gather and analyze requirements 2) design logical structure of the database 3) create stored procedures to develop the tables and insert the data 4) write SQL statements for data extraction and reporting. Throughout the course of this semester you have analyzed the requirements for an eCommerce database, designed and developed your database. As a class we have gone through the process...

  • Political parties rely heavily upon polling to measure their support in the electorate. Below are the...

    Political parties rely heavily upon polling to measure their support in the electorate. Below are the results of two polls conducted in 1996 and 1997 for four political parties. The polling organization selects people to participate in the poll using random-digit dialing and then uses some procedure to randomly select a member of the household called. Why doesn’t the polling organization just ask people in the nearest shopping center? (4 points) Compute the estimated standard error for the level of...

  • need help for solve multiple choice question... 1.The employee summary report option shows Select one: a....

    need help for solve multiple choice question... 1.The employee summary report option shows Select one: a. earnings and deductions from a paycheque b. all information entered in employee records c. wage or salary amounts d. all year-to-date totals 2.In the process of correcting a wrong employee error all but one is used – Select one: a. prepare a new entry for the correct employee b. one should remember to recalculate the taxes c. open the adjust cheque window for the...

  • QUESTION: (Answer in SQL) Write an SQL query to find all pairs of users (A,B) such...

    QUESTION: (Answer in SQL) Write an SQL query to find all pairs of users (A,B) such that both A and B have blurted on a common topic but A is not following B. Your query should print the names of A and B in that order. BACKGROUND INFO: Users can post their thoughts in form of short messages that we call “blurts”. When signing up, users need to provide their email and a password of their choice. In addition, they...

  • need this in #c . You will now add server side validation code to the frmPersonnel...

    need this in #c . You will now add server side validation code to the frmPersonnel page. Currently, when the Submit button is pressed, the frmPersonnelVerified page is displayed. This is because the frmPersonnelVerified page is set as the Submit button's PostBackUrl property. Instead of having the page go directly to the frmPersonnelVerified page when the Submit button is pressed, we want to do some server side validation. If any of the validation rules fail, we will redisplay the frmPersonnel...

  • If you’re using Visual Studio Community 2015, as requested, the instructions below should be exact but...

    If you’re using Visual Studio Community 2015, as requested, the instructions below should be exact but minor discrepancies may require you to adjust. If you are attempting this assignment using another version of Visual Studio, you can expect differences in the look, feel, and/or step-by-step instructions below and you’ll have to determine the equivalent actions or operations for your version on your own. INTRODUCTION: In this assignment, you will develop some of the logic for, and then work with, the...

  • MENT RESOURCES Exercise 15-03 A job order cost sheet for Ryan Company is shown below. se...

    MENT RESOURCES Exercise 15-03 A job order cost sheet for Ryan Company is shown below. se 15-03 m 15-01A m 15-04A For 2,000 Units Job No. 92 Manufacturing Overhead Direct Labor Direct Materials Date Score Beg. bal. Jan. 1 Results by Study we 4,200 5.300 6,000 6,000 5,600 7,000 12 2,500 25 3,200 13,000 4,000 27 17,000 13,800 Cost of completed job: $13,800 Direct materials 17,000 Direct labor 13,000 Manufacturing overhead $43,800 Total cost $21.90 Unit cost (S43,800 - 2,000)...

  • CIS 221 Loan Calculator Enhancement Introduction You are a systems analyst working for a company that...

    CIS 221 Loan Calculator Enhancement Introduction You are a systems analyst working for a company that provides loans to customers. Your manager has asked you to enhance and correct their existing Loan Calculator program, which is designed to calculate monthly and total payments given the loan amount, the annual interest rate, and the duration of the loan. Although the current version of the program (hereby termed the “As Is” version) has some functionality, there are several missing pieces, and the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT