Click here to Skip to main content
15,923,376 members
Home / Discussions / Database
   

Database

 
GeneralRe: Returning more than one value from a stored procedure? Pin
Elina Blank25-Oct-06 2:19
sitebuilderElina Blank25-Oct-06 2:19 
AnswerRe: Returning more than one value from a stored procedure? Pin
Elina Blank25-Oct-06 2:18
sitebuilderElina Blank25-Oct-06 2:18 
AnswerRe: Returning more than one value from a stored procedure? Pin
Scott Serl25-Oct-06 8:00
Scott Serl25-Oct-06 8:00 
GeneralRe: Returning more than one value from a stored procedure? Pin
Belfast Child30-Oct-06 22:43
Belfast Child30-Oct-06 22:43 
QuestionCalculated Field Pin
Dayekh25-Oct-06 0:00
Dayekh25-Oct-06 0:00 
AnswerRe: Calculated Field Pin
Colin Angus Mackay25-Oct-06 0:57
Colin Angus Mackay25-Oct-06 0:57 
GeneralRe: Calculated Field Pin
Dayekh25-Oct-06 1:45
Dayekh25-Oct-06 1:45 
AnswerRe: Calculated Field Pin
Eric Dahlvang25-Oct-06 3:25
Eric Dahlvang25-Oct-06 3:25 
What is the relationship between Project and Request? I assume there is a ProjectID field in the Request table.

select *,  (select count(*) as CompletedRequests 
			from request
			where request.projectid = project.projectid 
			and Progress = 'Completed'
			group by ProjectID) / cast(TotalRequests as decimal) as PercentageOfProgress 
from project left join (select count(*) as TotalRequests, projectid 
			from request 
			group by ProjectID) as tbl
on project.projectid = tbl.projectid




--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

GeneralRe: Calculated Field Pin
Dayekh25-Oct-06 4:29
Dayekh25-Oct-06 4:29 
QuestionMigrating db app from IIS5 to IIS6 Pin
MikeyV124-Oct-06 23:50
MikeyV124-Oct-06 23:50 
QuestionTransactions between layers. Pin
Luis C. Lopez24-Oct-06 9:22
Luis C. Lopez24-Oct-06 9:22 
AnswerRe: Transactions between layers. Pin
Colin Angus Mackay24-Oct-06 22:31
Colin Angus Mackay24-Oct-06 22:31 
AnswerRe: Transactions between layers. Pin
Luis C. Lopez25-Oct-06 6:05
Luis C. Lopez25-Oct-06 6:05 
QuestionSearch Security Pin
tmoney10124-Oct-06 2:17
tmoney10124-Oct-06 2:17 
AnswerRe: Search Security Pin
Colin Angus Mackay24-Oct-06 3:38
Colin Angus Mackay24-Oct-06 3:38 
AnswerRe: Search Security Pin
Pete O'Hanlon26-Oct-06 9:05
mvePete O'Hanlon26-Oct-06 9:05 
QuestionOne large table vs. several smaller tables Pin
Joe Smith IX24-Oct-06 0:25
Joe Smith IX24-Oct-06 0:25 
AnswerRe: One large table vs. several smaller tables Pin
Jim Conigliaro24-Oct-06 4:48
Jim Conigliaro24-Oct-06 4:48 
GeneralRe: One large table vs. several smaller tables Pin
Joe Smith IX25-Oct-06 8:49
Joe Smith IX25-Oct-06 8:49 
GeneralRe: One large table vs. several smaller tables Pin
Jim Conigliaro25-Oct-06 9:33
Jim Conigliaro25-Oct-06 9:33 
GeneralRe: One large table vs. several smaller tables Pin
Joe Smith IX26-Oct-06 2:21
Joe Smith IX26-Oct-06 2:21 
GeneralRe: One large table vs. several smaller tables Pin
Jim Conigliaro26-Oct-06 2:33
Jim Conigliaro26-Oct-06 2:33 
QuestionGathering Data and Calculating??? Pin
nit11523-Oct-06 14:50
nit11523-Oct-06 14:50 
AnswerRe: Gathering Data and Calculating??? Pin
Edbert P23-Oct-06 15:01
Edbert P23-Oct-06 15:01 
AnswerRe: Gathering Data and Calculating??? Pin
Rob Graham23-Oct-06 15:03
Rob Graham23-Oct-06 15:03 

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.