Logo

SQL Server FTMIN Function

Updated 2023-11-09 14:31:30.807000

Description

Use the scalar function FTMIN to convert from feet per hour, feet per minute, feet per second, inches per second, kilometers per hour, knots, miles per hour, miles per minute, miles per second, meters per second, meters per minute or meters per hour to feet per minute.

Syntax

SELECT [westclintech].[wct].[FTMIN] (
  <@Speed, float,>
 ,<@From_scale, nvarchar(4000),>)

Arguments

@Speed

is any real number. @Speed is an expression of type float or of a type that can be implicitly converted to float.

@From_scale

is the description of the units for @Speed. @From_scale must be a valid value as specified in speed unit representations. @From_scale must be of a data type that is implicitly convertible to varchar.

Return Type

float

Remarks

The following table is a representation of the conversion of one of the speed units of measure into feet per minute:

column 1column 2
feet per hour0.016667
feet per minute1
feet per second60
inches per second5
kilometers per hour54.68066
knots101.2686
miles per hour88
miles per minute5280
miles per second316800
meters per second196.8504
meters per minute3.28084
meters per hour0.054681

Conversion of meters includes all the standard prefixes with kilo representing 1,000 and yocto representing 10E-24.

Examples

select wct.FTMIN(10, 'm/s');

Here is the result set.

column 1
1968.50394