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

Database

 
GeneralRe: Query Help Pin
Wendelius21-Dec-08 1:46
mentorWendelius21-Dec-08 1:46 
AnswerRe: Query Help Pin
Blue_Boy21-Dec-08 0:47
Blue_Boy21-Dec-08 0:47 
GeneralRe: Query Help Pin
Saiyed Alam21-Dec-08 0:56
Saiyed Alam21-Dec-08 0:56 
GeneralRe: Query Help Pin
Blue_Boy21-Dec-08 0:58
Blue_Boy21-Dec-08 0:58 
QuestionQuestion Update a Query with Case When Data Pin
pdnet20-Dec-08 2:58
pdnet20-Dec-08 2:58 
AnswerRe: Question Update a Query with Case When Data Pin
Wendelius20-Dec-08 4:56
mentorWendelius20-Dec-08 4:56 
GeneralRe: Question Update a Query with Case When Data Pin
pdnet21-Dec-08 17:56
pdnet21-Dec-08 17:56 
GeneralRe: Question Update a Query with Case When Data Pin
Wendelius21-Dec-08 18:17
mentorWendelius21-Dec-08 18:17 
You can use CASE to modify the result based on the value, like:
SELECT
   ...
   CASE
       WHEN (Type = 2) THEN (SELECT Group FROM TableName WHERE ???)
       ELSE Group
   END,
   ...
FROM TableName

but the problem is, how you identify the previous product group? There should be somekind of logic for that.

The need to optimize rises from a bad design.My articles[^]

QuestionSearch Optimization Pin
Krishnraj19-Dec-08 23:28
Krishnraj19-Dec-08 23:28 
AnswerRe: Search Optimization Pin
Wendelius19-Dec-08 23:57
mentorWendelius19-Dec-08 23:57 
GeneralRe: Search Optimization Pin
Krishnraj20-Dec-08 1:01
Krishnraj20-Dec-08 1:01 
GeneralRe: Search Optimization Pin
Wendelius20-Dec-08 1:45
mentorWendelius20-Dec-08 1:45 
GeneralRe: Search Optimization Pin
Krishnraj20-Dec-08 2:10
Krishnraj20-Dec-08 2:10 
QuestionParameter @Model has no default value Pin
dec8219-Dec-08 12:27
dec8219-Dec-08 12:27 
AnswerRe: Parameter @Model has no default value Pin
Blue_Boy19-Dec-08 18:27
Blue_Boy19-Dec-08 18:27 
AnswerRe: Parameter @Model has no default value Pin
Rob Graham20-Dec-08 3:44
Rob Graham20-Dec-08 3:44 
GeneralRe: Parameter @Model has no default value Pin
dec8220-Dec-08 5:45
dec8220-Dec-08 5:45 
GeneralRe: Parameter @Model has no default value Pin
Rob Graham20-Dec-08 7:29
Rob Graham20-Dec-08 7:29 
GeneralRe: Parameter @Model has no default value Pin
Wendelius20-Dec-08 10:51
mentorWendelius20-Dec-08 10:51 
GeneralRe: Parameter @Model has no default value Pin
Rob Graham20-Dec-08 13:19
Rob Graham20-Dec-08 13:19 
QuestionWhich type should i use for saving a string like this: 000000-0000? Pin
Jan Sommer19-Dec-08 8:43
Jan Sommer19-Dec-08 8:43 
AnswerRe: Which type should i use for saving a string like this: 000000-0000? Pin
Blue_Boy19-Dec-08 8:57
Blue_Boy19-Dec-08 8:57 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Jan Sommer19-Dec-08 9:01
Jan Sommer19-Dec-08 9:01 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Blue_Boy19-Dec-08 9:07
Blue_Boy19-Dec-08 9:07 
GeneralRe: Which type should i use for saving a string like this: 000000-0000? Pin
Rob Graham20-Dec-08 3:37
Rob Graham20-Dec-08 3:37 

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.