Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%
I am trying to find the average of data and Floor the results. How would you use AVG and FLOOR function together?
This is the SQL code I used to find the Average
SELECT AVG(CONDO_FEE)
FROM CONDO_UNIT;
and the results was
426.785714285714285714285714285714285714
I need to use the FLOOR function to just make the answer 426.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps
Knowledge Booster
Similar questions
- How do I make space on the Header on SQL? please see image.Thank you. SELECT BRAND_NAME, BRAND_TYPE, round(AVERAGE,2) AS 'Average Price', UnitsSoldFROM (LGBRAND INNER JOIN (SELECT BRAND_ID, AVG(PROD_PRICE) AS AVERAGE FROM LGPRODUCT GROUP BY BRAND_ID) AS SUB1 ON LGBRAND.BRAND_ID = SUB1.BRAND_ID) INNER JOIN (SELECT BRAND_ID, SUM(LINE_QTY) AS UNITSSOLD FROM LGPRODUCT INNER JOIN LGLINE ON LGPRODUCT.PROD_SKU = LGLINE.PROD_SKU GROUP BY BRAND_ID) AS SUB2 ON LGBRAND.BRAND_ID = SUB2.BRAND_IDORDER BY BRAND_NAMEarrow_forwardMICROSOFT SQL SERVER ONLY CURSOR T-SQL Obtain the name and credit limit of the customer whose number currently is stored in I_CUSTOMER_NUM. Place these values in the variables I_CUSTOMER_NAME and I_CREDIT_LIMIT, respectively. Output the content of I_CUSTOMER_NAME and I_CREDIT_LIMIT.arrow_forwardWhat use cases are best suited for the CROSS APPLY function in SQL?arrow_forward
- SQL- StayWell’s maintenance team is working on the staffing plan for the month of November 2019 including number of people required in the upcoming month. They need all the service requests with the category of Plumbing (category number 1) and Heating (category number 2), and the next service date within November 2019. You need to collect this information from service requests and send it to the team. To use BETWEEN condition with dates, do not forget to use the CAST function to convert the values to dates such as CAST('2019-01-01' AS DATE).arrow_forwardHow to create a query in SQL developer (oracle) to: Display Department_id, Job_id, the Average salary for this combination under alias Average Dept/Job Pay and the Lowest salary for this combination as well under alias Lowest Dept/Job Pay, but only if that Lowest Pay falls in the range $5000 - $15000. Exclude Vice Presidents from this query and departments IT and SALES as well. Sort the output according to the Department_id and then by Job_id. You need to use only the Subquery method (NO joins allowed).arrow_forwardWrite an SQL query using the AND operator that show all orders shoppedon April 1, 2009 shipped to the state of Floridaarrow_forward
- Several new built-in operations are available in SQL;2008. To simplify, just enumerate the four (4) applications.arrow_forwardHow do you compose a subquery in SQL where you are searching for the most common value in one column for a specific value from another column (i.e. looking for the down where most penalties occur --> down is a column and PlayType is a column with penalties as a value). The columns are in the same table.arrow_forwardHow can the DATEDIFF function be used to calculate the time difference between two dates in SQL?arrow_forward
- In what situations might the SOUNDEX function be useful in SQL when querying text data?arrow_forwardBy using this table answer this question in SQL : Write a SQL query, which shows a list of all employees last name, their department names and their department city where that department is located from the employees table. If an employee does not belong to a department, then their department number and department name should show as “N/A” and their department city should show up as “No City info Found”. MAKE SURE you have all the employees displayed including the employees who do not have a department.arrow_forwardWrite a query in SQL code for: "List the book categories and the average book price of each category." Tablename is "BOOKS" and column names are: ISBN TITLE PUBDATE PUBID COST RETAIL DISCOUNT CATEGORYarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY