MySQL Interview Questions
Questions Answers Views Company eMail

What are the advantages and disadvantages of MySQL?

Satyam,

2478

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

Renault Nissan, Creative, Trikon Networks,

12 67327

What is the difference between char and varchar data types?

6 41944




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

Sasaa,

7 10184

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

Webworks, Base2 Infotech,

2 5363

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

7 6243

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

Google,

9 19421

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

10 18465




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 10967

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 2845

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 2210

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 6950

What are the differences between MySQL_fetch_array(), MySQL_fetch_object(), MySQL_fetch_row()?

2 6053

Explain MySQL optimization?

1 4323

The table tbl_sites contains the following data: ----------------------------------------------------- Userid sitename country ------------------------------------------------------ 1 sureshbabu indian 2 PHPprogrammer andhra 3 PHP.net usa 4 PHPtalk.com germany 5 MySQL.com usa 6 sureshbabu canada 7 PHPbuddy.com pakistan 8. PHPtalk.com austria 9. PHPfreaks.com sourthafrica 10. PHPsupport.net russia 11. sureshbabu australia 12. sureshbabu nepal 13. PHPtalk.com italy Write a select query that will displayed the duplicated site name and how many times it is duplicated?

GE, Afixi,

4 6296


Post New MySQL Questions






Un-Answered Questions { MySQL }

I want to insert userid of a customer,order time,etc in a table called ordermaster with orderid as primary key.Same time the product codes and required quantities (a1,2 and a2 4 and so on)inserted in another table orderdetails with same orderid reference.How the code will be in JSP using MySQL?

882


What is RMS Migrations

1195


1)for snapshot replication which agents used? 2)for Transcation replication which agents used? 3)for merge replciation which agents used?

975


In a property booking section want a query to check that property is booked from StartDate to EndDate.Booking Table field are given id proerty_id start_date checkout_date no_of_visitor booking date status Waiting yours answer.. Thanks In Advance...

1746


what is mysql optimization in brief?

1269






How can you move the master database

893


Can u give the example by taking an unnormalized table and make that 1nf and then 25nf, and then 3 nf?

3593


1.how to fetch a value and Execute store procudure in mysql(INNODB) using phpMyAdmin? 2.can i wright a package in mysql database(INNODB)?

1157


explain GROUPBY & HAVING clause with examples.

1211


suppose data is copie to oracle to sql by using DTS. Actully it taken 2 hours. suppose some day distribute the server in the middle of 2 hours. after how can i get the data ?

1069


What are the critical issues you have resolved in your company

1118


why not null is not allowed at table level

1505


i made a table whih contain a column "Photo" with image data type and i want to insert the byte of a picture present in my hardisk using insert statement in that colum... so what will be my insert statement?

1506


How to set the time zone for MySQL to particular country time?

2092


I've looked but can't find a MySQL equivalent for MS SQL's xp_cmdshell. I have 7z files that I want to unzip and load into MySQL. I'm trying to write a sp to do the unzip, but I can't find a way to do that. Can anyone provide an example of a similar process in Windows? TIA.

2474