MySQL Interview Questions
Questions Answers Views Company eMail

What are the advantages and disadvantages of MySQL?

Satyam,

2424

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

Renault Nissan, Creative, Trikon Networks,

12 66958

What is the difference between char and varchar data types?

6 41753




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

Sasaa,

7 10050

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

Webworks, Base2 Infotech,

2 5295

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

7 6119

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

Google,

9 19223

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

10 18334




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 10882

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 2776

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 2159

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 6846

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

2 5986

Explain MySQL optimization?

1 4255

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 6223


Post New MySQL Questions






Un-Answered Questions { MySQL }

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)?

1109


How can you plan the logshipping before processing?

1192


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

3550


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 ?

1036


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...

1692






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

2054


why not null is not allowed at table level

1457


What is RMS Migrations

1145


Hi Team, This is kartik, I recently completed my B-tech. Importance of posting this question is for to know the best books on SQL(MYSQL/Oracle)? I like SQL concept's so much, at the same time i decided to choose SQL for my career purpose. So please suggest me the best books that are very helpful for a fresher to improve concepts like (SQL/PLSQL)Basics, programming concepts, architectures etc. Please consider my request as an important one. I am very thankful to you for providing this opportunity. If possible can you please send the names of books for my personal id also: karthikgdv1206@yahoo.com. Thanks, Kartik T

1035


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

937


How to define numeric 9(3) in db2 table without decimal point??

1755


Explain the architecture models of SQL Server?

1262


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.

2406


What is difference between Sql server and MySql database? It may be silly question but i really dont know.

792


all the queries used in sql

1488