EBK DATABASE CONCEPTS
7th Edition
ISBN: 9780133777840
Author: AUER
Publisher: VST
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 3, Problem 3.10RQ
Program Plan Intro
SQL:
- SQL stands for “Structured Query Language”.
- The current version of SQL is “ANSI SQL – 92”.
- SQL is not a
programming language. It is text-based and it is also called as data sublanguage.- In order to get SQL as a complete programming language, it should be included in scripting languages like Java, C#, and so on.
- It contains constructs which are used to define and process
database . They are executed using DBMS-supplied command prompt. - Some of the DBMS products provide GUI tools in order to perform tasks are as follows:
- SQL Server
- Oracle Database
- MySQL
Table Creation:
Creating table comes under Data Definition Language (DDL). Syntax for creating table is as follows:
CREATE TABLE TABLE_NAME (
Column1 datatype,
Column2 datatype,
…
);
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Create a referential integrity constraint on OwnerID in PET. Assume that deletions should not cascade
What is a "referential integrity constraint"? Give examples to show its uses.
What is enforcing data integrity with constraints?
Chapter 3 Solutions
EBK DATABASE CONCEPTS
Ch. 3 - Prob. 3.1RQCh. 3 - What is a data sublanguage?Ch. 3 - Prob. 3.3RQCh. 3 - Prob. 3.4RQCh. 3 - Prob. 3.5RQCh. 3 - Why do some standard SQL-92 statements fail to run...Ch. 3 - Use the following tables for your answers to...Ch. 3 - Write an SQL CREATE TABLE statement to create the...Ch. 3 - Prob. 3.9RQCh. 3 - Prob. 3.10RQ
Ch. 3 - Prob. 3.11RQCh. 3 - Is PET or PET_2 a better design? Explain your...Ch. 3 - Prob. 3.13RQCh. 3 - Prob. 3.14RQCh. 3 - Prob. 3.15RQCh. 3 - Prob. 3.16RQCh. 3 - Prob. 3.17RQCh. 3 - Write an SQL statement to display the breed, type,...Ch. 3 - Prob. 3.19RQCh. 3 - Prob. 3.20RQCh. 3 - Write an SQL statement to display the breed, type,...Ch. 3 - Write an SQL statement to display the name, breed,...Ch. 3 - Prob. 3.23RQCh. 3 - Prob. 3.24RQCh. 3 - Prob. 3.25RQCh. 3 - Write an SQL statement to display the name and...Ch. 3 - Prob. 3.27RQCh. 3 - Write an SQL statement to count the number of...Ch. 3 - Write an SQL statement to count the number of...Ch. 3 - Prob. 3.30RQCh. 3 - Prob. 3.31RQCh. 3 - Prob. 3.32RQCh. 3 - Prob. 3.33RQCh. 3 - Answer question 3.33, but do not consider any pet...Ch. 3 - Write an SQL statement to display the last name,...Ch. 3 - Write an SQL statement to display the last name,...Ch. 3 - Write SQL statements to (1) create the BREED...Ch. 3 - Prob. 3.38RQCh. 3 - Prob. 3.39RQCh. 3 - Prob. 3.40RQCh. 3 - Write an SQL statement to display the...Ch. 3 - Write SQL statements to add three new rows to the...Ch. 3 - Write SQL statements to add three new rows to the...Ch. 3 - Prob. 3.44RQCh. 3 - Explain what will happen if you leave the WHERE...Ch. 3 - Prob. 3.46RQCh. 3 - Prob. 3.47RQCh. 3 - Prob. 3.48RQ
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Think about the foreign-key constraint on the instructor's department name property. Please provide examples of additions and deletions that could go against the foreign-key restriction.arrow_forwardWhat sets managed redundancy distinct from uncontrolled redundancy?arrow_forwardCreate a version of the hybrid merge-join method that is suitable for situations where both relations are not physically sorted but have a sorted secondary index on the attributes to be joined?arrow_forward
- Q1:At this point, you have created a variety of database objects in your schema. Use an Oracle tool to identify all the direct and indirect dependencies on the BB_BASKET table, and produce dependency lists in two different formats. Identify each object as a direct or an indirect dependency, and describe the path of dependency for each indirectly dependent object.arrow_forwardObserve the HOMETOWN REALESTATE database: SELLER SellerID SellerName RealtorID S111 Paul R1 S222 Carly R1 S333 Ang R2 S444 Charlotte R2 S555 Aidan R3 C666 Eric R1 C777 Christina R1 REALTOR RealtorID RealtorName R1 Claire R2 Kate R3 Cliff R4 William If a DBMS enforces a DELETE RESTRICT option on the referential integrity constraint between SELLER and REALTOR in the HOMETOWN REALESTATE database, what will be the outcome after a user tries to delete the last record (R4, William) from REALTOR? O SELLER will have 7 records, REALTOR will have 4 records O SELLER will have records, REALTOR will have 3 records O SELLER will have 7 records, REALTOR will have 3 records O SELLER will have 6 records, REALTOR will have 4 records O SELLER will have 3 records, REALTOR will have 3 recordsarrow_forwardQ1: Identify one PK from each table and add the constraints using alter.arrow_forward
- Assume a user creates a new relation r1 with a foreign key pointing to another relation r2. What level of authorization is required for the user on r2? Why should this not be permitted without permission?arrow_forward100. When the foreign key refers to a tuple which does not exists in subjected relation then the constraint violated is a. modify integrity b. referential integrity c. inferential integrity d. insert integrityarrow_forwardNormalise the following relation to remove modification anomalies showing all steps for 1NF, 2NF and 3NF. State any assumptions necessary to support your answer. Provide appropriate justification for each normalisation step. MovieRental(custNo, custName, custPhone,movieID, movieTitle, releaseYear, numberInStock, rentalDate_In, rentalDateOut,rentalAmount) Functional dependencies: custNo -> custName, custPhone, movieID, movieTitle, numberInStock, releaseYear movieID - >movieTitle, numberInStock, releaseYear custNo, movieID -> rentalDate_In, rentalDateOut, rentalAmountarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr