Top MySQL Interview Questions :: ALLInterview.com http://www.allinterview.com Top MySQL Interview Questions en-us Explain the difference between mysql and mysqli interfaces in PHP? http://www.allinterview.com/showanswers/19496.html mysqli is the object-oriented version of mysql library functions. what is JOIN? Give example & types of join? http://www.allinterview.com/showanswers/32310.html The act of joining in MySQL refers to smashing two or more tables into a single table.In short, a join command unites some or all of the data from two or more tables into one comprehensive structure. Types of Join 1. Inner Join 2. What is the difference between GROUP BY and ORDER BY in Sql? http://www.allinterview.com/showanswers/20066.html Groupby: It is a way to sub-total your results,or perform some other 'aggregate' functions on them. Orderby: It is a simply a way to sort your results. It doesn't affect what shows up in your result set,only what order it is dis What is the maximum length of a table name, database name, and field http://www.allinterview.com/showanswers/20054.html tablename=64 databasename=64 fieldname=64 what are the main differences between MyISAM and InnoDB table storage http://www.allinterview.com/showanswers/35641.html this is pretty straightforward, not too technical though: http://forums.devarticles.com/general-sql-development-47/difference-between-myisam-and-non-myisam-tables-1745.html FTA: "MyISAM is of course the default table type i'm MySQL. What is maximum size of a database in MySQL? http://www.allinterview.com/showanswers/20058.html 60mb Explain MySQL architecture? http://www.allinterview.com/showanswers/19524.html The front layer takes care of network connections and security authentications, the middle layer does the SQL query parsing, and then the query is handled off to the storage engine. A storage engine could be either a default one supplied w A select query over a large table runs very slow because of the grow http://www.allinterview.com/showanswers/20073.html By using LIMIT we can improve speed. What are the differences between drop a table and truncate a table? http://www.allinterview.com/showanswers/20072.html drop--> means table is delete ,not roll back, truncate--> Explain the difference between FLOAT, DOUBLE and REAL. http://www.allinterview.com/showanswers/19521.html FLOATs store floating point numbers with 8 place accuracy and take up 4 bytes. DOUBLEs store floating point numbers with 16 place accuracy and take up 8 bytes. REAL is a synonym of FLOAT for now. how we can use more then one primary key in Single Table http://www.allinterview.com/showanswers/59139.html can't What is the difference between char and varchar data types? http://www.allinterview.com/showanswers/20067.html char is used for fixed length memory storage whereas varchar is used for variable lenght memory storage. Fox Example if we have char(10) then we can store 10 bit value in it but if we store only 6 bit value in it then rest of the 4 bit space is g What?s the difference between PRIMARY KEY and UNIQUE in MyISAM? http://www.allinterview.com/showanswers/19532.html PRIMARY KEY cannot be null, so essentially PRIMARY KEY is equivalent to UNIQUE NOT NULL What are the advantages of stored procedures, triggers, indexes? http://www.allinterview.com/showanswers/20053.html 1.Advsntsge of Stored Procedures: ================================ Stored Procedures are precompiled one. it is the group of sql statements. stored procedure like a application programming. stored procedure is a fast one because it is al How can we know the number of days between two given dates using MyS http://www.allinterview.com/showanswers/20069.html There is a operator {not} BETWEEN ,we can use this in where clause to get in between dates. ex: select count(column name) from table1 where dates BETWEEN '01-jul-04' and '01-jul-05';