Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 30th, 2005, 03:35 PM
Shiny
Guest
 
Posts: n/a
Default Help with blank fields

Hi all,

I'm fairly new to Access and SQL.

My sense is that my question is fairly basic, but I still need help
with it.

I have a table with players who are listed either in the fields
'player1' or 'player2', depending on what position they played in a
game.

I used an outer join to join the table to itself and combine the two
fields into one ('players_all').

In about half the game reports, field2 is empty (there was only one
player). When I join the table, I get a long list of blank fields in
'players_all' where there was no second player listed.

How do I write a query to list only those records where players_all
contains a name?

Thanks!

  #2  
Old December 30th, 2005, 04:15 PM
Steve
Guest
 
Posts: n/a
Default Re: Help with blank fields

SELECT * FROM tblTable WHERE tblTable.players_all Is Not Null;

 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles