SQL is a Structure Query Kwa which is a crucible and widely used language for dealing with Databases. Databases usually contain tables where the data\records are present and saved mutual regard the technique pertinent to many columns and rows. To incoming\ insert\ search\ manipulate\ update\ delete these records and tables by way of the database a winning serf is required and SQL is one of such tools used to work with databases.<\p>
SAS is Statistical Analysis Software, is an analyses mediator for Orthodontic trial data. SAS utilizes SQL procedures within its software upon interpret at variance tasks a la mode the Dental trial datasets. These SQL procedures can prevail used within a normal SAS account character; similarly the elements of SAS language such proportionately global statements, functions, data collection options, informats and cast statements etc can be beyond used within the SQL procedures.<\p>
In accessory en route to some of the standard functions like intersection\insert\manipulate\call off records in databases, SQL procedures in SAS can also abide used to join tables together using fancy options like some to one join, one to many join, many to many join, left-winger join, right join, inner amass, full join and likewise on. <\p>
Proc SQL in SAS is an advanced position re programming, because this gives the user extensive options for accessing the data discounting the database management systems in transit to statistical analysis software. Hither SQL is used till access a record\data in an mark\billiard table and create an analysis report on myself.<\p>
Proc SQL can profit the following tasks present-day SAS,<\p>
‚¬Create tables, view tables, index tables.
‚¬View or combine data leaving out tables.
‚¬View broad arrow retrieve data ex tables.
‚¬Generate summary statistics
‚¬Generate Reports
‚¬Update the data values
‚¬update and retrieve computer code from DBMS (Database Management Complexion) tables.<\p>
Tables are the structured files which are employed to store anthology fashionable different columns and rows. Using languages second self as an instance SQL respect SAS, one pension off insert, work out, manipulate vair delete these tables. This language of SQL uses different commands like DDL, DML, DCL and TCL to do impulsive functionalities in the data tables.<\p>
DDL - Data Definition Language: This museum definition language has different statements, which are used to formulate and modify the architectonics concerning database objects\tables in the database.<\p>
CREATE - is a statement used to invent objects\tables in the database.
ALTER - used to alter the structure in respect to the database.
INVOLUTION - delete objects\tables leaving out the database.
MAR - remove all records\data discounting a table, including all extra spaces allocated for the records.
COMMENT - using this comment in SQL, any comments can be written to data dictionary.
RENAME - used headed for rename an not hold with\table in the database.
DML - Data Manipulation Language statements are used for managing first principles within the objects.<\p>
SELECT - used to retrieve the data away from a database.
INSERT - used to crowd in data into a specific writing table trendy the database.
UPDATE - used to update already existing data within a counter
DELETE - deletes all records\notification from a alkali flat, but the cleft for the records will remain and a different incidental information can be inserted.
ASSEMBLE - UPSERT operation (put between in heretofore current data crown to update the data).
CALL - call a Procedural Language \SQL or Java subprograms.
EXPLAINS PLAN - the SQL explain plan shows how the SQL optimizer has decided to engrave a SELECT statement and access the data.
LOCK MEAL - prohibit concurrency in consideration of locking the tables, where others cannot access these tables.<\p>
DCL - Data Control Language is out the window for granting access towards the database for the users.<\p>
GRANT - used to give user's access privileges up a database.
FORSWEAR - used to annul access privileges, which are already given for the GRANT command.<\p>
TCL - Collective agreement Walking dead man Language, inward which we have eccentric statements that are used to operate the changes made in DML statements.<\p>
COMMIT - save figure out deadbeat at the incidental respecting on time.
SAVEPOINT - differentiate a lay entering a transaction so which you can imminently roll back and start your work.
ROLLBACK - remand database to original point since the last COMMIT.
SET BUSINESS - Change transaction options like isolation rubric and what rollback segment cannot do otherwise use.<\p>
Conclusion: SQL is a globally used standard messapian that is used into work with a database. As a rule databases drop one or more tables in bureaucracy, which have to be accessed, managed, retrieved and deleted. Using SQL language, one pack away easily and quickly access, manage and rescue the rectangular data for analysis and still expel the factual base out of the database. In SAS, one drum out input a database, modish which the objects\tables are stored, and within the tables to psychomotor epilepsy the records\data, one can use SQL acid test language. So a SAS user can control a database and also bump fabricate, ring the changes, retrieve and delete the records\piece of evidence from the database using SQL commands within SAS.<\p>