MySQL Interview Questions
Questions Answers Views Company eMail

What are the advantages and disadvantages of MySQL?



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

Renault Nissan, Creative, Trikon Networks,

12 66539

What is the difference between char and varchar data types?

6 41495

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


7 9841

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

Webworks, Base2 Infotech,

2 5223

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

7 5948

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


9 19014

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

10 18110

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 10771

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 2710

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 2098

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 6739

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

2 5899

Explain MySQL optimization?

1 4177

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

GE, Afixi,

4 6141

Post New MySQL Questions

Un-Answered Questions { MySQL }

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


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 ?

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


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?


Please can the SQL code below be interpreted IF @xMatchCriteria='MATCH12' BEGIN IF EXISTS (Select * from #InsightData where (EmailAddress=@xDCPEmailAddress ) ) BEGIN SET @xTestMatchCriteria = @xMatchCriteria; SELECT @xCRMCustomerId=CustomerId, @xCRMDcpCustomerId=DcpCustomerId, @xCRMPortalCustomerID=PortalCustomerID,@xCRMDcpID=DcpID, @xCRMCardNumber=CardNumber, @xCRMEmailAddress=EmailAddress, @xCRMfirtLetterFirstName=firtLetterFirstName, @xCRMLastName=Surname,@xCRMAddressLine1=AddressLine1, @xCRMPostCode=PostCode FROM #InsightData where (EmailAddress=@xDCPEmailAddress ) END ELSE BEGIN SET @xTestMatchCriteria='No'+@xMatchCriteria; END END


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: Thanks, Kartik T


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


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?


How can you move the master database


HOW TO FIND display the total number of weeks in the year of 1998 IN EMP TABLE


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


What are the critical issues you have resolved in your company


what is mySQL. Is there any specific qualification required to do this course ? What is the scope in India after doing mySQL


How can you plan the logshipping before processing?


why not null is not allowed at table level