Database Management > QUESTIONS & ANSWERS > WGU c170 The Most Important SQL Commands(SQL study guide) (All)

WGU c170 The Most Important SQL Commands(SQL study guide)

Document Content and Description Below

CREATE DATABASE: CREATE TABLE: This study source was downloaded by 100000831988016 from CourseHero.com on 05-12-2022 13:25:00 GMT -05:00 https://www.coursehero.com/file/35399377/SQL-Study-Guide-2doc... x/ ALTER TABLE: DROP TABLE DROP INDEX DROP DATABASE CREATE VIEW: This study source was downloaded by 100000831988016 from CourseHero.com on 05-12-2022 13:25:00 GMT -05:00 https://www.coursehero.com/file/35399377/SQL-Study-Guide-2docx/ ALTER TABLE & VIEW: DISTINCT: DROP VIEW: The IF EXISTS clause prevents an error from occurring for views that don't exist. When this clause is given, a NOTE is generated for each nonexistent view. CREATE INDEX: DROP INDEX: AND / OR OPERATOR GRANT PRIVILEGES: GRANT privilege_name ON object_name TO {user_name |PUBLIC |role_name} [WITH GRANT OPTION]; REVOKE PRIVILEGES: This study source was downloaded by 100000831988016 from CourseHero.com on 05-12-2022 13:25:00 GMT -05:00 https://www.coursehero.com/file/35399377/SQL-Study-Guide-2docx/ GROUP BY: ORDER BY: Select all customers from the "Customers" table, sorted DESCENDING by the "Country" column: HAVING: ORDER BY SEVERAL COLUMNS: This study source was downloaded by 100000831988016 from CourseHero.com on 05-12-2022 13:25:00 GMT -05:00 https://www.coursehero.com/file/35399377/SQL-Study-Guide-2docx/ INSERT INTO: EXAMPLE: DELETE FROM: DELETE ALL DATA: This means that the table structure, attributes, and indexes will be intact: DELETE FROM table_name; or This study source was downloaded by 100000831988016 from CourseHero.com on 05-12-2022 13:25:00 GMT -05:00 https://www.coursehero.com/file/35399377/SQL-Study-Guide-2docx/ DELETE * FROM table_name; UPDATE TABLE: Update Warning! Be careful when updating records. If we had omitted the WHERE clause, in the example above, like this: CONSTRAINTS: The constraints available in SQL are Foreign Key, Not Null, Unique, Check. Constraints can be defined in two ways 1) The constraints can be specified immediately after the column definition. This is called column-level definition. 2) The constraints can be specified after all the columns are defined. This is called table-level definition. This study source was downloaded by 100000831988016 from CourseHero.com on 05-12-2022 13:25:00 GMT -05:00 https://www.coursehero.com/file/35399377/SQL-Study-Guide-2docx/ GROUP FUNCTIONS: These functions are: COUNT, MAX, MIN, AVG, SUM, DISTINCT. COMPLEX JOINS-USING WHERE SUBQUERIES: This study source was downloaded by 100000831988016 from CourseHero.com on 05-12-2022 13:25:00 GMT -05:00 https://www.coursehero.com/file/35399377/SQL-Study-Guide-2docx/ Multiple-Table Retrievals with Joins MySQL provides 2 statements for creating new tables from other tables or from query results: CREATE TABLE ... LIKE Advantages  creates a new table as an empty copy of the original one.  copies the original table structure exactly,  each column is preserved with all of its attributes. Disadvantages  Statement is needed (such as INSERT INTO ... SELECT).  cannot create a new table from a subset of the original table's columns.  Cannot use columns from any other table but the original one. [Show More]

Last updated: 1 year ago

Preview 1 out of 9 pages

Add to cart

Instant download

document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Add to cart

Instant download

Also available in bundle (1)

WGU c170 Bundled Docs with complete solution

WGU C170 Objective Assessment With Complete Solution WGU c170 SQL COMMANDS WGU c170 PROJECT WITH COMPLETE SOLUTION WGU c170 The Most Important SQL Commands(SQL study guide) WGU c170 Database Applicati...

By Nutmegs 2 years ago

$13

10  

Reviews( 0 )

$9.50

Add to cart

Instant download

Can't find what you want? Try our AI powered Search

OR

REQUEST DOCUMENT
56
0

Document information


Connected school, study & course


About the document


Uploaded On

May 12, 2022

Number of pages

9

Written in

Seller


seller-icon
Nutmegs

Member since 3 years

577 Documents Sold


Additional information

This document has been written for:

Uploaded

May 12, 2022

Downloads

 0

Views

 56

Document Keyword Tags

What is Browsegrades

In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·