Click here to Skip to main content
15,903,012 members
Home / Discussions / Database
   

Database

 
QuestionRewrite sql for Oracle and MySQL? Pin
devvvy20-Mar-09 1:12
devvvy20-Mar-09 1:12 
AnswerRe: Rewrite sql for Oracle and MySQL? Pin
Ashfield20-Mar-09 2:13
Ashfield20-Mar-09 2:13 
QuestionCan Microsoft SQL server work with Windows Vista home basic? Pin
RogerLum19-Mar-09 15:47
RogerLum19-Mar-09 15:47 
AnswerRe: Can Microsoft SQL server work with Windows Vista home basic? Pin
N a v a n e e t h19-Mar-09 20:31
N a v a n e e t h19-Mar-09 20:31 
QuestionCalculations Pin
Terick19-Mar-09 9:32
Terick19-Mar-09 9:32 
AnswerRe: Calculations Pin
David Mujica19-Mar-09 10:25
David Mujica19-Mar-09 10:25 
AnswerBad group Pin
David Mujica19-Mar-09 10:31
David Mujica19-Mar-09 10:31 
AnswerRe: Calculations Pin
Isaac Gordon21-Mar-09 2:09
Isaac Gordon21-Mar-09 2:09 
You Not Grouping Properly
SELECT
P.ProjectID, P.userID, P.startDate, P.enddate, C.quarter,P.Cost, P.percent,
COUNT(C.date) AS totalDays, ((percent/100)*COUNT(C.date)*Cost*8) AS totalcost

FROM Project AS P INNER JOIN Calendar AS C ON Calendar.date >P.startDate AND Calendar.date <=
P.enddate
WHERE (C.isWeekday =1) AND (C.isHoliday=0)
GROUP BY P.ProjectID, P.userID, P.startDate, P.enddate, C.quarter,P.Cost, P.percent

ORDER BY P.ProjectID

You Have No Need To It totalDays,totalCost in Group By
QuestionProblem while importing the data into sql server 2005 . Pin
Pankaj Garg19-Mar-09 8:05
Pankaj Garg19-Mar-09 8:05 
AnswerRe: Problem while importing the data into sql server 2005 . Pin
knagnayak30-Mar-09 1:02
knagnayak30-Mar-09 1:02 
QuestionCounting fields Pin
stevemarsh9919-Mar-09 8:05
stevemarsh9919-Mar-09 8:05 
AnswerRe: Counting fields Pin
Blue_Boy19-Mar-09 8:35
Blue_Boy19-Mar-09 8:35 
AnswerRe: Counting fields Pin
Seren Singh20-Mar-09 1:09
Seren Singh20-Mar-09 1:09 
AnswerRe: Counting fields Pin
Seren Singh20-Mar-09 1:14
Seren Singh20-Mar-09 1:14 
GeneralRe: Counting fields Pin
Blue_Boy20-Mar-09 4:55
Blue_Boy20-Mar-09 4:55 
QuestionMaking Decisions in T-SQL??? Pin
Seren Singh19-Mar-09 5:33
Seren Singh19-Mar-09 5:33 
Answersp_help Pin
David Mujica19-Mar-09 6:22
David Mujica19-Mar-09 6:22 
GeneralRe: sp_help Pin
Seren Singh19-Mar-09 20:01
Seren Singh19-Mar-09 20:01 
AnswerRe: Making Decisions in T-SQL??? Pin
Seren Singh20-Mar-09 1:01
Seren Singh20-Mar-09 1:01 
QuestionSQL '#define' statement Pin
RChin19-Mar-09 4:21
RChin19-Mar-09 4:21 
AnswerDynamic SQL Pin
David Mujica19-Mar-09 4:40
David Mujica19-Mar-09 4:40 
AnswerRe: SQL '#define' statement Pin
Eddy Vluggen19-Mar-09 5:19
professionalEddy Vluggen19-Mar-09 5:19 
QuestionCalculating a number in a query... Pin
stevemarsh9919-Mar-09 3:35
stevemarsh9919-Mar-09 3:35 
Questionimport csv - xls Pin
AndyInUK18-Mar-09 23:53
AndyInUK18-Mar-09 23:53 
AnswerRe: import csv - xls Pin
Jason Lepack (LeppyR64)19-Mar-09 2:08
Jason Lepack (LeppyR64)19-Mar-09 2:08 

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.