Click here to Skip to main content
15,920,438 members
Home / Discussions / Database
   

Database

 
GeneralArabic to English Conversion Pin
Anonymous6-Jul-04 7:13
Anonymous6-Jul-04 7:13 
Generaloverwite/add between two databases help Pin
Anonymous6-Jul-04 3:51
Anonymous6-Jul-04 3:51 
Questioncan anyone optimize this query Pin
xcavin6-Jul-04 3:15
xcavin6-Jul-04 3:15 
AnswerRe: can anyone optimize this query Pin
RichardGrimmer6-Jul-04 4:12
RichardGrimmer6-Jul-04 4:12 
AnswerRe: can anyone optimize this query Pin
Michael Potter6-Jul-04 7:28
Michael Potter6-Jul-04 7:28 
GeneralRe: can anyone optimize this query Pin
xcavin6-Jul-04 19:27
xcavin6-Jul-04 19:27 
GeneralRe: can anyone optimize this query Pin
xcavin6-Jul-04 20:03
xcavin6-Jul-04 20:03 
GeneralRe: can anyone optimize this query Pin
Michael Potter7-Jul-04 3:13
Michael Potter7-Jul-04 3:13 
My experience is that joins usually take a shorter time then do in statements. It really depends upon the size of your datasets. There are few hard and fast rules that would work in all instances. Usually, I just follow my nose - If a query takes longer then I desire, I try a different approach or modify my indexes. For example, the following index may help my solution:

CREATE INDEX IX_CUSTOMER_ID_PRIORITY
ON customer
(
     id,
     priority
)


If the table is not large, than the index would be ignored and a simple table scan would be used.

The rule about not using * when you don't need every column is a rule that works in all instances.
AnswerRe: can anyone optimize this query Pin
michanne6-Jul-04 15:36
michanne6-Jul-04 15:36 
GeneralSQL connection Pin
tennis045-Jul-04 20:07
tennis045-Jul-04 20:07 
GeneralRe: SQL connection Pin
Michael Potter6-Jul-04 7:37
Michael Potter6-Jul-04 7:37 
GeneralRe: SQL connection Pin
tennis047-Jul-04 19:53
tennis047-Jul-04 19:53 
GeneralRe: SQL connection Pin
Michael Potter8-Jul-04 3:07
Michael Potter8-Jul-04 3:07 
GeneralRe: SQL connection Pin
tennis048-Jul-04 15:10
tennis048-Jul-04 15:10 
GeneralRe: SQL connection Pin
Michael Potter9-Jul-04 3:36
Michael Potter9-Jul-04 3:36 
GeneralTable name a String Pin
si_695-Jul-04 0:21
si_695-Jul-04 0:21 
GeneralRe: Table name a String Pin
michanne15-Jul-04 5:50
michanne15-Jul-04 5:50 
GeneralRe: Table name a String Pin
Grimolfr6-Jul-04 9:38
Grimolfr6-Jul-04 9:38 
Generaltext to ntext Pin
ShankarPS4-Jul-04 17:04
ShankarPS4-Jul-04 17:04 
GeneralRe: text to ntext Pin
Hesham Amin4-Jul-04 22:44
Hesham Amin4-Jul-04 22:44 
GeneralRe: text to ntext Pin
Mike Dimmick7-Jul-04 5:56
Mike Dimmick7-Jul-04 5:56 
GeneralSQL Help. Pin
brdavid4-Jul-04 14:59
brdavid4-Jul-04 14:59 
GeneralRe: SQL Help. Pin
Hesham Amin4-Jul-04 22:50
Hesham Amin4-Jul-04 22:50 
GeneralRe: SQL Help. Pin
brdavid6-Jul-04 4:49
brdavid6-Jul-04 4:49 
GeneralRe: SQL Help. Pin
Grimolfr6-Jul-04 9:58
Grimolfr6-Jul-04 9:58 

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.