Click here to Skip to main content
15,896,557 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL 2008 Query Help Pin
Hulicat8-Sep-09 18:20
Hulicat8-Sep-09 18:20 
GeneralRe: SQL 2008 Query Help Pin
_Damian S_8-Sep-09 18:55
professional_Damian S_8-Sep-09 18:55 
GeneralRe: SQL 2008 Query Help Pin
Mycroft Holmes8-Sep-09 21:11
professionalMycroft Holmes8-Sep-09 21:11 
GeneralRe: SQL 2008 Query Help Pin
Hulicat9-Sep-09 5:31
Hulicat9-Sep-09 5:31 
GeneralRe: SQL 2008 Query Help Pin
_Damian S_9-Sep-09 14:25
professional_Damian S_9-Sep-09 14:25 
GeneralRe: SQL 2008 Query Help Pin
Mycroft Holmes9-Sep-09 14:35
professionalMycroft Holmes9-Sep-09 14:35 
GeneralRe: SQL 2008 Query Help Pin
_Damian S_9-Sep-09 15:29
professional_Damian S_9-Sep-09 15:29 
Questionwhich answer is right? Pin
mctramp1688-Sep-09 14:47
mctramp1688-Sep-09 14:47 
I have a table containing production information that your users query frequently, They specifically use this
query most often (that is only use name to search in the where condition):
SELECT Name,Description,Vendor,Instock,Price FROM Products where Name='name'

Have a nonclustered index on this table on the Name column,but your users are complaining the query is still too
slow,what can you do to speed it up?
A、modify the index to include the Description,vendor,Instock, and price columns as nonkey columns.
B、Create a new nonclustered index on the Description,vendor,Instock, and price as nonkey columns.
C、Create a new clustered index on the Description,vendor,Instock, and price as nonkey columns.
D、You can't do anything to speed up this query.

Database is MS SQL SERVER.
Above four choices, which answer is right?please tell the reason.Thanks
AnswerRe: which answer is right? Pin
Ashfield8-Sep-09 21:05
Ashfield8-Sep-09 21:05 
GeneralRe: which answer is right? Pin
Mycroft Holmes8-Sep-09 21:20
professionalMycroft Holmes8-Sep-09 21:20 
GeneralRe: which answer is right? Pin
Ashfield9-Sep-09 1:31
Ashfield9-Sep-09 1:31 
GeneralRe: which answer is right? Pin
Mycroft Holmes9-Sep-09 14:48
professionalMycroft Holmes9-Sep-09 14:48 
GeneralRe: which answer is right? Pin
mctramp1689-Sep-09 2:20
mctramp1689-Sep-09 2:20 
AnswerRe: which answer is right? Pin
Bassam Saoud9-Sep-09 10:58
Bassam Saoud9-Sep-09 10:58 
QuestionDynamic SQL Help Pin
Jammer8-Sep-09 10:51
Jammer8-Sep-09 10:51 
AnswerRe: Dynamic SQL Help Pin
Mycroft Holmes8-Sep-09 12:29
professionalMycroft Holmes8-Sep-09 12:29 
GeneralRe: Dynamic SQL Help Pin
Jammer9-Sep-09 3:24
Jammer9-Sep-09 3:24 
GeneralRe: Dynamic SQL Help Pin
J4amieC9-Sep-09 3:30
J4amieC9-Sep-09 3:30 
GeneralRe: Dynamic SQL Help Pin
Mycroft Holmes9-Sep-09 12:36
professionalMycroft Holmes9-Sep-09 12:36 
QuestionReplication error sql server 2005 Pin
ME_Learner8-Sep-09 3:41
ME_Learner8-Sep-09 3:41 
Questionhow to give permission to an ip to connec to sql server 2005 which is not in the domain Pin
prasadbuddhika7-Sep-09 20:58
prasadbuddhika7-Sep-09 20:58 
AnswerRe: how to give permission to an ip to connec to sql server 2005 which is not in the domain Pin
Mycroft Holmes8-Sep-09 12:23
professionalMycroft Holmes8-Sep-09 12:23 
Questionlist of unmatched countries from multiple tables using sql server Pin
teja.murali6-Sep-09 20:13
teja.murali6-Sep-09 20:13 
AnswerRe: list of unmatched countries from multiple tables using sql server Pin
Mycroft Holmes6-Sep-09 20:46
professionalMycroft Holmes6-Sep-09 20:46 
AnswerRe: list of unmatched countries from multiple tables using sql server Pin
εїзεїзεїз6-Sep-09 20:47
εїзεїзεїз6-Sep-09 20:47 

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.