MySQL Interview Questions
Questions Answers Views Company eMail

What are the advantages and disadvantages of MySQL?

Satyam,

2405

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

Renault Nissan, Creative, Trikon Networks,

12 66803

What is the difference between char and varchar data types?

6 41650




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

Sasaa,

7 9961

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

Webworks, Base2 Infotech,

2 5272

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

7 6058

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

Google,

9 19154

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

10 18255




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 10841

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 2753

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 2140

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 6805

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

2 5952

Explain MySQL optimization?

1 4226

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 6195


Post New MySQL Questions






Un-Answered Questions { MySQL }

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.

2373


what is mysql optimization in brief?

1212


How can you plan the logshipping before processing?

1179


explain GROUPBY & HAVING clause with examples.

1154


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?

825






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

1733


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

1661


What are the method you will follow while sql installing

1228


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

3530


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

2039


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

1023


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

923


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

478


Explain the architecture models of SQL Server?

1244


all the queries used in sql

1478