Click here to Skip to main content
15,901,205 members
Home / Discussions / Database
   

Database

 
GeneralRe: ORM with streaming Pin
i.j.russell1-Mar-10 1:20
i.j.russell1-Mar-10 1:20 
QuestionSorry in advanced for this brain dead question Pin
Mike65432128-Feb-10 13:17
Mike65432128-Feb-10 13:17 
AnswerRe: Sorry in advanced for this brain dead question Pin
Not Active28-Feb-10 13:31
mentorNot Active28-Feb-10 13:31 
GeneralRe: Sorry in advanced for this brain dead question Pin
Mike65432128-Feb-10 13:36
Mike65432128-Feb-10 13:36 
GeneralRe: Sorry in advanced for this brain dead question Pin
Not Active28-Feb-10 13:52
mentorNot Active28-Feb-10 13:52 
AnswerRe: Sorry in advanced for this brain dead question Pin
Tim Carmichael28-Feb-10 13:45
Tim Carmichael28-Feb-10 13:45 
GeneralRe: Sorry in advanced for this brain dead question Pin
Mike65432128-Feb-10 13:48
Mike65432128-Feb-10 13:48 
AnswerRe: Sorry in advanced for this brain dead question Pin
Jörgen Andersson1-Mar-10 9:51
professionalJörgen Andersson1-Mar-10 9:51 
Mike654321 wrote:
55 is excluded because it has a link of 4 and 5...and 77 is excluded because it has a link of 4 in it.

That was useful info.

Is it something like this you need?
SELECT  Table1.field2
FROM    Table1 join Table2
    ON  Table1.field1 = Table2.field1
WHERE   Table2.field2 = 9
AND Table1.field2 NOT IN 
    (
    SELECT  DISTINCT Table1.field2
    FROM    Table1 join Table2
        ON  Table1.field1 = Table2.field1
    WHERE   Table2.field2 <> 9
    )
;

This query might be very slow if the tables are big.
which can be cured with composite indexes on both tables.
My postings are a natural product. The slight variations in spelling and grammar enhance their individual character and beauty and are in no way to be considered flaws or defects.

QuestionSUM question [solved] Pin
danyDude27-Feb-10 19:07
danyDude27-Feb-10 19:07 
AnswerRe: SUM question Pin
Roger Wright27-Feb-10 19:36
professionalRoger Wright27-Feb-10 19:36 
GeneralRe: SUM question Pin
danyDude27-Feb-10 20:14
danyDude27-Feb-10 20:14 
AnswerRe: SUM question [solved] Pin
Mycroft Holmes27-Feb-10 23:35
professionalMycroft Holmes27-Feb-10 23:35 
JokeRe: SUM question [solved] Pin
Dan Mos28-Feb-10 4:20
Dan Mos28-Feb-10 4:20 
QuestionHow to write this query? Pin
Andy_L_J27-Feb-10 13:48
Andy_L_J27-Feb-10 13:48 
AnswerSolved, but... [modified] Pin
Andy_L_J27-Feb-10 14:55
Andy_L_J27-Feb-10 14:55 
GeneralRe: Solved, but... Pin
Luc Pattyn27-Feb-10 15:01
sitebuilderLuc Pattyn27-Feb-10 15:01 
GeneralRe: Solved, but... Pin
Mycroft Holmes27-Feb-10 17:16
professionalMycroft Holmes27-Feb-10 17:16 
GeneralRe: Solved, but... Pin
Mycroft Holmes27-Feb-10 17:22
professionalMycroft Holmes27-Feb-10 17:22 
GeneralRe: Solved, but... Pin
Andy_L_J27-Feb-10 17:41
Andy_L_J27-Feb-10 17:41 
AnswerRe: How to write this query? Pin
i.j.russell27-Feb-10 23:41
i.j.russell27-Feb-10 23:41 
GeneralRe: How to write this query? Pin
Andy_L_J28-Feb-10 0:15
Andy_L_J28-Feb-10 0:15 
QuestionAdvice for product manager Pin
treefirmy27-Feb-10 12:34
treefirmy27-Feb-10 12:34 
AnswerRe: Advice for product manager Pin
Mycroft Holmes27-Feb-10 17:27
professionalMycroft Holmes27-Feb-10 17:27 
AnswerRe: Advice for product manager Pin
i.j.russell27-Feb-10 23:48
i.j.russell27-Feb-10 23:48 
GeneralRe: Advice for product manager Pin
treefirmy28-Feb-10 4:14
treefirmy28-Feb-10 4:14 

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.