jagomart
digital resources
picture1_Sql Tutorialspoint Pdf 184665 | Sy306 Set13 Relationalmodel


 179x       Filetype PDF       File size 0.22 MB       Source: www.usna.edu


File: Sql Tutorialspoint Pdf 184665 | Sy306 Set13 Relationalmodel
web architecture sy306 web and databases for cyber operations set 13 databases the relational model and sql https www w3schools com sql default asp https www tutorialspoint com sql 1 ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 2 years ago
Partial capture of text on file.
                                       Web Architecture
      SY306 Web and Databases for Cyber Operations
      Set #13: Databases - The Relational Model and SQL
       https://www.w3schools.com/sql/default.asp
         https://www.tutorialspoint.com/sql/
                                                             1
                         Relational Model - Tables                                                                             Keys 
                  UserName     Gender        Age       Email           Passwd                       • Key
                  Alice        F             19        a@usna.edu      wad354daa
                  Bob          M             21        bob@usna.edu    Ddadha21hda                  • Primary key
                  Greg         M             19        greg@usna.edu   Sada3145ada
                  Jane         F             18        jane@gmail.com  sadad45da45                  • Candidate key
                                                                                                    • Surrogate key 
                                                                                                                                                                                   2
                        Foreign keys                             ICE: Is This a Relation? Why? 
                                                                      A      X      C           A
                                                                    John    Ryan   MD      jr@gmail.com
                                                                     Bob    Smith  MD,    bsm@gmail.com
                                                                                   VA, 
                                                                                    NY
                                                                    Alice  Brown    CA
                                                                    Jane    Doe    WA      jd@yahoo.com
                                                                    John    Ryan   MD      jr@gmail.com
                                                                      5       4     5           4
                                                                                                                  3
                    Structured Query Language                                                             Creating Tables
                • Data definition language (DDL)                                         CREATE TABLE table_name(
                                                                                               column_name1 column_type1 [constraints1],
                                                                                               …,
                   –CREATE, DROP, ALTER                                                        [[CONSTRAINT constraint_name] table_constraint]
                                                                                           )
                                                                                         Table constraints: 
                                                                                         • NULL/NOT NULL
                • Data manipulation language (DML)                                       • PRIMARY KEY(columns)
                                                                                         • UNIQUE(columns)
                                                                                         • CHECK (conditions)
                   –INSERT, DELETE, UPDATE, SELECT                                       • FOREIGN KEY(local_columns) REFERENCES foreign_table
                                                                                           (foreign_columns) [ON DELETE action_d ON UPDATE action_u]
                                                                                         action_d : NO ACTION|CASCADE|SET NULL|SET DEFAULT
                                                                           7             Specify surrogate key in MySQL:                             8
                                                                                            column_name int_type AUTO_INCREMENT
                                                                                                                                                                  4
The words contained in this file might help you see if this file matches what you are looking for:

...Web architecture sy and databases for cyber operations set the relational model sql https www wschools com default asp tutorialspoint tables keys username gender age email passwd key alice f a usna edu waddaa bob m ddadhahda primary greg sadaada jane gmail sadadda candidate surrogate foreign ice is this relation why x c john ryan md jr smith bsm va ny brown ca doe wa jd yahoo structured query language creating data definition ddl create table name column type drop alter constraint constraints null not manipulation dml columns unique check conditions insert delete update select local references action d no cascade specify in mysql int auto increment...

no reviews yet
Please Login to review.