SQL Language — A 2 day course
SQL is an industry-standard language for accessing mainframe, midrange and LAN-based, multi-user relational databases. This course will teach the student how to read and write good SQL for querying, updating and maintaining SQL databases.
The course progresses through the elements of the language to build a thorough appreciation and understanding of SQL's capabilities and power. It covers ANSI-standard SQL and some of the common extensions.
This course is made up of a mix of theory and practical sessions. You will complete a series of exercises that cover all the important components of the language and allow you to practise your SQL.
Please Note: The course will use a Microsoft SQL Server platform and T-SQL in all labs and practices to illustrate the use of the SQL language.
After attending this course, delegates will be able to:
- Describe where the SQL language came from and its set-based mode of operation
- Write SQL statements to create and manipulate database objects and data
- Read SQL effectively
- Write queries to join many related tables
- Use the features of the language to safeguard the data and its value to the user
- Recognise the dangers inherent in the language that may return the right result but would be fatally flawed with different data
Anyone wishing to use SQL to access data.
A degree of computer literacy is needed. Typically delegate skills will include a working familiarity with the Windows graphical environment but no prior knowledge of SQL. The most successful students on this course are those who can type accurately and consistently, and can cope with 'syntax' as SQL is a syntactically 'fussy' language.
Typically delegates will have coded in some other language but it is not necessary to have done so to be successful on this course. The range of exercises allows students to work at the most approriate pace for them.
Publicly scheduled dates, locations, and prices
A schedule of dates for this subject is not currently available. Please call 0333 210 0140 or use our contact form to enquire about places and availability.
Introduction to Relational Databases
- The need for an SQL standard
- The ANSI standards
- What is a database?
- What is a relational database?
- Components of a relational database
- Normalised data
- Anatomy of a table
- Primary and foreign keys
- Components of SQL
Data Manipulation Language
- SELECT operations
- Virtual columns
- Column aliases
- Restricting the rows returned
- Multiple conditions
- Ordering data
- Inserting rows
- Updating rows
- Deleting rows
- The theory of joining tables
- Cross, Inner, Outer, Full, Left and Right
- Composite joins
- Table aliases
Data Definition Language
- Data types
- Column attributes
- Create table
- Primary and foreign keys
- Referential integrity
- Alter and drop tables
- Defining simple views
- Views with virtual columns
- Restricted-column views
- Joined-table views
- Restricted-row views
- View restrictions
- Table aggregates
- GROUP BY and aggregates
- The HAVING clause
- Using simple Subqueries
- Correlated Subqueries