Click here to Skip to main content
15,922,155 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to query this? Pin
Arun.Immanuel19-May-07 6:28
Arun.Immanuel19-May-07 6:28 
GeneralRe: How to query this? Pin
enjoycrack19-May-07 7:02
enjoycrack19-May-07 7:02 
GeneralRe: How to query this? Pin
Arun.Immanuel19-May-07 16:54
Arun.Immanuel19-May-07 16:54 
GeneralRe: How to query this? Pin
faizankhan20-May-07 21:24
faizankhan20-May-07 21:24 
QuestionHow can I access to a resource that is created in another thread? Pin
ali_reza_zareian18-May-07 23:44
ali_reza_zareian18-May-07 23:44 
AnswerRe: How can I access to a resource that is created in another thread? Pin
Colin Angus Mackay19-May-07 11:50
Colin Angus Mackay19-May-07 11:50 
QuestionSql server 2000 Pin
Ravindra Rayudu18-May-07 19:13
Ravindra Rayudu18-May-07 19:13 
AnswerRe: Sql server 2000 Pin
enjoycrack19-May-07 6:14
enjoycrack19-May-07 6:14 
here is the syntax copied from SQL book online

Syntax
Simple CASE function:

CASE input_expression <br />
    WHEN when_expression THEN result_expression <br />
        [ ...n ] <br />
    [ <br />
        ELSE else_result_expression <br />
    ] <br />
END <br />
<br />
Searched CASE function:<br />
<br />
CASE<br />
    WHEN Boolean_expression THEN result_expression <br />
        [ ...n ] <br />
    [ <br />
        ELSE else_result_expression <br />
    ] <br />
END


and here is an example
<br />
USE pubs<br />
GO<br />
SELECT   Category = <br />
      CASE type<br />
         WHEN 'popular_comp' THEN 'Popular Computing'<br />
         WHEN 'mod_cook' THEN 'Modern Cooking'<br />
         WHEN 'business' THEN 'Business'<br />
         WHEN 'psychology' THEN 'Psychology'<br />
         WHEN 'trad_cook' THEN 'Traditional Cooking'<br />
         ELSE 'Not yet categorized'<br />
      END,<br />
   CAST(title AS varchar(25)) AS 'Shortened Title',<br />
   price AS Price<br />
FROM titles<br />
WHERE price IS NOT NULL<br />
ORDER BY type, price<br />
COMPUTE AVG(price) BY type<br />
GO<br />
<br />
<< >><br />



QuestionSQL Server Internal Commands Pin
Werries18-May-07 6:14
Werries18-May-07 6:14 
AnswerRe: SQL Server Internal Commands Pin
dhbaer18-May-07 7:13
dhbaer18-May-07 7:13 
GeneralRe: SQL Server Internal Commands Pin
Giorgi Dalakishvili18-May-07 7:33
mentorGiorgi Dalakishvili18-May-07 7:33 
GeneralRe: SQL Server Internal Commands Pin
Werries19-May-07 19:40
Werries19-May-07 19:40 
Questiondatabase connection through proxy server Pin
sridhar vattam18-May-07 2:33
sridhar vattam18-May-07 2:33 
AnswerRe: database connection through proxy server Pin
dhbaer18-May-07 7:14
dhbaer18-May-07 7:14 
QuestionDataGridView databound DataTable wont update? [modified] Pin
MrRhino18-May-07 1:43
MrRhino18-May-07 1:43 
AnswerRe: DataGridView databound DataTable wont update? Pin
MrRhino20-May-07 0:35
MrRhino20-May-07 0:35 
QuestionNull Reference Exception in Grid View? Pin
chand1017-May-07 23:54
chand1017-May-07 23:54 
AnswerRe: Null Reference Exception in Grid View? Pin
kubben18-May-07 2:27
kubben18-May-07 2:27 
QuestionThis Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd17-May-07 23:46
professionalVimalsoft(Pty) Ltd17-May-07 23:46 
AnswerRe: This Procedure Does not Add a new record in the Table Help Pin
Pete O'Hanlon17-May-07 23:54
mvePete O'Hanlon17-May-07 23:54 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd18-May-07 0:32
professionalVimalsoft(Pty) Ltd18-May-07 0:32 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Pete O'Hanlon18-May-07 1:13
mvePete O'Hanlon18-May-07 1:13 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd18-May-07 1:28
professionalVimalsoft(Pty) Ltd18-May-07 1:28 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Pete O'Hanlon18-May-07 2:02
mvePete O'Hanlon18-May-07 2:02 
GeneralRe: This Procedure Does not Add a new record in the Table Help Pin
Vimalsoft(Pty) Ltd18-May-07 3:05
professionalVimalsoft(Pty) Ltd18-May-07 3:05 

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.