SQL Programming Language

SQL Programming Language

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

The end of SQL command is

  1. System.exit()
  2. + Q
  3. an ‘enter key’ marker
  4. a semicolon(;)
  5. End
Question 2 Multiple Choice (Single Answer)

Which SQL statement is used to extract data from a database?

  1. SELECT
  2. GET
  3. OPEN
  4. QUERY
  5. EXTRACT
Question 3 Multiple Choice (Single Answer)

In SQL, which of the following problems generally occur?

  1. The user had to have knowledge of the table and index structures.
  2. The same query can be written in many ways and varying internal execution plans.
  3. SQL syntax is too difficult.
  4. Independence of table relationships.
  5. The introduction of data redundancy.
Question 4 Multiple Choice (Single Answer)

You need to calculate the total of all salaries in the accounting department. Which group function should you use?

  1. MAX
  2. COUNT
  3. AVG
  4. VAR
  5. SUM
Question 5 Multiple Choice (Single Answer)

SQL is used for interacting with _______.

  1. DBMS
  2. SDL
  3. RDBMS
  4. DDL
  5. MAQL
Question 6 Multiple Choice (Single Answer)

Which constraint can be defined only at the column level?

  1. UNIQUE
  2. NOT NULL
  3. CHECK
  4. PRIMARY KEY
  5. FOREIGN KEY
Question 7 Multiple Choice (Single Answer)

Which one of the following sorts rows in SQL?

  1. CUBE BY
  2. GROUP BY
  3. ROLLUP BY
  4. HAVING BY
  5. ORDER BY
Question 8 Multiple Choice (Single Answer)

Which operator perform pattern matching?

  1. BETWEEN OPERATOR
  2. NULL OPERATOR
  3. EXISTS operator
  4. Bitwise operators
  5. LIKE OPERATOR
Question 9 Multiple Choice (Single Answer)

Which statement creates a new user?

  1. CREATIVE USER susan;
  2. CREATIVE OR REPLACE USER susan;
  3. CREATE NEW USER susan DEFAULT
  4. CREATE USER sachin IDENTIFIED BY gupta;
  5. CREATE OR REPLACE USER susan IDENTIFIED BY blue;
Question 10 Multiple Choice (Single Answer)

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?

  1. self join
  2. non Equi Join
  3. outer join
  4. natural join
  5. equi join
Question 11 Multiple Choice (Single Answer)

Give the name of the cursor written and maintained by a database user.

  1. Explicit cursor
  2. User-defined cursor
  3. Implicit cursor
  4. User cursor
  5. Dynamic cursor
Question 12 Multiple Choice (Single Answer)

In a PL/SQL, block be executed by

  1. using %ROWTYPE
  2. using a slash (/)at the end
  3. using comma and a blank space
  4. using a semi colon at the end
  5. using slash-asterisk (/*)
Question 13 Multiple Choice (Single Answer)

Which of the following is the name of index of SQL Server that stores index information in the system table ?

  1. sysindexes
  2. SYSIBM.SYSINDEXES
  3. sysusers
  4. sysconstraints
  5. sysobjects
Question 14 Multiple Choice (Single Answer)

Which of the following is not a valid SQL type of identifier?

  1. SQL_VARCHAR
  2. SQL_NUMERIC
  3. SQL_INTEGER
  4. SQL_DOUBLE
  5. sql_create
Question 15 Multiple Choice (Single Answer)

Using SQL Server 2000, which of the following symbols is used to indicate parameters in stored procedures?

  1. @
  2. #
  3. %
  4. (_)
  5. $