Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question About A Query

Status
Not open for further replies.

dmaier

MIS
Apr 13, 2002
38
US
I have a table that has team schedules and consists of the following fields:

HomeTeam, Opponent, Location, Date, Time

What I would like to do is to write a query that could query on a specific team, let's say Barracudas but some time the Barracudas are the HomeTeam and sometimes they are the away team(Opponent)

Is there a way to structure a query to be able to do that?

 
Something like
Code:
   Select * 
   From tbl
   Where HomeTeam = 'Barracudas' OR Opponent = 'Barracudas'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top