Click here to Skip to main content
16,005,181 members
Home / Discussions / Database
   

Database

 
GeneralRe: Server Explorer not visible. Pin
mgr_2k712-Nov-07 23:44
mgr_2k712-Nov-07 23:44 
AnswerRe: Server Explorer not visible. Pin
venkat vuppala12-Nov-07 23:18
venkat vuppala12-Nov-07 23:18 
QuestionDatabase problem Pin
kingletas12-Nov-07 11:28
kingletas12-Nov-07 11:28 
AnswerRe: Database problem Pin
Michael Sync12-Nov-07 14:29
Michael Sync12-Nov-07 14:29 
Questionthe list of customers who own all stocks Pin
Michael Sync12-Nov-07 7:01
Michael Sync12-Nov-07 7:01 
AnswerRe: the list of customers who own all stocks Pin
Chris Meech12-Nov-07 10:16
Chris Meech12-Nov-07 10:16 
GeneralRe: the list of customers who own all stocks Pin
Michael Sync12-Nov-07 14:19
Michael Sync12-Nov-07 14:19 
AnswerRe: the list of customers who own all stocks Pin
pmarfleet12-Nov-07 10:19
pmarfleet12-Nov-07 10:19 
One way of doing this would be:

1) CROSS JOIN Customers with Stocks to get every possible combination of customers and stocks.

2) Do a LEFT JOIN between 1) and CustomersStocks. Get a DISTINCT list of the Customer IDs where there is no matching record on the RHS of the join. These are the customers who have not bought at least 1 of the available stocks.

3) Return the records from Customers where the Customer ID is NOT IN the set of records returned in 2) These will be the customers who have purchased all available stocks.

Hope this helps.


Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


GeneralRe: the list of customers who own all stocks Pin
Michael Sync12-Nov-07 14:39
Michael Sync12-Nov-07 14:39 
GeneralRe: the list of customers who own all stocks Pin
pmarfleet12-Nov-07 19:41
pmarfleet12-Nov-07 19:41 
Questionproblem with stored procedure Pin
suhailahmedmohammed12-Nov-07 3:57
suhailahmedmohammed12-Nov-07 3:57 
AnswerRe: problem with stored procedure Pin
pmarfleet12-Nov-07 4:43
pmarfleet12-Nov-07 4:43 
GeneralRe: problem with stored procedure Pin
suhailahmedmohammed12-Nov-07 6:28
suhailahmedmohammed12-Nov-07 6:28 
AnswerRe: problem with stored procedure Pin
Michael Potter12-Nov-07 6:13
Michael Potter12-Nov-07 6:13 
GeneralRe: problem with stored procedure Pin
Paul Conrad12-Nov-07 6:44
professionalPaul Conrad12-Nov-07 6:44 
GeneralRe: problem with stored procedure Pin
suhailahmedmohammed12-Nov-07 7:17
suhailahmedmohammed12-Nov-07 7:17 
AnswerRe: problem with stored procedure Pin
suhailahmedmohammed12-Nov-07 6:22
suhailahmedmohammed12-Nov-07 6:22 
QuestionHow to Tune stored procedures Pin
mpavan0411-Nov-07 22:37
mpavan0411-Nov-07 22:37 
AnswerRe: How to Tune stored procedures Pin
Adeel Chaudhry11-Nov-07 22:46
Adeel Chaudhry11-Nov-07 22:46 
AnswerRe: How to Tune stored procedures Pin
Pete O'Hanlon12-Nov-07 2:30
mvePete O'Hanlon12-Nov-07 2:30 
QuestionThe correct way to open connection (ADO) / locking database file Pin
xanagan66611-Nov-07 21:34
xanagan66611-Nov-07 21:34 
Questionchange database name Pin
Xmen Real 11-Nov-07 20:36
professional Xmen Real 11-Nov-07 20:36 
AnswerRe: change database name Pin
Adeel Chaudhry11-Nov-07 22:43
Adeel Chaudhry11-Nov-07 22:43 
GeneralRe: change database name Pin
Xmen Real 11-Nov-07 22:47
professional Xmen Real 11-Nov-07 22:47 
GeneralRe: change database name Pin
Adeel Chaudhry12-Nov-07 0:30
Adeel Chaudhry12-Nov-07 0:30 

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.