OMIS-452-SP16 - Week 9b - OMIS 452 Database Management for...

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

View Full Document Right Arrow Icon
OMIS 452 Database Management for Business Northern Illinois University Brian Bender
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
Agenda Ch. 7 – SQL For DB Construction & App Processing MS SQL Server DB For Business P.4 Introduction New Due Date – April 5th A Look Ahead In-Class Time To Work On P.4 OMIS-452 Week 9b 2
Image of page 2
NIUResponse.com Q1 – The SQL DDL Statement Used To Make A Relation Is… A. Form B. Insert C. Create D. Make E. None Of The Above F. I Don’t Know OMIS-452 Week 9b 3
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
NIUResponse.com Q1 – The SQL DDL Statement Used To Make A Relation Is… A. Form B. Insert C. Create D. Make E. None Of The Above F. I Don’t Know OMIS-452 Week 9b 4
Image of page 4
NIUResponse.com Q2 – When Creating My Tables In SQL, I MUST Use The Identity (x,y) Statement. A. True B. False OMIS-452 Week 9b 5
Image of page 5

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

View Full Document Right Arrow Icon
NIUResponse.com Q2 – When Creating My Tables In SQL, I MUST Use The Identity (x,y) Statement. A. True B. False When Is Identity (x,y) Used? What Does It Indicate? OMIS-452 Week 9b 6
Image of page 6
NIUResponse.com Q3 – In Which Create Table Command Are The Foreign Key Statements/Constraints Found? A. Parent Table B. All Tables C. Child Table D. None Of The Above E. I Don’t Know OMIS-452 Week 9b 7
Image of page 7

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

View Full Document Right Arrow Icon
NIUResponse.com Q3 – In Which Create Table Command Are The Foreign Key Statements/Constraints Found? A. Parent Table B. All Tables C. Child Table D. None Of The Above E. I Don’t Know –. The Parent Table MUST Exist BEFORE Creating The Child Table OMIS-452 Week 9b 8
Image of page 8
Ch. 7 – Using SQL For DB Creation Data Definition Language (DDL) What Type Of Statements Does It Contain? Statements Which: Create Relations Create Relationships Create Database Structures P.4 – MS SQL Server DB For Business OMIS-452 Week 9b 9
Image of page 9

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

View Full Document Right Arrow Icon
Ch. 7 – Using SQL For DB Creation Data Types For MS SQL Server 2008 R2 (2012) OMIS-452 Week 9b 10
Image of page 10
Ch. 7 – Using SQL For DB Creation Creating A Table (Relation) CREATE TABLE Statement Used To: Construct A Table Define Columns (Name, Data Type, Attribute Constraint(s)) Establish Other Constraints (Table) Example: OMIS-452 Week 9b 11
Image of page 11

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

View Full Document Right Arrow Icon
Ch. 7 – Using SQL For DB Creation Creating A Table (Relation) Where Do We Find The Necessary Information? P.3 – E-R Diagram & Documentation OMIS-452 Week 9b 12
Image of page 12
Ch. 7 – Using SQL For DB Creation Attribute Constraints Five (5) Primary Types Of Constraints (Plus 1 Opt.): 1. PRIMARY KEY – May Not Have Null Values 2. UNIQUE – May Have Null Values 3. NULL/NOT NULL 4. FOREIGN KEY 5. CHECK •.
Image of page 13

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

View Full Document Right Arrow Icon
Image of page 14
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