What's the most concise way in sql to select from 5 different tables..
I want some data from each.. but mainly the telephone numbers found in each of these tables..
The ultimate goal is to create a type of phone book, so when someone searches in the phone number input box it returns all the phones numbers that match from those five different categories (tables).....
any help would be greatly appreciated.
Here's what i have now...
Code:
select
code,
first,
last,
phoneday,
phonenight,
dfcode
from event.dbo.patient_dg()
select
id,
doctor_id,
phone,
fax
from event.dbo.doctor_alt_address
select
CODE_,
NAME_,
PHONE,
FAX
from ARE.APS.RFDME
select
CODE_,
FIRST_,
LAST_,
PHONE,
FAX
from ARE.APS.DFDME
Select *
from pharmacy.dbo.chain
Select *
from crm.dbo.rf_contacts
Last edited by Supplement; 12-10-2012 at 07:17 PM.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
I'm only showing the phoneday input box which is what i wanted... but i still can't figure out how to get the other select (data) statements from the other tables to appear in my queries.
Bookmarks