Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between tsql, access sql and pl/sql

Tags:

sql

tsql

plsql

i am very confused

please help to clarify these differences!

are they all completely different languages? what is the overlap?

like image 331
Alex Gordon Avatar asked Dec 12 '22 23:12

Alex Gordon


2 Answers

T-SQL and PL/SQL are extensions of SQL. Overlap is entirely dependent upon which versions of Oracle and SQL Server you are comparing. IE:

WITH syntax: Has been supported by Oracle since 9i - SQL Server support started with 2005.

ANSI-92 support: Oracle 9i+ vs SQL Server 2005+

  • Analytics (ROW_NUMBER, RANK, DENSE_RANK)
  • CASE statement

Regex Support: Oracle 10g+ vs SQL Server 2005+ (requiring CLR enabling & CLR function created)

PIVOT/UNPIVOT: SQL Server 2005+ vs Oracle 11g+

COALESCE: Oracle 9i+ vs SQL Server 2000+

like image 174
OMG Ponies Avatar answered Dec 24 '22 22:12

OMG Ponies


TSQL - Transact SQL
PL/SQL - Is SQL for Oracle SQL Server
Access SQL - Is a hacked version of SQL

TSQL and PL/SQL are both based off of SQL ISO/ANSI Standards. It depends on the version of SQL Server(TSQL) or Oracle(PL/SQL) for what ISO/ANSI version they are using. See http://en.wikipedia.org/wiki/SQL for more info.

TSQL and PL/SQL just have extra functionality beyond ISO/ANSI SQL put in by the companies that made them. In general the ISO/ANSI SQL standard deal specifically with how you can Query a database and what structures you can have in the database (e.g. tables, triggers, stored procs, etc). TSQL and PL/SQL are true programming languages in that they can do loops and other things that a programming languages can do. Simply put TSQL and PL/SQL are turing complete and the ISO standards are not.

I am not sure about Access. I think it is just a hacked up version of SQL.

like image 44
Ben Hoffman Avatar answered Dec 24 '22 21:12

Ben Hoffman