Hi,
I notice that Visual Studio 2013 still doesn't recognize hlsl files inside a C# project, so the situation remains that I have to include a C++ project in all of my solutions to compile the hlsl shader files.
When will this be fixed ?
Hi,
I notice that Visual Studio 2013 still doesn't recognize hlsl files inside a C# project, so the situation remains that I have to include a C++ project in all of my solutions to compile the hlsl shader files.
When will this be fixed ?
Hi Gavin,
I have no experience on hlsl file and don’t know when repair will. But do not be disappointed. We could use UserVoice to post your requirement. Please refer to the following link. http://visualstudio.uservoice.com/forums/121579-visual-studio/category/31481-net.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Group by requires aggregate function (AVG, SUM, ...) and chances are you didn't use any aggregate function that's why you're getting an error.
SELECT columnName, aggregateFunction(columnName)
FROM tableName
WHERE columnName ...
GROUP BY columnName;
A couple ideas:
SELECT [SystemNum]
,[PurchaseDescription]
,[ModelNumber]
,[Brand]
,SUM([Quantity]) as Quantity
,SUM([Cost]) as Cost
,SUM(Quantity*Cost) AS 'Amount'
FROM [Equipment].[dbo].[SystemsComponents]
group by [SystemNum]
,[PurchaseDescription]
,[ModelNumber]
,[Brand]
SELECT [ID]
,[SystemNum]
,[PurchaseDescription]
,[ModelNumber]
,[Brand]
,[Quantity]
,[Cost]
,SUM(Quantity*Cost)
OVER (Partition by [SystemNum]) AS 'Amount'
FROM [Equipment].[dbo].[SystemsComponents]
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com
SELECT [ID]
,[SystemNum]
,[PurchaseDescription]
,[ModelNumber]
,[Brand]
,[Quantity]
,[Cost]
,Quantity*Cost AS 'Amount'
,SUM(Quantity*Cost) AS 'Total'
FROM [Equipment].[dbo].[SystemsComponents]
GROUP BY
[SystemNum]
Msg 8120, Level 16, State 1, Line 2
Column 'Equipment.dbo.SystemsComponents.ID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
why767
Two tips:
The fact that a selection of one table takes up to 15 seconds, and that of another table also takes up to 15 seconds, is no guarantee that if those results are joined together that the performance is anywhere close to 30 seconds. On the other hand, eliminating some joins from the query might point to where your indexes are not very useful.
Gert-Jan
Hi GDov,
In Reporting Services, once we add a row (column) next to an existing group, the row will be automatically added based on that group. Because groups are organized as members of group hierarchies. Row group and column group hierarchies are identical structures on different axes. Think of row groups as expanding down the page and column groups as expanding across the page. So in your scenario, if weekday field is above the projects, we cannot make that child group grouped by P1 (the fifth row in your screenshot) to be displayed as you expect. This is by design.
Based on my further research, if there is no other group act as parent group of weekday field, we can refer to the steps below to work around this issue:
The following screenshot is for your reference:
If you have any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support