Is T-SQL, Declarative Extensions of SQL Necessary?

  • Thread starter Thread starter WWGD
  • Start date Start date
  • Tags Tags
    Sql
Click For Summary
SUMMARY

The discussion centers on the necessity of T-SQL, Microsoft's proprietary extension of SQL, compared to standard SQL. It concludes that while T-SQL offers additional features like the SQL UNION statement, all operations achievable in T-SQL can theoretically be replicated using standard SQL, albeit with more complexity. The conversation highlights the differences between T-SQL and Oracle SQL, emphasizing the importance of understanding these distinctions for effective database management.

PREREQUISITES
  • Understanding of T-SQL (Transact-SQL) features and syntax
  • Familiarity with standard SQL (Structured Query Language)
  • Knowledge of SQL Server and its functionalities
  • Basic concepts of database management systems (DBMS)
NEXT STEPS
  • Research the differences between T-SQL and standard SQL
  • Explore advanced T-SQL features such as stored procedures and triggers
  • Learn about SQL Server's implementation of the SQL UNION statement
  • Investigate Oracle SQL features in comparison to T-SQL
USEFUL FOR

Database developers, SQL Server administrators, and anyone involved in database design and optimization will benefit from this discussion.

WWGD
Science Advisor
Homework Helper
Messages
7,804
Reaction score
13,107
Hi,
Just curious: I was told, without proof, that declarative ( i.e., not purely imperative) versions of SQL are not strictly necessary, i.e., that anything that can be done within declarative extensions can also be done within the imperative "restriction" . So, e.g., anything in SQL Server that is done n T-SQL can also be done within the "Standard" version of MS SQL Server SQL. I could not find anything definitive nor clear in this respect.
 
Computer science news on Phys.org
When I work with SQL I don't think in this manner. I mean if I'm using T-SQL (which I don't) and I needed to do something more specialized I would look for whatever feature they have that allows me to do it especially if I know that SQL has no such feature.

In some restricted implementations of SQL by other vendors, they may not allow the SQL UNION statement (T-SQL supports this) and so I would need to come up with some intermediate table manipulations to to get what I want.

Here's a comparison of Oracle SQL to T-SQL:

https://www.seguetech.com/microsoft-sql-server-vs-oracle-same-different/
 
  • Like
Likes   Reactions: WWGD

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 64 ·
3
Replies
64
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
7K
Replies
7
Views
2K
  • Sticky
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 87 ·
3
Replies
87
Views
9K
  • · Replies 26 ·
Replies
26
Views
6K
  • · Replies 15 ·
Replies
15
Views
4K