I AM A BEGINNER AT SQL. : )
IF THE X COLUMN HAS EQUAL DATA ENTRIES (10...10 EXAMPLE) AND THE Y COLUMN HAS EQUAL
DATA ENTRIES (7...7 EXAMPLE) THEN I WOULD LIKE TO SELECT OUT THE LARGEST VALUE IN THE POWER COLUMN. I APPRECIATE YOUR HELP IN ADVANCE.
ORIGINAL DATA
ID X Y Power SECTOR
1 10 7 1 CV301B
2 10 7 2 CV302B
3 10 7 4 CV300A
4 10 7 23 CV300C
5 10 7 12 CV302C
6 11 8 9 CV301A
7 11 8 3 CV300B
8 11 8 7 CV301B
9 11 8 78 CV302A
10 11 8 4 CV301C
11 11 8 3 CV302C
12 11 8 1 CV302B
DESIRED OUTPUT
ID Lat Long Power SECTOR
4 10 7 23 CV300C
9 11 8 78 CV302A
IF THE X COLUMN HAS EQUAL DATA ENTRIES (10...10 EXAMPLE) AND THE Y COLUMN HAS EQUAL
DATA ENTRIES (7...7 EXAMPLE) THEN I WOULD LIKE TO SELECT OUT THE LARGEST VALUE IN THE POWER COLUMN. I APPRECIATE YOUR HELP IN ADVANCE.
ORIGINAL DATA
ID X Y Power SECTOR
1 10 7 1 CV301B
2 10 7 2 CV302B
3 10 7 4 CV300A
4 10 7 23 CV300C
5 10 7 12 CV302C
6 11 8 9 CV301A
7 11 8 3 CV300B
8 11 8 7 CV301B
9 11 8 78 CV302A
10 11 8 4 CV301C
11 11 8 3 CV302C
12 11 8 1 CV302B
DESIRED OUTPUT
ID Lat Long Power SECTOR
4 10 7 23 CV300C
9 11 8 78 CV302A