Databases Interview Questions
Questions Answers Views Company eMail

How many ways we can we find the current date using MySQL?

5 11225

How can increase the performance of MySQL select query?

RV Technologies, Span Systems,

3 10743

The structure of table view buyers is as follows: +----------------+-------------+------+-----+---------+----- -----------+ | Field | Type | Null | Key | Default | Extra | +----------------+-------------+------+-----+---------+----- -----------+ | user_pri_id | int(15) | | PRI | NULL | auto_increment | | userid | varchar(10) | YES | | NULL | | +----------------+-------------+------+-----+---------+----- -----------+ the value of user_pri_id the last row 2345 then What will happen in the following conditions? Condition1: Delete all the rows and insert another row then. What is the starting value for this auto incremented field user_pri_id , Condition2: Delete the last row(having the field value 2345) and insert another row then. What is the value for this auto incremented field user_pri_id

2 3974

What are the advantages and disadvantages of MySQL?

Satyam,

3157

What is the difference between GROUP BY and ORDER BY in Sql?

Creative, Renault Nissan, Trikon Networks,

12 74637

What is the difference between char and varchar data types?

6 46177

How to load data from a text file into a table?

Sasaa,

7 13390

How can we know the number of days between two given dates using MySQL?

Base2 Infotech, Webworks,

2 6727

How can we change the name of a column of a table?

7 8894

How can we change the name and data type of a column of a table?

Google,

9 23837

What are the differences between drop a table and truncate a table?

10 22693

A select query over a large table runs very slow because of the growing number of entries in that table. What different measures could be taken to improve speed?

5 13171

A company wants to store their invoices in a database. They already have their customers and articles in that database. Both customer and article are each identified by an unique integer value. Please create the SQL statements for creating the necessary table(s) for storing the invoices in a MySQL database. An invoice should hold information like invoice number, customer, date, article(s) and quantity etc.

1 3870

For the database from the previous question, please give an SQL query which returns the invoice number of all invoices which contain the article with the number ?1234?. The query should be able to run under a MySQL 4.0 database.

1 3105

How would you backup and restore a big MySQL database? What are the advantages of the approach which you have taken over the others?

4 9473


Un-Answered Questions { Databases }

What is set nocount on and what is set nocount off?

517


Explain what are triggers and rules?

517


Explain the differences between rdbms and graph database?

1


What is the difference between translate and replace in oracle?

659


What is the use of sequences? How do you do sequences?

1






Difference between 2NF &3NF ?

683


Explain what is sql server english query?

533


What is the default port of mongodb server?

5


How do you update f as m and m as f from the below table testtable?

1092


Can you tell how many values can set the function of mysql to consider?

525


what are the different kinds of indexing?

503


what are the non-standard sql commands supported by 'mysql'? : Sql dba

574


What are different types of tables in sql?

532


Enlist the advantages of normalizing database.

615


What is 2nf normalization?

544