{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

SSQL - SQL SQL refers to query language and defines the...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
SQL SQL refers to query language and defines the structure of the data, modify the db and specify security constraints. SQL has serval language parts: DDL : Provides commands for defining,deleting,modifying relation schemas. DML: Includes commands for inserting, deleting and modifying tuples into the database. View Definition: Includes commands for defining views. Transaction control: Includes commands for specifying the beginning and ending of transactions.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
SQL box3 Embedded SQL and dynamic SQL :Defines how sql statements can be embeded witin special language such as c,c++,cobol java etc. box3 Integrity :includes commands for specifying integrity constraints that the data stored in the db must statisfy. Violation disallowed. box3 Authorization : commands for specifying access rights to relations and views.
Image of page 2
CREATE COMMAND box3 Create Table Employee ( Fname varchar2(15) NOT NULL , SSN char(9) primary key , Bdate DATE, Address varchar2(30), sex char(1), salary number(8,2), Superssn char(9) references Employee (SSN) on delete set NULL on update CASCADE , DNO int NOT NULL)
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CREATE COMMAND box3 Create Table Dept ( Dname varchar2(15) NOT NULL, Dnumber int primary key , MGRSSN char(9) references Employee(SSN), MGRSTARTDATE DATE);
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern