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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Odd SQL question

Status
Not open for further replies.

MisterMan

Technical User
Jun 4, 2002
87
US
Hello,

I have three tables:

Table1 has personal information. 1st name, Middle initial, Last Name and ID# (PK)

Table2 has phone information. #, Phone type, Time to Call and ID# (PK)

Table3 is a simple table with Phone Type and Call Type (Short or long).

Table3 exists so that I can have the type of phone call in the final table along with the rest of the information without having to do the additional data input. However, say there is a situation where I want a specific ID number with a "Phone Type" that would mean a short call to be listed as a Long Call. Is there any way to do this?
 
Short of changing the CallType ID for that PhoneType, anything else would be messy workarounds. You could put an IIF() statment in the sql column for Calltype to force the calltype for that particular ID. Performance may suffer, but that would do it.
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top