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

Select with If? 1

Status
Not open for further replies.

goodmanrAy

Programmer
Feb 6, 2002
53
0
0
GB
Hello

I am unsure if this is possible, but I'll give it a bash.

I have a query

select MML.ChangeID,MCCTT.ChangeToDesc
from MaceMaterialLog MML
Left Outer Join MaceChangesLog MCL on MML.ChangeID = MCL.ChangeID
Left Outer Join MaceChangesChangeToTypes MCCTT on MCL.ChangeToID = MCCTT.ChangeToID
where MML.MaceID = '69306'

if for example I return 'Other' in the MCCTT.ChangeToDesc field, is it possible to get another value from another table using MML.ChangeID. All in the same query.


Cheers in advance

Andrew



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top