Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
SQL Server Database Interview Questions

SQL Server Database Interview Questions

Ratings: (0)|Views: 834 |Likes:
Published by api-3810166

More info:

Published by: api-3810166 on Oct 17, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less





Database admin interview questions Database
1.What is a major difference between SQL Server 6.5 and 7.0 platform wise? SQL Server 6.5
runs only on Windows NT Server. SQL Server 7.0 runs on Windows NT Server, workstation and Windows
2.Is SQL Server implemented as a service or an application? It is implemented as a service on
Windows NT server and workstation and as an application on Windows 95/98.
3.What is the difference in Login Security Modes between v6.5 and 7.0? 7.0 doesn\u2019t have
Standard Mode, only Windows NT Integrated mode and Mixed mode that consists of both Windows NT
Integrated and SQL Server authentication modes.
4.What is a traditional Network Library for SQL Servers? Named Pipes.
5.What is a default TCP/IP socket assigned for SQL Server?1433
6. If you encounter this kind of an error message, what you need to look into to solve this
[Microsoft][ODBC SQL Server Driver][Named Pipes]Specified SQL Server not found.
1. Check if MS SQL Server service is running on the computer you are trying to log into
2. Check on Client Configuration utility. Client and Server have to in sync.
7.What is new philosophy for database devises for SQL Server 7.0? There are no devises anymore
in SQL Server 7.0. It is file system now.
8.When you create a database how is it stored? It is stored in two separate files: one file contains
the data, system tables, other database objects, the other file stores the transaction log.
9.Let\u2019s assume you have data that resides on SQL Server 6.5. You have to move it SQL Server
7.0. How are you going to do it? You have to use transfer command.
10.Do you know how to configure DB2 side of the application? Set up an application ID, create
RACF group with tables attached to this group, attach the ID to this RACF group.
11.What kind of LAN types do you know? Ethernet networks and token ring networks.
12.What is the difference between them? With Ethernet, any devices on the network can send data in

a packet to any location on the network at any time. With Token Ring, data is transmitted in \u2018tokens\u2019
from computer to computer in a ring or star configuration. Token ring speed is 4/16 Mbit/sec , Ethernet
- 10/100 Mbit/sec.

13.What protocol both networks use? TCP/IP. Transmission Control Protocol, Internet Protocol.
14.How many bits IP Address consist of?An IP Address is a 32-bit number.
15.How many layers of TCP/IP protocol combined of? Five. (Application, Transport, Internet, Data

link, Physical).
16.How do you define testing of network layers? Reviewing with your developers to identify the
layers of the Network layered architecture, your Web client and Web server application interact with.
Determine the hardware and software configuration dependencies for the application under test.
17.How do you test proper TCP/IP configuration Windows machine? Windows NT: IPCONFIG/ALL,
Windows 95: WINIPCFG, Ping or ping ip.add.re.ss
1. What is a Cartesian product? What causes it?

Expected answer:
A Cartesian product is the result of an unrestricted join of two or more tables. The result set of a three table
Cartesian product will have x * y * z number of rows where x, y, z correspond to the number of rows in each
table involved in the join. It is causes by specifying a table in the FROM clause without joining it to another

2. What is an advantage to using a stored procedure as opposed to passing an SQL query from an
Expected answer:
A stored procedure is pre-loaded in memory for faster execution. It allows the DBMS control of permissions for
security purposes. It also eliminates the need to recompile components when minor changes occur to the
3. What is the difference of a LEFT JOIN and an INNER JOIN statement?

Expected answer:
A LEFT JOIN will take ALL values from the first declared table and matching values from the second declared
table based on the column the join has been declared on. An INNER JOIN will take only matching values from
both tables

4. When a query is sent to the database and an index is not being used, what type of execution is
taking place?
Expected answer:
A table scan.
5. What are the pros and cons of using triggers?

Expected answer:
A trigger is one or more statements of SQL that are being executed in event of data modification in a table to
which the trigger belongs.

Triggers enhance the security, efficiency, and standardization of databases.
Triggers can be beneficial when used:
\u2013 to check or modify values before they are actually updated or inserted in the database. This is useful if you
need to transform data from the way the user sees it to some internal database format.
\u2013 to run other non-database operations coded in user-defined functions
\u2013 to update data in other tables. This is useful for maintaining relationships between data or in keeping audit
trail information.
\u2013 to check against other data in the table or in other tables. This is useful to ensure data integrity when
referential integrity constraints aren\u2019t appropriate, or when table check constraints limit checking to the
current table only.

6. What are the pros and cons of using stored procedures. When would you use them?
7. What are the pros and cons of using cursors? When would you use them?
Database programming for the Web interview questions Database
Q: How would you make the following SQL statement run faster? SELECT * FROM TABLEA WHERE
COL1=\u2019A\u2019 AND COL2=\u2019B';
A: Make sure that COL1 and COL2 have indexes.
Find out which condition will return less value and use that as the first conditional.
Q: What is Data Mining
A: Data Mining is the process of sifting through extremely large amounts of Data to find trends or relevant
Q: Name the Seven layers in the OSI Model.
A: Appication, Presentation, Session, Transport, Network, Data Link, Phyiscal
Q: What is one way to view a unix network share on a Windows computer, within explorer
A: NFS, The Unix computer can be running a NFS Server Daemon.
Q: How would you find all the processes running on your computer?
A: UNIX is ps -ef or ps -aux depending on version.
Q: What is DHCP
A: DHCP is a way to dynamically assign IP address to computers. Dynamic Host Configuration Protocol
Q: What is HTTP Tunneling
A: HTTP Tunneling is a security method that encrypts packets traveling through the internet. Only the intended
recipient should be able to decrypt the packets. Can be used to Create Virtual Private Networks. (VPN)
Q: Scenario: You have 9 identical looking balls; however one ball is heavier than the others. You
have two chances to use a balance. How do you find out which ball is the heaviest?

A: Split into groups of three, randomly choose two groups and use balance on them. If one group is heavier, then discard the other 6 balls. If the two groups are the same weight. The heavier ball must be in the group that was not on the scale. Now randomly choose two balls and test on balance. If they are the same weight, the heaviest ball is on one that was not tested. Else the heaviest ball is already known from the balance.

read all questions
RSS feed for comments on this post.
The URI to TrackBack this entry is:http: //www.tech interviews.com/w p- trackback .php/43
1. i don\u2019t see why these questions are for database programming\u2026 it seems more like they are for
ppl who can answer the above questions how do u know they can write stored procedure, triggers,
database design, use cursor, grant premission, etc\u2026 ?
Comment by_b66 \u2014 3/12/2004 @ 8:30 pm
2. Hi Friends,
This is Sachin Rastogi. As there is no questions for SQL, PL/SQL on this site, I would like to provide you
the same. Just shake your head in solving these questions. If you can\u2019t then don\u2019t worry you can mail

me atrsachin@krify.com for the answers of these questions.
Hope that these questions will help you..
1. Which of the following statements contains an error?
A. SELECT * FROM emp WHERE empid = 493945;

B. SELECT empid FROM emp WHERE empid= 493945;
C. SELECT empid FROM emp;
D. SELECT empid WHERE empid = 56949 AND lastname = \u2018SMITH\u2019;

2. Which of the following correctly describes how to specify a column alias?

A. Place the alias at the beginning of the statement to describe the table.
B. Place the alias after each column, separated by white space, to describe the column.
C. Place the alias after each column, separated by a comma, to describe the column.
D. Place the alias at the end of the statement to describe the table.

3. The NVL function

A. Assists in the distribution of output across multiple columns.
B. Allows the user to specify alternate output for non-null column values.
C. Allows the user to specify alternate output for null column values.
D. Nullifies the value of the column output.

Activity (52)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Suresh Tirumala liked this
chandrasekhar16 liked this
Vishal Gupta liked this
alexvda liked this
georgembugua liked this
ujjwal123456 liked this
anil298 liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->