Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
43 views

SQL Server Test

The document contains 30 questions about SQL Server concepts including the differences between DBMS and RDBMS, ways to connect to SQL Server instances, system databases, displaying database and table structures, datafiles, transaction log files, table types, maximum record size, identity columns, removing duplicates, bulk insertion syntax, differences between DELETE and TRUNCATE, differences between WHERE and HAVING, grouping on multiple columns, differences between UNIQUE and PRIMARY KEY, testing referential integrity, number of foreign keys per table, number of columns in a SELECT statement, join types, subquery types, correlated subqueries, composite primary keys, getting system time in hours, extracting email IDs, getting nth highest salary, differences between stored procedures and triggers,

Uploaded by

rathodshri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

SQL Server Test

The document contains 30 questions about SQL Server concepts including the differences between DBMS and RDBMS, ways to connect to SQL Server instances, system databases, displaying database and table structures, datafiles, transaction log files, table types, maximum record size, identity columns, removing duplicates, bulk insertion syntax, differences between DELETE and TRUNCATE, differences between WHERE and HAVING, grouping on multiple columns, differences between UNIQUE and PRIMARY KEY, testing referential integrity, number of foreign keys per table, number of columns in a SELECT statement, join types, subquery types, correlated subqueries, composite primary keys, getting system time in hours, extracting email IDs, getting nth highest salary, differences between stored procedures and triggers,

Uploaded by

rathodshri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL SERVER TEST

1. What are the differences between DBMS & RDBMS?


2. How many ways we can connect to an instance of SQL Server? Explain.
3. What are the system databases?
4. How to display the structural details of a database and table using command?
5. How may datafiles can be created in a single database?
6. What is the use of transaction log file?
7. What are the different types of tables in SQL Server?
8. What is the maximum size of data that can be entered in a single record of a table?
9. What is Identity? Explain?
10. How to display a column data without duplicates?
11. Write the syntax for Bulk Insertion?
12. What are the differences between DELETE & TRUNCATE?
13. What is the difference between WHERE & HAVING?
14. Is it possible to group the table data based on more than one column?
15. What are the differences between UNIQUE & PRIMARY KEY?
16. How to test Referential Integrity in a database?
17. How many foreign key a table can contain?
18. How many columns can be retrieved using a SELECT statement?
19. What are the types of Joins?
20. What are the types of Sub Queries?
21. What is a Correlated Sub Query? How it will be executed?
22. What is Composite Primary Key?
23. How to get System Time in Hours?
24. There is a column “Email” in a table as follows:

Email
Sql.venkat@yahoo.com
venkatb@mindq.com
The table name is “emp”. Write a query to retrieve only the id part of email column
(up to before@)
25. How to get ‘nth’ maximum salary in a table?
26. What is the difference between Stored Procedure and Trigger?
27. What are the parameters in a procedure? Expain?
28. What is Normalization?
29. How to test a stored procedure?
30. Solve the following Queries based on the given tables:

EMP PHONE CITY


Empid Ename
phone Sal Mgrid

11 E166664291
25000 2

2
1 E266664293
40000 3

3
2 E366664292
30000 5

4
3 E466664291
20000 1

5
3 E564566295
35000 2

5 66664292

Empid city

1 HYD

2 SEC

3 HYD

1 SEC

5 VIZ

a. Find the employees who is living in more than one city

b. Find the employees who is living in the same city

c. Find the employees who doesn’t have phone

d. Fine the employees who is having more than once phone number

e. Fine the employees along with their manager names

f. Fin d the employees who are not the managers

You might also like