Databases Interview Questions
Questions Answers Views Company eMail

Whats the benefit of dbms_stats over analyze?

1584

Typically, where is the conventional directory structure chosen for Oracle binaries to reside?

1655

You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

1538

How do you recover a datafile that has not been physically been backed up since its creation and has been deleted. Provide syntax example.

1 2652

What are the differences between a sys and system user and what are the extra privileges available to the sys user?

Wipro,

1 5062

what are parameter, we can check after creating a database in terms of QC and for each tables what should be the parameters for QC and QA?

NIIT, TCS,

2261

What is difference b/w composit key n primary key and forigion key?

4 6786

Syntax to find the used space and free space of the Data file in a database(SQL Server). Following queries didn't give the exact Used space and Free Space Information sp_spaceused;DBCC showfilestats;exec MyDbName.dbo.sp_spaceused;SP_HELPFILE Can any one tell me the query for how to find the exact used data file space and free space in a Data File?

Cognizant,

2 6949

How to generate the Reports for the Database? I need an Example for it.Will we manually do this or else any script is there? Please let me know ASAP...

Cognizant,

1 3401

When we are using this query to shrink the log file,what exactly it will execute internally? Do we lose any data when we run this script? which data it will truncate in the log file and where it is saved. Please let me know... USE DatabaseName GO DBCC SHRINKFILE(, 1) BACKUP LOG WITH TRUNCATE_ONLY DBCC SHRINKFILE(, 1) GO

Cognizant,

1 4338

one of my database size is 2gb and Unrestricted Growth for Data file up to 10%.But every day after day I am getting Primary Data file is full 99.999 please take appropriate actions.Why it is? Even disk space is also not full,but still I am getting the alerts.

Cognizant,

1 4791

Print 3 highest salary

9 10829

What are the steps you will take to improve performance of a poor performing query?

1 4095

How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?

2 4661

Hi all, I need query help for below senorio, could you please help me. TableName = City CITYID ContinuationID CITYNAME 1 1 SAN 1 2 DIEGO 2 1 SAN 2 2 FRANCISCO 3 1 CHICAGO 4 1 NEW 4 2 YORK 4 3 CITY Could you please help me to write a generalized SQL that returns results as given below in the Query result CITYID NAME1 NAME2 NAME3 NAME4 NAME5 1 SAN DIEGO 2 SAN FRANCISCO 3 CHICAGO 4 NEW YORK CITY

TCS,

5 7780


Un-Answered Questions { Databases }

Which is faster statement or preparedstatement?

618


How do you open tables in pgadmin?

467


Is sql a database?

559


What does tinyint mean?

596


Explain tablesample?

626






What is procedure in pl sql?

614


What is extended stored procedures?

638


What language does mysql use?

518


What is the latest version of postgresql?

502


How can you fetch alternate records from a table?

623


What are the tradeoffs between many vs few indexes? When would you want to have many, and when would it be better to have fewer?

402


What is tkprof and how can we use it?

1


What is database design and development?

693


Can we store files in mysql?

561


Can we insert data into view sql server?

616