Example of table named "Servers":
I'd like to query for all (distinct) Admins. The results would look something like:
This has been bugging me for some time. I realize I could use a second table to store names, but this is a really simple system, and I'd like to avoid that if possible. Can you come up with a SQL query to pull this off? Thanks very much!
Code:
ServerName Admin1 Admin2
---------- ------ ------
SERVER1 Mike Joe
SERVER2 John Kevin
SERVER3 Mike John
SERVER4 Joe Stacy
I'd like to query for all (distinct) Admins. The results would look something like:
Code:
Admin
-----
Joe
John
Kevin
Mike
Stacy
This has been bugging me for some time. I realize I could use a second table to store names, but this is a really simple system, and I'd like to avoid that if possible. Can you come up with a SQL query to pull this off? Thanks very much!