You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE OR REPLACEFUNCTIONti.getbiochemdatasetbyid(_datasetid integer)
2
2
RETURNS TABLE(sampleid integer, analysisunitname character varying, samplename character varying, sampledate character varying, taxonname character varying, variable character varying, variableelement character varying, variableunits character varying, value double precision)
3
3
LANGUAGE plpgsql
4
-
AS $function$
5
-
DECLARE
6
-
dstypeid int := (SELECT datasettypeid FROMndb.datasetsWHERE datasetid = _datasetid);
7
-
BEGIN
8
-
IF dstypeid =27
9
-
THEN
10
-
RETURN QUERY
11
-
SELECTndb.data.sampleid, ndb.analysisunits.analysisunitname, ndb.samples.samplename, ndb.samples.sampledate::varchar(10) as sampledate,
0 commit comments