



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
chapter six of database management systems
Typology: Lecture notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!




1 INSERT INTO <TABLE_NAME> (<column1_name>, <column2_name>, <column3_name>, <columnN_name>) 2 VALUES (
INSERT INTO university (uni_id, name , address, year_created) VALUES ( 1001 , 'AITU', 'st.Mangilik 55, Nur-Sultan', '01-MAY-2019'); INSERT INTO university (uni_id, name , address, year_created) VALUES ( 1002 , 'IITU', '34A st.Zhandosova, Almaty', '01-APR-2009'); INSERT INTO university (uni_id, name , address, year_created) VALUES ( 1003 , 'SDU', 'Kaskelen', '01-MAY-1996'); SELECT * FROM university;
INSERT INTO university (uni_id, name , address, year_created) VALUES ( 1004 , 'ENU', 'Nur-Sultan', '01-MAY-1990'), ( 1005 , 'UIB', 'Almaty', '01-SEPT-1997'; SELECT * FROM university;
UPDATE <table_name> SET <column1_name> =
UPDATE university SET accr_status = 'NO' WHERE uni_id = 1002; SELECT * FROM university ORDER BY uni_id;
DELETE from <table_name> WHERE [conditions];
DELETE from university WHERE uni_id = 1005; SELECT * from university ORDER by uni_id;
DELETE from university; SELECT * from university;
Practice works SQL Development. DML Statements. Practice task 1 In this section, you will apply what you have learned from previous chapters without being given any commands. a. Create the "shipping_service" and "package" tables, including all of columns, data types, and constraints. Make sure to create the foreign key constraint. b. Insert the following companies into "shipping_service" adding ship_id of your choice.
i. Write a single query to remove the employees who are not working anymore. SELECT queries with WHERE clause
1 SELECT <column1_name>, <column2_name>, <columnN_name> FROM <table_name>;
1 SELECT employee_id, name , marital_status FROM emp; 1 SELECT * FROM <table_name>;
= equal to < less than <= less than or equal to
greater than = greater than or equal to <>/ != not equal to
SELECT <column1_name>, <column2_name>, <columnN_name> FROM <table_name>