Click here to Skip to main content
15,892,517 members
Home / Discussions / Database
   

Database

 
GeneralRe: Reading Columns Pin
anup keshari30-Mar-09 22:02
anup keshari30-Mar-09 22:02 
AnswerRe: Reading Columns Pin
anup keshari30-Mar-09 22:33
anup keshari30-Mar-09 22:33 
GeneralRe: Reading Columns Pin
ffowler31-Mar-09 2:05
ffowler31-Mar-09 2:05 
QuestionLooking for a Web/SQL reporting subsystem Pin
Max Stayner30-Mar-09 9:47
Max Stayner30-Mar-09 9:47 
AnswerRe: Looking for a Web/SQL reporting subsystem Pin
Mycroft Holmes30-Mar-09 21:45
professionalMycroft Holmes30-Mar-09 21:45 
QuestionSumming Amount by Group field Pin
BijayaSharma30-Mar-09 9:36
BijayaSharma30-Mar-09 9:36 
AnswerRe: Summing Amount by Group field Pin
Anubhava Dimri31-Mar-09 1:09
Anubhava Dimri31-Mar-09 1:09 
GeneralRe: Summing Amount by Group field Pin
BijayaSharma31-Mar-09 4:19
BijayaSharma31-Mar-09 4:19 
Thank you Anubhava,


This is my Group By Query :

SELECT Proposal.Title, Agency.AID, Proposal.Type, Role.PersonID, Role.RoleTypeID, Proposal.SID, Div.IID, Institutions.IName, Institutions.Regional, Sum(Proposal.Amount) AS SumOfAmount, Proposal.DateSubmitted
FROM ((Proposal LEFT JOIN Agency ON Proposal.PID = Agency.PID) LEFT JOIN (Institutions RIGHT JOIN Div ON Institutions.IID = Div.IID) ON Proposal.PID = Div.PID) LEFT JOIN (Contact RIGHT JOIN Role ON Contact.PersonID = Role.PersonID) ON Proposal.PID = Role.PID
GROUP BY Proposal.Title, Agency.AID, Proposal.Type, Role.PersonID, Role.RoleTypeID, Proposal.SID, Div.IID, Institutions.IName, Institutions.Regional, Proposal.DateSubmitted
HAVING (((Role.RoleTypeID)=3 Or (Role.RoleTypeID)=4 Or (Role.RoleTypeID)=6) AND ((Proposal.SID)=1 Or (Proposal.SID)=2) AND ((Institutions.Regional)=Yes)) OR (((Role.RoleTypeID)=3 Or (Role.RoleTypeID)=4 Or (Role.RoleTypeID)=6) AND ((Proposal.SID)=1 Or (Proposal.SID)=2) AND ((Institutions.IName) Like "*TEES*" Or (Institutions.IName) Like "*COE*"));

Still result remains the same

Title Inst Type Person Role SID SumOfAmount
A Del ATE Lee PI Funded 500,000
A Del ATE Juli PI Funded 500,000
A Del ATE Kris Co-PI Funded 500,000

B Del NSF Kris PI Funded 900,000
B Del NSF Kris PI Funded 900,000
B Del NSF Kris co-PI Funded 900,000

c comp ATE Kris PI N-Funded 1,200,000
c comp ATE Kris PI N-Funded 1,200,000

At Institute footer cntains Text feild =sum(SumOfAmount) for Del= ($500,000 *3) + ($900,000 * 3) = $ 4200,000
for comp= $2400,000
Where As I want this
By Inst = Del = 14,00,000
and Inst= comp = 1,200,000

Thank you
Bijaya
GeneralRe: Summing Amount by Group field Pin
BijayaSharma1-Apr-09 6:28
BijayaSharma1-Apr-09 6:28 
QuestionHow do i display Values Horizonatally In Crystal Reports Pin
Veerkumar Patil30-Mar-09 4:31
Veerkumar Patil30-Mar-09 4:31 
AnswerRe: How do i display Values Horizonatally In Crystal Reports Pin
anup keshari30-Mar-09 4:58
anup keshari30-Mar-09 4:58 
QuestionAbout Database Certifcation Pin
Isaac Gordon30-Mar-09 2:03
Isaac Gordon30-Mar-09 2:03 
AnswerRe: About Database Certifcation Pin
Eddy Vluggen30-Mar-09 3:14
professionalEddy Vluggen30-Mar-09 3:14 
QuestionDeploying SQL Server Pin
kbalias30-Mar-09 1:16
kbalias30-Mar-09 1:16 
AnswerRe: Deploying SQL Server Pin
Vimalsoft(Pty) Ltd30-Mar-09 4:00
professionalVimalsoft(Pty) Ltd30-Mar-09 4:00 
AnswerRe: Deploying SQL Server Pin
Mycroft Holmes30-Mar-09 21:56
professionalMycroft Holmes30-Mar-09 21:56 
QuestionHow to run exe file using xp_cmdshell Pin
Krushna Sahu30-Mar-09 0:08
Krushna Sahu30-Mar-09 0:08 
AnswerRe: How to run exe file using xp_cmdshell Pin
knagnayak30-Mar-09 0:15
knagnayak30-Mar-09 0:15 
GeneralRe: How to run exe file using xp_cmdshell Pin
Krushna Sahu30-Mar-09 2:55
Krushna Sahu30-Mar-09 2:55 
QuestionSQL Server Memory Usage Problem Pin
VikashGohil29-Mar-09 22:16
VikashGohil29-Mar-09 22:16 
AnswerRe: SQL Server Memory Usage Problem Pin
Lambin6-Apr-09 18:24
Lambin6-Apr-09 18:24 
QuestionService Account - Account Name Pin
sawerr29-Mar-09 6:57
sawerr29-Mar-09 6:57 
Questionsql noob question on COUNT Pin
Eytukan29-Mar-09 4:12
Eytukan29-Mar-09 4:12 
AnswerRe: sql noob question on COUNT Pin
ed575629-Mar-09 4:24
ed575629-Mar-09 4:24 
GeneralRe: sql noob question on COUNT Pin
Eytukan29-Mar-09 4:29
Eytukan29-Mar-09 4:29 

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.