SQL Questions

Q:

Describe the use of PL/SQL table?

Answer

PL/SQL tables are scalar arrays that can be referenced by a binary digit. They can be used to store values for later queries and calculations.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 2337
Q:

What is Catalog Views?

Answer

Catalog views return information that is used by the SQL Server Database Engine. Catalog Views are the most general interface to the catalog metadata and provide the most efficient way to obtain, transform, and present customized forms of this information. All user- available catalog metadata is exposed through catalog views.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

1 2306
Q:

What is LINQ?

Answer

Language Integrated Query (LINQ) adds the ability to query objects using .NET languages. The LINQ to SQL object/relational mapping (O/RM) framework provides the following basic features:


- Tools to create classes (usually called entities) mapped to database tables


- Compatibility with LINQ's standard query operations


- The DataContext class, with features such as entity record monitoring, automatic SQL statement generation, record concurrency detection, and much more

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 2298
Q:

What are user defined data-types and when do you use them?

Answer

User defined data-types in SQL is an extension to the base SQL server data-types by provision of a descriptive name.


We use them to format the database and segregate specific repetitions of rows and columns in the database.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

1 2259
Q:

What type of Joins have you used?

Answer

The knowledge of Joins is a MUST for every interviewee. Most SQL programmers have used inner join and  outer join[left/right]; but the catch point here is to also mention cross join and self-join.


 

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

1 2238
Q:

Define Trigger

Answer

Trigger allows us to execute a batch of SQL code when an insert, update or delete command is executed against a specific table.


Triggers are special types of stored procedures that are defined to execute automatically in place of or after data modifications. They can be executed automatically on the insert, delete and update operation.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 2172
Q:

Which of the following is not a relational database?

A) 4th Dimension B) Reflex
C) dBASE IV D) FoxPro
 
Answer & Explanation Answer: B) Reflex

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: SQL
Job Role: Database Administration , IT Trainer

1 2157
Q:

How will you find the 3rd max salary in the employment table?

Answer

SELECT DISTINCT(salary) FROM emp as e1 


WHERE (3) = (SELECT COUNT(DISTINCT(salary)) FROM emp as e2  WHERE e1.salary <= e2.salary)

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

1 2137