Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Let's say I have two tables Names and PhoneExt
Names Table Name Bob Larry Sue Tammy PhoneExt table: NAME EXT Bob 3456 Larry 3458 Tammy 3463 SELECT n.NAME, p.EXT FROM Name n, PhoneExt p Where n.NAME = p.NAME The result would leaves out Sue. How do I write this statement to include "N/A" for Sue. Not sure if it is COALESCE or ISNULL. Or how to use it if it was. Dan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
SELECT n.NAME, p.EXT FROM Name.n LEFT JOIN PhoneExt p ON p.NAME=n.NAME Fred "DG" wrote in message ... Let's say I have two tables Names and PhoneExt Names Table Name Bob Larry Sue Tammy PhoneExt table: NAME EXT Bob 3456 Larry 3458 Tammy 3463 SELECT n.NAME, p.EXT FROM Name n, PhoneExt p Where n.NAME = p.NAME The result would leaves out Sue. How do I write this statement to include "N/A" for Sue. Not sure if it is COALESCE or ISNULL. Or how to use it if it was. Dan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Fred that did the trick
Dan "Fred" <leavemealone@home wrote in message ... Try SELECT n.NAME, p.EXT FROM Name.n LEFT JOIN PhoneExt p ON p.NAME=n.NAME Fred "DG" wrote in message ... Let's say I have two tables Names and PhoneExt Names Table Name Bob Larry Sue Tammy PhoneExt table: NAME EXT Bob 3456 Larry 3458 Tammy 3463 SELECT n.NAME, p.EXT FROM Name n, PhoneExt p Where n.NAME = p.NAME The result would leaves out Sue. How do I write this statement to include "N/A" for Sue. Not sure if it is COALESCE or ISNULL. Or how to use it if it was. Dan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide the Table Handle? | Excel Discussion (Misc queries) | |||
handle error in cell values | Excel Programming | |||
How can I handle negative time values? | Excel Worksheet Functions | |||
Handle missing values | Charts and Charting in Excel | |||
Handle missing values | Excel Programming |