首页 \ 问答 \ 员工的平均工资超过平均工资但低于经理的工资?(Staff with more than Average Salary but less then that of a Manager? (SQL))

员工的平均工资超过平均工资但低于经理的工资?(Staff with more than Average Salary but less then that of a Manager? (SQL))

你好,我在这里做什么不知道做什么是SQL的初学者,我已经学会了如何显示所有薪水超过平均水平的人。

我现在需要向所有薪水大于平均值但低于主管的人员展示。

这是我输入的代码,以使工资大于平均值。

select first_name, last_name, salary
from staff
where salary >(select avg(salary) from staff);

这是第一部分已经完成,但我不知道如何将Salarys设法为:人们的工资低于主管的工资但高于平均工资。

表包含:

First_Name,Last_Name,Role,Salary


Hello I am at a loss what to do here being quite the beginner at SQL , I have already calcalated how to show all people that have a Salary which is more than average.

I now need to show all people with a Salary greater than the Average but less than that of the Supervisor.

Here is the Code I entered to get the Salary greater than Average.

select first_name, last_name, salary
from staff
where salary >(select avg(salary) from staff);

This is the first section done but I don't know how to calcalate Salarys for if: People have a salary less then that of a supervisor but more than the Average.

The Tables contains:

First_Name, Last_Name, Role, Salary


原文:https://stackoverflow.com/questions/43646922
更新时间:2022-03-21 07:03

最满意答案

安装您希望使用的.NET Framework的开发包,然后https://www.microsoft.com/en-us/download/details.aspx?id=42637

  1. 在“解决方案资源管理器”中,打开要更改的项目的快捷菜单,然后选择“属性”。

  2. 在属性窗口的左列中,选择“应用程序”选项卡。

  3. 在“目标框架”列表中,选择所需的版本。

  4. 在出现的验证对话框中,选择是按钮。 该项目卸载。 重新加载时,它会以您刚刚选择的.NET Framework版本为目标。

您应该知道某些功能在以后的版本中可能会或可能不会在更改为不同版本的.NET框架时修复它们

根据我的经验,我通常在重启后在VS中显示新版本的.NET Framework。 我现在正在使用VS2013


Install the developer pack of the .NET Framework you wish to use then https://www.microsoft.com/en-us/download/details.aspx?id=42637:

  1. In Solution Explorer, open the shortcut menu for the project that you want to change, and then choose Properties.

  2. In the left column of the properties window, choose the Application tab.

  3. In the Target Framework list, choose the version that you want.

  4. In the verification dialog box that appears, choose the Yes button. The project unloads. When it reloads, it targets the .NET Framework version that you just chose.

You should know that certain features might or might not be available in a later version and you might need to fix them when changing to a different version of the .NET framework

In my experience, I usually have a new version of the .NET Framework displayed in VS after a restart. I am using VS2013 at the moment

相关问答

更多
  • 如果您的项目属性表明您的目标是.NET 4.5.2,那么它的构建将与.NET 4.5.2及更高版本一起使用。 也许你对CLR和Framework版本感到困惑。 .NET 4.x(任何)使用CLR(即公共语言运行时 )4.0。 检查.NET Framework版本和依赖项以获取有关此主题的更多详细信息。 If your project properties say you're targeting .NET 4.5.2, then it's being built to work with .NET 4.5. ...
  • 确保已安装Visual Studio 2013的最新更新,即Update 4.如果已安装,则执行另一次安装,但选择repair 。 必要时重新启动,然后重试。 Make sure you have installed the latest update to Visual Studio 2013 which is Update 4. If it is installed, then do another install but select repair. Restart if necessary and ...
  • 通过从以前的答案中整理各种各样的内容,我终于可以获得匹配的.Net Framework 4.6 和 Targeting Pack,并且一旦安装了v4.6框架就可以看作是Visual Studio 2012的可用目标框架。 我从http://www.microsoft.com/en-us/download/details.aspx?id=48130下载了框架4.6(NDP46-KB3045557-x86-x64-AllOS-ENU.exe)的独立安装程序,并安装首先。 然后我从https://www.visu ...
  • 您需要安装Microsoft .NET Framework 4.5.2开发包 这包含以下组件(由我强调的重点): .NET Framework 4.5.2 .NET Framework 4.5.2多目标包:包含构建面向.NET Framework 4.5.2的应用程序所需的参考程序集 .NET Framework 4.5.2语言包 .NET Framework 4.5.2多目标包语言包:包含IntelliSense文件,以在通过Visual Studio和第三方IDE构建面向.NET Framework 4 ...
  • 不,您将项目的目标平台选择与您在计算机上安装的.NET的实际版本混淆。 您没有 4.5或4.5.1,4.5.2安装程序替换了这些版本。 更改项目设置无效,您仍然使用机器上的版本。 只有你自己,4.5.2。 项目设置仅适用于将运行程序的其他计算机。 当您以4.5.2为目标时,那些机器必须安装4.5.2。 而你的程序不会运行。 这几乎从来没用过,只针对您需要的版本。 使用4.5总是足够好,4.5.1和4.5.2中的api添加非常适中。 所以你仍然看到AVE发生,没有任何改变是完全正常的。 No, you are ...
  • 如果您真的找不到问题所在,那么创建一个新项目并将文件移动到该项目。 或者,您可以对4.5进行全局搜索,以查看是否需要进行一些额外调整。 还要检查引用和配置文件。 或许你有点搞砸了你的电脑。 If you really cannot find what is the problem, then create a new project and move files to that project. Alternatively, you can do a global search for 4.5 to see ...
  • 我完全忘记了这个问题,刚收到1000张视图的徽章,我觉得应该更新了。 正如Matt在他的评论中指出的那样,没有任何版本的.Net可以保证在XP上安装,而且Windows XP不支持4.5这意味着我需要更改我的框架,然后确保我选择的版本在机器上可用安装我的申请。 .Net兼容性图表: http : //msdn.microsoft.com/en-us/library/bb822049(v = vs.110).aspx 一旦我切换到.Net 4.0,我就启用了为安装我的应用程序的机器自动分发框架。 Micros ...
  • 安装您希望使用的.NET Framework的开发包,然后https://www.microsoft.com/en-us/download/details.aspx?id=42637 : 在“解决方案资源管理器”中,打开要更改的项目的快捷菜单,然后选择“属性”。 在属性窗口的左列中,选择“应用程序”选项卡。 在“目标框架”列表中,选择所需的版本。 在出现的验证对话框中,选择是按钮。 该项目卸载。 重新加载时,它会以您刚刚选择的.NET Framework版本为目标。 您应该知道某些功能在以后的版本中可能会或 ...
  • 如果为应用程序设置.NET Framework 4.5.2,则Microsoft声明的“系统要求”部分也适用于您, https://www.microsoft.com/en-ca/download/details.aspx?id=42642 系统要求 支持的操作系统 Windows 7 Service Pack 1,Windows 8,Windows 8.1,Windows Server 2008 R2 SP1,Windows Server 2008 Service Pack 2,Windows Serve ...
  • 我在这个答案中运行了命令,它解决了我的问题: 1.devenv.exe / safemode 2.devenv.exe / resetskippkgs 3.devenv.exe / installvstemplates 4.devenv.exe / resetsettings 5.devenv.exe / resetuserdata I ran the commands in this answer and it solved my problem: 1.devenv.exe /safemode 2.dev ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)