I have the following table layout
ID,Vendor,Switch,Postion,Emailaddress,YESorNO
1 lucent test MC s@ddd.com Y
2 lucent test ST s1@dd.com
3 lucent test1 DR s2@dd.com
What i want to do is if YESorNO = Y and Vendor = lucent i need the emailaddress to all switches that are the same as the ID 1
So after my query i need the following
Switch,Emailaddress
test s@dd.com
test s1@dd.com
here is the code that i got so far but if only gives me information for ID 1
PHP Code:SELECT * FROM `MailingList` WHERE `Vendor`='lucent' AND `yesorno` = 'Y'


Reply With Quote
Bookmarks