员工的平均工资超过平均工资但低于经理的工资?(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
最满意答案
安装您希望使用的.NET Framework的开发包,然后https://www.microsoft.com/en-us/download/details.aspx?id=42637 :
在“解决方案资源管理器”中,打开要更改的项目的快捷菜单,然后选择“属性”。
在属性窗口的左列中,选择“应用程序”选项卡。
在“目标框架”列表中,选择所需的版本。
在出现的验证对话框中,选择是按钮。 该项目卸载。 重新加载时,它会以您刚刚选择的.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:
In Solution Explorer, open the shortcut menu for the project that you want to change, and then choose Properties.
In the left column of the properties window, choose the Application tab.
In the Target Framework list, choose the version that you want.
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中定位.NET Framework 4.5(Unable to target .NET Framework 4.5 in Visual Studio 2013)[2022-08-21]
确保已安装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 ...
-
如何在Visual Studio中选择.NET 4.5.2作为目标框架(How to select .NET 4.5.2 as a target framework in Visual Studio)[2023-03-27]
您需要安装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 ...