Databases Interview Questions
Questions Answers Views Company eMail

Whats the benefit of dbms_stats over analyze?

1497

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

1585

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?

1460

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 2513

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

Wipro,

1 4920

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,

2195

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

4 6518

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 6679

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 3267

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 4191

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 4629

Print 3 highest salary

9 10342

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

1 3969

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

2 4496

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 7473


Un-Answered Questions { Databases }

how to get a list of indexes of an existing table? : Sql dba

518


Segregate database technology's development.

1036


Explain mutating triggers.

575


Where is postgresql conf in mac?

485


What is database implementation?

489






can a table be moved to different filegroup? : Sql server administration

548


How can check sql version from command line?

536


How to write html code in pl sql?

582


Where are postgres databases stored?

447


What is the difference between dropping a database and taking a database offline? : sql server DBA

580


what is the link between suppliers and banks in ap module in oracle apps? And also query?

2025


What is meant by Active-Passive and Active-Active clustering setup?

563


Explain temporary table vs table variable by using cursor alternative?

522


How to create a stored procedure with a statement block in ms sql server?

575


How do I delete a table in mysql workbench?

545