Click here to Skip to main content
15,900,378 members
Home / Discussions / Database
   

Database

 
AnswerRe: syntax in interger and string in SQL Pin
Eric Dahlvang9-Jun-06 3:24
Eric Dahlvang9-Jun-06 3:24 
GeneralRe: syntax in interger and string in SQL Pin
angelagke10-Jun-06 7:58
angelagke10-Jun-06 7:58 
Questionchange the predicate to use "CASE" Pin
angelagke9-Jun-06 1:31
angelagke9-Jun-06 1:31 
AnswerRe: change the predicate to use "CASE" Pin
Frank Kerrigan9-Jun-06 2:33
Frank Kerrigan9-Jun-06 2:33 
GeneralRe: change the predicate to use "CASE" Pin
angelagke10-Jun-06 7:42
angelagke10-Jun-06 7:42 
AnswerRe: change the predicate to use "CASE" Pin
Eric Dahlvang9-Jun-06 3:40
Eric Dahlvang9-Jun-06 3:40 
GeneralRe: change the predicate to use "CASE" Pin
angelagke10-Jun-06 7:50
angelagke10-Jun-06 7:50 
GeneralRe: change the predicate to use "CASE" Pin
angelagke12-Jun-06 17:56
angelagke12-Jun-06 17:56 
I get a SQL statement that can use CASE under my condition

Declare @au_lname char(30)<br />
<br />
Select @au_lname = ''<br />
<br />
select title, price, <br />
Name = substring (au_lname, 1,40), type<br />
from titleauthor ta JOIN authors a on ta.au_id = a.au_id<br />
                    JOIN titles t on ta.title_id = t.title_id<br />
<br />
Where 1 = <br />
Case<br />
   When RTRIM(@au_lname) = '' Then 1<br />
   When RTRIM(@au_lname) <> '' And <br />
        RTRIM(UPPER(@au_lname)) = RTRIM(UPPER(au_lname)) Then 1<br />
   Else 0<br />
End


it's cool Wink | ;)

angela
GeneralRe: change the predicate to use "CASE" Pin
Eric Dahlvang13-Jun-06 3:12
Eric Dahlvang13-Jun-06 3:12 
QuestionHow to write store procedure ? Pin
SaravuthYos8-Jun-06 22:00
SaravuthYos8-Jun-06 22:00 
AnswerRe: How to write store procedure ? Pin
Colin Angus Mackay9-Jun-06 0:02
Colin Angus Mackay9-Jun-06 0:02 
AnswerRe: How to write store procedure ? Pin
Frank Kerrigan9-Jun-06 0:59
Frank Kerrigan9-Jun-06 0:59 
AnswerRe: How to write store procedure ? Pin
Rakesh.Jha.011010-Jun-06 0:13
Rakesh.Jha.011010-Jun-06 0:13 
QuestionSimple Database access Pin
Andrew Stampor8-Jun-06 17:35
Andrew Stampor8-Jun-06 17:35 
AnswerRe: Simple Database access Pin
Colin Angus Mackay8-Jun-06 20:08
Colin Angus Mackay8-Jun-06 20:08 
GeneralRe: Simple Database access Pin
Andrew Stampor11-Jun-06 8:47
Andrew Stampor11-Jun-06 8:47 
GeneralRe: Simple Database access [modified] Pin
Colin Angus Mackay11-Jun-06 11:16
Colin Angus Mackay11-Jun-06 11:16 
QuestionHelp with Navigation in Reporting Services Pin
spirit_kleptus8-Jun-06 12:50
spirit_kleptus8-Jun-06 12:50 
QuestionDynamic SQL - Not Returning Unicode Pin
Tristan Rhodes8-Jun-06 6:56
Tristan Rhodes8-Jun-06 6:56 
QuestionSyntax question: Multiple Inner Joins Pin
leckey8-Jun-06 6:04
leckey8-Jun-06 6:04 
AnswerRe: Syntax question: Multiple Inner Joins Pin
Kschuler8-Jun-06 6:29
Kschuler8-Jun-06 6:29 
GeneralRe: Syntax question: Multiple Inner Joins Pin
leckey8-Jun-06 6:38
leckey8-Jun-06 6:38 
GeneralRe: Syntax question: Multiple Inner Joins Pin
Kschuler8-Jun-06 6:42
Kschuler8-Jun-06 6:42 
AnswerRe: Syntax question: Multiple Inner Joins Pin
Scott Serl8-Jun-06 8:48
Scott Serl8-Jun-06 8:48 
QuestionSQL2000 SP4 Disaster! Pin
MatthysDT8-Jun-06 3:29
MatthysDT8-Jun-06 3:29 

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.