SQL Questions & Answers
SQL Questions & Answers
4. What is a ‘tuple’?
A. A row or record in a database table.
B. Another name for the key linking different tables in a database.
C. An attribute attached to a record.
D. Another name for a table in an RDBMS.
Ans: A
5. Which of the following are issues to be considered by users of large corporate GIS databases?
A. The need for multiple copies of the same data and subsequent merging after separate updates.
B. The need to manage long transactions.
C. The need for manual transfer of records to paper.
D. The need for multiple views or different windows into the same databases.
E. The need for concurrent access and multi-user update.
Ans: D
8. The relational database model is based on concepts proposed in the 1960s and 1970s.
A. True
B. False
Ans: A
12.In a networked web based GIS all communications must go through an internet map server.
A. True
B. False
Ans: B
14. In an OO database objects may inherit some or all of the characteristics of other objects.
A. True
B. False
Ans: A
15. You can add a row using SQL in a database with which of the following?
A. ADD
B. CREATE
C. INSERT
D. MAKE
Ans: c
25. Which of the following is the correct order of keywords for SQL SELECT statements?
A. SELECT, FROM, WHERE
B. FROM, WHERE, SELECT
C. WHERE, FROM,SELECT
D. SELECT,WHERE,FROM
Ans: A
A. report
B. form
C. file
D. table
Ans: D
28. To remove duplicate rows from the results of an SQL SELECT statement, the ________
qualifier specified must be included.
A. ONLY
B. UNIQUE
C. DISTINCT
D. SINGLE
Ans: c
29. The benefits of a standard relational language include which of the following?
A. Reduced training costs
B. Increased dependence on a single vendor
C. Applications are not needed.
D. All of the above.
Ans: A
30. Which of the following do you need to consider when you make a table in SQL?
A. Data types
B. Primary keys
C. Default values
D. All of the above.
Ans: D
35. The SQL statement that queries or reads data from a table is ________ .
A. SELECT
B. READ
C. QUERY
D. None of the above is correct.
Ans: A
A. Unknown
B. True
C. False
D. Null
MCQ: Aggregate functions are said to take a set or multiset of values as input and return
A. Single value
B. Multiple sets
C. Multiple attributes
D. Multiple values
MCQ: An aggregate function of SQL that demands input to be a collection of numbers is known
to be
A. Avg
B. Sum
C. Both A and B
D. Min/Max
MCQ: Clause when is used in a query, demands elimination of duplicate tuples, is called
A. Select Clause
B. Where Distinct Clause
C. Select distinct Clause
D. From Distinct Clause
A. 2 types
B. 3 types
C. 4 types
D. 5 types
What is a 'tuple'?
A. A row or record in a database table.
B. Another name for the key linking different tables in a database.
C. An attribute attached to a record.
D. Another name for a table in an RDBMS.
Ans: A
Which of the following are issues to be considered by users of large corporate GIS databases?
A. The need for multiple copies of the same data and subsequent merging after separate updates.
B. The need to manage long transactions.
C. The need for manual transfer of records to paper.
D. The need for multiple views or different windows into the same databases.
E. The need for concurrent access and multi-user update.
Ans: D
Which of the following are features of the object-oriented approach to databases?
A. The need to split objects into their component parts.
B. The ability to represent the world in a non-geometric way.
C. The ability to develop more realistic models of the real world.
D. The ability to develop databases using natural language approaches.
E. The ability to develop database models based on location rather than state and behaviour
Ans: C
Redundancy is minimised with a computer based database approach.
A. True
B. False
Ans: A
The relational database model is based on concepts proposed in the 1960s and 1970s.
A. True
B. False
Ans: A
Ans: B
In an OO database objects may inherit some or all of the characteristics of other objects.
A. True
B. False
Ans: A
Which of the following statements is/are true for SQL server?
A. SQL Server has Logical Architecture and Physical Architecture
B. Both a and c
C. SQL Server is compatible with the structured query language and has rich for XML
D. SQL Server is a DBMS, a complete database.
Answer: B
What is the difference between the WHERE and HAVING SQL clauses?
A. The WHERE and the HAVING clauses are identical
The HAVING SQL clause condition(s) is applied to all rows in the result set before the
B. WHERE clause is applied (if parent). The WHERE clause is used only with SELECT SQL
statements and specifies a search condition for an aggregate or a group.
C. HAVING clause is applied (if parent). The HAVING clause is used only with SELECT SQL
statements and specifies a search condition for an aggregate or a group
Answer: C
When SQL server is installed, which of the following database are created by default?
A. Master
B. Model
C. Both a and b
D. Root
Answer: C
Which of the following statements is/are false for Extended events in sql server 2008?
A. Enhanced event handling system in SQL Server
B. Both b and c below
C. Used for problem identification or problem trouble shooting
D. An architecture that is not very scalable, highly configurable
Answer: D
______ provides option for entering SQL queries as execution time, rather than at the development
stage.
A) PL/SQL
B) SQL*Plus
C) SQL
D) Dynamic SQL
Ans: D
What are the different events in Triggers?
A) Define, Create
B) Drop, Comment
C) Insert, Update, Delete
D) Select, Commit
Ans: C