Click here to Skip to main content
15,888,454 members
Home / Discussions / Database
   

Database

 
GeneralRe: Dynamic Database Design Pin
Ingo27-Feb-06 21:20
Ingo27-Feb-06 21:20 
Questionnewbie: how to get started Pin
rnvrnv26-Feb-06 23:54
rnvrnv26-Feb-06 23:54 
AnswerRe: newbie: how to get started Pin
Paul Conrad27-Feb-06 15:42
professionalPaul Conrad27-Feb-06 15:42 
QuestionSQL Profiler trace and Performance Pin
devvvy26-Feb-06 14:56
devvvy26-Feb-06 14:56 
AnswerRe: SQL Profiler trace and Performance Pin
Andy Brummer27-Feb-06 18:50
sitebuilderAndy Brummer27-Feb-06 18:50 
QuestionSQL Server log - recycling Pin
devvvy26-Feb-06 14:42
devvvy26-Feb-06 14:42 
Questionoj Pin
dev dhoundiyal26-Feb-06 5:50
dev dhoundiyal26-Feb-06 5:50 
AnswerRe: oj Pin
Colin Angus Mackay26-Feb-06 6:29
Colin Angus Mackay26-Feb-06 6:29 
dev dhoundiyal wrote:
what is oj


Well, my understanding was that OJ is an abbrebiation of Orange Juice.


dev dhoundiyal wrote:
it is used with from clause while joining tables


Then I'm guessing it refers to the first letter each of OUTER JOIN. I have never heard it being refered to as OJ before. I suggest you don't use that as few people will understand you.


dev dhoundiyal wrote:
please explain fully


There isn't space in a forum post to "explain fully" entire chapters of books are devoted to the subject.

A brief explanation is that an outer join takes all the rows on the left side and all the rows on the right side and joins them together, matching those that it can, leaving nulls in the columns where a match cannot be found.

Consider the following two tables:

A
key data
1   a
2   b

B
key data
1   d
3   e

A statement like this:
SELECT A.key AS aKey, A.data AS aData, B.key AS bKey, B.data AS bData
FROM A
OUTER JOIN B ON a.key = b.key
Will produce a result like this:
aKey aData bKey bData
1    a     1    d
2    b     null null
null null  3    e

By comparison, an INNER JOIN would have returned one row, the only row that matched (i.e. The row with key 1); a LEFT OUTER JOIN would have return two rows (all the rows in A [the left side] and any matching rows in B); a RIGHT OUTER JOIN would have returned two rows again (all the rows in B [the right side] and any matching rows in A)

Does this help?

ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

GeneralRe: oj Pin
J4amieC26-Feb-06 22:38
J4amieC26-Feb-06 22:38 
QuestionUploading images to sql db Pin
foolygoofy2625-Feb-06 16:55
foolygoofy2625-Feb-06 16:55 
AnswerRe: Uploading images to sql db Pin
Luis Alonso Ramos26-Feb-06 14:17
Luis Alonso Ramos26-Feb-06 14:17 
QuestionHow can I create a report from password protected database in C#? Pin
zoxter25-Feb-06 9:10
zoxter25-Feb-06 9:10 
QuestionMySQL Help Pin
Expert Coming25-Feb-06 8:07
Expert Coming25-Feb-06 8:07 
AnswerRe: MySQL Help Pin
Paul Conrad25-Feb-06 8:49
professionalPaul Conrad25-Feb-06 8:49 
GeneralRe: MySQL Help Pin
Expert Coming25-Feb-06 20:19
Expert Coming25-Feb-06 20:19 
GeneralRe: MySQL Help Pin
Paul Conrad26-Feb-06 13:06
professionalPaul Conrad26-Feb-06 13:06 
QuestionGet total size of current sql server database Pin
theanton25-Feb-06 6:13
theanton25-Feb-06 6:13 
AnswerRe: Get total size of current sql server database Pin
Paul Conrad25-Feb-06 6:32
professionalPaul Conrad25-Feb-06 6:32 
GeneralRe: Get total size of current sql server database Pin
theanton25-Feb-06 6:43
theanton25-Feb-06 6:43 
GeneralRe: Get total size of current sql server database Pin
Paul Conrad25-Feb-06 6:57
professionalPaul Conrad25-Feb-06 6:57 
GeneralRe: Get total size of current sql server database Pin
japel25-Feb-06 17:26
japel25-Feb-06 17:26 
GeneralRe: Get total size of current sql server database Pin
Colin Angus Mackay26-Feb-06 1:23
Colin Angus Mackay26-Feb-06 1:23 
GeneralRe: Get total size of current sql server database Pin
japel26-Feb-06 22:45
japel26-Feb-06 22:45 
GeneralRe: Get total size of current sql server database Pin
Paul Conrad1-Mar-06 15:57
professionalPaul Conrad1-Mar-06 15:57 
QuestionHow can I run SQL ver 9.0 Pin
Majid Shahabfar24-Feb-06 22:31
Majid Shahabfar24-Feb-06 22:31 

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.