Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
BD / Labs / English / Lab3-Data manipulation.doc
Скачиваний:
27
Добавлен:
20.02.2016
Размер:
148 Кб
Скачать
☆
      1. 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”

  1. Control questions

Please, give answers to the following questions:

  1. Is it necessary that ordering of column names in column list in INSERT statement corresponds to the columns ordering in the table definition?

  2. What value is assigned to the column if it is omitted in column list in INSERT statement?

  3. 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?

  4. What does absence of column list in INSERT statement mean?

  5. Is it possible to define NULL value in values clause?

  6. What is a purpose to use table alias?

  7. What does absence of where clause in UPDATE statement mean?

  8. What does absence of where clause in DELETE statement mean?

8

Соседние файлы в папке English