Click here to Skip to main content
15,913,685 members
Home / Discussions / Database
   

Database

 
GeneralRe: Simple Stuff...but I don't know it. Pin
pmarfleet13-Nov-07 9:13
pmarfleet13-Nov-07 9:13 
QuestionBinding Data Dynamically to a label Pin
sindhutiwari13-Nov-07 1:24
sindhutiwari13-Nov-07 1:24 
QuestionNeed to Add a column to the existing table Pin
SelvaKr12-Nov-07 23:48
SelvaKr12-Nov-07 23:48 
AnswerRe: Need to Add a column to the existing table [modified] Pin
joemonvarghese12-Nov-07 23:58
joemonvarghese12-Nov-07 23:58 
GeneralRe: Need to Add a column to the existing table Pin
SelvaKr13-Nov-07 0:39
SelvaKr13-Nov-07 0:39 
GeneralRe: Need to Add a column to the existing table Pin
Paddy Boyd13-Nov-07 1:26
Paddy Boyd13-Nov-07 1:26 
GeneralRe: Need to Add a column to the existing table Pin
jschell13-Nov-07 11:01
jschell13-Nov-07 11:01 
QuestionSum the fields in Windows Forms DataGrid Pin
zvfil00112-Nov-07 23:48
zvfil00112-Nov-07 23:48 
Hi
was wondering if anybody could help me. I was maid stored procedure as following:

USE [Spacva]
GO
/****** Object: StoredProcedure [dbo].[Test] Script Date: 11/13/2007 11:12:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[Test]

(
@START_DATE smalldatetime,
@END_DATE smalldatetime
)

AS
BEGIN

SELECT VOZILA.ID_VOZILA, VOZILA.PROIZVODNI_POGON, VOZILA.NAZIV, VOZILA.TIP, VOZILA.REG,
SUM(TOCENJE.KOL_L) AS Quantity, SUM(TOCENJE.SATI_RADA) AS Hours, SUM(TOCENJE.PROSJEK_L_PO_H) AS Average
FROM VOZILA INNER JOIN
TOCENJE ON VOZILA.ID_VOZILA = TOCENJE.ID_VOZILA
WHERE (TOCENJE.DATUM_UNOSA BETWEEN CONVERT(SMALLDATETIME, @START_DATE, 104) AND CONVERT(SMALLDATETIME, @END_DATE, 104))
GROUP BY VOZILA.ID_VOZILA, VOZILA.PROIZVODNI_POGON, VOZILA.NAZIV, VOZILA.TIP, VOZILA.REG

END

That stored procedure I was include in my Windows C# Project, just drag and drop to Win Form. My question is, how to add footer in established DataGrid, I mean how to add SUM of all selected values from column Quantity to my DataGrid?
I'm new in SQL, Visual .NET, C# so thanks in advance for help!

Zvonimir
AnswerRe: Sum the fields in Windows Forms DataGrid Pin
dhbaer13-Nov-07 9:59
dhbaer13-Nov-07 9:59 
QuestionDifference between nvarchar and char Pin
John.L.Ponratnam12-Nov-07 22:46
John.L.Ponratnam12-Nov-07 22:46 
AnswerRe: Difference between nvarchar and char Pin
John-ph12-Nov-07 22:57
John-ph12-Nov-07 22:57 
GeneralRe: Difference between nvarchar and char Pin
venkat vuppala12-Nov-07 23:29
venkat vuppala12-Nov-07 23:29 
QuestionSql Server 2000 Debugging option Pin
joemonvarghese12-Nov-07 22:03
joemonvarghese12-Nov-07 22:03 
AnswerRe: Sql Server 2000 Debugging option Pin
Adeel Chaudhry12-Nov-07 23:32
Adeel Chaudhry12-Nov-07 23:32 
GeneralRe: Sql Server 2000 Debugging option Pin
joemonvarghese13-Nov-07 1:48
joemonvarghese13-Nov-07 1:48 
QuestionDate Problem : Urgent Pin
Suryanairg12-Nov-07 22:02
Suryanairg12-Nov-07 22:02 
AnswerRe: Date Problem : Urgent [modified] Pin
Pete O'Hanlon12-Nov-07 22:20
mvePete O'Hanlon12-Nov-07 22:20 
GeneralRe: Date Problem : Urgent Pin
Adeel Chaudhry12-Nov-07 22:41
Adeel Chaudhry12-Nov-07 22:41 
AnswerRe: Date Problem : Urgent Pin
Adeel Chaudhry12-Nov-07 22:26
Adeel Chaudhry12-Nov-07 22:26 
AnswerRe: Date Problem : Urgent Pin
joemonvarghese12-Nov-07 22:28
joemonvarghese12-Nov-07 22:28 
QuestionHow to filter a number Pin
matjame12-Nov-07 21:11
matjame12-Nov-07 21:11 
AnswerRe: How to filter a number Pin
Adeel Chaudhry12-Nov-07 22:44
Adeel Chaudhry12-Nov-07 22:44 
GeneralRe: How to filter a number Pin
matjame12-Nov-07 22:48
matjame12-Nov-07 22:48 
GeneralRe: How to filter a number Pin
Adeel Chaudhry12-Nov-07 22:57
Adeel Chaudhry12-Nov-07 22:57 
GeneralRe: How to filter a number Pin
matjame12-Nov-07 23:09
matjame12-Nov-07 23:09 

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.