Click here to Skip to main content
15,899,679 members
Home / Discussions / Database
   

Database

 
GeneralRe: Timeout expired Problem ???? Pin
devboycpp20-Oct-06 3:09
devboycpp20-Oct-06 3:09 
GeneralRe: Timeout expired Problem ???? Pin
Michael P Butler22-Oct-06 8:52
Michael P Butler22-Oct-06 8:52 
QuestionCrystal Report not showing any Data Pin
MullahOmer19-Oct-06 23:18
MullahOmer19-Oct-06 23:18 
QuestionTesting purpose Pin
rahuljosh007200019-Oct-06 22:33
rahuljosh007200019-Oct-06 22:33 
AnswerRe: Testing purpose Pin
Colin Angus Mackay19-Oct-06 23:25
Colin Angus Mackay19-Oct-06 23:25 
GeneralRe: Testing purpose Pin
Jerry Hammond20-Oct-06 8:35
Jerry Hammond20-Oct-06 8:35 
QuestionQuery Sloving Problem Pin
Syed Shahid Hussain19-Oct-06 22:06
Syed Shahid Hussain19-Oct-06 22:06 
AnswerRe: Query Sloving Problem Pin
andyharman27-Oct-06 3:03
professionalandyharman27-Oct-06 3:03 
Hi Syed

You need to use an outer join:
SELECT AccountTypes.ATypeID, AccountTypes.AType, Accounts.OpDr +<br />
  SUM([Transaction].Debit) AS TDr, Accounts.OpCr +<br />
  SUM([Transaction].Credit) AS TCr<br />
FROM Accounts<br />
LEFT OUTER JOIN [Transaction]<br />
 ON Accounts.ATypeID = [Transaction].ATypeID<br />
 AND Accounts.AC = [Transaction].AC <br />
INNER JOIN AccountTypes<br />
 ON Accounts.ATypeID = AccountTypes.ATypeID<br />
GROUP BY Accounts.OpDr, Accounts.OpCr, AccountTypes.AType, AccountTypes.ATypeID


Inner join only reports results where both of the source tables have matching rows - so you would only see accounts that have one-or-more transactions. Using an outer join means that you can see accounts that have no transaction too.

Hope this helps.
Andy
QuestionHow to shift My Sql data to Sql Server Pin
srilu nagalla19-Oct-06 20:49
srilu nagalla19-Oct-06 20:49 
AnswerRe: How to shift My Sql data to Sql Server Pin
Edbert P19-Oct-06 21:11
Edbert P19-Oct-06 21:11 
Questionwhere can find A CADOConnection CLASS package Pin
swgzj19-Oct-06 17:56
swgzj19-Oct-06 17:56 
AnswerRe: where can find A CADOConnection CLASS package Pin
S Douglas23-Oct-06 0:58
professionalS Douglas23-Oct-06 0:58 
GeneralSqlParameter was expected, but it's been given! Pin
Ed.Poore19-Oct-06 13:28
Ed.Poore19-Oct-06 13:28 
GeneralRe: SqlParameter was expected, but it's been given! Pin
Colin Angus Mackay19-Oct-06 13:43
Colin Angus Mackay19-Oct-06 13:43 
GeneralRe: SqlParameter was expected, but it's been given! Pin
Ed.Poore19-Oct-06 14:00
Ed.Poore19-Oct-06 14:00 
GeneralRe: SqlParameter was expected, but it's been given! Pin
Ed.Poore19-Oct-06 14:11
Ed.Poore19-Oct-06 14:11 
GeneralRe: SqlParameter was expected, but it's been given! Pin
Colin Angus Mackay19-Oct-06 14:28
Colin Angus Mackay19-Oct-06 14:28 
GeneralRe: SqlParameter was expected, but it's been given! Pin
Ed.Poore19-Oct-06 22:45
Ed.Poore19-Oct-06 22:45 
GeneralRe: SqlParameter was expected, but it's been given! Pin
Ed.Poore22-Oct-06 21:39
Ed.Poore22-Oct-06 21:39 
GeneralRe: SqlParameter was expected, but it's been given! Pin
Mairaaj Khan20-Oct-06 0:07
professionalMairaaj Khan20-Oct-06 0:07 
GeneralRe: SqlParameter was expected, but it's been given! Pin
Ed.Poore21-Oct-06 7:55
Ed.Poore21-Oct-06 7:55 
QuestionHow to fill null data in control froms in VB.Net Pin
rehan_cop19-Oct-06 7:09
rehan_cop19-Oct-06 7:09 
AnswerRe: How to fill null data in control froms in VB.Net Pin
Mairaaj Khan19-Oct-06 22:34
professionalMairaaj Khan19-Oct-06 22:34 
Questionselecting data for crystal reports Pin
haseeb_saeed18-Oct-06 21:14
haseeb_saeed18-Oct-06 21:14 
Questioncatching sql exception type Pin
DownBySpj18-Oct-06 21:01
DownBySpj18-Oct-06 21:01 

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.