SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 answer for sqlzoo.net join with two tables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 09/06/2012 :  04:27:44  Show Profile  Reply with Quote
Show names of all non-German players who scored a goal in matches against Germany.

Flowing Fount of Yak Knowledge

8780 Posts

Posted - 09/06/2012 :  04:38:41  Show Profile  Visit webfred's Homepage  Reply with Quote
Show tables, columns and datatypes including sample data and wanted result to get an answer.

Too old to Rock'n'Roll too young to die.
Go to Top of Page

Starting Member

1 Posts

Posted - 11/05/2012 :  15:30:42  Show Profile  Reply with Quote
SELECT player
FROM game JOIN goal ON matchid = id
WHERE team1='GER'
and teamid != 'ger'
SELECT player
FROM game JOIN goal ON matchid = id
WHERE team2='GER'
and teamid != 'GER'
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000