早教吧作业答案频道 -->英语-->
microsoftaccess算selecttop运行不了,1.Prepareareportthatidentifiesthefivemostexpensivebicycles.Thereportshouldlistthebicyclesindescendingorderfrommostexpensivetoleastexpensive,thequantityonhandforeachmandthemarku
题目详情
microsoft access 算select top运行不了,
1.Prepare a report that identifies the five most expensive bicycles.The report should list the bicycles in descending order from most expensive to least expensive,the quantity on hand for eachm and the markup percentage for each.
要求是做一个报告,报告中要求有商品(自行车)从最贵到最便宜降序排列,还要有其他表中元素,这些我都能做出查询,但我做不出在这个基础上的查询从30个自行车仲只选五个最贵的,我知道应该用select top,但是混合起来不会用.目前sql如下:
SELECT [Product Table].[Product Name],[Product Table].[Selling Price],[Product Table].[Quantity on Hand],([Selling Price]-[Purchase Cost])/[Purchase Cost] AS [markup percentage]
FROM [Product Table]
ORDER BY [Product Table].[Selling Price] DESC;
求改正~
那如果是按quantity on hand来排前五个呢?按([Selling Price]-[Purchase Cost])/[Purchase Cost] AS [markup percentage]排前五呢?能做么?
回头一共给你加20分~
1.Prepare a report that identifies the five most expensive bicycles.The report should list the bicycles in descending order from most expensive to least expensive,the quantity on hand for eachm and the markup percentage for each.
要求是做一个报告,报告中要求有商品(自行车)从最贵到最便宜降序排列,还要有其他表中元素,这些我都能做出查询,但我做不出在这个基础上的查询从30个自行车仲只选五个最贵的,我知道应该用select top,但是混合起来不会用.目前sql如下:
SELECT [Product Table].[Product Name],[Product Table].[Selling Price],[Product Table].[Quantity on Hand],([Selling Price]-[Purchase Cost])/[Purchase Cost] AS [markup percentage]
FROM [Product Table]
ORDER BY [Product Table].[Selling Price] DESC;
求改正~
那如果是按quantity on hand来排前五个呢?按([Selling Price]-[Purchase Cost])/[Purchase Cost] AS [markup percentage]排前五呢?能做么?
回头一共给你加20分~
▼优质解答
答案和解析
SELECT Top 5 Product Name, Selling Price, Quantity on Hand, (Selling Price-Purchase Cost)/Purchase Cost AS markup percentage
FROM Product Table
ORDER BY Selling Price DESC
FROM Product Table
ORDER BY Selling Price DESC
看了 microsoftacces...的网友还看了以下:
()()r()()s()e()()()a()()e()r()()s()e()e()a()()e()r 2020-03-31 …
连字成词(英语)l u o e b s r u s r e t o s w a e s r t e 2020-05-14 …
写出下列算法的功能.StatusPreOrderTraverse(BiTreeT,Status(* 2020-05-17 …
帮忙求下这几个的拉氏反变换!(1)1-e^-s(2)1-e^-s/s+2(3)1-e^-2s/s( 2020-05-23 …
给定关系R(A,B,C,D)和关系S(C,D,E),对其进行自然连接运算R??s后的属性列为()个; 2020-05-26 …
括号里面填字母!1.he()()e()()()e()()()()e()()()()()e()()( 2020-06-06 …
重组字母为单词e,e,r,w,he,e,r,t,he,e,se,a,sw,m,s,ir,t,p,i 2020-07-09 …
一.看一看,将下列字母组成单词.1.t,o,e,f,n2.c,s,e,a,b,u,e3.l,e,p, 2020-10-31 …
英语:下1.将下联打乱的字母组成单词,并写出汉语意思1.a,e,h,g,c,n[]2.e,i,s,t 2020-12-10 …
一个很简答的拉普拉斯变换数学问题请问,t[u(t)-u(t-a)],是如何计算出3个函数的,这个式子 2020-12-31 …