Click here to Skip to main content
15,914,165 members
Home / Discussions / Database
   

Database

 
GeneralRe: Recursive drill down query? Pin
Marc Clifton19-Jan-07 9:29
mvaMarc Clifton19-Jan-07 9:29 
GeneralRe: Recursive drill down query? Pin
Pete O'Hanlon19-Jan-07 9:55
mvePete O'Hanlon19-Jan-07 9:55 
GeneralRe: Recursive drill down query? Pin
Marc Clifton19-Jan-07 10:31
mvaMarc Clifton19-Jan-07 10:31 
AnswerRe: Recursive drill down query? Pin
Jon Sagara19-Jan-07 9:34
Jon Sagara19-Jan-07 9:34 
QuestionSQL Server table names has (dbo) as part of name Pin
dptalt19-Jan-07 3:26
dptalt19-Jan-07 3:26 
AnswerRe: SQL Server table names has (dbo) as part of name Pin
Bassam Saoud20-Jan-07 0:00
Bassam Saoud20-Jan-07 0:00 
QuestionWhat You See Is What You Get (WYSIWYG) .... doesn't work with SQL Reporting Services Pin
Member 331398919-Jan-07 3:05
Member 331398919-Jan-07 3:05 
QuestionComparing Dates Problem: Pin
Shahzad.Aslam19-Jan-07 0:56
Shahzad.Aslam19-Jan-07 0:56 
Hi There are two date fields in the table and i want to select Maximum date field from two fields i m trying to query like this.
Table Fileds:
UserID Int
LastDDTxn Datetime
LastCardTxn Datetime


SELECT LAST_TRAN_DATE=
(CASE WHEN LastCardTxn>LastDDTxn THEN LastCardTxn
ELSE WHEN LastDDTxn>LastCardTxn THEN LastDDTxn
ELSE NULL
END) AS Last_Tran_Date
FROM USERHISTORY

The Error is showing that
Incorrect syntax near the keyword 'WHEN'


SHAHZAD
AnswerRe: Comparing Dates Problem: Pin
WoutL19-Jan-07 2:21
WoutL19-Jan-07 2:21 
GeneralRe: Comparing Dates Problem: Pin
Shahzad.Aslam19-Jan-07 18:41
Shahzad.Aslam19-Jan-07 18:41 
AnswerRe: Comparing Dates Problem: Pin
Mike Dimmick19-Jan-07 2:44
Mike Dimmick19-Jan-07 2:44 
Questionneed query Pin
Tauseef A19-Jan-07 0:56
Tauseef A19-Jan-07 0:56 
AnswerRe: need query Pin
Pete O'Hanlon19-Jan-07 2:32
mvePete O'Hanlon19-Jan-07 2:32 
Questionhi its very urgent Pin
Tauseef A19-Jan-07 0:11
Tauseef A19-Jan-07 0:11 
GeneralRe: hi its very urgent Pin
Guffa19-Jan-07 0:54
Guffa19-Jan-07 0:54 
Questionquery to rename a field of an existing table in SQL Server?? Pin
Saira Tanwir18-Jan-07 21:48
Saira Tanwir18-Jan-07 21:48 
AnswerRe: query to rename a field of an existing table in SQL Server?? Pin
andyharman19-Jan-07 0:10
professionalandyharman19-Jan-07 0:10 
AnswerRe: query to rename a field of an existing table in SQL Server?? Pin
Elina Blank19-Jan-07 3:14
sitebuilderElina Blank19-Jan-07 3:14 
Questionquerry Pin
pradeep kulkarni18-Jan-07 20:03
pradeep kulkarni18-Jan-07 20:03 
AnswerRe: querry Pin
Christian Graus18-Jan-07 22:10
protectorChristian Graus18-Jan-07 22:10 
Questionquerry Pin
pradeep kulkarni18-Jan-07 19:48
pradeep kulkarni18-Jan-07 19:48 
AnswerRe: querry Pin
gskumar11118-Jan-07 19:53
gskumar11118-Jan-07 19:53 
GeneralRe: querry Pin
Christian Graus18-Jan-07 22:11
protectorChristian Graus18-Jan-07 22:11 
Questionstoring images in sql server Pin
gskumar11118-Jan-07 19:37
gskumar11118-Jan-07 19:37 
AnswerRe: storing images in sql server Pin
Pete O'Hanlon19-Jan-07 2:56
mvePete O'Hanlon19-Jan-07 2:56 

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.