Page 65 - SQL
P. 65

(Name, Country)
         VALUES
             ('J.D. Salinger', 'USA'),
             ('F. Scott. Fitzgerald', 'USA'),
             ('Jane Austen', 'UK'),
             ('Scott Hanselman', 'USA'),
             ('Jason N. Gaylord', 'USA'),
             ('Pranav Rastogi', 'India'),
             ('Todd Miranda', 'USA'),
             ('Christian Wenz', 'USA')
         ;



        Books



        (view table)


          Id  Title


          1   The Catcher in the Rye


          2   Nine Stories

          3   Franny and Zooey


          4   The Great Gatsby

          5   Tender id the Night


          6   Pride and Prejudice


          7   Professional ASP.NET 4.5 in C# and VB


        SQL to create the table:


         CREATE TABLE Books (
             Id INT NOT NULL AUTO_INCREMENT,
             Title VARCHAR(50) NOT NULL,
             PRIMARY KEY(Id)
         );

         INSERT INTO Books
             (Id, Title)
         VALUES
             (1, 'The Catcher in the Rye'),
             (2, 'Nine Stories'),
             (3, 'Franny and Zooey'),
             (4, 'The Great Gatsby'),
             (5, 'Tender id the Night'),
             (6, 'Pride and Prejudice'),
             (7, 'Professional ASP.NET 4.5 in C# and VB')
         ;






        https://riptutorial.com/                                                                               47
   60   61   62   63   64   65   66   67   68   69   70