# qryOrgCPRA.sql # SQL # n6lhv@arrl.net (Wayne Smith) # Display the MySQL version SELECT version(); # Switch to the correct database USE uls # delete the table if it exists (it probably does) DROP TABLE IF EXISTS tblOrgCPRA; # Join the relevant data into a "flat" table CREATE TABLE tblOrgCPRA #EXPLAIN SELECT DISTINCT * FROM tblGeoStateCA # WHERE (entity_name LIKE '%LOS ANGELES%' AND WHERE (radio_service_code = "PW") ORDER BY frequency_assigned, call_sign, radio_service_code, class_station_code, location_state, location_county, location_city, location_address ;