SlideShare a Scribd company logo
1 of 18
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 The IBM’s System/R was not the first DBMS. The
first to market was Relational Software's product
named Oracle
 The second was Relational Technology's Ingres.
 IBM then released improved products in 1982
named SQL/DS and DB2. Oracle and DB2 in nth
generation forms while the Ingres technology was
bought by Computer Associates
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 SQL is a open language without corporate ownership.
 The ANSI-SQL (American National Standards Institute)
group has published three standards over the years:
SQL89 (SQL1)
SQL92 (SQL2)
SQL99 (SQL3)
 The majority of the language has not changed
through these updates.
 The SQL standard from ANSI is considered the "pure"
SQL and called ANSI-SQL.
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 Every DBMS vendor wants their products to be different. So most
products offers extra features, these additions are generally not
compatible with competitor's SQL products.
 It is always safest to stick with pure SQL
 The enhancements are not all bad because these extensions are
very useful.
 For example, most DBMS sold today have an automatic way to
assign a serial number feature since serial numbering is so
common. However, the method of implementation is not
uniform.
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 In SQL, a VIEW is a virtual relation based on the result-set of a
SELECT statement.
 A view contains rows and columns, just like a real table. The fields
in a view are fields from one or more real tables in the database.
In some cases, we can modify a view and present the data as if
the data were coming from a single table.
 Syntax:
 CREATE VIEW view_name AS
 SELECT column_name(s)
 FROM table_name
 WHERE condition
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
When we say Relation, it could be a Table or a View. There are three
kind of relations:
1. Stored relations tables
We sometimes use the term “base relation” or “base table”
2. Virtual relations views
3. Temporary results
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Example: Create a view with title and year and made by Paramount
studio.
Movie (title, year, length, inColor, studioName, producerC#)
CREATE VIEW ParamountMovie AS
SELECT title,year
FROM Movie
WHERE studioName = ‘Paramount’;
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 A view could be used from inside a query, a stored procedure, or
from inside another view. By adding functions, joins, etc., to a view,
it allows us to present exactly the data we want to the user.
SELECT title
FROM ParamountMovie
WHERE year = ‘1979’;
 Have same result as
SELECT title
FROM Movie
WHERE studioName = ‘Paramount’ AND year = ‘1979’;
View
Table
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 Query involving both view and table
SELECT DISTINCT starName
FROM ParamountMovie, StarsIn
WHERE title = movieTitle AND year = movieYear;
Table
View
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Sometime, we might want to distinguish attributes by
giving the different name.
CREATE VIEW MovieProd (movieTitle, prodName) AS
SELECT title, name
FROM Movie, MovieExec
WHERE producerC# = cert#;
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
When we modify a view, we actually modify a table through a view.
Many views are not updateable. Here are rules have been
defined in SQL for updateable views:
 selecting (SELECT not SELECT DISTINCT) some attributes from
one relation R (which may itself be an updateable view)
 The WHERE clause must not involve R in a subquery.
 The list in the SELECT clause must include enough
attributes that will allow us to insert tuples into the view as
well as table. All other attributes will be filled out with
NULL or the proper default values.
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
INSERT INTO ParamountMovie
VALUES (‘Star Trek’, 1979);
To make the view ParamountMovie updateable, we need to add
attribute studioName to it’s SELECT clause because it makes more
sense if the studioName is Paramount instead of NULL.
CREATE VIEW ParamountMovie AS
SELECT studioName, title, year
FROM Movie
WHERE studioName = ‘Paramount’;
Then
INSERT INTO ParamountMovie
VALUES (‘Paramount’, ‘Star Trek’, 1979);
Title year length inColor studioName producerC#
‘Star Trek’ 1979 0 NULL ‘Paramount’ NULL
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 Suppose we wish to delete all movies with “Trek” in
their title from the updateable view ParamountMovie.
DELETE FROM ParamountMovie
WHERE title LIKE ‘%Trek%’;
It is turned into the base table delete
DELETE FROM Movie
WHERE title LIKE ‘%Trek%’ AND studioName = ‘Paramount’;
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 UPDATE from an updateable view
UPDATE ParamountMovie
SET year = 1979
WHERE title = ‘Star Trek the Movie’;
It is turned into the base table update
UPDATE Movie
SET year = 1979
WHERE title = ‘Star Trek the Movie’ AND studioName =
‘Paramount’;
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
 DROP view: All views can be dropped, whether or not the view
is updateable.
DROP VIEW ParamountMovie;
 DROP VIEW does not affect any tuples of the underlying
relation (table) Movie.
 However, DROP TABLE will delete the table and also make the
view ParamountMovie unusable.
DROP TABLE Movie
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com
ADDRESS:
SCO -15, Dayal Bagh,
Near Hanuman Mandir
Ambala Cantt-133001
Haryana
Ph. No.: 9729666670, 8222066670 &0171-4000670
Email ID: info.jatinbatra@gmail.com
Website: www.batracomputercentre.com
Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670
Email: info.jatinbatra@gmail.com

More Related Content

Viewers also liked

DEVELOPMENTAL & MOTIVATIONAL ASPECT OF PERFORMANCE APPRAISAL
DEVELOPMENTAL & MOTIVATIONAL ASPECT OF PERFORMANCE APPRAISALDEVELOPMENTAL & MOTIVATIONAL ASPECT OF PERFORMANCE APPRAISAL
DEVELOPMENTAL & MOTIVATIONAL ASPECT OF PERFORMANCE APPRAISALIAEME Publication
 
WHAT’S TRENDING AND HOW? PERSPECTIVES ON SOCIAL AND SPIRITUAL IMPLICATIONS OF...
WHAT’S TRENDING AND HOW? PERSPECTIVES ON SOCIAL AND SPIRITUAL IMPLICATIONS OF...WHAT’S TRENDING AND HOW? PERSPECTIVES ON SOCIAL AND SPIRITUAL IMPLICATIONS OF...
WHAT’S TRENDING AND HOW? PERSPECTIVES ON SOCIAL AND SPIRITUAL IMPLICATIONS OF...IAEME Publication
 
ASSOCIATION BETWEEN SERVICE HEALTH QUALITY AND PATIENT SATISFACTION – A CASE ...
ASSOCIATION BETWEEN SERVICE HEALTH QUALITY AND PATIENT SATISFACTION – A CASE ...ASSOCIATION BETWEEN SERVICE HEALTH QUALITY AND PATIENT SATISFACTION – A CASE ...
ASSOCIATION BETWEEN SERVICE HEALTH QUALITY AND PATIENT SATISFACTION – A CASE ...IAEME Publication
 
Betop led product catalogue
Betop led product catalogueBetop led product catalogue
Betop led product catalogueShelly Tan-Betop
 
研究しよう,伝えよう
研究しよう,伝えよう研究しよう,伝えよう
研究しよう,伝えようKazushi Yamashina
 
NC-NETS Employability Skills: Entrepreneurship
NC-NETS Employability Skills: EntrepreneurshipNC-NETS Employability Skills: Entrepreneurship
NC-NETS Employability Skills: EntrepreneurshipWakeTechCC
 
Better Use of Land and Reducing Energy Use
Better Use of Land and Reducing Energy UseBetter Use of Land and Reducing Energy Use
Better Use of Land and Reducing Energy UseExeter City Futures
 
Nuosavas verslas neįgaliesiems bci pristatymas
Nuosavas verslas neįgaliesiems bci pristatymasNuosavas verslas neįgaliesiems bci pristatymas
Nuosavas verslas neįgaliesiems bci pristatymasMatas Lešinskas
 

Viewers also liked (9)

DEVELOPMENTAL & MOTIVATIONAL ASPECT OF PERFORMANCE APPRAISAL
DEVELOPMENTAL & MOTIVATIONAL ASPECT OF PERFORMANCE APPRAISALDEVELOPMENTAL & MOTIVATIONAL ASPECT OF PERFORMANCE APPRAISAL
DEVELOPMENTAL & MOTIVATIONAL ASPECT OF PERFORMANCE APPRAISAL
 
WHAT’S TRENDING AND HOW? PERSPECTIVES ON SOCIAL AND SPIRITUAL IMPLICATIONS OF...
WHAT’S TRENDING AND HOW? PERSPECTIVES ON SOCIAL AND SPIRITUAL IMPLICATIONS OF...WHAT’S TRENDING AND HOW? PERSPECTIVES ON SOCIAL AND SPIRITUAL IMPLICATIONS OF...
WHAT’S TRENDING AND HOW? PERSPECTIVES ON SOCIAL AND SPIRITUAL IMPLICATIONS OF...
 
ASSOCIATION BETWEEN SERVICE HEALTH QUALITY AND PATIENT SATISFACTION – A CASE ...
ASSOCIATION BETWEEN SERVICE HEALTH QUALITY AND PATIENT SATISFACTION – A CASE ...ASSOCIATION BETWEEN SERVICE HEALTH QUALITY AND PATIENT SATISFACTION – A CASE ...
ASSOCIATION BETWEEN SERVICE HEALTH QUALITY AND PATIENT SATISFACTION – A CASE ...
 
Betop led product catalogue
Betop led product catalogueBetop led product catalogue
Betop led product catalogue
 
研究しよう,伝えよう
研究しよう,伝えよう研究しよう,伝えよう
研究しよう,伝えよう
 
Sarahi
SarahiSarahi
Sarahi
 
NC-NETS Employability Skills: Entrepreneurship
NC-NETS Employability Skills: EntrepreneurshipNC-NETS Employability Skills: Entrepreneurship
NC-NETS Employability Skills: Entrepreneurship
 
Better Use of Land and Reducing Energy Use
Better Use of Land and Reducing Energy UseBetter Use of Land and Reducing Energy Use
Better Use of Land and Reducing Energy Use
 
Nuosavas verslas neįgaliesiems bci pristatymas
Nuosavas verslas neįgaliesiems bci pristatymasNuosavas verslas neįgaliesiems bci pristatymas
Nuosavas verslas neįgaliesiems bci pristatymas
 

Similar to SQL Training in Ambala ! Batra Computer Centre

20101217 mtg
20101217 mtg20101217 mtg
20101217 mtgriamaehb
 
10 SQL Tricks that You Didn't Think Were Possible
10 SQL Tricks that You Didn't Think Were Possible10 SQL Tricks that You Didn't Think Were Possible
10 SQL Tricks that You Didn't Think Were PossibleLukas Eder
 
How Modern SQL Databases Come up with Algorithms that You Would Have Never Dr...
How Modern SQL Databases Come up with Algorithms that You Would Have Never Dr...How Modern SQL Databases Come up with Algorithms that You Would Have Never Dr...
How Modern SQL Databases Come up with Algorithms that You Would Have Never Dr...Lukas Eder
 
Creating master and work repository
Creating master and work repositoryCreating master and work repository
Creating master and work repositoryRavi Kumar Lanke
 
NoSQL? No, SQL! - SQL, the underestimated "Big Data" technology
NoSQL? No, SQL! - SQL, the underestimated "Big Data" technologyNoSQL? No, SQL! - SQL, the underestimated "Big Data" technology
NoSQL? No, SQL! - SQL, the underestimated "Big Data" technologyDataGeekery
 
NoSQL? No, SQL! – How to Calculate Running Totals - Our Talk at the JUGS Bern
NoSQL? No, SQL! – How to Calculate Running Totals - Our Talk at the JUGS BernNoSQL? No, SQL! – How to Calculate Running Totals - Our Talk at the JUGS Bern
NoSQL? No, SQL! – How to Calculate Running Totals - Our Talk at the JUGS BernDataGeekery
 
Les08-Oracle
Les08-OracleLes08-Oracle
Les08-Oraclesuman1248
 
Best Way to Write SQL in Java
Best Way to Write SQL in JavaBest Way to Write SQL in Java
Best Way to Write SQL in JavaGerger
 
Get Back in Control of Your SQL - #33rdDegree
Get Back in Control of Your SQL - #33rdDegreeGet Back in Control of Your SQL - #33rdDegree
Get Back in Control of Your SQL - #33rdDegreeDataGeekery
 
2000 lines of java or 50 lines of sql the choice is yours - Lukas Eder
2000 lines of java or 50 lines of sql the choice is yours - Lukas Eder2000 lines of java or 50 lines of sql the choice is yours - Lukas Eder
2000 lines of java or 50 lines of sql the choice is yours - Lukas EderJAXLondon_Conference
 
Managing Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid ControlManaging Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid Controlscottb411
 
Flash Security, OWASP Chennai
Flash Security, OWASP ChennaiFlash Security, OWASP Chennai
Flash Security, OWASP Chennailavakumark
 
Build, Train & Deploy Your ML Application on Amazon SageMaker
Build, Train & Deploy Your ML Application on Amazon SageMakerBuild, Train & Deploy Your ML Application on Amazon SageMaker
Build, Train & Deploy Your ML Application on Amazon SageMakerAmazon Web Services
 
Term 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfTerm 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfKiranKumari204016
 
AWS Summit Singapore 2019 | Accelerating ML Adoption with Our New AI services
AWS Summit Singapore 2019 | Accelerating ML Adoption with Our New AI servicesAWS Summit Singapore 2019 | Accelerating ML Adoption with Our New AI services
AWS Summit Singapore 2019 | Accelerating ML Adoption with Our New AI servicesAmazon Web Services
 

Similar to SQL Training in Ambala ! Batra Computer Centre (20)

20101217 mtg
20101217 mtg20101217 mtg
20101217 mtg
 
10 SQL Tricks that You Didn't Think Were Possible
10 SQL Tricks that You Didn't Think Were Possible10 SQL Tricks that You Didn't Think Were Possible
10 SQL Tricks that You Didn't Think Were Possible
 
How Modern SQL Databases Come up with Algorithms that You Would Have Never Dr...
How Modern SQL Databases Come up with Algorithms that You Would Have Never Dr...How Modern SQL Databases Come up with Algorithms that You Would Have Never Dr...
How Modern SQL Databases Come up with Algorithms that You Would Have Never Dr...
 
Creating master and work repository
Creating master and work repositoryCreating master and work repository
Creating master and work repository
 
NoSQL? No, SQL! - SQL, the underestimated "Big Data" technology
NoSQL? No, SQL! - SQL, the underestimated "Big Data" technologyNoSQL? No, SQL! - SQL, the underestimated "Big Data" technology
NoSQL? No, SQL! - SQL, the underestimated "Big Data" technology
 
NoSQL? No, SQL! – How to Calculate Running Totals - Our Talk at the JUGS Bern
NoSQL? No, SQL! – How to Calculate Running Totals - Our Talk at the JUGS BernNoSQL? No, SQL! – How to Calculate Running Totals - Our Talk at the JUGS Bern
NoSQL? No, SQL! – How to Calculate Running Totals - Our Talk at the JUGS Bern
 
Handout3 links
Handout3 linksHandout3 links
Handout3 links
 
Les08-Oracle
Les08-OracleLes08-Oracle
Les08-Oracle
 
Best Way to Write SQL in Java
Best Way to Write SQL in JavaBest Way to Write SQL in Java
Best Way to Write SQL in Java
 
1. basics of python
1. basics of python1. basics of python
1. basics of python
 
Get Back in Control of Your SQL - #33rdDegree
Get Back in Control of Your SQL - #33rdDegreeGet Back in Control of Your SQL - #33rdDegree
Get Back in Control of Your SQL - #33rdDegree
 
Presentation.pdf
Presentation.pdfPresentation.pdf
Presentation.pdf
 
2000 lines of java or 50 lines of sql the choice is yours - Lukas Eder
2000 lines of java or 50 lines of sql the choice is yours - Lukas Eder2000 lines of java or 50 lines of sql the choice is yours - Lukas Eder
2000 lines of java or 50 lines of sql the choice is yours - Lukas Eder
 
Managing Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid ControlManaging Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid Control
 
Flash Security, OWASP Chennai
Flash Security, OWASP ChennaiFlash Security, OWASP Chennai
Flash Security, OWASP Chennai
 
Build, Train & Deploy Your ML Application on Amazon SageMaker
Build, Train & Deploy Your ML Application on Amazon SageMakerBuild, Train & Deploy Your ML Application on Amazon SageMaker
Build, Train & Deploy Your ML Application on Amazon SageMaker
 
exa_cer_g23
exa_cer_g23exa_cer_g23
exa_cer_g23
 
Create and Maintain COMPLEX HIERARCHIES easily
Create and Maintain COMPLEX HIERARCHIES easilyCreate and Maintain COMPLEX HIERARCHIES easily
Create and Maintain COMPLEX HIERARCHIES easily
 
Term 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfTerm 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdf
 
AWS Summit Singapore 2019 | Accelerating ML Adoption with Our New AI services
AWS Summit Singapore 2019 | Accelerating ML Adoption with Our New AI servicesAWS Summit Singapore 2019 | Accelerating ML Adoption with Our New AI services
AWS Summit Singapore 2019 | Accelerating ML Adoption with Our New AI services
 

More from jatin batra

Best SMO Training &Coaching in Ambala
Best SMO Training &Coaching in AmbalaBest SMO Training &Coaching in Ambala
Best SMO Training &Coaching in Ambalajatin batra
 
Best HTML Training &Coaching in Ambala
Best HTML Training &Coaching in AmbalaBest HTML Training &Coaching in Ambala
Best HTML Training &Coaching in Ambalajatin batra
 
Best SEO Training & Coaching in Ambala
Best SEO Training & Coaching in AmbalaBest SEO Training & Coaching in Ambala
Best SEO Training & Coaching in Ambalajatin batra
 
Best Photoshop Training in Ambala
 Best Photoshop Training  in Ambala Best Photoshop Training  in Ambala
Best Photoshop Training in Ambalajatin batra
 
Best C Programming Training & Coaching in Ambala
Best C Programming Training & Coaching in AmbalaBest C Programming Training & Coaching in Ambala
Best C Programming Training & Coaching in Ambalajatin batra
 
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTT
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTTBASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTT
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTTjatin batra
 
Web Browser ! Batra Computer Centre
Web Browser ! Batra Computer CentreWeb Browser ! Batra Computer Centre
Web Browser ! Batra Computer Centrejatin batra
 
Search Engine Training in Ambala ! Batra Computer Centre
Search Engine Training in Ambala ! Batra Computer CentreSearch Engine Training in Ambala ! Batra Computer Centre
Search Engine Training in Ambala ! Batra Computer Centrejatin batra
 
Networking Training in Ambala ! Batra Computer Centre
Networking Training in Ambala ! Batra Computer CentreNetworking Training in Ambala ! Batra Computer Centre
Networking Training in Ambala ! Batra Computer Centrejatin batra
 
SQL Training in Ambala ! BATRA COMPUTER CENTRE
SQL Training in Ambala ! BATRA COMPUTER CENTRESQL Training in Ambala ! BATRA COMPUTER CENTRE
SQL Training in Ambala ! BATRA COMPUTER CENTREjatin batra
 
Networking ! BATRA COMPUTER CENTRE
Networking ! BATRA COMPUTER CENTRENetworking ! BATRA COMPUTER CENTRE
Networking ! BATRA COMPUTER CENTREjatin batra
 
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTRE
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTREMs Office 2010 Training in Ambala ! BATRA COMPUTER CENTRE
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTREjatin batra
 
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTRE
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTREBasic Computer Training Centre in Ambala ! BATRA COMPUTER CENTRE
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTREjatin batra
 
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRE
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRECorel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRE
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTREjatin batra
 
Basic Computer Training Institute ! BATRA COMPUTER CENTRE
Basic Computer Training Institute ! BATRA COMPUTER CENTREBasic Computer Training Institute ! BATRA COMPUTER CENTRE
Basic Computer Training Institute ! BATRA COMPUTER CENTREjatin batra
 
HTML Training Institute in Ambala ! Batra Computer Centre
HTML Training Institute in Ambala ! Batra Computer CentreHTML Training Institute in Ambala ! Batra Computer Centre
HTML Training Institute in Ambala ! Batra Computer Centrejatin batra
 
Benefits of Web Browser ! Batra Computer Centre
Benefits of Web Browser ! Batra Computer CentreBenefits of Web Browser ! Batra Computer Centre
Benefits of Web Browser ! Batra Computer Centrejatin batra
 
SEO Training in Ambala ! Batra Computer Centre
SEO Training in Ambala ! Batra Computer CentreSEO Training in Ambala ! Batra Computer Centre
SEO Training in Ambala ! Batra Computer Centrejatin batra
 
Internet Training Centre in Ambala ! Batra Computer Centre
Internet Training Centre in Ambala ! Batra Computer CentreInternet Training Centre in Ambala ! Batra Computer Centre
Internet Training Centre in Ambala ! Batra Computer Centrejatin batra
 
Basic Computer Training Centre in Ambala ! Batra Computer Centre
Basic Computer Training Centre in Ambala ! Batra Computer CentreBasic Computer Training Centre in Ambala ! Batra Computer Centre
Basic Computer Training Centre in Ambala ! Batra Computer Centrejatin batra
 

More from jatin batra (20)

Best SMO Training &Coaching in Ambala
Best SMO Training &Coaching in AmbalaBest SMO Training &Coaching in Ambala
Best SMO Training &Coaching in Ambala
 
Best HTML Training &Coaching in Ambala
Best HTML Training &Coaching in AmbalaBest HTML Training &Coaching in Ambala
Best HTML Training &Coaching in Ambala
 
Best SEO Training & Coaching in Ambala
Best SEO Training & Coaching in AmbalaBest SEO Training & Coaching in Ambala
Best SEO Training & Coaching in Ambala
 
Best Photoshop Training in Ambala
 Best Photoshop Training  in Ambala Best Photoshop Training  in Ambala
Best Photoshop Training in Ambala
 
Best C Programming Training & Coaching in Ambala
Best C Programming Training & Coaching in AmbalaBest C Programming Training & Coaching in Ambala
Best C Programming Training & Coaching in Ambala
 
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTT
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTTBASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTT
BASIC COMPUTER TRAINING & COACHING CENTRE IN AMBALA CANTT
 
Web Browser ! Batra Computer Centre
Web Browser ! Batra Computer CentreWeb Browser ! Batra Computer Centre
Web Browser ! Batra Computer Centre
 
Search Engine Training in Ambala ! Batra Computer Centre
Search Engine Training in Ambala ! Batra Computer CentreSearch Engine Training in Ambala ! Batra Computer Centre
Search Engine Training in Ambala ! Batra Computer Centre
 
Networking Training in Ambala ! Batra Computer Centre
Networking Training in Ambala ! Batra Computer CentreNetworking Training in Ambala ! Batra Computer Centre
Networking Training in Ambala ! Batra Computer Centre
 
SQL Training in Ambala ! BATRA COMPUTER CENTRE
SQL Training in Ambala ! BATRA COMPUTER CENTRESQL Training in Ambala ! BATRA COMPUTER CENTRE
SQL Training in Ambala ! BATRA COMPUTER CENTRE
 
Networking ! BATRA COMPUTER CENTRE
Networking ! BATRA COMPUTER CENTRENetworking ! BATRA COMPUTER CENTRE
Networking ! BATRA COMPUTER CENTRE
 
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTRE
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTREMs Office 2010 Training in Ambala ! BATRA COMPUTER CENTRE
Ms Office 2010 Training in Ambala ! BATRA COMPUTER CENTRE
 
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTRE
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTREBasic Computer Training Centre in Ambala ! BATRA COMPUTER CENTRE
Basic Computer Training Centre in Ambala ! BATRA COMPUTER CENTRE
 
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRE
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRECorel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRE
Corel Draw Training Institute in Ambala ! BATRA COMPUTER CENTRE
 
Basic Computer Training Institute ! BATRA COMPUTER CENTRE
Basic Computer Training Institute ! BATRA COMPUTER CENTREBasic Computer Training Institute ! BATRA COMPUTER CENTRE
Basic Computer Training Institute ! BATRA COMPUTER CENTRE
 
HTML Training Institute in Ambala ! Batra Computer Centre
HTML Training Institute in Ambala ! Batra Computer CentreHTML Training Institute in Ambala ! Batra Computer Centre
HTML Training Institute in Ambala ! Batra Computer Centre
 
Benefits of Web Browser ! Batra Computer Centre
Benefits of Web Browser ! Batra Computer CentreBenefits of Web Browser ! Batra Computer Centre
Benefits of Web Browser ! Batra Computer Centre
 
SEO Training in Ambala ! Batra Computer Centre
SEO Training in Ambala ! Batra Computer CentreSEO Training in Ambala ! Batra Computer Centre
SEO Training in Ambala ! Batra Computer Centre
 
Internet Training Centre in Ambala ! Batra Computer Centre
Internet Training Centre in Ambala ! Batra Computer CentreInternet Training Centre in Ambala ! Batra Computer Centre
Internet Training Centre in Ambala ! Batra Computer Centre
 
Basic Computer Training Centre in Ambala ! Batra Computer Centre
Basic Computer Training Centre in Ambala ! Batra Computer CentreBasic Computer Training Centre in Ambala ! Batra Computer Centre
Basic Computer Training Centre in Ambala ! Batra Computer Centre
 

Recently uploaded

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 

Recently uploaded (20)

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

SQL Training in Ambala ! Batra Computer Centre

  • 1. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com
  • 2. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  The IBM’s System/R was not the first DBMS. The first to market was Relational Software's product named Oracle  The second was Relational Technology's Ingres.  IBM then released improved products in 1982 named SQL/DS and DB2. Oracle and DB2 in nth generation forms while the Ingres technology was bought by Computer Associates
  • 3. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  SQL is a open language without corporate ownership.  The ANSI-SQL (American National Standards Institute) group has published three standards over the years: SQL89 (SQL1) SQL92 (SQL2) SQL99 (SQL3)  The majority of the language has not changed through these updates.  The SQL standard from ANSI is considered the "pure" SQL and called ANSI-SQL.
  • 4. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  Every DBMS vendor wants their products to be different. So most products offers extra features, these additions are generally not compatible with competitor's SQL products.  It is always safest to stick with pure SQL  The enhancements are not all bad because these extensions are very useful.  For example, most DBMS sold today have an automatic way to assign a serial number feature since serial numbering is so common. However, the method of implementation is not uniform.
  • 5. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  In SQL, a VIEW is a virtual relation based on the result-set of a SELECT statement.  A view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tables in the database. In some cases, we can modify a view and present the data as if the data were coming from a single table.  Syntax:  CREATE VIEW view_name AS  SELECT column_name(s)  FROM table_name  WHERE condition
  • 6. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com When we say Relation, it could be a Table or a View. There are three kind of relations: 1. Stored relations tables We sometimes use the term “base relation” or “base table” 2. Virtual relations views 3. Temporary results
  • 7. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Example: Create a view with title and year and made by Paramount studio. Movie (title, year, length, inColor, studioName, producerC#) CREATE VIEW ParamountMovie AS SELECT title,year FROM Movie WHERE studioName = ‘Paramount’;
  • 8. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  A view could be used from inside a query, a stored procedure, or from inside another view. By adding functions, joins, etc., to a view, it allows us to present exactly the data we want to the user. SELECT title FROM ParamountMovie WHERE year = ‘1979’;  Have same result as SELECT title FROM Movie WHERE studioName = ‘Paramount’ AND year = ‘1979’; View Table
  • 9. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  Query involving both view and table SELECT DISTINCT starName FROM ParamountMovie, StarsIn WHERE title = movieTitle AND year = movieYear; Table View
  • 10. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com Sometime, we might want to distinguish attributes by giving the different name. CREATE VIEW MovieProd (movieTitle, prodName) AS SELECT title, name FROM Movie, MovieExec WHERE producerC# = cert#;
  • 11. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com When we modify a view, we actually modify a table through a view. Many views are not updateable. Here are rules have been defined in SQL for updateable views:  selecting (SELECT not SELECT DISTINCT) some attributes from one relation R (which may itself be an updateable view)  The WHERE clause must not involve R in a subquery.  The list in the SELECT clause must include enough attributes that will allow us to insert tuples into the view as well as table. All other attributes will be filled out with NULL or the proper default values.
  • 12. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com INSERT INTO ParamountMovie VALUES (‘Star Trek’, 1979); To make the view ParamountMovie updateable, we need to add attribute studioName to it’s SELECT clause because it makes more sense if the studioName is Paramount instead of NULL. CREATE VIEW ParamountMovie AS SELECT studioName, title, year FROM Movie WHERE studioName = ‘Paramount’; Then INSERT INTO ParamountMovie VALUES (‘Paramount’, ‘Star Trek’, 1979); Title year length inColor studioName producerC# ‘Star Trek’ 1979 0 NULL ‘Paramount’ NULL
  • 13. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  Suppose we wish to delete all movies with “Trek” in their title from the updateable view ParamountMovie. DELETE FROM ParamountMovie WHERE title LIKE ‘%Trek%’; It is turned into the base table delete DELETE FROM Movie WHERE title LIKE ‘%Trek%’ AND studioName = ‘Paramount’;
  • 14. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  UPDATE from an updateable view UPDATE ParamountMovie SET year = 1979 WHERE title = ‘Star Trek the Movie’; It is turned into the base table update UPDATE Movie SET year = 1979 WHERE title = ‘Star Trek the Movie’ AND studioName = ‘Paramount’;
  • 15. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com  DROP view: All views can be dropped, whether or not the view is updateable. DROP VIEW ParamountMovie;  DROP VIEW does not affect any tuples of the underlying relation (table) Movie.  However, DROP TABLE will delete the table and also make the view ParamountMovie unusable. DROP TABLE Movie
  • 16. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com
  • 17. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com ADDRESS: SCO -15, Dayal Bagh, Near Hanuman Mandir Ambala Cantt-133001 Haryana Ph. No.: 9729666670, 8222066670 &0171-4000670 Email ID: info.jatinbatra@gmail.com Website: www.batracomputercentre.com
  • 18. Website: www.batracomputercentre.comPh. No.: 8222066670, 4000670 Email: info.jatinbatra@gmail.com