New MySQL Interview Questions :: ALLInterview.com http://www.allinterview.com New MySQL Interview Questions en-us how we can find nth max salary from an employe table by using my sql http://www.allinterview.com/showanswers/101295.html SELECT country,city FROM customers GROUP BY country ORDER BY city http://www.allinterview.com/showanswers/100027.html is right or not Fname Lname City Pin ramesh kumar salem 365241 http://www.allinterview.com/showanswers/99429.html select ucase(mid(Fname,1,1)) as FirstName,ucase(mid(Lname,1,1)) as LastName,ucase(mid(City,3,1)) as Cty,ucase(mid(Pin,-3))as PinCode from tablename Query to select passwords from a table having a column &quot;Password http://www.allinterview.com/showanswers/99428.html SELECT Password FROM tablename WHERE Password LIKE 'A%' AND Length( Password) >=8 AND Length( Password) <=15 What is the maximum length of a table name, a database name, or a fie http://www.allinterview.com/showanswers/98951.html Database name: 64 characters Table name: 64 characters Column name: 64 characters How many ways we can we find the current date using MySQL? http://www.allinterview.com/showanswers/98950.html SELECT CURDATE(); SELECT CURRENT_DATE(); SELECT CURTIME(); SELECT CURRENT_TIME(); Give the syntax of GRANT commands? http://www.allinterview.com/showanswers/98949.html The generic syntax for GRANT is as following GRANT [rights] on [database] TO [username@hostname] IDENTIFIED BY [password] Now rights can be: a) ALL privilages b) Combination of CREATE, DROP, SELECT, INSERT, UPDATE and DELETE etc. We can grant rig Give the syntax of REVOKE commands? http://www.allinterview.com/showanswers/98948.html The generic syntax for revoke is as following REVOKE [rights] on [database] FROM [username@hostname] Now rights can be: a) ALL privilages b) Combination of CREATE, DROP, SELECT, INSERT, UPDATE and DELETE etc. We can grant rights on all databse by What is the difference between CHAR and VARCHAR data types? http://www.allinterview.com/showanswers/98947.html CHAR is a fixed length data type. CHAR(n) will take n characters of storage even if you enter less than n characters to that column. For example, “Hello!” will be stored as “Hello! ” in CHAR(10) column. VARCHAR is a variable length data type. what is mysql optimization in brief? http://www.allinterview.com/showanswers/97435.html how many ways we can get the current date in mysql? http://www.allinterview.com/showanswers/97434.html current_Date->return the current date how many table created when we create a table in mysql? http://www.allinterview.com/showanswers/97433.html how many fields can be updated using set in a mysql query? http://www.allinterview.com/showanswers/97432.html maximum size of a database in mysql? http://www.allinterview.com/showanswers/97431.html what is the advantage of stored procedures, triggers and indexing in http://www.allinterview.com/showanswers/97430.html