Updating rows in tables
Do
the following changes in tables data:
In economics FACULTYset dean = “Bob” and fund = 3467.00
In DEPARTMENTwithDepPK= 3 change head to Frank and Building to ‘3’
In TEACHERtable set Commission of all assistants to 25% of their salary.
In SGROUPtable set rating = 0 to all groups of the first course.
In SUBJECTtable change name of the subject “internet” to “html”
Control questions
Please, give answers to the following questions:
Is it necessary that ordering of column names in
column list in INSERT
statement corresponds to the columns ordering in the table
definition?
What value is assigned to the column if it is
omitted in column list in INSERT
statement?
What does happen if column is absent in column
list in INSERT
statement and it has NOT
NULL
constraint and does not have default value?
What does absence of column list in INSERT
statement mean?
Is it possible to define NULL
value in values clause?
What is a purpose to use table alias?
What does absence of where clause in UPDATE
statement mean?
What does absence of where clause in DELETE
statement mean?
8