![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
I don't think that i possible, and you'd have to stick with one of your two solutions. |
|
What is so unreadable about SELECT h1.ip AS clientip, dhcp.filename AS pxefilename, dhcp.nextserverhostid, h2.ip AS serverip, dns1.hostname AS clienthostname, dns2.hostname AS clienthostname, FROM hosts h1 JOIN dhcppxe dhcp ON h1.hostid = dhcp.hostid JOIN hosts h2 ON dhcp.nextserverhostid = h2.hostid LEFT OUTER JOIN dns dns1 ON h1.ip = dns1.ip LEFT OUTER JOIN dns dns2 ON h2.ip = dns2.ip; Of course it is a matter of taste, but I think it is easier to understand than your stack of view definitions. |
#12
| |||
| |||
|
|
I don't think that i possible, and you'd have to stick with one of your two solutions. |
|
What is so unreadable about SELECT h1.ip AS clientip, dhcp.filename AS pxefilename, dhcp.nextserverhostid, h2.ip AS serverip, dns1.hostname AS clienthostname, dns2.hostname AS clienthostname, FROM hosts h1 JOIN dhcppxe dhcp ON h1.hostid = dhcp.hostid JOIN hosts h2 ON dhcp.nextserverhostid = h2.hostid LEFT OUTER JOIN dns dns1 ON h1.ip = dns1.ip LEFT OUTER JOIN dns dns2 ON h2.ip = dns2.ip; Of course it is a matter of taste, but I think it is easier to understand than your stack of view definitions. |
#13
| |||
| |||
|
|
I don't think that i possible, and you'd have to stick with one of your two solutions. |
|
What is so unreadable about SELECT h1.ip AS clientip, dhcp.filename AS pxefilename, dhcp.nextserverhostid, h2.ip AS serverip, dns1.hostname AS clienthostname, dns2.hostname AS clienthostname, FROM hosts h1 JOIN dhcppxe dhcp ON h1.hostid = dhcp.hostid JOIN hosts h2 ON dhcp.nextserverhostid = h2.hostid LEFT OUTER JOIN dns dns1 ON h1.ip = dns1.ip LEFT OUTER JOIN dns dns2 ON h2.ip = dns2.ip; Of course it is a matter of taste, but I think it is easier to understand than your stack of view definitions. |
#14
| |||
| |||
|
|
I don't think that i possible, and you'd have to stick with one of your two solutions. |
|
What is so unreadable about SELECT h1.ip AS clientip, dhcp.filename AS pxefilename, dhcp.nextserverhostid, h2.ip AS serverip, dns1.hostname AS clienthostname, dns2.hostname AS clienthostname, FROM hosts h1 JOIN dhcppxe dhcp ON h1.hostid = dhcp.hostid JOIN hosts h2 ON dhcp.nextserverhostid = h2.hostid LEFT OUTER JOIN dns dns1 ON h1.ip = dns1.ip LEFT OUTER JOIN dns dns2 ON h2.ip = dns2.ip; Of course it is a matter of taste, but I think it is easier to understand than your stack of view definitions. |
#15
| |||
| |||
|
|
I don't think that i possible, and you'd have to stick with one of your two solutions. |
|
What is so unreadable about SELECT h1.ip AS clientip, dhcp.filename AS pxefilename, dhcp.nextserverhostid, h2.ip AS serverip, dns1.hostname AS clienthostname, dns2.hostname AS clienthostname, FROM hosts h1 JOIN dhcppxe dhcp ON h1.hostid = dhcp.hostid JOIN hosts h2 ON dhcp.nextserverhostid = h2.hostid LEFT OUTER JOIN dns dns1 ON h1.ip = dns1.ip LEFT OUTER JOIN dns dns2 ON h2.ip = dns2.ip; Of course it is a matter of taste, but I think it is easier to understand than your stack of view definitions. |
#16
| |||
| |||
|
|
I don't think that i possible, and you'd have to stick with one of your two solutions. |
|
What is so unreadable about SELECT h1.ip AS clientip, dhcp.filename AS pxefilename, dhcp.nextserverhostid, h2.ip AS serverip, dns1.hostname AS clienthostname, dns2.hostname AS clienthostname, FROM hosts h1 JOIN dhcppxe dhcp ON h1.hostid = dhcp.hostid JOIN hosts h2 ON dhcp.nextserverhostid = h2.hostid LEFT OUTER JOIN dns dns1 ON h1.ip = dns1.ip LEFT OUTER JOIN dns dns2 ON h2.ip = dns2.ip; Of course it is a matter of taste, but I think it is easier to understand than your stack of view definitions. |
#17
| |||
| |||
|
|
I don't think that i possible, and you'd have to stick with one of your two solutions. |
|
What is so unreadable about SELECT h1.ip AS clientip, dhcp.filename AS pxefilename, dhcp.nextserverhostid, h2.ip AS serverip, dns1.hostname AS clienthostname, dns2.hostname AS clienthostname, FROM hosts h1 JOIN dhcppxe dhcp ON h1.hostid = dhcp.hostid JOIN hosts h2 ON dhcp.nextserverhostid = h2.hostid LEFT OUTER JOIN dns dns1 ON h1.ip = dns1.ip LEFT OUTER JOIN dns dns2 ON h2.ip = dns2.ip; Of course it is a matter of taste, but I think it is easier to understand than your stack of view definitions. |
![]() |
| Thread Tools | |
| Display Modes | |
| |