Date post: | 06-Apr-2018 |
Category: |
Documents |
Upload: | gvenrey-gmailcom |
View: | 220 times |
Download: | 0 times |
of 20
8/3/2019 cmp-joins
1/20
Welcome Log Out My Account FAQ Go Pro! My Profile Contacts Subscriptions My Stuff Preferences Send a Message Log In Join TechRepublic FAQ Go Pro! ZDNet SmartPlanet TechRepublic
TechRepublic
Home Blogs Downloads Newsletters Q&A Discussions Training Research Library IT Management Development IT Support Data Center Networks Security Leadership Career Compliance IT Consultant ITIL Project Management Business Intelligence
http://www.techrepublic.com/members/logouthttp://www.techrepublic.com/members/logouthttp://www.techrepublic.com/members/dashboardhttp://www.techrepublic.com/members/dashboardhttp://www.techrepublic.com/faq/generalhttp://www.techrepublic.com/faq/generalhttp://www.techrepublic.com/prohttp://www.techrepublic.com/prohttp://www.techrepublic.com/members/profilehttp://www.techrepublic.com/members/profilehttp://www.techrepublic.com/members/contactshttp://www.techrepublic.com/members/contactshttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/members/discussionshttp://www.techrepublic.com/members/discussionshttp://www.techrepublic.com/members/preferenceshttp://www.techrepublic.com/members/preferenceshttp://www.techrepublic.com/members/messagehttp://www.techrepublic.com/members/messagehttp://www.techrepublic.com/members/login?regSrc=global-reghttp://www.techrepublic.com/members/login?regSrc=global-reghttp://www.techrepublic.com/members/join?regSrc=global-reghttp://www.techrepublic.com/members/join?regSrc=global-reghttp://www.techrepublic.com/faq/generalhttp://www.techrepublic.com/faq/generalhttp://www.techrepublic.com/prohttp://www.techrepublic.com/prohttp://www.zdnet.com/http://www.zdnet.com/http://www.smartplanet.com/http://www.smartplanet.com/http://www.techrepublic.com/http://www.techrepublic.com/http://www.techrepublic.com/http://www.techrepublic.com/http://www.techrepublic.com/http://www.techrepublic.com/http://www.techrepublic.com/blogshttp://www.techrepublic.com/blogshttp://www.techrepublic.com/downloadshttp://www.techrepublic.com/downloadshttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/forum/questionshttp://www.techrepublic.com/forum/questionshttp://www.techrepublic.com/forum/discussionshttp://www.techrepublic.com/forum/discussionshttp://www.techrepublic.com/traininghttp://www.techrepublic.com/traininghttp://www.techrepublic.com/research-libraryhttp://www.techrepublic.com/research-libraryhttp://www.techrepublic.com/topics/leadershiphttp://www.techrepublic.com/topics/leadershiphttp://www.techrepublic.com/topics/careerhttp://www.techrepublic.com/topics/careerhttp://www.techrepublic.com/topics/compliancehttp://www.techrepublic.com/topics/compliancehttp://www.techrepublic.com/topics/it+consultanthttp://www.techrepublic.com/topics/it+consultanthttp://www.techrepublic.com/topics/itilhttp://www.techrepublic.com/topics/itilhttp://www.techrepublic.com/topics/project+managementhttp://www.techrepublic.com/topics/project+managementhttp://www.techrepublic.com/topics/business+intelligencehttp://www.techrepublic.com/topics/business+intelligencehttp://www.techrepublic.com/topics/business+intelligencehttp://www.techrepublic.com/topics/project+managementhttp://www.techrepublic.com/topics/itilhttp://www.techrepublic.com/topics/it+consultanthttp://www.techrepublic.com/topics/compliancehttp://www.techrepublic.com/topics/careerhttp://www.techrepublic.com/topics/leadershiphttp://www.techrepublic.com/research-libraryhttp://www.techrepublic.com/traininghttp://www.techrepublic.com/forum/discussionshttp://www.techrepublic.com/forum/questionshttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/downloadshttp://www.techrepublic.com/blogshttp://www.techrepublic.com/http://www.techrepublic.com/http://www.techrepublic.com/http://www.smartplanet.com/http://www.zdnet.com/http://www.techrepublic.com/prohttp://www.techrepublic.com/faq/generalhttp://www.techrepublic.com/members/join?regSrc=global-reghttp://www.techrepublic.com/members/login?regSrc=global-reghttp://www.techrepublic.com/members/messagehttp://www.techrepublic.com/members/preferenceshttp://www.techrepublic.com/members/discussionshttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/members/contactshttp://www.techrepublic.com/members/profilehttp://www.techrepublic.com/prohttp://www.techrepublic.com/faq/generalhttp://www.techrepublic.com/members/dashboardhttp://www.techrepublic.com/members/logout8/3/2019 cmp-joins
2/20
Web Development Software Development Mobile Development Help Desk Desktop Applications Mobile Computing Microsoft Windows Apple Linux Cloud Computing Database Administration Servers Storage Virtualization LAN/WAN Wireless Unified Communications VoIP Anti-Malware Compliance IT Risk Management
1
Search
All of TechRepublic Publications Library
Collapse -
10 ways to diagnose ailing PCs
Top IT skills wanted for 2012
http://www.techrepublic.com/topics/business+intelligencehttp://www.techrepublic.com/topics/business+intelligencehttp://www.techrepublic.com/topics/web+developmenthttp://www.techrepublic.com/topics/web+developmenthttp://www.techrepublic.com/topics/software+developmenthttp://www.techrepublic.com/topics/software+developmenthttp://www.techrepublic.com/topics/mobile+developmenthttp://www.techrepublic.com/topics/mobile+developmenthttp://www.techrepublic.com/topics/help+deskhttp://www.techrepublic.com/topics/help+deskhttp://www.techrepublic.com/topics/desktop+applicationshttp://www.techrepublic.com/topics/desktop+applicationshttp://www.techrepublic.com/topics/mobile+computinghttp://www.techrepublic.com/topics/mobile+computinghttp://www.techrepublic.com/topics/microsoft+windowshttp://www.techrepublic.com/topics/microsoft+windowshttp://www.techrepublic.com/topics/applehttp://www.techrepublic.com/topics/applehttp://www.techrepublic.com/topics/linuxhttp://www.techrepublic.com/topics/linuxhttp://www.techrepublic.com/topics/cloud+computinghttp://www.techrepublic.com/topics/cloud+computinghttp://www.techrepublic.com/topics/database+administrationhttp://www.techrepublic.com/topics/database+administrationhttp://www.techrepublic.com/topics/servershttp://www.techrepublic.com/topics/servershttp://www.techrepublic.com/topics/storagehttp://www.techrepublic.com/topics/storagehttp://www.techrepublic.com/topics/virtualizationhttp://www.techrepublic.com/topics/virtualizationhttp://www.techrepublic.com/topics/lanhttp://www.techrepublic.com/topics/lanhttp://www.techrepublic.com/topics/wirelesshttp://www.techrepublic.com/topics/wirelesshttp://www.techrepublic.com/topics/unified+communicationshttp://www.techrepublic.com/topics/unified+communicationshttp://www.techrepublic.com/topics/voiphttp://www.techrepublic.com/topics/voiphttp://www.techrepublic.com/topics/anti-malwarehttp://www.techrepublic.com/topics/anti-malwarehttp://www.techrepublic.com/topics/compliancehttp://www.techrepublic.com/topics/compliancehttp://www.techrepublic.com/topics/it+risk+managementhttp://www.techrepublic.com/topics/it+risk+managementhttp://www.techrepublic.com/blog/10things/10-ways-to-diagnose-ailing-pcs-step-by-step/2750http://www.techrepublic.com/blog/career/top-it-skills-wanted-for-2012/3503http://www.techrepublic.com/blog/career/top-it-skills-wanted-for-2012/3503http://www.techrepublic.com/blog/10things/10-ways-to-diagnose-ailing-pcs-step-by-step/2750http://www.techrepublic.com/topics/it+risk+managementhttp://www.techrepublic.com/topics/compliancehttp://www.techrepublic.com/topics/anti-malwarehttp://www.techrepublic.com/topics/voiphttp://www.techrepublic.com/topics/unified+communicationshttp://www.techrepublic.com/topics/wirelesshttp://www.techrepublic.com/topics/lanhttp://www.techrepublic.com/topics/virtualizationhttp://www.techrepublic.com/topics/storagehttp://www.techrepublic.com/topics/servershttp://www.techrepublic.com/topics/database+administrationhttp://www.techrepublic.com/topics/cloud+computinghttp://www.techrepublic.com/topics/linuxhttp://www.techrepublic.com/topics/applehttp://www.techrepublic.com/topics/microsoft+windowshttp://www.techrepublic.com/topics/mobile+computinghttp://www.techrepublic.com/topics/desktop+applicationshttp://www.techrepublic.com/topics/help+deskhttp://www.techrepublic.com/topics/mobile+developmenthttp://www.techrepublic.com/topics/software+developmenthttp://www.techrepublic.com/topics/web+development8/3/2019 cmp-joins
3/20
What IT will look like in 2015
17Comments
more +
Email Print Add to Favorites Del.icio.us Digg Hacker News LinkedIn Reddit Technorati
Basic and complex SQL joins made easy
By Shelley Doll
July 8, 2002, 7:00am PDT
If youre new to SQL, joins can be a daunting concept. There are many different types of
joins and seemingly little information available that explains and compares them. But afteryou digest a few basic concepts, the practice of joins actually isnt very difficult.
Lets look at the fundamentals that should give you a solid, functional knowledge of how to
use the JOIN statement. We wont consider some more advanced JOIN statement concepts,
such as aliasing, join order, conceptual joins, and join hints. While the descriptions Ill
present in this article relate directly to Microsoft SQL Server, they also apply to anySQL92-
compliant database.
The JOIN concept
JOIN is a query clause that can be used with the SELECT, UPDATE, and DELETE data
query statements to simultaneously affect rows from multiple tables. There are several
distinct types of JOIN statements that return different data result sets.
Joined tables must each include at least one field in both tables that contain comparable data.
For example, if you want to join a Customertable and a Transaction table, they both must
contain a common element, such as a CustomerID column, to serve as a key on which the
data can be matched. Tables can be joined on multiple columns so long as the columns have
the potential to supply matching information. Column names across tables don't have to be
the same, although for readability this standard is generally preferred.
http://www.techrepublic.com/blog/hiner/what-the-it-department-will-look-like-in-2015/9306http://www.techrepublic.com/article/basic-and-complex-sql-joins-made-easy/1046273#talkbackhttp://www.techrepublic.com/article/basic-and-complex-sql-joins-made-easy/1046273#talkbackhttp://www.odbmsfacts.com/articles/sql-92.htmlhttp://www.odbmsfacts.com/articles/sql-92.htmlhttp://www.odbmsfacts.com/articles/sql-92.htmlhttp://www.odbmsfacts.com/articles/sql-92.htmlhttp://www.odbmsfacts.com/articles/sql-92.htmlhttp://www.odbmsfacts.com/articles/sql-92.htmlhttp://www.techrepublic.com/article/basic-and-complex-sql-joins-made-easy/1046273#talkbackhttp://www.techrepublic.com/blog/hiner/what-the-it-department-will-look-like-in-2015/93068/3/2019 cmp-joins
4/20
When you do use like column names in multiple tables, you must use fully qualified column
names. This is a dot notation that combines the names of tables and columns. For example,
if I have two tables, Customerand Transaction, and they both contain the column
CustomerID, Id use the dot notation, as in Customer.CustomerID and
Transaction.CustomerID,to let the database know which column from which table Im
referring.
Now that weve examined the basic theory, lets take a look at the various types of joins and
examples of each.
The basic JOIN statement
A basic JOIN statement has the following format:
SELECT Customer.CustomerID, TransID, TransAmt
FROM Customer JOIN Transaction
ON Customer.CustomerID = Transaction.CustomerID;
In practice, you'd never use the example above because the type of join is not specified. Inthis case, SQL Server assumes an INNER JOIN. You can get the equivalent to this query by
using the statement:
SELECT Customer.CustomerID, TransID, TransAmt
FROM Customer, Transaction;
However, the example is useful to point out a few noteworthy concepts:
TransID and TransAmtdo not require fully qualified names because they exist in onlyone of the tables. You can use fully qualified names for readability if you wish.
The Customertable is considered to be the left table because it was called first.Likewise, the Transactiontable is the right table.
You can use more than two tables, in which case each one is naturally joined to thecumulative result in the order they are listed, unless controlled by other functionality
such as join hints or parenthesis.
You may use WHERE and ORDER BY clauses with any JOIN statement to limit thescope of your results. Note that these clauses are applied to the results of your JOIN
statement.
SQL Server does not recognize the semicolon (;), but I use it in the included examplesto denote the end of each statement, as would be expected by most other RDBMSs.
The notorious CROSS JOIN
The CROSS JOIN has earned a bad reputation because its very resource intensive and
returns results of questionable usefulness. When you use the CROSS JOIN, you're given a
result set containing every possible combination of the rows returned from each table. Take
the following example:
SELECT CustomerName, TransDate, TransAmt
FROM Customer CROSS JOIN Transaction;
With the CROSS JOIN, you arent actually free to limit the results, but you can use the
ORDER BY clause to control the way they are returned. If the tables joined in this example
contained only five rows each, you would get 25 rows of results. Every CustomerNamewould be listed as associated with every TransDate and TransAmt.
8/3/2019 cmp-joins
5/20
I really did try to come up with examples where this function was useful, and they were all
very contrived. However, Im sure someone out there is generating lists of all their products
in all possible colors or something similar, or we wouldnt have this wonderful but dangerous
feature.
The INNER JOIN drops rows
When you perform an INNER JOIN, only rows that match up are returned. Any time a row
from either table doesnt have corresponding values from the other table, it is disregarded.
Because stray rows arent included, you dont have any of the left and right nonsense to
deal with and the order in which you present tables matters only if you have more than two to
compare. Since this is a simple concept, heres a simple example:
SELECT CustomerName, TransDate
FROM Customer INNER JOIN Transaction
ON Customer.CustomerID = Transaction.CustomerID;
If a row in the Transaction table contains a CustomerIDthats not listed in the Customertable, that row will not be returned as part of the result set. Likewise, if the Customertable
has a CustomerID with no corresponding rows in the Transaction table, the row from the
Customertable wont be returned.
The OUTER JOIN can include mismatched rows
OUTER JOINs, sometimes called complex joins, arent actually complicated. They are so -
called because SQL Server performs two functions for each OUTER JOIN.
The first function performed is an INNER JOIN. The second function includes the rows that
the INNER JOIN would have dropped. Which rows are included depends on the type of
OUTER JOIN that is used and the order the tables were presented.
There are three types of an OUTER JOIN: LEFT, RIGHT, and FULL. As youve probably
guessed, the LEFT OUTER JOIN keeps the stray rows from the left table (the one listed
first in your query statement). In the result set, columns from the other table that have no
corresponding data are filled with NULL values. Similarly, the RIGHT OUTER JOIN keeps
stray rows from the right table, filling columns from the left table with NULL values. The
FULL OUTER JOIN keeps all stray rows as part of the result set. Here is your example:
SELECT CustomerName, TransDate, TransAmt
FROM Customer LEFT OUTER JOIN Transaction
ON Customer.CustomerID = Transaction.CustomerID;
Customer names that have no associated transactions will still be displayed. However,
transactions with no corresponding customers will not, because we used a LEFT OUTER
JOIN and the Customertable was listed first.
In SQL Server, the word OUTER is actually optional. The clauses LEFT JOIN, RIGHT
JOIN, and FULL JOIN are equivalent to LEFT OUTER JOIN, RIGHT OUTER JOIN, and
FULL OUTER JOIN, respectively.
Another addition to your SQL toolbox
Although the JOIN statement is often perceived as a complicated concept, you can now seethat its a powerful timesaving resource thats relatively easy to understand. Use this
8/3/2019 cmp-joins
6/20
functionality to get related information from multiple tables with a single query and to
skillfully reference normalized data. Once youve mastered JOINs, you can elegantly
maneuver within even the most complex database.
17
Comments
Add Your Opinion
Join the conversation!
Follow via:
RSS
Email Alert
Go to comment
Just In
RE: Basic and complex SQL joins made easy
[email protected] Oct 2008
The information provided was extremely informative. However, if someone can provide me
with more examples of JOIN, it will be really helpful.
Regards,
Maajid
[email protected] Preferences
View:
Expanded
Collapsed Expanded
Show:50
25 50 100 All
0 Votes
+-
Example is NOT a cross join
MikeSQLDBA7th Jul 2002
http://www.techrepublic.com/article/basic-and-complex-sql-joins-made-easy/1046273#leavecommenthttp://www.techrepublic.com/article/basic-and-complex-sql-joins-made-easy/1046273#leavecommenthttp://www.techrepublic.com/forum/discussions/10-97961/rsshttp://www.techrepublic.com/forum/discussions/10-97961/rsshttp://www.techrepublic.com/alerts/add?url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961%2Frss&title=Discussion+on+Basic+and+complex+SQL+joins+made+easy+on+TechRepublic&source=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273&frequency=weeklyhttp://www.techrepublic.com/alerts/add?url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961%2Frss&title=Discussion+on+Basic+and+complex+SQL+joins+made+easy+on+TechRepublic&source=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273&frequency=weeklyhttp://www.techrepublic.com/forum/discussions/10-97961-2608358http://www.techrepublic.com/forum/discussions/10-97961-2608358http://www.techrepublic.com/members/profile/5129288http://www.techrepublic.com/members/profile/5129288http://www.techrepublic.com/members/preferences#communityhttp://www.techrepublic.com/members/preferences#communityhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=collapsedhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=collapsedhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=25&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=25&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=100&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=100&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=all&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=all&view=expandedhttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-588829http://www.techrepublic.com/forum/discussions/10-97961-588829http://www.techrepublic.com/members/profile/3080662http://www.techrepublic.com/members/profile/3080662http://www.techrepublic.com/members/profile/3080662http://www.techrepublic.com/forum/discussions/10-97961-588829http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961?count=all&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=100&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=25&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=expandedhttp://www.techrepublic.com/forum/discussions/10-97961?count=50&view=collapsedhttp://www.techrepublic.com/members/preferences#communityhttp://www.techrepublic.com/members/profile/5129288http://www.techrepublic.com/forum/discussions/10-97961-2608358http://www.techrepublic.com/alerts/add?url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961%2Frss&title=Discussion+on+Basic+and+complex+SQL+joins+made+easy+on+TechRepublic&source=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273&frequency=weeklyhttp://www.techrepublic.com/forum/discussions/10-97961/rsshttp://www.techrepublic.com/article/basic-and-complex-sql-joins-made-easy/1046273#leavecomment8/3/2019 cmp-joins
7/20
The author stated:
A basic JOIN statement has the following format:
SELECT Customer.CustomerID, TransID, TransAmt
FROM Customer JOIN TransactionON Customer.CustomerID = Transaction.CustomerID;
In practice, you?d never use the example above because the type of join is not specified. SQL
Server assumes an INNER JOIN if not specified, unless there is no WHERE clause, as in the
statement above. In this case, the JOIN is treated as a CROSS JOIN (explained later). As it
stands, you can get the equivalent to this query by using the statement:
SELECT Customer.CustomerID, TransID, TransAmt
FROM Customer, Transaction;
I have to disagree:
SELECT Customer.CustomerID, TransID, TransAmt
FROM Customer JOIN Transaction
ON Customer.CustomerID = Transaction.CustomerID;
is NOT a cross join with SQL Server 7, it is in fact an inner join, assuming of course the
CustomerID is the primary key for table Customer and that (CustomerID, TransID) is the
primary key for table Transaction. A cross join would join each row of Customer with each
row of Transaction, regardless of the customer id. That does not occur with the author's first
example. The customer id's are matched between the two tables as expected.
Reply Flag Favorite
PreviousNext
PreviousNext
0 Votes
+-
I stand corrected
shelleydoll8th Jul 2002
You are correct - The basic JOIN example provided is NOT a CROSS JOIN, because it does
specify fields to be joined on. MS SQL Server will treat this as an INNER JOIN.
I have requested that the text in the article be changed. Thank you for catching this!
Reply Flag Favorite
http://www.techrepublic.com/forum/discussions/10-97961-588829/replyhttp://www.techrepublic.com/forum/discussions/10-97961-588829/replyhttp://www.techrepublic.com/forum/discussions/10-97961-588829/reporthttp://www.techrepublic.com/forum/discussions/10-97961-588829/reporthttp://www.techrepublic.com/util/favorite?title=Example+is+NOT+a+cross+join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-588829&contentType=message&contentId=588829&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=Example+is+NOT+a+cross+join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-588829&contentType=message&contentId=588829&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-589005http://www.techrepublic.com/forum/discussions/10-97961-589005http://www.techrepublic.com/members/profile/2304178http://www.techrepublic.com/members/profile/2304178http://www.techrepublic.com/forum/discussions/10-97961-589005/replyhttp://www.techrepublic.com/forum/discussions/10-97961-589005/replyhttp://www.techrepublic.com/forum/discussions/10-97961-589005/reporthttp://www.techrepublic.com/forum/discussions/10-97961-589005/reporthttp://www.techrepublic.com/util/favorite?title=I+stand+corrected&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589005&contentType=message&contentId=589005&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=I+stand+corrected&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589005&contentType=message&contentId=589005&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=I+stand+corrected&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589005&contentType=message&contentId=589005&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-589005/reporthttp://www.techrepublic.com/forum/discussions/10-97961-589005/replyhttp://www.techrepublic.com/members/profile/2304178http://www.techrepublic.com/forum/discussions/10-97961-589005http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=Example+is+NOT+a+cross+join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-588829&contentType=message&contentId=588829&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-588829/reporthttp://www.techrepublic.com/forum/discussions/10-97961-588829/reply8/3/2019 cmp-joins
8/20
0 Votes
+-
Cross Join _IS_ Cross Join
[email protected] May 2003
The Cross Join specified _IS_ a cross join because of the specification in the join statement.
select * from a CROSS JOIN b on a.key = b.key;
NOTE: the word CROSS before JOIN.
Her example indicated that the assumption would be inner joinFOR THE FIRST EXAMPLE
which is TRUE for most SQL (however one database in particular -Teradata - mayimplement a cross join in the optimizing of the join for large/small table joins) It was the
SECOND EXAMPLE that was a CROSS JOIN because of the use of CROSS before the
word JOIN in the SQL.
Am I reading you wrong?
Reply Flag Favorite
0 Votes+-
Cross joins
R. A.8th Jul 2002
You said that
"SELECT Customer.CustomerID, TransID, TransAmt
FROM Customer JOIN TransactionON Customer.CustomerID = Transaction.CustomerID;
"...In this case, the JOIN is treated as a CROSS JOIN (explained later). As it stands, you can
get the equivalent to this query by using the statement:
"SELECT Customer.CustomerID, TransID, TransAmt
FROM Customer, Transaction;"
What am I missing here? The first example doesn't look like a cross join to me, as you are
specifying that for a row to be selected the customer id columns have to match.
Reply
http://www.techrepublic.com/util/favorite?title=I+stand+corrected&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589005&contentType=message&contentId=589005&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-768197http://www.techrepublic.com/forum/discussions/10-97961-768197http://www.techrepublic.com/members/profile/520495http://www.techrepublic.com/members/profile/520495http://www.techrepublic.com/forum/discussions/10-97961-768197/replyhttp://www.techrepublic.com/forum/discussions/10-97961-768197/replyhttp://www.techrepublic.com/forum/discussions/10-97961-768197/reporthttp://www.techrepublic.com/forum/discussions/10-97961-768197/reporthttp://www.techrepublic.com/util/favorite?title=Cross+Join+_IS_+Cross+Join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-768197&contentType=message&contentId=768197&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=Cross+Join+_IS_+Cross+Join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-768197&contentType=message&contentId=768197&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-588927http://www.techrepublic.com/forum/discussions/10-97961-588927http://www.techrepublic.com/members/profile/3393510http://www.techrepublic.com/members/profile/3393510http://www.techrepublic.com/forum/discussions/10-97961-588927/replyhttp://www.techrepublic.com/forum/discussions/10-97961-588927/replyhttp://www.techrepublic.com/forum/discussions/10-97961-588927/replyhttp://www.techrepublic.com/members/profile/3393510http://www.techrepublic.com/forum/discussions/10-97961-588927http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=Cross+Join+_IS_+Cross+Join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-768197&contentType=message&contentId=768197&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-768197/reporthttp://www.techrepublic.com/forum/discussions/10-97961-768197/replyhttp://www.techrepublic.com/members/profile/520495http://www.techrepublic.com/forum/discussions/10-97961-768197http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/vote8/3/2019 cmp-joins
9/20
Flag Favorite
0 Votes
+-
Another bad article
[email protected] Jul 2002
Not only is the first example rather obviously not a "cross join" but there was no explanation
of the notion that a join almost always results in redundant information. That is, when you
join tables, you are undoing the "normalization" that was done for the purpose of having each
"fact" in the database stored in exactly one place.
In the Customer / Transaction example, joining the tables causes the customer information tobe repeated N times, where N is the number of transaction records forthe customer.
Reply Flag Favorite
0 Votes
+-
Another bad remark
Stonie-ASP9th Jul 2002
In the real world the joining of tables is a common task. Sure normalization is being undone.
But what other solution are you suggesting? Surely you must be working with simple data if
you don?t perform joins?
Stonie.
Reply Flag Favorite
0 Votes
+-
Read the email discussion
[email protected] Jul 2002
The fact that the example is incorrect has been acknowledged (see 8-JUN-2002 discussion
thread) and the author has requested that the article text be corrected. So enough already.
http://www.techrepublic.com/forum/discussions/10-97961-588927/replyhttp://www.techrepublic.com/forum/discussions/10-97961-588927/replyhttp://www.techrepublic.com/forum/discussions/10-97961-588927/reporthttp://www.techrepublic.com/forum/discussions/10-97961-588927/reporthttp://www.techrepublic.com/util/favorite?title=Cross+joins&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-588927&contentType=message&contentId=588927&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=Cross+joins&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-588927&contentType=message&contentId=588927&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-589543http://www.techrepublic.com/forum/discussions/10-97961-589543http://www.techrepublic.com/members/profile/3101675http://www.techrepublic.com/members/profile/3101675http://www.techrepublic.com/forum/discussions/10-97961-589543/replyhttp://www.techrepublic.com/forum/discussions/10-97961-589543/replyhttp://www.techrepublic.com/forum/discussions/10-97961-589543/reporthttp://www.techrepublic.com/forum/discussions/10-97961-589543/reporthttp://www.techrepublic.com/util/favorite?title=Another+bad+article&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589543&contentType=message&contentId=589543&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=Another+bad+article&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589543&contentType=message&contentId=589543&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-589974http://www.techrepublic.com/forum/discussions/10-97961-589974http://www.techrepublic.com/members/profile/2938721http://www.techrepublic.com/members/profile/2938721http://www.techrepublic.com/forum/discussions/10-97961-589974/replyhttp://www.techrepublic.com/forum/discussions/10-97961-589974/replyhttp://www.techrepublic.com/forum/discussions/10-97961-589974/reporthttp://www.techrepublic.com/forum/discussions/10-97961-589974/reporthttp://www.techrepublic.com/util/favorite?title=Another+bad+remark&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589974&contentType=message&contentId=589974&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=Another+bad+remark&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589974&contentType=message&contentId=589974&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-590558http://www.techrepublic.com/forum/discussions/10-97961-590558http://www.techrepublic.com/members/profile/2184817http://www.techrepublic.com/members/profile/2184817http://www.techrepublic.com/members/profile/2184817http://www.techrepublic.com/forum/discussions/10-97961-590558http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=Another+bad+remark&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589974&contentType=message&contentId=589974&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-589974/reporthttp://www.techrepublic.com/forum/discussions/10-97961-589974/replyhttp://www.techrepublic.com/members/profile/2938721http://www.techrepublic.com/forum/discussions/10-97961-589974http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=Another+bad+article&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589543&contentType=message&contentId=589543&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-589543/reporthttp://www.techrepublic.com/forum/discussions/10-97961-589543/replyhttp://www.techrepublic.com/members/profile/3101675http://www.techrepublic.com/forum/discussions/10-97961-589543http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=Cross+joins&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-588927&contentType=message&contentId=588927&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-588927/report8/3/2019 cmp-joins
10/20
Second, what are you saying...don't ever join anything????
...And joins don't "almost always" result "in redundant information" unless you choose to
include redundant data columns in your select statement.
Sheesh!!
Reply Flag Favorite
0 Votes
+-
redundant data ? what redundant data ?
[email protected] Sep 2002
The purpose of normalization is, as you say, to not store redundant data. There is however
never been said to the best of my knowledge, that one should not join these tables in purpose
of display, analysis etc..
A resultset does not constitute asstorage (beyond the appropiate caches perhaps..), and no
normalization has been 'undone' as you say.
And there is no guarantee that the result of a join will result in repeating data, depends on
data at hand does it not ? and what about aggregated sql's ? union all constructs ?cube/rollup's ?
What is your data, that allows you to operate in a manner that means you never have to join
anything ? Cant think of any business in real world that has such kind of data ?
Most stupid post i've seen here at builder..
Reply Flag Favorite
0 Votes
+-
Not a Cross Join
[email protected] Jul 2002
The example states that the returned result set would consist of 25 rows, this is incorrect. The
result set would only contain 5 rows.
As in the example below...
http://www.techrepublic.com/forum/discussions/10-97961-590558/replyhttp://www.techrepublic.com/forum/discussions/10-97961-590558/replyhttp://www.techrepublic.com/forum/discussions/10-97961-590558/reporthttp://www.techrepublic.com/forum/discussions/10-97961-590558/reporthttp://www.techrepublic.com/util/favorite?title=Read+the+email+discussion&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-590558&contentType=message&contentId=590558&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=Read+the+email+discussion&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-590558&contentType=message&contentId=590558&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-632935http://www.techrepublic.com/forum/discussions/10-97961-632935http://www.techrepublic.com/members/profile/2820064http://www.techrepublic.com/members/profile/2820064http://www.techrepublic.com/forum/discussions/10-97961-632935/replyhttp://www.techrepublic.com/forum/discussions/10-97961-632935/replyhttp://www.techrepublic.com/forum/discussions/10-97961-632935/reporthttp://www.techrepublic.com/forum/discussions/10-97961-632935/reporthttp://www.techrepublic.com/util/favorite?title=redundant+data+%3F+what+redundant+data+%3F&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-632935&contentType=message&contentId=632935&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=redundant+data+%3F+what+redundant+data+%3F&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-632935&contentType=message&contentId=632935&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-589626http://www.techrepublic.com/forum/discussions/10-97961-589626http://www.techrepublic.com/members/profile/2823914http://www.techrepublic.com/members/profile/2823914http://www.techrepublic.com/members/profile/2823914http://www.techrepublic.com/forum/discussions/10-97961-589626http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=redundant+data+%3F+what+redundant+data+%3F&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-632935&contentType=message&contentId=632935&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-632935/reporthttp://www.techrepublic.com/forum/discussions/10-97961-632935/replyhttp://www.techrepublic.com/members/profile/2820064http://www.techrepublic.com/forum/discussions/10-97961-632935http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=Read+the+email+discussion&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-590558&contentType=message&contentId=590558&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-590558/reporthttp://www.techrepublic.com/forum/discussions/10-97961-590558/reply8/3/2019 cmp-joins
11/20
CREATE TABLE TabA
( Col1 INT,
Col2 VARCHAR(20)
)
GO
CREATE TABLE TabB( Col1 INT,
Col2 VARCHAR(20)
)
GO
INSERT INTO TabA VALUES (1,'TabA-Col1')
INSERT INTO TabA VALUES (2,'TabA-Col2')
INSERT INTO TabA VALUES (3,'TabA-Col3')
INSERT INTO TabA VALUES (4,'TabA-Col4')
INSERT INTO TabA VALUES (5,'TabA-Col5')
INSERT INTO TabB VALUES (1,'TabB-Col1')INSERT INTO TabB VALUES (2,'TabB-Col2')
INSERT INTO TabB VALUES (3,'TabB-Col3')
INSERT INTO TabB VALUES (4,'TabB-Col4')
INSERT INTO TabB VALUES (5,'TabB-Col5')
GO
SELECT TabA.Col1, TabB.Col1,
TabA.Col2, TabB.Col2
FROM TabA JOIN TabB ON TabA.Col1 = TabB.Col1
Returns....
1 1 TabA-Col1 TabB-Col1
2 2 TabA-Col2 TabB-Col2
3 3 TabA-Col3 TabB-Col3
4 4 TabA-Col4 TabB-Col4
5 5 TabA-Col5 TabB-Col5
Reply
Flag Favorite
0 Votes
+-
error acknowledged, enough already
[email protected] Jul 2002
The fact that the example is incorrect has been acknowledged (see 8-JUN-2002 discussion
thread) and the author has requested that the article text be corrected. So enough already.
http://www.techrepublic.com/forum/discussions/10-97961-589626/replyhttp://www.techrepublic.com/forum/discussions/10-97961-589626/replyhttp://www.techrepublic.com/forum/discussions/10-97961-589626/reporthttp://www.techrepublic.com/forum/discussions/10-97961-589626/reporthttp://www.techrepublic.com/util/favorite?title=Not+a+Cross+Join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589626&contentType=message&contentId=589626&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=Not+a+Cross+Join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589626&contentType=message&contentId=589626&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-590564http://www.techrepublic.com/forum/discussions/10-97961-590564http://www.techrepublic.com/members/profile/2184817http://www.techrepublic.com/members/profile/2184817http://www.techrepublic.com/members/profile/2184817http://www.techrepublic.com/forum/discussions/10-97961-590564http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=Not+a+Cross+Join&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-589626&contentType=message&contentId=589626&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-589626/reporthttp://www.techrepublic.com/forum/discussions/10-97961-589626/reply8/3/2019 cmp-joins
12/20
Reply Flag Favorite
0 Votes
+-
Technical articles on this site, please!
Skiffrace212th Jul 2002
Builder.com should use it's server space and our connection bandwidth on something better
than "2+2=4"-level "technical articles".
Reply Flag Favorite
0 Votes
+-
It's only basic because....
privately_owed12th Jul 2002
...you already know it.
Reply Flag Favorite
0 Votes
+-
JOIN might be the thing....
M Hamil16th Jul 2002
Appreciate the article. Could you please give me a little more info for what I am trying to do.
I think that JOIN might be what I need.
From one table (CELLS) I want to select records that meet certain conditions, as shown in the
first WHERE clause. Then from the same table I'd like to select the records that meet the
second WHERE clause condition. I want the output all together. Would this be joining a table
to itself?
SELECT ce.cell_id
FROM cells ce,
http://www.techrepublic.com/forum/discussions/10-97961-590564/replyhttp://www.techrepublic.com/forum/discussions/10-97961-590564/replyhttp://www.techrepublic.com/forum/discussions/10-97961-590564/reporthttp://www.techrepublic.com/forum/discussions/10-97961-590564/reporthttp://www.techrepublic.com/util/favorite?title=error+acknowledged%2C+enough+already&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-590564&contentType=message&contentId=590564&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=error+acknowledged%2C+enough+already&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-590564&contentType=message&contentId=590564&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-592092http://www.techrepublic.com/forum/discussions/10-97961-592092http://www.techrepublic.com/members/profile/2835526http://www.techrepublic.com/members/profile/2835526http://www.techrepublic.com/forum/discussions/10-97961-592092/replyhttp://www.techrepublic.com/forum/discussions/10-97961-592092/replyhttp://www.techrepublic.com/forum/discussions/10-97961-592092/reporthttp://www.techrepublic.com/forum/discussions/10-97961-592092/reporthttp://www.techrepublic.com/util/favorite?title=Technical+articles+on+this+site%2C+please%21&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-592092&contentType=message&contentId=592092&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=Technical+articles+on+this+site%2C+please%21&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-592092&contentType=message&contentId=592092&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-592159http://www.techrepublic.com/forum/discussions/10-97961-592159http://www.techrepublic.com/members/profile/1143309http://www.techrepublic.com/members/profile/1143309http://www.techrepublic.com/forum/discussions/10-97961-592159/replyhttp://www.techrepublic.com/forum/discussions/10-97961-592159/replyhttp://www.techrepublic.com/forum/discussions/10-97961-592159/reporthttp://www.techrepublic.com/forum/discussions/10-97961-592159/reporthttp://www.techrepublic.com/util/favorite?title=It%27s+only+basic+because....&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-592159&contentType=message&contentId=592159&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=It%27s+only+basic+because....&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-592159&contentType=message&contentId=592159&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-594021http://www.techrepublic.com/forum/discussions/10-97961-594021http://www.techrepublic.com/members/profile/838287http://www.techrepublic.com/members/profile/838287http://www.techrepublic.com/members/profile/838287http://www.techrepublic.com/forum/discussions/10-97961-594021http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=It%27s+only+basic+because....&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-592159&contentType=message&contentId=592159&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-592159/reporthttp://www.techrepublic.com/forum/discussions/10-97961-592159/replyhttp://www.techrepublic.com/members/profile/1143309http://www.techrepublic.com/forum/discussions/10-97961-592159http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=Technical+articles+on+this+site%2C+please%21&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-592092&contentType=message&contentId=592092&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-592092/reporthttp://www.techrepublic.com/forum/discussions/10-97961-592092/replyhttp://www.techrepublic.com/members/profile/2835526http://www.techrepublic.com/forum/discussions/10-97961-592092http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=error+acknowledged%2C+enough+already&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-590564&contentType=message&contentId=590564&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-590564/reporthttp://www.techrepublic.com/forum/discussions/10-97961-590564/reply8/3/2019 cmp-joins
13/20
cell_names cn,
extent_typeet,
extent_size es,
cell_extent_copy cec
WHERE ce.cell_id = cn.cell_id and
ce.cell_id = cec.cell_id_nmbr andcn.cell_name_current = 'Y' and
ce.cell_size = es.extent_size_name and
ce.cell_type = et.extent_type_descr;
SELECTce.cell_id
FROM cells ce
WHERE ce.CELL_TYPE is null;
Reply Flag Favorite
0 Votes
+-
OR keyword
shelleydoll17th Jul 2002
Actually, if I understand what you're looking for correctly, it's much more simple a problem
than that. Please tell me if this is incorrect: you're looking for a list of cell ids that eithermatch the first query or the second query.
If that's thecase, you can use the OR keyword in your WHERE clause. Your query should go
something like:
SELECT ce.cell_id
FROM cells ce,
cell_names cn,
extent_type et,
extent_size es,
cell_extent_copy cec
WHERE (ce.cell_id = cn.cell_id andce.cell_id = cec.cell_id_nmbr and
cn.cell_name_current = 'Y' and
ce.cell_size = es.extent_size_name and
ce.cell_type = et.extent_type_descr)
OR
(ce.CELL_TYPE is null);
Reply Flag Favorite
0 Votes
http://www.techrepublic.com/forum/discussions/10-97961-594021/replyhttp://www.techrepublic.com/forum/discussions/10-97961-594021/replyhttp://www.techrepublic.com/forum/discussions/10-97961-594021/reporthttp://www.techrepublic.com/forum/discussions/10-97961-594021/reporthttp://www.techrepublic.com/util/favorite?title=JOIN+might+be+the+thing....&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-594021&contentType=message&contentId=594021&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=JOIN+might+be+the+thing....&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-594021&contentType=message&contentId=594021&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-594623http://www.techrepublic.com/forum/discussions/10-97961-594623http://www.techrepublic.com/members/profile/2304178http://www.techrepublic.com/members/profile/2304178http://www.techrepublic.com/forum/discussions/10-97961-594623/replyhttp://www.techrepublic.com/forum/discussions/10-97961-594623/replyhttp://www.techrepublic.com/forum/discussions/10-97961-594623/reporthttp://www.techrepublic.com/forum/discussions/10-97961-594623/reporthttp://www.techrepublic.com/util/favorite?title=OR+keyword&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-594623&contentType=message&contentId=594623&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=OR+keyword&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-594623&contentType=message&contentId=594623&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=OR+keyword&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-594623&contentType=message&contentId=594623&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-594623/reporthttp://www.techrepublic.com/forum/discussions/10-97961-594623/replyhttp://www.techrepublic.com/members/profile/2304178http://www.techrepublic.com/forum/discussions/10-97961-594623http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=JOIN+might+be+the+thing....&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-594021&contentType=message&contentId=594021&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-594021/reporthttp://www.techrepublic.com/forum/discussions/10-97961-594021/reply8/3/2019 cmp-joins
14/20
+-
duplicate NULL rows
M Hamil18th Jul 2002
You are correct, I am looking for a list of cell ids that either match the first query or the
second query. However, when I tried the code in your response, it returned the row with the
NULL value numerous times (my data only has 1 row with a NULL value) while the rest of
the non-null valued rows were returned correctly.
What did seem to work though was this code:
SELECT ce.cell_id
FROM cell_names cn,
extent_type et,extent_size es,
cell_extent_copy cec
WHERE ce.cell_id = cn.cell_id and
ce.cell_id = cec.cell_id_nmbr and
cn.cell_name_current = 'Y' and
ce.cell_size = upper(es.extent_size_name) and
ce.cell_type = upper(et.extent_type_descr)
UNION
SELECT ce.cell_id
FROM cells ce,
cell_names cn,extent_type et,
extent_size es,
cell_extent_copy cec
WHERE ce.cell_id = cn.cell_id and
ce.cell_id = cec.cell_id_nmbr and
cn.cell_name_current = 'Y' and
ce.cell_size = upper(es.extent_size_name) and ce.cell_type is null;
And also the following code provided the correct results:
SELECT distinct (ce.cell_id)FROM cells ce,
cell_names cn,
extent_type et,
extent_size es,
cell_extent_copy cec
WHERE (ce.cell_id= cn.cell_id and
ce.cell_id = cec.cell_id_nmbr and
cn.cell_name_current = 'Y' and
ce.cell_size = upper(es.extent_size_name) )
and
(ce.cell_type = upper(et.extent_type_descr)
or
http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-595488http://www.techrepublic.com/forum/discussions/10-97961-595488http://www.techrepublic.com/members/profile/838287http://www.techrepublic.com/members/profile/838287http://www.techrepublic.com/members/profile/838287http://www.techrepublic.com/forum/discussions/10-97961-595488http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/vote8/3/2019 cmp-joins
15/20
ce.cell_type is null);
I'mnot sure why the 'distinct' had to be put in.
Any idea?
As you've probably noticed, I posted this problem to you also in a SQL Query article youwrote. Because someone else may be interested in this topic but thinking about it along those
thoughts, I will copy this response there as well.
Thank you. MH
Reply Flag Favorite
0 Votes
+-
I agree with Lamont!
fac29th Aug 2002
SWPDEVPR, If you are a database expert then don't read the articles. I find them very
informative as a beginner and to be honest it was the easiest to understand description I've
seen of SQL Server Joins. I think people who are willing to provide the time to write articles
should be applauded and not ridiculed. She acknowledged her error and fixed it!!! If you are
so good, why don't you write some articles for advanced users! (:-))
Frank
Reply Flag Favorite
0 Votes
+-
RE: Basic and complex SQL joins made easy
[email protected] Oct 2008
The information provided was extremely informative. However, if someone can provide me
with more examples of JOIN, it will be really helpful.
Regards,
Maajid
Reply
http://www.techrepublic.com/forum/discussions/10-97961-595488/replyhttp://www.techrepublic.com/forum/discussions/10-97961-595488/replyhttp://www.techrepublic.com/forum/discussions/10-97961-595488/reporthttp://www.techrepublic.com/forum/discussions/10-97961-595488/reporthttp://www.techrepublic.com/util/favorite?title=duplicate+NULL+rows&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-595488&contentType=message&contentId=595488&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=duplicate+NULL+rows&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-595488&contentType=message&contentId=595488&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-620086http://www.techrepublic.com/forum/discussions/10-97961-620086http://www.techrepublic.com/members/profile/1584634http://www.techrepublic.com/members/profile/1584634http://www.techrepublic.com/forum/discussions/10-97961-620086/replyhttp://www.techrepublic.com/forum/discussions/10-97961-620086/replyhttp://www.techrepublic.com/forum/discussions/10-97961-620086/reporthttp://www.techrepublic.com/forum/discussions/10-97961-620086/reporthttp://www.techrepublic.com/util/favorite?title=I+agree+with+Lamont%21&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-620086&contentType=message&contentId=620086&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=I+agree+with+Lamont%21&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-620086&contentType=message&contentId=620086&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/forum/discussions/10-97961-2608358http://www.techrepublic.com/forum/discussions/10-97961-2608358http://www.techrepublic.com/members/profile/5129288http://www.techrepublic.com/members/profile/5129288http://www.techrepublic.com/forum/discussions/10-97961-2608358/replyhttp://www.techrepublic.com/forum/discussions/10-97961-2608358/replyhttp://www.techrepublic.com/forum/discussions/10-97961-2608358/replyhttp://www.techrepublic.com/members/profile/5129288http://www.techrepublic.com/forum/discussions/10-97961-2608358http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=I+agree+with+Lamont%21&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-620086&contentType=message&contentId=620086&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-620086/reporthttp://www.techrepublic.com/forum/discussions/10-97961-620086/replyhttp://www.techrepublic.com/members/profile/1584634http://www.techrepublic.com/forum/discussions/10-97961-620086http://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/votehttp://www.techrepublic.com/util/favorite?title=duplicate+NULL+rows&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-595488&contentType=message&contentId=595488&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-595488/reporthttp://www.techrepublic.com/forum/discussions/10-97961-595488/reply8/3/2019 cmp-joins
16/20
Flag Favorite
Join the conversation
Subject (Max length: 75 characters)
Comment
10 97961 1046273 Basic and compl http://w w w.tech 10878
ar Shelley Doll
Add Your Opinion
Alert me when new comments are made
Join the TechRepublic Community and join the conversation! Signing-up is free and quick,
Do it now, we want to hear your opinion.
JoinLogin
Keep Up with TechRepublic
TR Dojo
IT Career
Subscribe Today
Discover more newsletters
10 Things
http://www.techrepublic.com/forum/discussions/10-97961-2608358/replyhttp://www.techrepublic.com/forum/discussions/10-97961-2608358/replyhttp://www.techrepublic.com/forum/discussions/10-97961-2608358/reporthttp://www.techrepublic.com/forum/discussions/10-97961-2608358/reporthttp://www.techrepublic.com/util/favorite?title=RE%3A+Basic+and+complex+SQL+joins+made+easy&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-2608358&contentType=message&contentId=2608358&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/util/favorite?title=RE%3A+Basic+and+complex+SQL+joins+made+easy&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-2608358&contentType=message&contentId=2608358&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/members/join?regSrc=disc-starthttp://www.techrepublic.com/members/login?regSrc=disc-starthttp://www.techrepublic.com/members/login?regSrc=disc-starthttp://www.techrepublic.com/members/login?regSrc=disc-starthttp://www.cbsinteractive.com/adfeedback/?REDIRECT=TRUE&RGROUP=8830&SEGMENTID=229965&LINEID=193709&SP=16&ADVERTISERID=7315http://www.techrepublic.com/members/login?regSrc=disc-starthttp://www.techrepublic.com/members/join?regSrc=disc-starthttp://www.techrepublic.com/util/favorite?title=RE%3A+Basic+and+complex+SQL+joins+made+easy&url=http%3A%2F%2Fwww.techrepublic.com%2Fforum%2Fdiscussions%2F10-97961-2608358&contentType=message&contentId=2608358&path=http%3A%2F%2Fwww.techrepublic.com%2Farticle%2Fbasic-and-complex-sql-joins-made-easy%2F1046273http://www.techrepublic.com/forum/discussions/10-97961-2608358/report8/3/2019 cmp-joins
17/20
Sanity Check
Subscribe Today
Follow us however you choose!
Facebook Twitter Linkedin Digg RSS Android iPhone
View All
Hot Discussions
103Still reading banned books
3410 ways to diagnose ailing PCs: Step by step
21Making money on free software
3710 ways to keep Excel from biting you in the butt
Start a Discussion
Vendor Showcase
Get your front row seat to every argument at ZDNet's The Great Debate!
View All
Hot Questions
9Desktop Icons won't stay hidden
8
http://www.facebook.com/TechRepublichttp://www.facebook.com/TechRepublichttp://twitter.com/techrepublichttp://twitter.com/techrepublichttp://www.linkedin.com/groups?gid=38635http://www.linkedin.com/groups?gid=38635http://digg.com/techrepublichttp://digg.com/techrepublichttp://www.techrepublic.com/rssfeedshttp://www.techrepublic.com/rssfeedshttps://market.android.com/details?id=com.lionbridge.android.techrepublichttps://market.android.com/details?id=com.lionbridge.android.techrepublichttp://itunes.apple.com/us/app/techrepublic/id426493569http://itunes.apple.com/us/app/techrepublic/id426493569http://www.techrepublic.com/forum/discussions/hothttp://www.techrepublic.com/forum/discussions/hothttp://www.techrepublic.com/forum/discussions/102-348853http://www.techrepublic.com/forum/discussions/102-348896http://www.techrepublic.com/forum/discussions/102-348866http://www.techrepublic.com/forum/discussions/102-348841http://www.techrepublic.com/forum/discussions/posthttp://www.techrepublic.com/forum/discussions/posthttp://adlog.com.com/adlog/e/t=2011.10.03.20.00.56&x-fid=1&r=19407&sg=537977&o=13054%253A10878%253A&h=cn&p=&b=9&l=&site=11&pt=2403&nd=10878&pid=&cid=1046273&pp=300&e=&rqid=00c13-ad-e17:4E89F7856905A&orh=co.in&oepartner=&epartner=&ppartner=&pdom=google.co.in&cpnmodule=&count=&ra=122.174.36.13&pg=bs9W2QoPOh4AAGJyvIkAAAAK&event=7/http:/www.zdnet.com/debatehttp://adlog.com.com/adlog/e/t=2011.10.03.20.00.56&x-fid=1&r=19407&sg=537977&o=13054%253A10878%253A&h=cn&p=&b=9&l=&site=11&pt=2403&nd=10878&pid=&cid=1046273&pp=300&e=&rqid=00c13-ad-e17:4E89F7856905A&orh=co.in&oepartner=&epartner=&ppartner=&pdom=google.co.in&cpnmodule=&count=&ra=122.174.36.13&pg=bs9W2QoPOh4AAGJyvIkAAAAK&event=7/http:/www.zdnet.com/debatehttp://www.techrepublic.com/forum/questions/hothttp://www.techrepublic.com/forum/questions/hothttp://www.techrepublic.com/forum/questions/101-348970http://www.techrepublic.com/forum/questions/101-348970http://www.techrepublic.com/forum/questions/hothttp://adlog.com.com/adlog/e/t=2011.10.03.20.00.56&x-fid=1&r=19407&sg=537977&o=13054%253A10878%253A&h=cn&p=&b=9&l=&site=11&pt=2403&nd=10878&pid=&cid=1046273&pp=300&e=&rqid=00c13-ad-e17:4E89F7856905A&orh=co.in&oepartner=&epartner=&ppartner=&pdom=google.co.in&cpnmodule=&count=&ra=122.174.36.13&pg=bs9W2QoPOh4AAGJyvIkAAAAK&event=7/http:/www.zdnet.com/debatehttp://www.techrepublic.com/forum/discussions/posthttp://www.techrepublic.com/forum/discussions/102-348841http://www.techrepublic.com/forum/discussions/102-348866http://www.techrepublic.com/forum/discussions/102-348896http://www.techrepublic.com/forum/discussions/102-348853http://www.techrepublic.com/forum/discussions/hothttp://itunes.apple.com/us/app/techrepublic/id426493569https://market.android.com/details?id=com.lionbridge.android.techrepublichttp://www.techrepublic.com/rssfeedshttp://digg.com/techrepublichttp://www.linkedin.com/groups?gid=38635http://twitter.com/techrepublichttp://www.facebook.com/TechRepublic8/3/2019 cmp-joins
18/20
Do i have a bad processor?
4Wireless Repeater
3NEED HELP WITH DMP FILE????
Ask a Question
A CNET Professional Brand
On ZDNetSony Handycam HDR-PJ10 photos and image samples
TechRepublic
Search
Trending Topics
Databases server IT OPERATIONS SECURITY Microsoft Windows XP technical support information technology training mobile MANAGEMENT network Microsoft Office Application Development NETWORKING
Featured TechRepublic Pro Downloads
500 Things You Need To Know To Succeed In Your IT career
http://www.techrepublic.com/forum/questions/101-325809http://www.techrepublic.com/forum/questions/101-348980http://www.techrepublic.com/forum/questions/101-348991http://www.techrepublic.com/forum/questions/posthttp://www.techrepublic.com/forum/questions/posthttp://www.cnet.com/http://www.cnet.com/http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.01.10.PDT&edId=&onId=&ptId=&sId=11&appId=31&offId=5029&unitId=64&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http:%2F%2Fwww.zdnet.com%2Fphotos%2Fsony-handycam-hdr-pj10-photos-and-image-samples%2F6307828http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.01.10.PDT&edId=&onId=&ptId=&sId=11&appId=31&offId=5029&unitId=64&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http:%2F%2Fwww.zdnet.com%2Fphotos%2Fsony-handycam-hdr-pj10-photos-and-image-samples%2F6307828http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.01.10.PDT&edId=&onId=&ptId=&sId=11&appId=31&offId=5029&unitId=64&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http:%2F%2Fwww.zdnet.com%2Fphotos%2Fsony-handycam-hdr-pj10-photos-and-image-samples%2F6307828http://www.techrepublic.com/topics/databaseshttp://www.techrepublic.com/topics/databaseshttp://www.techrepublic.com/topics/serverhttp://www.techrepublic.com/topics/serverhttp://www.techrepublic.com/topics/it+operationshttp://www.techrepublic.com/topics/it+operationshttp://www.techrepublic.com/topics/securityhttp://www.techrepublic.com/topics/securityhttp://www.techrepublic.com/topics/microsoft+windows+xphttp://www.techrepublic.com/topics/microsoft+windows+xphttp://www.techrepublic.com/topics/technical+supporthttp://www.techrepublic.com/topics/technical+supporthttp://www.techrepublic.com/topics/information+technologyhttp://www.techrepublic.com/topics/information+technologyhttp://www.techrepublic.com/topics/traininghttp://www.techrepublic.com/topics/traininghttp://www.techrepublic.com/topics/mobilehttp://www.techrepublic.com/topics/mobilehttp://www.techrepublic.com/topics/managementhttp://www.techrepublic.com/topics/managementhttp://www.techrepublic.com/topics/networkhttp://www.techrepublic.com/topics/networkhttp://www.techrepublic.com/topics/microsoft+officehttp://www.techrepublic.com/topics/microsoft+officehttp://www.techrepublic.com/topics/application+developmenthttp://www.techrepublic.com/topics/application+developmenthttp://www.techrepublic.com/topics/networkinghttp://www.techrepublic.com/topics/networkinghttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=375&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F500-things-you-need-to-know-to-succeed-in-your-it-career%2F929473%3Fsubj%3DSP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=375&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F500-things-you-need-to-know-to-succeed-in-your-it-career%2F929473%3Fsubj%3DSP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=375&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http://www.techrepublic.com/downloads/500-things-you-need-to-know-to-succeed-in-your-it-career/929473?subj=SP001_rubicshttp://www.cbsinteractive.com/adfeedback/?REDIRECT=TRUE&RGROUP=8538&SEGMENTID=505815&LINEID=395104&SP=16&ADVERTISERID=11169http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=375&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http://www.techrepublic.com/downloads/500-things-you-need-to-know-to-succeed-in-your-it-career/929473?subj=SP001_rubicshttp://www.cbsinteractive.com/adfeedback/?REDIRECT=TRUE&RGROUP=8538&SEGMENTID=505815&LINEID=395104&SP=16&ADVERTISERID=11169http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=375&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http://www.techrepublic.com/downloads/500-things-you-need-to-know-to-succeed-in-your-it-career/929473?subj=SP001_rubicshttp://www.cbsinteractive.com/adfeedback/?REDIRECT=TRUE&RGROUP=8538&SEGMENTID=505815&LINEID=395104&SP=16&ADVERTISERID=11169http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=375&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F500-things-you-need-to-know-to-succeed-in-your-it-career%2F929473%3Fsubj%3DSP001_rubicshttp://www.techrepublic.com/topics/networkinghttp://www.techrepublic.com/topics/application+developmenthttp://www.techrepublic.com/topics/microsoft+officehttp://www.techrepublic.com/topics/networkhttp://www.techrepublic.com/topics/managementhttp://www.techrepublic.com/topics/mobilehttp://www.techrepublic.com/topics/traininghttp://www.techrepublic.com/topics/information+technologyhttp://www.techrepublic.com/topics/technical+supporthttp://www.techrepublic.com/topics/microsoft+windows+xphttp://www.techrepublic.com/topics/securityhttp://www.techrepublic.com/topics/it+operationshttp://www.techrepublic.com/topics/serverhttp://www.techrepublic.com/topics/databaseshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.01.10.PDT&edId=&onId=&ptId=&sId=11&appId=31&offId=5029&unitId=64&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=0&destUrl=http:%2F%2Fwww.zdnet.com%2Fphotos%2Fsony-handycam-hdr-pj10-photos-and-image-samples%2F6307828http://www.cnet.com/http://www.techrepublic.com/forum/questions/posthttp://www.techrepublic.com/forum/questions/101-348991http://www.techrepublic.com/forum/questions/101-348980http://www.techrepublic.com/forum/questions/101-3258098/3/2019 cmp-joins
19/20
101 Microsoft Windows Vista tips, tweaks, and hacks you need to know
101 Microsoft Windows XP Tips, Tweaks, and Hacks You Need to Know
Quick Reference: Linux Commands
Explore
Blogs Downloads Members Q&A DIscussions Training Store Research Library Photos Videos
Services
About Us Membership Newsletters RSS Feeds Site Map Site Help & Feedback FAQ Advertise Reprint Policy
Popular on CBS sites:US Open|PGA Championship|iPad|Video Game Reviews|Cell
Phones
http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=389&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=1&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F101-microsoft-windows-vista-tips-tweaks-and-hacks-you-need-to-know%2F1030059%3Fsubj%3DSP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=389&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=1&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F101-microsoft-windows-vista-tips-tweaks-and-hacks-you-need-to-know%2F1030059%3Fsubj%3DSP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=389&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=1&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F101-microsoft-windows-vista-tips-tweaks-and-hacks-you-need-to-know%2F1030059%3Fsubj%3DSP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=403&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=2&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F101-microsoft-windows-xp-tips-tweaks-and-hacks-you-need-to-know%2F1004657http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=403&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=2&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F101-microsoft-windows-xp-tips-tweaks-and-hacks-you-need-to-know%2F1004657http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=350&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=3&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2Fquick-reference-linux-commands%2F172482%3Fsubj%3DSP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=350&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=3&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2Fquick-reference-linux-commands%2F172482%3Fsubj%3DSP001_rubicshttp://www.techrepublic.com/blogshttp://www.techrepublic.com/blogshttp://www.techrepublic.com/downloadshttp://www.techrepublic.com/downloadshttp://www.techrepublic.com/members/top100http://www.techrepublic.com/members/top100http://www.techrepublic.com/forum/questionshttp://www.techrepublic.com/forum/questionshttp://www.techrepublic.com/forum/discussionshttp://www.techrepublic.com/forum/discussionshttp://www.techrepublic.com/traininghttp://www.techrepublic.com/traininghttp://store.esellerate.net/s.aspx?s=STR0618954706http://store.esellerate.net/s.aspx?s=STR0618954706http://www.techrepublic.com/research-libraryhttp://www.techrepublic.com/research-libraryhttp://www.techrepublic.com/photoshttp://www.techrepublic.com/photoshttp://www.techrepublic.com/videoshttp://www.techrepublic.com/videoshttp://www.techrepublic.com/abouthttp://www.techrepublic.com/abouthttp://www.techrepublic.com/members/join?regSrc=global-reghttp://www.techrepublic.com/members/join?regSrc=global-reghttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/rssfeedshttp://www.techrepublic.com/rssfeedshttp://www.techrepublic.com/sitemaphttp://www.techrepublic.com/sitemaphttp://techrepublic.custhelp.com/http://techrepublic.custhelp.com/http://www.techrepublic.com/faq/generalhttp://www.techrepublic.com/faq/generalhttp://www.techrepublic.com/advertisehttp://www.techrepublic.com/advertisehttp://www.techrepublic.com/reprintshttp://www.techrepublic.com/reprintshttp://www.cbssports.com/tennishttp://www.cbssports.com/tennishttp://www.cbssports.com/tennishttp://www.cbssports.com/golfhttp://www.cbssports.com/golfhttp://www.cbssports.com/golfhttp://www.cnet.com/apple-ipadhttp://www.cnet.com/apple-ipadhttp://www.cnet.com/apple-ipadhttp://www.metacritic.com/games/http://www.metacritic.com/games/http://www.metacritic.com/games/http://reviews.cnet.com/cell-phoneshttp://reviews.cnet.com/cell-phoneshttp://reviews.cnet.com/cell-phoneshttp://reviews.cnet.com/cell-phoneshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=350&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=3&destUrl=http://www.techrepublic.com/downloads/quick-reference-linux-commands/172482?subj=SP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=403&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=2&destUrl=http://www.techrepublic.com/downloads/101-microsoft-windows-xp-tips-tweaks-and-hacks-you-need-to-know/1004657http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=389&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=1&destUrl=http://www.techrepublic.com/downloads/101-microsoft-windows-vista-tips-tweaks-and-hacks-you-need-to-know/1030059?subj=SP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=350&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=3&destUrl=http://www.techrepublic.com/downloads/quick-reference-linux-commands/172482?subj=SP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=403&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=2&destUrl=http://www.techrepublic.com/downloads/101-microsoft-windows-xp-tips-tweaks-and-hacks-you-need-to-know/1004657http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=389&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=1&destUrl=http://www.techrepublic.com/downloads/101-microsoft-windows-vista-tips-tweaks-and-hacks-you-need-to-know/1030059?subj=SP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=350&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=3&destUrl=http://www.techrepublic.com/downloads/quick-reference-linux-commands/172482?subj=SP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=403&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=2&destUrl=http://www.techrepublic.com/downloads/101-microsoft-windows-xp-tips-tweaks-and-hacks-you-need-to-know/1004657http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=389&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=1&destUrl=http://www.techrepublic.com/downloads/101-microsoft-windows-vista-tips-tweaks-and-hacks-you-need-to-know/1030059?subj=SP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=350&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=3&destUrl=http://www.techrepublic.com/downloads/quick-reference-linux-commands/172482?subj=SP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=403&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=2&destUrl=http://www.techrepublic.com/downloads/101-microsoft-windows-xp-tips-tweaks-and-hacks-you-need-to-know/1004657http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=389&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=1&destUrl=http://www.techrepublic.com/downloads/101-microsoft-windows-vista-tips-tweaks-and-hacks-you-need-to-know/1030059?subj=SP001_rubicshttp://reviews.cnet.com/cell-phoneshttp://reviews.cnet.com/cell-phoneshttp://www.metacritic.com/games/http://www.cnet.com/apple-ipadhttp://www.cbssports.com/golfhttp://www.cbssports.com/tennishttp://www.techrepublic.com/reprintshttp://www.techrepublic.com/advertisehttp://www.techrepublic.com/faq/generalhttp://techrepublic.custhelp.com/http://www.techrepublic.com/sitemaphttp://www.techrepublic.com/rssfeedshttp://www.techrepublic.com/newslettershttp://www.techrepublic.com/members/join?regSrc=global-reghttp://www.techrepublic.com/abouthttp://www.techrepublic.com/videoshttp://www.techrepublic.com/photoshttp://www.techrepublic.com/research-libraryhttp://store.esellerate.net/s.aspx?s=STR0618954706http://www.techrepublic.com/traininghttp://www.techrepublic.com/forum/discussionshttp://www.techrepublic.com/forum/questionshttp://www.techrepublic.com/members/top100http://www.techrepublic.com/downloadshttp://www.techrepublic.com/blogshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=350&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=3&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2Fquick-reference-linux-commands%2F172482%3Fsubj%3DSP001_rubicshttp://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=403&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=2&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F101-microsoft-windows-xp-tips-tweaks-and-hacks-you-need-to-know%2F1004657http://dw.com.com/rubicsclk?ver=2&ts=2011.10.03.13.00.56.PDT&edId=&onId=&ptId=&sId=-1&appId=7&offId=389&unitId=25&poolId=1&f1=-0&f2=-0&f3=-0&alg=3&&opt=1&linkPos=1&destUrl=http%3A%2F%2Fwww.techrepublic.com%2Fdownloads%2F101-microsoft-windows-vista-tips-tweaks-and-hacks-you-need-to-know%2F1030059%3Fsubj%3DSP001_rubics8/3/2019 cmp-joins
20/20
2011 CBS I