the create table query is :
create table catalog (id int, ra double, decl double , zone int);
the zone value is calculated from decl using formula below:
CAST(FLOOR(decl) AS INTEGER),
i have insert all id,ra,decl values of the table, then I have to calculate zone values,
how to calculate the table's zone value in a sql query?
**in another table extractedcatalog, i want to calculate y from ra,decl in sql:
update extractedcatalog set x= (cos(radians(decl))cos(radians(ra))); but responsed: connection terminated! is there any problem with my sql?*
Thanks very much!