Questions
The end of SQL command is
- System.exit()
- + Q
- an ‘enter key’ marker
- a semicolon(;)
- End
Which SQL statement is used to extract data from a database?
- SELECT
- GET
- OPEN
- QUERY
- EXTRACT
In SQL, which of the following problems generally occur?
- The user had to have knowledge of the table and index structures.
- The same query can be written in many ways and varying internal execution plans.
- SQL syntax is too difficult.
- Independence of table relationships.
- The introduction of data redundancy.
You need to calculate the total of all salaries in the accounting department. Which group function should you use?
- MAX
- COUNT
- AVG
- VAR
- SUM
SQL is used for interacting with _______.
- DBMS
- SDL
- RDBMS
- DDL
- MAQL
Which constraint can be defined only at the column level?
- UNIQUE
- NOT NULL
- CHECK
- PRIMARY KEY
- FOREIGN KEY
Which one of the following sorts rows in SQL?
- CUBE BY
- GROUP BY
- ROLLUP BY
- HAVING BY
- ORDER BY
Which operator perform pattern matching?
- BETWEEN OPERATOR
- NULL OPERATOR
- EXISTS operator
- Bitwise operators
- LIKE OPERATOR
Which statement creates a new user?
- CREATIVE USER susan;
- CREATIVE OR REPLACE USER susan;
- CREATE NEW USER susan DEFAULT
- CREATE USER sachin IDENTIFIED BY gupta;
- CREATE OR REPLACE USER susan IDENTIFIED BY blue;
Which of the following is used to join two or more tables based on a specified column value, that is not equal to a specified column value in another table?
- self join
- non Equi Join
- outer join
- natural join
- equi join
Give the name of the cursor written and maintained by a database user.
- Explicit cursor
- User-defined cursor
- Implicit cursor
- User cursor
- Dynamic cursor
In a PL/SQL, block be executed by
- using %ROWTYPE
- using a slash (/)at the end
- using comma and a blank space
- using a semi colon at the end
- using slash-asterisk (/*)
Which of the following is the name of index of SQL Server that stores index information in the system table ?
- sysindexes
- SYSIBM.SYSINDEXES
- sysusers
- sysconstraints
- sysobjects
Which of the following is not a valid SQL type of identifier?
- SQL_VARCHAR
- SQL_NUMERIC
- SQL_INTEGER
- SQL_DOUBLE
- sql_create
Using SQL Server 2000, which of the following symbols is used to indicate parameters in stored procedures?
- @
- #
- %
- (_)
- $