vespa logo
VESPA Home
Schema browser
Data access
Freeform SQL
FAQ
 
 
 
 
 
 
wsa logo bottom
IFA     ROE
Home | Browser | Access | FreeSQL     vespa logo

Freeform SQL Query

This forms allows you to submit a SQL query to the VESPA database. Simply type in your query and hit the Submit button. For help with SQL you may want to have a look at this cookbook. Some specific examples of how to use the VESPA database can be found in Tojeiro et al. 2009.

Optionally, you can also upload a list of SDSS specObjID values, which you can cross reference with the VESPA database. To do so, create a file consisting of a single column with the specObjID values - no headers and no commas. If you choose this file in the "Optional file of IDs" field, your list will be uploaded into a temporary table called #upload, with a column name upID.

For example, to return stellar masses for a list of objects of your own interest, analysed using the M05 models and a 2-parameter dust model, you can do:

SELECT u.upID, m_stellar
FROM lookuptable as l, #upload as u, galprop as g
WHERE u.upID = l.specObjID
AND l.indexp = g.indexp
AND g.runID = 4

A list will always be uploaded to #upload if there is a file selected. If no file is selected, the table #upload will not be created.


SQL statement:

Optional file
of IDs
uploaded to table #upload as column upID, max 5000 rows
Datatype of uploaded column
Email Address: the results of long running queries will be sent by email.
Data Format:
HTML table summary (select number of rows returned below)
ASCII File (downloadable with HTML table summary on-screen)
FITS File (downloadable with HTML table summary on-screen)
VOTable File (downloadable with HTML table summary on-screen)
  (The number of rows written to the downloadable files is subject to an upper limit.)
File Compression:
(none) GZIP
HTML rows:
Number of rows written to HTML table summary (maximum 100)



Home | Browser | Access | FreeSQL

WFAU, Institute for Astronomy,
Royal Observatory, Blackford Hill
Edinburgh, EH9 3HJ, UK
Tel +44 131 668 8356 (office)
or +44 131 668 8100 (switchboard)

??????@roe.ac.uk
24/1/2014