Tag: databases

Questions Related to databases

  1. Add a TIMESTAMP column to the table; SQL Server will automatically track date and time of every change.

  2. Add a DATETIME column to the table and assign getdate() as the default value.

  3. Add a DATETIME column to the table and write a trigger that sets its value.

  4. Add a UNIQUEIDENTIFIER column to the table and use it with SQL Server's built functions


Correct Option: C
  1. Next Sunday relative to @MyDateTime

  2. Only date part of @MyDateTime

  3. Only time part of @MyDateTime

  4. Doesn't work because you cannot cast float to datetime


Correct Option: B
  1. All of them. Permission set SAFE just restricts the use of unmanaged code

  2. None. To use classes from the .NET Framework in SQL Server you need at least permission set EXTERNAL

  3. Some of them are tested specifically for the use within SQL Server, they can be used

  4. Permission sets have nothing to do with SQLCLR


Correct Option: C
  1. A few seconds

  2. Approximately 5 minutes

  3. Usually approximately one hour; depends on the load on the server

  4. More than one hour but it is running in the background


Correct Option: A
  1. The user had to have knowledge of the table and index structures

  2. Navigational data access was far slower than declarative access.

  3. Navigational access languages required the coder to embed their queries inside a procedural language shell.

  4. Navigational languages were far slower then SQL


Correct Option: A
  1. SQL cannot support object-orientation

  2. The same query can be written in many ways, each with vastly different execution plans.

  3. SQL syntax is too difficult for non-computer professionals to use

  4. SQL creates excessive locks within the database


Correct Option: B
  1. Independence of table relationships

  2. High speed of SQL

  3. Powerful GUI front-end

  4. Easy to install and use


Correct Option: B
  1. The number of CPUs on the server

  2. The degree of parallelism on the tables

  3. The use of bitmap indexes

  4. The quality of the SQL optimization


Correct Option: D
  1. Removal of data redundancy

  2. The introduction of data redundancy

  3. The introduction of non-first normal form relations

  4. The introduction of SQL*Plus


Correct Option: B