Oracle and SQL Server Database Concepts

Test your knowledge of Oracle and SQL Server database concepts including SQL syntax, data types, set operators, functions, and table management.

20 Questions Published

Questions

Question 1 True/False

Could we able to create a assembly in SQL 2005?

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

Which function takes as argument a numeric value or an expression that can be evaluated to a number.

  1. CEILING()
  2. SQRT()
  3. EXP()
  4. FLOOR()
Question 3 Multiple Choice (Single Answer)

How will you call a function in sql server 2005

  1. DatabaseName.fun.FunctionName()
  2. DatabaseName.dbo.FunctionName()
  3. Exercise.fun.GetFullName();
  4. Exercise.dbo.GetFullName();
Question 4 Multiple Choice (Multiple Answers)

Select from the following, Transact-SQL internal keywords

  1. datetime
  2. hierarchyid
  3. status
  4. views
  5. value
Question 5 Multiple Choice (Single Answer)

How to rename a existing table.

  1. sp_rename TableNewName, ExistingTableName;
  2. sp_renametable ExistingTableName, TableNewName;
  3. sp_rename ExistingTableName, TableNewName;
  4. sp_renametable TableNewName, ExistingTableName;
Question 6 True/False

By using TOP() can we able to update a record

  1. True
  2. False
Question 7 True/False

Oracle DATE columns always contain the date but not the time fields.

  1. True
  2. False
Question 8 True/False

Analytic functions compute an aggregate value based on a group of rows and return a single row for each group.

  1. True
  2. False
Question 9 True/False

In general, Oracle accepts all forms of expressions in all parts of all SQL statements.

  1. True
  2. False
Question 10 True/False

You may use two consecutive minus signs in arithmetic expressions to indicate the subtraction of a negative value.

  1. True
  2. False
Question 11 True/False

ALL scalar functions in Oracle return null when given a null argument

  1. True
  2. False
Question 12 True/False

It is a good practice to use ROWID as a table's primary key.

  1. True
  2. False
Question 13 True/False

The VARCHAR datatype specifies a variable-length character string.

  1. True
  2. False
Question 14 True/False

You use comments in a SQL statement to pass hints to the Oracle optimizer

  1. True
  2. False
Question 15 True/False

Oracle treats zero-length character strings as nulls.

  1. True
  2. False
Question 16 True/False

During a hierarchical query, Oracle always processes the WHERE clause before the CONNECT BY clause.

  1. True
  2. False
Question 17 True/False

In Oracle SQL, all set operators have equal precedence

  1. True
  2. False
Question 18 True/False

In Oracle, the select list appears after the SELECT keyword and before the FROM clause.

  1. True
  2. False
Question 19 True/False

The UNION ALL operator does not eliminate duplicate selected rows from the result set.

  1. True
  2. False
Question 20 True/False

The ALTER SEQUENCE statement can affect only the future sequence numbers

  1. True
  2. False