Examples for OCA Data Center TAP service

tap_schema: List tables

Return tables available on this server.

SELECT * FROM tap_schema.tables

tap_schema: Get columns information for a table

Describe the columns of the best table in the mp3c_main schema:

SELECT * FROM tap_schema.columns
  WHERE table_name='mp3c_main.best'

mp3c_main: All best albedos

Return names and best albedo of bodies with a known albedo.

SELECT name, albedo FROM mp3c_main.best
  JOIN mp3c_main.body USING (bid)
  WHERE albedo IS NOT NULL

mp3c_main: Best albedos for diameters greater than

Return names and best albedo of bodies with a known albedo and a best diameter greater than 20 km.

SELECT name, albedo FROM mp3c_main.best
  JOIN mp3c_main.body USING (bid)
  WHERE albedo IS NOT NULL AND diameter > 20

mp3c_main: Proper elements for bodies with best family

Return proper orbital parameters for bodies with best family set to Baptistina.

SELECT a_p, e_p, i_p FROM mp3c_main.best
  WHERE parent_name='Baptistina'

mp3c_main: Proper elements for bodies with mention of a family

Return proper orbital parameters for bodies with at least a family measurement set to Baptistina.

SELECT a_p, e_p, i_p FROM mp3c_main.best
  WHERE bid IN (SELECT DISTINCT bid FROM mp3c_main.prop_family WHERE parent_name='Baptistina')

mp3c_main: MPC orbital parameters for bodies with best family

Return orbital parameters from MPC for bodies with best family set to Baptistina.

SELECT a, e, sin_i FROM mp3c_main.best
  JOIN mp3c_main.mpcorb USING (bid)
  WHERE parent_name='Baptistina'

mp3c_main: Family V-shape plot

Return data to plot the V-shape of family Erigone.

SELECT a_p, inverse_diameter FROM mp3c_main.best
  WHERE parent_name='Erigone'