Database Administration Questions


Q:

AND, OR and NOT are examples of

A) Clauses B) Boolean operators
C) Conjuctive operators D) Exclusive operators
 
Answer & Explanation Answer: B) Boolean operators

Explanation:
Report Error

View Answer Report Error Discuss

6 2197
Q:

What is the purpose of SQL Profiler in SQL server?

Answer

SQL profiler is a tool to monitor performance of various stored procedures. It is used to debug the queries and procedures. Based on performance, it identifies the slow executing queries. Capture any problems by capturing the events on production environment so that they can be solved.

Report Error

View answer Workspace Report Error Discuss

1 2195
Q:

A subquery in an sql select statement.

Answer

A Subquery or Inner query or a Nested query is a query within another SQL query and embedded within the WHERE clause.


Subqueries are most frequently used with the SELECT statement. The basic syntax is as follows::


SELECT column_name [, column_name ]
FROM table1 [, table2 ]
WHERE column_name OPERATOR
(SELECT column_name [, column_name ]
FROM table1 [, table2 ]
[WHERE])



A subquery is used to return data that will be used in the main query as a condition to further restrict the data to be retrieved.


Subqueries can be used with the SELECT, INSERT, UPDATE, and DELETE statements along with the operators like =, <, >, >=, <=, IN, BETWEEN, etc.


 


There are a few rules that subqueries must follow −


 


1. Subqueries must be enclosed within parentheses.


2. A subquery can have only one column in the SELECT clause, unless multiple columns are in the main query for the subquery to compare its selected columns.


3. An ORDER BY command cannot be used in a subquery, although the main query can use an ORDER BY. The GROUP BY command can be used to perform the same function as the ORDER BY in a subquery.


4. Subqueries that return more than one row can only be used with multiple value operators such as the IN operator.


5. The SELECT list cannot include any references to values that evaluate to a BLOB, ARRAY, CLOB, or NCLOB.


6. A subquery cannot be immediately enclosed in a set function.


7. The BETWEEN operator cannot be used with a subquery. However, the BETWEEN operator can be used within the subquery.

Report Error

View answer Workspace Report Error Discuss

0 2193
Q:

Which of the following is a function of Earth's atmosphere?

A) supplies the oxygen and water for life B) screens out much of the Sun's ultraviolet radiation
C) insulates the surface against temperature extremes D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Here all the options given are important functions of Earth's atmosphere.

Report Error

View Answer Report Error Discuss

2 2192
Q:

Explain Data Definition Language

Answer

Data Definition Language (DDL):- are the SQL statements that define the database structure.


Example:



  1.  CREATE

  2.  ALTER

  3.  DROP

  4.  TRUNCATE

  5.  COMMENT

  6.  RENAME

Report Error

View answer Workspace Report Error Discuss

1 2183
Q:

Which of the following are displayed in File Explorer ?

A) Only OneDrive B) Only Storage locations
C) Both A & B D) Hardware devices such as monitors, printers, and cameras
 
Answer & Explanation Answer: C) Both A & B

Explanation:

Storage locations and OneDrive are both displayed in File Explorer.

Report Error

View Answer Report Error Discuss

30 2165
Q:

Zip files use what type of compression?

A) Lossless B) Lossy
C) Any of the above D) None of the above
 
Answer & Explanation Answer: A) Lossless

Explanation:

ZIP file is an archive file format that supports lossless data compression. Lossless is a fairly popular data compression method that is used in a number of different applications. Files can become corrupted when they are transferred over the internet in an uncompressed format. It enables devices to transmit or store the same amount of data in fewer bits.

Report Error

View Answer Report Error Discuss

4 2159
Q:

Describe a situation in which you had to arrive at a compromise or guide others to a compromise ?

Answer

This question is designed to see how well you can mediate a situation and handle conflict. You want to come across as someone who can compromise when necessary. An interviewer wants to see that you can not only reach an outcome that is desirable for both sides of a conflict of interest, but also that you can understand where the other person is coming from. Empathy and understanding go a long way in any job and this is a good opportunity to show that you can put yourself in another’s shoes.

Report Error

View answer Workspace Report Error Discuss

2 2153