OK here’s the deal.
We have data in our database (a database of cell sites) with one row of data per sector. Our vendor needs this data with one row per site, with the sectorized data as additional columns. I have been charged with creating a macro, or web application that will take care of this.
For clarification, here’s a small representation of the dataset, and an example of the final product:
#######################
OUR DATA
#######################
Site Name | Antenna | Azimuth | Status
SITE1_X | Antenna1| 30deg |OA
SITE1_Y | Antenna2| 90deg |OA
SITE1_Z | Antenna3| 180deg |OA
SITE2_O | Omni | 0deg |OA
#######################
This is how the data needs to be sorted:
#######################
Site Name | Antenna (Sector 1) | Antenna (Sector 2) | Antenna (Sector 3) | Azimuth (Sector 1)| Azimuth (Sector 2) | Azimuth (Sector 3) | Status
SITE1 | Antenna1 |Antenna2 | Antenna3 | 30deg | 90deg | 180deg| OA
Site2 | Omni | | |0deg |OA
#######################
I am not sure how to go about getting the data in this format. Another thing to consider is that not all sites have 3 sectors, some have 1 (omni), some have only 2 sectors, and the rest have 3 sectors. The omni site names end with _O, the sectorized sites end with _X, _Y, or _Z. I would like to use php, not an excel macro, because of portability (no odbc drivers to install or configure on each users machine), and speed.
Do any of you have any suggestions on how I should begin building this?
I have already created the query that gets the data from our db, but am a little confused as to where to go now.
Thanks in advance.