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.
Questions
Could we able to create a assembly in SQL 2005?
- True
- False
Which function takes as argument a numeric value or an expression that can be evaluated to a number.
- CEILING()
- SQRT()
- EXP()
- FLOOR()
How will you call a function in sql server 2005
- DatabaseName.fun.FunctionName()
- DatabaseName.dbo.FunctionName()
- Exercise.fun.GetFullName();
- Exercise.dbo.GetFullName();
Select from the following, Transact-SQL internal keywords
- datetime
- hierarchyid
- status
- views
- value
How to rename a existing table.
- sp_rename TableNewName, ExistingTableName;
- sp_renametable ExistingTableName, TableNewName;
- sp_rename ExistingTableName, TableNewName;
- sp_renametable TableNewName, ExistingTableName;
By using TOP() can we able to update a record
- True
- False
Oracle DATE columns always contain the date but not the time fields.
- True
- False
Analytic functions compute an aggregate value based on a group of rows and return a single row for each group.
- True
- False
In general, Oracle accepts all forms of expressions in all parts of all SQL statements.
- True
- False
You may use two consecutive minus signs in arithmetic expressions to indicate the subtraction of a negative value.
- True
- False
ALL scalar functions in Oracle return null when given a null argument
- True
- False
It is a good practice to use ROWID as a table's primary key.
- True
- False
The VARCHAR datatype specifies a variable-length character string.
- True
- False
You use comments in a SQL statement to pass hints to the Oracle optimizer
- True
- False
Oracle treats zero-length character strings as nulls.
- True
- False
During a hierarchical query, Oracle always processes the WHERE clause before the CONNECT BY clause.
- True
- False
In Oracle SQL, all set operators have equal precedence
- True
- False
In Oracle, the select list appears after the SELECT keyword and before the FROM clause.
- True
- False
The UNION ALL operator does not eliminate duplicate selected rows from the result set.
- True
- False
The ALTER SEQUENCE statement can affect only the future sequence numbers
- True
- False