If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Good website for DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-07, 09:22
Joseph_T Joseph_T is offline
Registered User
 
Join Date: Oct 2007
Posts: 6
Good website for DB2

A good DB2 website which explains the DB2 concepts with examples and contains good FAQ stuff. Suitable for a beginner.
http://db2examples.googlepages.com/

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-24-07, 09:50
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
it's not that good

for example,
Quote:
SELECT Empid, Empname, Department, Specialization
FROM Employee e LEFT OUTER JOIN Department d
WHERE e.Empid = d.Empid ;
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 10-27-07, 11:22
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
I have posted some info to author about joins and he/she repaired SQLs from where to on cause.
Now looks better.
Grofaty
Reply With Quote
  #4 (permalink)  
Old 10-27-07, 18:47
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The problem was not the syntax. It looks like the wrong tables or columns are being joined.

But wait -- looking at the tables used in the example (see below) one can see they are not the same as the DB2 sample tables, and they are not normalized and make no sense whatsoever.

Employee table columms:
Empid
Empname
Manager
Salary
Location

Department table columns:
Empid
Department
Departmenthead
Specialization

Whomever put up that website is a moron (I do not use that term lightly), and has no understanding of database design or database administration.

Please ignore that webiste, not to mention the fact that is created soley for commercial purposes and is direct competition with this forum.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 10-27-07 at 18:51.
Reply With Quote
  #5 (permalink)  
Old 10-27-07, 18:55
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by Joseph_T
A good DB2 website which explains the DB2 concepts with examples and contains good FAQ stuff. Suitable for a beginner.
I think what you meant to say is that the website was created by a beginner who has no idea what they are talking about.

Why would someone visit a website created by a beginner to get information?

You also forgot to mention that the website was created for the sole purpose of making money, probably by someone has no absolutely no knowledge of DB2 or database adminstration.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 10-27-07, 18:55
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i think you're right, marcus

more evidence, from the FAQ --

Q26) Explain an outer join?
A26) An outer join includes rows from tables when there are no matching values in the tables.

Q27) What is a subselect? Is it different from a nested select?
A27) A subselect is a select which works in conjunction with another select. A nested select is a kind of subselect where the inner select passes to the where criteria for the outer select.

Q28) What is the difference between group by and order by?
A28) Group by controls the presentation of the rows, order by controls the presentation of the columns for the results of the SELECT statement.


totally incomprehensible, i would have to conclude
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #7 (permalink)  
Old 10-28-07, 13:00
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I didn't even read the FAQ. Apparently, this was a good decision. ;-)
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #8 (permalink)  
Old 10-29-07, 06:55
Joseph_T Joseph_T is offline
Registered User
 
Join Date: Oct 2007
Posts: 6
I am in the learning stage. And sorry for referring the above website
Reply With Quote
  #9 (permalink)  
Old 10-29-07, 06:59
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by Joseph_T
I am in the learning stage.
don't worry, we all were at one point

Quote:
Originally Posted by Joseph_T
And sorry for referring the above website
the only reason you should be sorry is if you wrote that site

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #10 (permalink)  
Old 10-29-07, 07:04
Joseph_T Joseph_T is offline
Registered User
 
Join Date: Oct 2007
Posts: 6
Fortunately i didn't
Reply With Quote
  #11 (permalink)  
Old 10-29-07, 07:10
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
here are my rules of thumb for whether a site is reliable

1. if ads are prominent, they don't care about you, they are just doing it for the ad revenue

2. if there is no "about" data that shows an actual person's name, they have something to hide (usually incompetence)

3. if there are no links to other sites, they are not really trying to be a resource
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On