Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

t-sql select min from two values

SELECT
PaidForPast=(SELECT MIN(x) FROM (VALUES (PaidThisMonth),(OwedPast)) AS value(x))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #min #values
ADD COMMENT
Topic
Name
3+2 =