SELECT CONVERT(INTEGER,'123')=>123
//Note if CONVERT(INTEGER,’1A’)=> ERROR.
Converting char to decimal.
SELECT CONVERT(Decimal(9,2), '123.4')=> 123.40
String comparison for checking date equality.
SELECT * FROM Orders
WHERE CONVERT(varchar(12), OrderDate, 101)
= CONVERT(varchar(12), GETDATE(), 101)
Null-Type checking functions
ISNULL():
Determins whether or not it is null
Syntax:
ISNULL(check_expression, replacement_value)
Examples
Replacing NULL values with ZERO values
SELECT ISNULL(qty,0) AS qty
FROM Orders;
Replacing NULL values with current date.
SELECT ISNULL(OrderDate, GETDATE())
Verifying ISNULL() returns given value if varible contains null;
SELECT ISNULL(NULL,’YES’)=> YES
NULLIF()
Returns NULL if both values are equal otherwise returns first expression.
Syntax:
NULLIF(exp1,exp2);
Examples:
SELECT NULLIF(2,2)=>NULL
SELECT NULLIF(2,3)=> 2
No need expressions to have same type.
SELECT NULLIF(2,’2’) => NULL
SELECT NULLIF(2,’4’) =>2
COALESCE()
Getting first not null value from list.; returns the first Non-NULL value in a list of expressions.
It is equivalent to CASE expression but works with NULL values.
In the ever-evolving world of online trading, WinProFX has emerged as a trusted and innovative name, making its mark as one of the Best Forex Trading Platforms and ranking high among the Top Forex Brokers 2025. Designed with both beginners and professional traders in mind, WinProFX offers a user-friendly interface combined with powerful features such as lightning-fast execution, advanced charting tools, and access to over 300 trading instruments including forex, indices, commodities, and cryptocurrencies. Whether you’re trading on desktop or mobile through MetaTrader 5 (MT5), the platform ensures seamless functionality and round-the-clock market access. One of the biggest advantages for new traders is the availability of free funded accounts, making WinProFX especially popular among Indian users looking to enter the forex market with zero initial investment. With strict security protocols, real-time market updates, and responsive customer support, WinProFX continues to set the benchmark for reliability and user satisfaction. Furthermore, educational resources and demo accounts allow traders to practice and learn without financial risk. In 2025, if you're looking to elevate your trading journey with a broker that truly understands your needs, WinProFX remains a top contender in the global forex landscape.
In the ever-evolving world of online trading, WinProFX has emerged as a trusted and innovative name, making its mark as one of the Best Forex Trading Platforms and ranking high among the Top Forex Brokers 2025. Designed with both beginners and professional traders in mind, WinProFX offers a user-friendly interface combined with powerful features such as lightning-fast execution, advanced charting tools, and access to over 300 trading instruments including forex, indices, commodities, and cryptocurrencies. Whether you’re trading on desktop or mobile through MetaTrader 5 (MT5), the platform ensures seamless functionality and round-the-clock market access. One of the biggest advantages for new traders is the availability of free funded accounts, making WinProFX especially popular among Indian users looking to enter the forex market with zero initial investment. With strict security protocols, real-time market updates, and responsive customer support, WinProFX continues to set the benchmark for reliability and user satisfaction. Furthermore, educational resources and demo accounts allow traders to practice and learn without financial risk. In 2025, if you're looking to elevate your trading journey with a broker that truly understands your needs, WinProFX remains a top contender in the global forex landscape.
ReplyDeleteBest Forex Trading Platform-