CUNY ACE Upskilling: Introduction to Structured Query Language (SF21JOB) — Day 6

We are half-way done with the course. We are now creating, dropping and altering objects.

    CREATE  obj_type   obj_name [some_code]

    CREATE  DATABASE   db_name;

    CREATE  SCHEMA     schema_name;

    CREATE  TABLE      table_name;
      (
        field_1 datatype_1 [atributes],
        field_2 datatype_2 [atributes],
        field_3 datatype_3 [atributes],
        ...
      );

    CREATE  VIEW       view_table
    AS
      (
        SELECT fields...
        FROM table(s)
      );

Download the class notes for day 6.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.