0% found this document useful (0 votes)
24 views

SQL Introduction

Uploaded by

Anum Masood
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

SQL Introduction

Uploaded by

Anum Masood
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

ADVERTISEMENT

Introduction to SQL
‹ Previous Next ›

 Tutorials  Exercises  Certificates  Services  Search...


SQL is a standard language for accessing and
 Log in

HTML CSS JAVASCRIPT SQLmanipulating


PYTHON databases.
JAVA PHP HOW TO W3.CSS C C++ › C#

SQL Tutorial
SQL HOME What is SQL?
SQL Intro
SQL stands for Structured Query Language
SQL Syntax
SQL lets you access and manipulate databases
SQL Select
SQL became a standard of the American
SQL Select Distinct
National Standards Institute (ANSI) in 1986,
SQL Where and of the International Organization for
SQL Order By Standardization (ISO) in 1987
SQL And
SQL Or
SQL Not
What Can SQL do?
SQL Insert Into
SQL Null Values SQL can execute queries against a database
SQL Update SQL can retrieve data from a database
SQL Delete SQL can insert records in a database
COLOR
SQL Select Top SQL can update records in a database
SQL can delete records from a database
PICKER
SQL Aggregate Functions
SQL can create new databases
SQL Min and Max
SQL can create new tables in a database
SQL Count
SQL can create stored procedures in a
SQL Sum
SQL Avg
database 
SQL can create views in a database
SQL Like SQL can set permissions on tables, procedures,

SQL Wildcards and views 
SQL In
SQL Between ADVERTISEM

SQL Aliases SQL is a Standard - BUT....


SQL Joins
SQL Inner Join Although SQL is an ANSI/ISO standard, there are
SQL Left Join different versions of the SQL language.
SQL Right Join
However, to be compliant with the ANSI standard,
SQL Full Join
they all support at least the major commands (such
SQL Self Join as SELECT , UPDATE , DELETE , INSERT , WHERE )
SQL Union in a similar manner.
SQL Group By
SQL Having
SQL Exists Note: Most of the SQL database programs also have
SQL Any, All their own proprietary extensions in addition to the
SQL Select Into SQL standard!
SQL Insert Into Select
SQL Case
SQL Null Functions
SQL Stored Procedures
SQL Comments
Using SQL in Your Web Site
SQL Operators
To build a web site that shows data from a
database, you will need:
SQL Database
SQL Create DB An RDBMS database program (i.e. MS Access,
SQL Drop DB SQL Server, MySQL)
To use a server-side scripting language, like
SQL Backup DB
PHP or ASP
SQL Create Table
To use SQL to get the data you want
SQL Drop Table
To use HTML / CSS to style the page
SQL Alter Table
SQL Constraints
ADVERTISEMENT
SQL Not Null
___
SQL Unique
SQL Primary Key
SQL Foreign Key
SQL Check
SQL Default
SQL Index
SQL Auto Increment
SQL Dates
SQL Views
SQL Injection
SQL Hosting
SQL Data Types
RDBMS
SQL References
SQL Keywords RDBMS stands for Relational Database Management

System.
MySQL Functions 
SQL Server Functions  RDBMS is the basis for SQL, and for all modern
MS Access Functions
SQL Quick Ref  database systems such as MS SQL Server, IBM DB2,
Oracle, MySQL, and Microsoft Access.
SQL Examples
The data in RDBMS is stored in database objects
SQL Examples called tables. A table is a collection of related data
SQL Editor entries and it consists of columns and rows.
SQL Quiz
Look at the "Customers" table:
SQL Exercises
SQL Server
SQL Bootcamp
SQL Certificate
Example Get your own SQL Server

SELECT * FROM Customers;

Try it Yourself »

Every table is broken up into smaller entities called


fields. The fields in the Customers table consist of
CustomerID, CustomerName, ContactName,
Address, City, PostalCode and Country. A field is a
column in a table that is designed to maintain
specific information about every record in the table.

A record, also called a row, is each individual entry


that exists in a table. For example, there are 91
records in the above Customers table. A record is a
horizontal entity in a table.

A column is a vertical entity in a table that contains


all information associated with a specific field in a
table.

Video: SQL Introduction

‹ Previous Next ›

W3schools
Pathfinder
Track
your
Sign Up Log in
Sign Up Log in
progress
- it's
free!

ADVERTISEMENT

ADVERTISEMENT

 PLUS SPACES

GET CERTIFIED

FOR TEACHERS FOR BUSINESS

CONTACT US

Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial

Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference

Top Examples
HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
W3.CSS Examples
Bootstrap Examples
PHP Examples
Java Examples
XML Examples
jQuery Examples

Get Certified
HTML Certificate
CSS Certificate
JavaScript Certificate
Front End Certificate
SQL Certificate
Python Certificate
PHP Certificate
jQuery Certificate
Java Certificate
C++ Certificate
C# Certificate
XML Certificate

     FORUM

ABOUT ACADEMY
W3Schools is optimized for learning and training.
Examples might be simplified to improve reading and
learning.
Tutorials, references, and examples are constantly
reviewed to avoid errors, but we cannot warrant full
correctness
of all content. While using W3Schools, you agree to have
read and accepted our terms of use, cookie and privacy
policy.

Copyright 1999-2024 by Refsnes Data. All Rights


Reserved. W3Schools is Powered by W3.CSS.

You might also like