19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

338 <strong>Computer</strong> <strong>Programming</strong> <strong>Concepts</strong> <strong>and</strong> <strong>Visual</strong> <strong>Basic</strong><br />

COMMENTS<br />

1. Each record of the Countries table is related to one or more records of the Cities<br />

table, but each record of the Cities table is related to only one record of the<br />

Countries table. Therefore, we say that there is a one-to-many relationship<br />

from the Countries table to the Cities table.<br />

2. SQL statements are insensitive to case. For instance, the following choices for<br />

criteria have the same effect: City=‘China’, city=‘china’, CITY=‘china’,<br />

CiTy=‘CHINA’.<br />

3. When the Like operator is used, the “pattern” must appear on the right of the<br />

operator. For instance, the SQL statement<br />

SELECT * FROM Cities WHERE city Like ‘S*’<br />

cannot be replaced by<br />

SELECT * FROM Cities WHERE ‘S*’ Like city<br />

4. The operator Like permits a refinement of the wildcard character “?”. Whereas<br />

“?” is a placeholder for any letter, an expression such as “[letter1-letter2]” is a<br />

placeholder for any letter from letter1 to letter2. For instance, the pattern “[A-<br />

F]ad” is matched by Bad <strong>and</strong> Dad, but not Sad.<br />

5. The Like operator can be used in If blocks in much the same way as the operators<br />

>, =, <strong>and</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!