-- NEW FOR 2012 -- IIF(<boolean expr>, <value if true>, <value if false>) SELECT IIF(1 = 1, 'True Value', 'False Value') -- TRY_CONVERT(<expr>, <datatype>, <style>) SELECT TRY_CONVERT(DATETIME, '1/1/12330', 101) -- TRY_PARSE(<string val> AS <datatype> USING <culture>) SELECT TRY_PARSE('String' AS INT USING 'cy') -- OFFSET...FETCH SELECT name FROM sys.objects OFFSET 5 ROWS FETCH NEXT 5 ROWS ONLY
IIF works just like the instant IF in Excel
TRY_CONVERT and TRY_PARSE both perform the same function as CONVERT and PARSE respectively, but these new version will return a NULL instead of raising an error if the conversion or parse fails
OFFSET and FETCH are good for pagination, in the example above it would return rows 6-10
Happy studying!
If this problme on AOL Not working on Android Error so click on link and read about aol
ReplyDeleteI am really impressed with the writer as every information is relatable to the topic. A good research has been done while writing this
ReplyDeletepost.How to compose a mail in AOL? | Export files from Family
Tree Maker in a few steps