Click here to Skip to main content
15,915,019 members
Home / Discussions / Database
   

Database

 
GeneralRe: Reading Columns Pin
Jörgen Andersson30-Mar-09 23:37
professionalJörgen Andersson30-Mar-09 23:37 
AnswerRe: Reading Columns Pin
anup keshari30-Mar-09 21:47
anup keshari30-Mar-09 21:47 
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 
Hi There



I need to create report that needs to group by "[B]status[/B]= Funded and Not funded" , "[B]Institute[/B]" body is title

I need to find the [B]Total amount [/B] that Institute had earned for different Research Proposals. In One Proposal there could be Group of people involved



I am creating Report using this Query

SELECT Proposal.Title, Agency.AID, Proposal.Type, Role.PersonID, Role.RoleTypeID, Proposal.SID, Div.IID, Institutions.IName, Institutions.Regional, Proposal.Amount, 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
WHERE (((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*"));
My result is some thing like this

Title Inst Type Person Role SID Amount
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

I want the total By Inst = Del = 14,00,000
and Inst= comp = 1,200,000

I have created the group by Institute, added text box at the footer of Institute and assigned = Sum([Amount]) to the control source of that text box. I am not sure Why I am not getting the result


Thank you
Bijaya
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 
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 

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.