


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Add Column to Table - correct answer ✔Alter table Table_ Add column Coulmn_1 Datatype; Remove Table Column - correct answer ✔Alter Table Table_ Drop Column_1; Change Column Name - correct answer ✔Alter Table Table_ Rename Old_column to New_Column Datatype; Change Datatype - correct answer ✔Alter Table Table_ Modify Column_1 Datatype; Insert values into table - correct answer ✔Insert into Table_1 (Column_1, Column_2, etc) Values (Column_1_value, Column_2_value, etc), (Column_1_value_2, Column_2_value_2, etc); Delete row from Table - correct answer ✔delete from Table_1 where Value = X Create Table with Auto Increment and Primary Key - correct answer ✔Create Table Table_1( Column_1 Datatype Auto_Increment NOT NULL Primary Key, Column_6 Datatype Default 'TX' NOT NULL,
Column_7 DatatypeUnique ); Create Table with Check - correct answer ✔Create Table Table_1( Column_1 Datatype AUTO_INCREMENT Primary Key, Column_2 Datatype (15) NOT NULL, Column_3 Datatype check (Column_3 in('Egyptian Arab', 'Holsteiner', 'Quarter Horse', 'Paint', 'Saddlebred')), Column_4 Datatype check (Height between '10.0' and '20.0'), Column_5 Datatype check (BirthDate >= '2015,1,1') ); Create Table with PK and FK - correct answer ✔create Table LessonSchedule ( HorseID smallInt unsigned NOT NULL, StudentID smallint unsigned, LessonDateTime DateTime NOT NULL, CONSTRAINT PK_Lesson PRIMARY KEY (HorseID, LessonDateTime), Foreign Key (HorseID) References Horse(ID) ON Delete Cascade, Foreign Key (StudentID) References Student(ID) On Delete Set NULL ); Add Column to Table - correct answer ✔Alter table Table_ ADD Column Column_1 Datatype; Create View - correct answer ✔Create View View_1 AS Select Column_1, Column_2 etc
DateTime - correct answer ✔YYYY-MM-SS hh:mm:ss Which data type will store "2022-01-10 14:22:12" as a temporal value without loss of information? - correct answer ✔DATETIME Which SQL command is an example of data definition language (DDL)? - correct answer ✔CREATE, ALTER, and DROP How would a database engine process an update that violates a RESTRICT referential integrity constraint? - correct answer ✔The Update would be rejected by the database Which restriction applies when using a materialized view? - correct answer ✔The underlying data must be periodically refreshed Which query illustrates performing an outer join of the Movie table with a different table? - correct answer ✔Select M.Title, A.Actor from Movie M Right Join Actor A on M.ActorID = A.ID Assume there are two tables, A and B. Which rows will always be included in the result set if Table A is inner joined with Table B? - correct answer ✔Only Rows in Tables A and B that share the join condition when does a index update - correct answer ✔whenever insert, update, or delete operations are made to the underlying data