DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+2 =
Submit