Click here to Skip to main content
16,004,406 members
Home / Discussions / Database
   

Database

 
GeneralRe: Retrieve N Record. Pin
Jörgen Andersson20-Feb-11 20:30
professionalJörgen Andersson20-Feb-11 20:30 
AnswerRe: Retrieve N Record. Pin
Wendelius20-Feb-11 20:40
mentorWendelius20-Feb-11 20:40 
GeneralRe: Retrieve N Record. Pin
Nanda_MR20-Feb-11 22:28
Nanda_MR20-Feb-11 22:28 
GeneralRe: Retrieve N Record. Pin
Wendelius21-Feb-11 4:11
mentorWendelius21-Feb-11 4:11 
Questionreport printing problem , VBA , access 2007 Pin
scorp_scorp20-Feb-11 18:25
scorp_scorp20-Feb-11 18:25 
QuestionVariable In SQL String Pin
Mike Certini20-Feb-11 10:28
Mike Certini20-Feb-11 10:28 
AnswerRe: Variable In SQL String Pin
Luc Pattyn20-Feb-11 11:13
sitebuilderLuc Pattyn20-Feb-11 11:13 
GeneralRe: Variable In SQL String Pin
Mike Certini20-Feb-11 11:39
Mike Certini20-Feb-11 11:39 
GeneralRe: Variable In SQL String Pin
Luc Pattyn20-Feb-11 11:43
sitebuilderLuc Pattyn20-Feb-11 11:43 
GeneralRe: Variable In SQL String Pin
Mike Certini20-Feb-11 11:44
Mike Certini20-Feb-11 11:44 
AnswerRe: Variable In SQL String Pin
Luc Pattyn20-Feb-11 12:03
sitebuilderLuc Pattyn20-Feb-11 12:03 
GeneralRe: Variable In SQL String Pin
Mike Certini20-Feb-11 13:28
Mike Certini20-Feb-11 13:28 
AnswerRe: Variable In SQL String Pin
Mycroft Holmes20-Feb-11 11:13
professionalMycroft Holmes20-Feb-11 11:13 
AnswerRe: Variable In SQL String Pin
Wendelius20-Feb-11 19:27
mentorWendelius20-Feb-11 19:27 
QuestionAutomatic update table based on time Pin
AhmedMasum20-Feb-11 2:52
AhmedMasum20-Feb-11 2:52 
AnswerRe: Automatic update table based on time Pin
R. Giskard Reventlov20-Feb-11 3:14
R. Giskard Reventlov20-Feb-11 3:14 
GeneralRe: Automatic update table based on time Pin
AhmedMasum22-Feb-11 1:41
AhmedMasum22-Feb-11 1:41 
AnswerRe: Automatic update table based on time Pin
Eddy Vluggen20-Feb-11 5:03
professionalEddy Vluggen20-Feb-11 5:03 
AnswerRe: Automatic update table based on time Pin
PIEBALDconsult21-Feb-11 8:21
mvePIEBALDconsult21-Feb-11 8:21 
GeneralRe: Automatic update table based on time Pin
AhmedMasum22-Feb-11 1:28
AhmedMasum22-Feb-11 1:28 
GeneralRe: Automatic update table based on time Pin
PIEBALDconsult22-Feb-11 10:37
mvePIEBALDconsult22-Feb-11 10:37 
QuestionCannot use mysql in linux fedora14. Do we have to install it or the bydefault coming is fine. Pin
cmaheshwari1619-Feb-11 2:30
cmaheshwari1619-Feb-11 2:30 
AnswerRe: Cannot use mysql in linux fedora14. Do we have to install it or the bydefault coming is fine. Pin
ScottM121-Feb-11 18:57
ScottM121-Feb-11 18:57 
Questionhow to change a color of particular word in the row in ssrs reports Pin
vinu.111119-Feb-11 0:51
vinu.111119-Feb-11 0:51 
AnswerRe: how to change a color of particular word in the row in ssrs reports Pin
Wendelius19-Feb-11 1:17
mentorWendelius19-Feb-11 1:17 
Hi,

You can use BackgroundColor-property to change the color and define an expression how the color is set. What comes to the color itself, you can for example resolve the color in the formula or add an extra field to your query which defines the color, like:
SELECT ...
       CASE
          WHEN LOWER(table.NameField) LIKE '%john%' THEN 'Red'
          WHEN LOWER(table.NameField) LIKE '%steve%' THEN 'Blue'
          ...
          ELSE 'White'
       END AS BackgroundColor,
       ...
FROM ...

Now each row should have a color field which you can use in the expression for the BackgroundColor-property. If you want to do this in more elegant way you can create a table for the name/color pairs and use that table for lookups and possibly create a small T-SQL function for the logic.
The need to optimize rises from a bad design.My articles[^]

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.