Click here to Skip to main content
15,891,880 members
Home / Discussions / Database
   

Database

 
QuestionCan someone give me an advise for my application's database Pin
Blue_Skye18-Mar-05 6:31
Blue_Skye18-Mar-05 6:31 
QuestionWhich is better on webservice? Pin
WDI18-Mar-05 0:27
WDI18-Mar-05 0:27 
AnswerRe: Which is better on webservice? Pin
Hesham Amin18-Mar-05 2:13
Hesham Amin18-Mar-05 2:13 
Generaland - or statement Pin
WDI18-Mar-05 0:20
WDI18-Mar-05 0:20 
GeneralRe: and - or statement Pin
Colin Angus Mackay18-Mar-05 1:58
Colin Angus Mackay18-Mar-05 1:58 
GeneralRe: and - or statement Pin
WDI25-Mar-05 6:46
WDI25-Mar-05 6:46 
GeneralRe: and - or statement Pin
Colin Angus Mackay25-Mar-05 11:18
Colin Angus Mackay25-Mar-05 11:18 
GeneralRe: and - or statement Pin
Michael Potter18-Mar-05 6:01
Michael Potter18-Mar-05 6:01 
I have a wordier solution for you. It may be easier to understand and maintain. Only testing will tell you which is faster for your dataset. 2 tables scans verse 2 correlated sub queries/row. Mine might be faster if you have an index like (ID,TypeID) on the table. Then again, it might really suck Confused | :confused: .

SELECT 
    DISTINCT v.ID
FROM 
    View v
WHERE 
    EXISTS (SELECT * FROM View where ID = v.ID AND TypeId = 1) AND
    EXISTS (SELECT * FROM View where ID = v.ID AND TypeId = 3)

GeneralRe: and - or statement Pin
Michael Potter18-Mar-05 6:13
Michael Potter18-Mar-05 6:13 
GeneralRe: and - or statement Pin
WDI18-Mar-05 9:31
WDI18-Mar-05 9:31 
GeneralRe: and - or statement Pin
Michael Potter18-Mar-05 10:04
Michael Potter18-Mar-05 10:04 
Questionhow to call for update in two different databases? Pin
mijan17-Mar-05 19:47
mijan17-Mar-05 19:47 
AnswerRe: how to call for update in two different databases? Pin
Anonymous20-Mar-05 21:54
Anonymous20-Mar-05 21:54 
GeneralPage numbers Pin
Sebastien Lachance17-Mar-05 8:02
Sebastien Lachance17-Mar-05 8:02 
GeneralRe: Page numbers Pin
Michael Potter17-Mar-05 9:54
Michael Potter17-Mar-05 9:54 
Questionhow to add oledb connection in module by writing code Pin
sumit2117-Mar-05 7:42
sumit2117-Mar-05 7:42 
AnswerRe: how to add oledb connection in module by writing code Pin
rwestgraham20-Mar-05 12:31
rwestgraham20-Mar-05 12:31 
GeneralJoin Problem Pin
Brian Van Beek17-Mar-05 6:25
Brian Van Beek17-Mar-05 6:25 
GeneralRe: Oops. More Info Pin
Brian Van Beek17-Mar-05 6:26
Brian Van Beek17-Mar-05 6:26 
GeneralRe: Join Problem Pin
BammBamm17-Mar-05 8:08
BammBamm17-Mar-05 8:08 
GeneralSql Backup and Restore Pin
| Muhammad Waqas Butt |16-Mar-05 22:12
professional| Muhammad Waqas Butt |16-Mar-05 22:12 
GeneralRe: Sql Backup and Restore Pin
Colin Angus Mackay17-Mar-05 6:30
Colin Angus Mackay17-Mar-05 6:30 
GeneralManaged Provider for Oracle Pin
satishrg16-Mar-05 13:26
satishrg16-Mar-05 13:26 
QuestionDTS and Identity column? Pin
devvvy15-Mar-05 14:33
devvvy15-Mar-05 14:33 
QuestionDTS Lookup -- Multiple values? Pin
devvvy15-Mar-05 14:31
devvvy15-Mar-05 14: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.