I have a table of servers and a table of applications. I might want to record that 7 applications run on 4 servers. I don't want to manually enter 28 rows in the AppServer intersection table. I'd like to select the 7 and the 4, and have the 28 generated.
Last time I did this by writing a bit of ad-hoc SQL to load x rows (the 7 in the example) and ran it 4 times. I need a more elegant solution.
My first thought was to create two views with checkboxes, so the user could select the apps and servers. Then it would be a simple join to generate the required rows. But maybe there are better ways. What have you tried?
Last time I did this by writing a bit of ad-hoc SQL to load x rows (the 7 in the example) and ran it 4 times. I need a more elegant solution.
My first thought was to create two views with checkboxes, so the user could select the apps and servers. Then it would be a simple join to generate the required rows. But maybe there are better ways. What have you tried?