|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Tuesday, January 15, 2013 11:11 AM
Points: 1,945,
Visits: 2,782
|
|
Comments posted to this topic are about the item Stairway to SQL Dialects Level 1: Overview
Books in Celko Series for Morgan-Kaufmann Publishing Analytics and OLAP in SQL Data and Databases: Concepts in Practice Data, Measurements and Standards in SQL SQL for Smarties SQL Programming Style SQL Puzzles and Answers Thinking in Sets Trees and Hierarchies in SQL
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 7:32 AM
Points: 1,059,
Visits: 1,396
|
|
Good article. One point, though:
To use another Transact SQL example, CONVERT() with non-temporal data types can be changed to CAST(). But CONVERT() is an overloaded function that has an optional third parameter when it casts temporal data to display strings.
The third CONVERT() parameter is not limited to temporal data. It can also be used to change the way numeric data are converted to strings. Ignoring that when porting numeric conversions could break your code.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 5:24 AM
Points: 1,028,
Visits: 759
|
|
Great, informative and interesting, thanks very much.
But...
and keep release n+1 code running on release n software.
Perhaps I am not warmed up yet, but shouldn't that read n-1?
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Saturday, November 17, 2012 9:59 AM
Points: 256,
Visits: 1,990
|
|
Joe, thanks. Interesting article and good incentive to improve my coding.
Elliott
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 12:00 PM
Points: 385,
Visits: 549
|
|
Your real worry is Cowboy Coder Tony, who writes proprietary code. His dialect is so strong he codes like a hillbilly. He might do this to ensure job security; the more obscure his code, the safer he feels.
So true! Sad, but true.
Hakim Ali www.sqlzen.com
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 2:09 PM
Points: 1,185,
Visits: 3,420
|
|
This is not an issue SQL language syntax, but as you're writing this series, it may be worth mentioning that the value NULL functions differently across RDMS platforms. For example, Oracle treats '' (a character value with zero length) as equivalent to NULL, which is not the case for SQL Server (and does this conform to the ANSI NULL standard?). Thus when porting SQL between platforms, the same SQL using the same dataset can produce a different resultset.
"Winter Is Coming"
|
|
|
|