In this lecture of the databases course we learn how to write (non-monotonic) SQL queries using EXISTS and NOT EXISTS. The (NOT) EXIST operation can be used to check whether a subquery computes a (non-)empty result. We will see that the subquery always should to be correlated with the outer query, and we will learn about variable scoping in SQL. We will discuss several examples and common mistakes.
This is the databases online course given at the Vrije Universiteit Amsterdam by Jörg Endrullis. The course objective is to obtain a good understanding of relational database systems from the user perspective. This includes the ability to develop conceptual database models, as well as key concepts and skills in relational database theory and practice.
Among others, we treat in this course the following subjects:
(a) entity–relationship diagrams for the design of database schemata,
(b) the relational database model and integrity constraints,
(c) SQL (structured query language) for retrieving information from relational databases,
(d) database normalisation and functiona dependencies (reasoning about good database design),
(e) transactions and concurrency control.
The slides are based on work by Peter Boncz and Torsten Grust.
Auf dieser Seite können Sie das Online-Video SQL Tutorial - NOT EXISTS | Database Tutorial 5i mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Theoretical Computer Science 09 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 13,671 Mal angesehen und es wurde von 120 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!