Click here to Skip to main content
15,884,425 members
Home / Discussions / Database
   

Database

 
GeneralRe: Aggregate queries and functions Pin
Farhan Noor Qureshi26-Oct-05 11:35
Farhan Noor Qureshi26-Oct-05 11:35 
QuestionHiiSQL Server Database Name Pin
utsav_verma24-Oct-05 19:48
utsav_verma24-Oct-05 19:48 
AnswerRe: HiiSQL Server Database Name Pin
Colin Angus Mackay24-Oct-05 20:13
Colin Angus Mackay24-Oct-05 20:13 
Questionraw_Open Pin
Karim Shehadeh24-Oct-05 11:03
Karim Shehadeh24-Oct-05 11:03 
QuestionLast unique inserted row Pin
Anonymous24-Oct-05 1:14
Anonymous24-Oct-05 1:14 
AnswerRe: Last unique inserted row Pin
miah alom24-Oct-05 4:50
miah alom24-Oct-05 4:50 
AnswerRe: Last unique inserted row Pin
toxcct25-Oct-05 0:24
toxcct25-Oct-05 0:24 
QuestionJoining Tables Pin
Greeky23-Oct-05 21:53
Greeky23-Oct-05 21:53 
Imagine two table
One Table (ForeignCurrency)

FC_ID FC_TYPE
1 USD
2 EUR
3 YTL

Other table (Rates)

FCV_ID FCV_RateIN FCV_RateOUT FCV_DATE
1 1 1 10/13/2005
2 1.345 1.346 10/13/2005
3 1.651 1.654 10/13/2005

I need to join two table in a one query. I do this so
Select FC.FC_TYPE,ISNULL(FCV_RateIN,1) FCV_RateIN,ISNULL(FCV_RateOut,1) FCV_RateOut from ForeignCurrency FC LEFT OUTER JOIN Rates R ON FC.FC_ID=R.FCV_ID WHERE FCV_Date='10/13/2005'

This give me result as i want. But when i need 10/14/2005 rates it give me empty result set , but i expect
FCV_TYPE FCV_RateIn FCV_RateOUT
YTL 1 1
USD 1 1
EUR 1 1

How can i re-write code ?
AnswerRe: Joining Tables Pin
miah alom24-Oct-05 4:54
miah alom24-Oct-05 4:54 
QuestionUsing where clause with .CSV files Pin
Adeel68823-Oct-05 19:15
Adeel68823-Oct-05 19:15 
QuestionADO SECURITY WARNING! Pin
delnaz23-Oct-05 6:52
delnaz23-Oct-05 6:52 
QuestionADO WARNING SECURITY Pin
delnaz23-Oct-05 0:10
delnaz23-Oct-05 0:10 
AnswerRe: ADO WARNING SECURITY Pin
S Douglas7-Nov-05 23:03
professionalS Douglas7-Nov-05 23:03 
Questionmysql query browser (newbie) - running multiple queries Pin
tjawed22-Oct-05 8:50
tjawed22-Oct-05 8:50 
AnswerRe: mysql query browser (newbie) - running multiple queries Pin
dabuskol23-Oct-05 19:52
dabuskol23-Oct-05 19:52 
QuestionTutotial Link[modified] Pin
ddmcr22-Oct-05 3:39
ddmcr22-Oct-05 3:39 
AnswerRe: Tutotial Link Pin
Stanciu Vlad22-Oct-05 7:51
Stanciu Vlad22-Oct-05 7:51 
GeneralRe: Tutotial Link Pin
ddmcr22-Oct-05 10:31
ddmcr22-Oct-05 10:31 
QuestionDeleting duplicate rows based on timestamps ? Pin
Aditi48422-Oct-05 2:23
Aditi48422-Oct-05 2:23 
AnswerRe: Deleting duplicate rows based on timestamps ? Pin
dabuskol23-Oct-05 19:39
dabuskol23-Oct-05 19:39 
GeneralRe: Deleting duplicate rows based on timestamps ? Pin
Aditi48423-Oct-05 21:29
Aditi48423-Oct-05 21:29 
QuestionSQL datediff Pin
dabuskol22-Oct-05 0:14
dabuskol22-Oct-05 0:14 
AnswerRe: SQL datediff Pin
Colin Angus Mackay23-Oct-05 5:55
Colin Angus Mackay23-Oct-05 5:55 
GeneralRe: SQL datediff Pin
dabuskol23-Oct-05 19:36
dabuskol23-Oct-05 19:36 
GeneralRe: SQL datediff Pin
Colin Angus Mackay23-Oct-05 20:34
Colin Angus Mackay23-Oct-05 20:34 

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.