Click here to Skip to main content
15,891,033 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: regarding vbscript Pin
Dave Kreskowiak15-Oct-05 6:04
mveDave Kreskowiak15-Oct-05 6:04 
QuestionUNSETCOMMA Pin
Greeky14-Oct-05 0:14
Greeky14-Oct-05 0:14 
AnswerRe: UNSETCOMMA Pin
Briga14-Oct-05 1:19
Briga14-Oct-05 1:19 
GeneralRe: UNSETCOMMA Pin
Greeky14-Oct-05 1:23
Greeky14-Oct-05 1:23 
GeneralRe: UNSETCOMMA Pin
Briga14-Oct-05 2:29
Briga14-Oct-05 2:29 
GeneralRe: UNSETCOMMA Pin
jo0ls15-Oct-05 16:36
jo0ls15-Oct-05 16:36 
QuestionJoin Tables Pin
Greeky13-Oct-05 23:55
Greeky13-Oct-05 23:55 
AnswerRe: Join Tables Pin
Qhalis14-Oct-05 6:37
Qhalis14-Oct-05 6:37 
It looks like a misunderstanding of how the join works.

The SQL Engine performs a select on the two tables using the join. The 'left outer' part ensures that if there are entries in the ForeignCurrency table that do not have corresponding entries in the Rates table, then they will still be shown.

e.g
Add a new entry to the ForeignCurrency table

4 IEP

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


will give

FC_TYPE FCV_RateIN FCV_RateOut
USD 1 1
EUR 1.345 1.345
YTL 1.651 1.654
IEP 1 1

AFTER the join is performed the WHERE criteria are applied. Thus we check through the resultset for the FCV_Date='10/13/2005' (This is all conceptual - in practice the engine may optimize but it ACTS as if the steps happen in this order)

For 10/13/2005 all the rows in your test data match, so we are good
For 10/14/2005, no rows match so you get an empty set.


hth
Alan.


QuestionREAD ONLY COMBO CONVERT C++ CODE TO VB.NET Pin
Greeky13-Oct-05 23:26
Greeky13-Oct-05 23:26 
AnswerRe: READ ONLY COMBO CONVERT C++ CODE TO VB.NET Pin
Briga14-Oct-05 1:53
Briga14-Oct-05 1:53 
AnswerRe: READ ONLY COMBO CONVERT C++ CODE TO VB.NET Pin
jo0ls15-Oct-05 12:14
jo0ls15-Oct-05 12:14 
AnswerRe: READ ONLY COMBO CONVERT C++ CODE TO VB.NET Pin
jo0ls15-Oct-05 12:16
jo0ls15-Oct-05 12:16 
QuestionHow to generate an operating system token of other valid network user Pin
farazzzzzz13-Oct-05 21:38
farazzzzzz13-Oct-05 21:38 
QuestionRAW DATA PRINTING ON WINDOWS ME Pin
Greeky13-Oct-05 21:09
Greeky13-Oct-05 21:09 
AnswerRe: RAW DATA PRINTING ON WINDOWS ME Pin
Dave Kreskowiak14-Oct-05 1:29
mveDave Kreskowiak14-Oct-05 1:29 
GeneralRe: RAW DATA PRINTING ON WINDOWS ME Pin
Greeky14-Oct-05 1:51
Greeky14-Oct-05 1:51 
GeneralRe: RAW DATA PRINTING ON WINDOWS ME Pin
Dave Kreskowiak14-Oct-05 4:04
mveDave Kreskowiak14-Oct-05 4:04 
QuestionVB.net or C# Pin
Guerven13-Oct-05 20:24
Guerven13-Oct-05 20:24 
AnswerRe: VB.net or C# Pin
Dave Kreskowiak14-Oct-05 1:23
mveDave Kreskowiak14-Oct-05 1:23 
QuestionChess programming Pin
Byamatsogt13-Oct-05 17:52
Byamatsogt13-Oct-05 17:52 
AnswerRe: Chess programming Pin
munkh-erdene13-Oct-05 17:54
munkh-erdene13-Oct-05 17:54 
AnswerRe: Chess programming Pin
Dave Kreskowiak14-Oct-05 1:21
mveDave Kreskowiak14-Oct-05 1:21 
QuestionThe Beep sound question again... Pin
13-Oct-05 11:32
suss13-Oct-05 11:32 
AnswerRe: The Beep sound question again... Pin
jo0ls15-Oct-05 16:57
jo0ls15-Oct-05 16:57 
QuestionSub Script Error Pin
shoaibnawaz13-Oct-05 10:57
shoaibnawaz13-Oct-05 10:57 

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.