Click here to Skip to main content
15,885,998 members
Home / Discussions / Database
   

Database

 
QuestionCTE Sub-Sort Pin
Stan Lake11-Dec-17 11:52
professionalStan Lake11-Dec-17 11:52 
AnswerRe: CTE Sub-Sort Pin
Richard Deeming12-Dec-17 1:56
mveRichard Deeming12-Dec-17 1:56 
GeneralRe: CTE Sub-Sort Pin
Stan Lake12-Dec-17 2:35
professionalStan Lake12-Dec-17 2:35 
GeneralRe: CTE Sub-Sort Pin
Mycroft Holmes12-Dec-17 12:45
professionalMycroft Holmes12-Dec-17 12:45 
QuestionTable Design Suggestion Pin
Manish K. Agarwal7-Dec-17 19:42
Manish K. Agarwal7-Dec-17 19:42 
AnswerRe: Table Design Suggestion Pin
Nathan Minier8-Dec-17 1:33
professionalNathan Minier8-Dec-17 1:33 
GeneralRe: Table Design Suggestion Pin
Manish K. Agarwal10-Dec-17 17:46
Manish K. Agarwal10-Dec-17 17:46 
GeneralRe: Table Design Suggestion Pin
Nathan Minier11-Dec-17 1:38
professionalNathan Minier11-Dec-17 1:38 
Manish K. Agarwal wrote:
Also every time I want to select all possible values for given NAME.

Not exactly what you said above, to be fair. It also doesn't say whether this is native or web-based, which has a relevant impact on performance of the system as a whole.

If writes are rare in either case, you'll see better SELECT performance out of option 2 for one simple reason: assuming that you index the key, when it's found the appropriate key, it's done and will stop searching the table. If you're in a web environment, you have the added benefit of being able to send it straight down the pipe with no serialization/deserialization required. If all your model requires is selection speed, option 2 is the way to go.

Option 2 is definitely not write friendly, though, nor can you use it to relate data down the road on the database level. If these are likely or even possible considerations, you might want to go with option 1.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

AnswerRe: Table Design Suggestion Pin
Richard Deeming8-Dec-17 1:35
mveRichard Deeming8-Dec-17 1:35 
GeneralRe: Table Design Suggestion Pin
Manish K. Agarwal10-Dec-17 17:53
Manish K. Agarwal10-Dec-17 17:53 
AnswerRe: Table Design Suggestion Pin
Mycroft Holmes9-Dec-17 0:00
professionalMycroft Holmes9-Dec-17 0:00 
QuestionCan the Pivot operator be used with text columns? Pin
Richard Andrew x646-Dec-17 4:14
professionalRichard Andrew x646-Dec-17 4:14 
AnswerRe: Can the Pivot operator be used with text columns? Pin
Richard Deeming6-Dec-17 9:51
mveRichard Deeming6-Dec-17 9:51 
GeneralRe: Can the Pivot operator be used with text columns? Pin
Richard Andrew x646-Dec-17 12:16
professionalRichard Andrew x646-Dec-17 12:16 
AnswerRe: Can the Pivot operator be used with text columns? Pin
Jörgen Andersson6-Dec-17 10:05
professionalJörgen Andersson6-Dec-17 10:05 
GeneralRe: Can the Pivot operator be used with text columns? Pin
Richard Andrew x646-Dec-17 12:17
professionalRichard Andrew x646-Dec-17 12:17 
QuestionSQL and database tutorials Pin
MikeTheFid4-Dec-17 11:52
MikeTheFid4-Dec-17 11:52 
AnswerRe: SQL and database tutorials Pin
Mycroft Holmes4-Dec-17 13:17
professionalMycroft Holmes4-Dec-17 13:17 
GeneralRe: SQL and database tutorials Pin
MikeTheFid5-Dec-17 0:33
MikeTheFid5-Dec-17 0:33 
QuestionSQL SERVER script Pin
Member 1355160430-Nov-17 23:08
Member 1355160430-Nov-17 23:08 
AnswerRe: SQL SERVER script Pin
Richard MacCutchan30-Nov-17 23:31
mveRichard MacCutchan30-Nov-17 23:31 
AnswerRe: SQL SERVER script Pin
Simon_Whale4-Dec-17 5:33
Simon_Whale4-Dec-17 5:33 
QuestionSchedule a trace file in SQL Profiler Pin
VK1928-Nov-17 7:06
VK1928-Nov-17 7:06 
AnswerRe: Schedule a trace file in SQL Profiler Pin
Richard Deeming28-Nov-17 7:27
mveRichard Deeming28-Nov-17 7:27 
AnswerRe: Schedule a trace file in SQL Profiler Pin
jschell1-Dec-17 8:01
jschell1-Dec-17 8:01 

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.