FUNCTION  fSpecidFromSDSS

Computes the long Spec IDs

The bit-fields and their lengths are: plate[16] mjd[16] fiber[10] type[6] index[16]
select dbo.fSpecidFromSDSS(266,51630,145) as specObjID

Input and output parameters

nametypelengthinoutpnum
@plateint4input1
@mjdint4input2
@fiberint4input3
 bigint8input0