Click here to Skip to main content
16,006,001 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to deploy SQL Server Integration Services into SQL Server Pin
Rahithi10-Jan-07 2:42
Rahithi10-Jan-07 2:42 
GeneralDisplaying the datas from the database to the word Document in Visual Studio.Net 2005 Pin
sashirekha9-Jan-07 20:06
sashirekha9-Jan-07 20:06 
GeneralRe: Displaying the datas from the database to the word Document in Visual Studio.Net 2005 Pin
Rahithi10-Jan-07 2:36
Rahithi10-Jan-07 2:36 
QuestionAccessing SQL Server 2005 using HTTP Pin
SSindhu9-Jan-07 18:41
SSindhu9-Jan-07 18:41 
QuestionStored procedure performance Pin
Rahithi9-Jan-07 18:09
Rahithi9-Jan-07 18:09 
AnswerRe: Stored procedure performance Pin
WoutL9-Jan-07 20:43
WoutL9-Jan-07 20:43 
QuestionNeed help with SQL query Pin
Christian Graus9-Jan-07 14:24
protectorChristian Graus9-Jan-07 14:24 
AnswerRe: Need help with SQL query Pin
Colin Angus Mackay9-Jan-07 22:52
Colin Angus Mackay9-Jan-07 22:52 
Christian Graus wrote:
To do that, I seem to need to do group by, which then means I need to specify all my non grouped column names, is that right ?


When you do a GROUP BY only the columns specified in the GROUP BY clause may appear in as a column in the SELECT portion. Anything else must be put into an aggregate function. These don't supply a column name but you can add one by using AS [name] for example:
SELECT [Year], SUM(amount) AS [TotalAmount]
FROM SomeTable
GROUP BY [Year]


Does that help?


Upcoming Scottish Developers events:
* Glasgow: Tell us what you want to see in 2007


My: Website | Blog | Photos

GeneralRe: Need help with SQL query Pin
Christian Graus9-Jan-07 23:31
protectorChristian Graus9-Jan-07 23:31 
GeneralRe: Need help with SQL query Pin
Colin Angus Mackay10-Jan-07 0:22
Colin Angus Mackay10-Jan-07 0:22 
QuestionNeed help with Sql Statement Pin
DMBFiredancer9-Jan-07 13:56
DMBFiredancer9-Jan-07 13:56 
AnswerRe: Need help with Sql Statement Pin
Mark J. Miller9-Jan-07 14:09
Mark J. Miller9-Jan-07 14:09 
GeneralRe: Need help with Sql Statement Pin
Mark J. Miller9-Jan-07 14:10
Mark J. Miller9-Jan-07 14:10 
GeneralRe: Need help with Sql Statement Pin
DMBFiredancer9-Jan-07 14:20
DMBFiredancer9-Jan-07 14:20 
QuestionDatabase Explorer Database Connection Pin
mfcuser9-Jan-07 10:02
mfcuser9-Jan-07 10:02 
AnswerRe: Database Explorer Database Connection Pin
Rob Graham9-Jan-07 11:53
Rob Graham9-Jan-07 11:53 
QuestionTable-value function performance Pin
kmaclean9-Jan-07 9:51
kmaclean9-Jan-07 9:51 
QuestionOpposite of the SQL "IN" statement? Pin
dspyank9-Jan-07 6:17
dspyank9-Jan-07 6:17 
QuestionRe: Opposite of the SQL "IN" statement? Pin
Chris Meech9-Jan-07 6:24
Chris Meech9-Jan-07 6:24 
AnswerRe: Opposite of the SQL "IN" statement? Pin
kmaclean9-Jan-07 11:32
kmaclean9-Jan-07 11:32 
AnswerRe: Opposite of the SQL "IN" statement? Pin
Saud AKhter16-Jan-07 20:22
Saud AKhter16-Jan-07 20:22 
QuestionProcedure with multiple parameters and multiple Select Statements Pin
rodney.fetterolf9-Jan-07 3:48
rodney.fetterolf9-Jan-07 3:48 
AnswerRe: Procedure with multiple parameters and multiple Select Statements Pin
andyharman9-Jan-07 5:29
professionalandyharman9-Jan-07 5:29 
AnswerRe: Procedure with multiple parameters and multiple Select Statements Pin
M.H.1.2.314-Jan-07 21:46
M.H.1.2.314-Jan-07 21:46 
QuestionWhat is "N" in OBJECTPROPERTY(id, N'IsUserTable') = 1) Pin
Nick1977_209-Jan-07 3:06
Nick1977_209-Jan-07 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.