CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
MYSQL Interview Questions & Answers - Learning Mode
COOLINTERVIEW.COM DATABASE INTERVIEW QUESTIONS MYSQL INTERVIEW QUESTIONS QUESTIONS & ANSWERS - LEARNING MODE

MYSQL Interview Questions & Answers - Learning Mode

MySQL, the most popular Open Source SQL database management system, is developed, distributed, and supported by Oracle Corporation. The MySQL Web site (http://www.mysql.com/) provides the latest information about MySQL software. MySQL is a database management system. A database is a structured collection of data.

Try MYSQL Interview Questions & Answers - Exam Mode
Subcategories for MYSQL Interview Questions & Answers - Learning Mode

Following are sub categories for which Interview Questions & Answers are available under MYSQL Interview Questions & Answers - Learning Mode. Please select the appropriate sub-category:-

MySQL Basics Interview Questions & Answers (3) Learning Mode | Exam Mode

1 2 3 4 Next

Sort By : Latest First | Oldest First | By Rating

MYSQL Interview Questions & Answers - Learning Mode
Try MYSQL Interview Questions & Answers - Exam Mode
Question: What are the advantages of Mysql comparing with oracle?



Answer: MySql has many advantages in comparison with Oracle.<br><br>1 - MySql is Open source, which can be available any time <br><br>2 - MySql has no cost of development purpose.<br><br>3 - MySql has most of features , which oracle provides <br><br>4 - MySql day by day updating with new facilities.<br><br>5 - Good for small application.<br><br>6 - easy to learn and to become master.<br><br>7 - MySql has a good power the Source: CoolInterview.com
Question: What is SERIAL data type in MySQL?

Answer: BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT Source: CoolInterview.com
Question: What happens when the column is set to AUTO INCREMENT and you reach the maximum value for that table?

Answer: It stops incrementing. It does not overflow to 0 to prevent data losses, but further inserts are going to produce an error, since the key has been used already. Source: CoolInterview.com
Question: What are the objects can be created using CREATE statement?

Answer: Following objects are created using CREATE statement:

DATABASE
EVENT
FUNCTION
INDEX
PROCEDURE
TABLE
TRIGGER
USER
VIEW Source: CoolInterview.com
Question: Which version of MySQL supports Subquery?

Answer: mysql 4.0 onwards support subquery. Source: CoolInterview.com
Question: How we can count duplicate entery in particular table against Primary Key ? What are constraints?



Answer: The syntax in the previous answer (where count(*) > 1) is very questionable. suppose you think that you have duplicate employee numbers. there's no need to count them to find out which values were duplicate but the followin SQL will show only the empnos that are duplicate and how many exist in the table:

Select empno, count(*)

from employee

group by empno

having count(*) > 1

Generally speaking aggregate functions (count, sum, avg etc.) go in the HA Source: CoolInterview.com
Question: Explain data type TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP

Answer: The column exhibits the same behavior as a single timestamp column in a table with no other timestamp columns. Source: CoolInterview.com
Question: Describe the use of %ROWTYPE and %TYPE in PL/SQL

Answer: %ROWTYPE allows you to associate a variable with an entire table row.
The %TYPE associates a variable with a single column type. Source: CoolInterview.com
Question: Explain about a security flaw which is present while creating a username?

Answer: Naming MYSQL databases has to be very careful because any database starting with the test name can be accessed by every one on the network. Make sure that you don?t start the databases naming with test. It should be used only for experimental purposes only. Source: CoolInterview.com
Question: What is Online Transaction Processing (OLTP)?

Answer: Online Transaction Processing or OLTP manages transaction based applications which can be used for data entry and easy retrieval processing of data. This processing makes like easier on simplicity and efficiency. It is faster, more accurate results and expenses with respect to OTLP. Source: CoolInterview.com
Question: What are the limitations of mysql in Comparison of Oracle?

Answer: Every column in a database table is assigned a data type. The data type maybe native to the database management system or may be a custom data type. Each Oracle9i Database native data type belongs to one of six categories: character number date large object (LOB) raw and row identifier. Oracle date data types only store valid dates support automatic time zone conversion and store sub-second precision. MySQL categorizes data types into string numeric and date and time types. Unlike Oracle MySQL d Source: CoolInterview.com
Question: What does "tee" command do in MySQL?

Answer: "tee" followed by a filename turns on MySQL logging to a specified file. It can be stopped by command notee. Source: CoolInterview.com
Question: What are all the Common SQL Function?

Answer: CONCAT(A, B) ? Concatenates two string values to create a single string output. Often used to combine two or more fields into one single field.

FORMAT(X, D) ? Formats the number X to D significant digits.

CURRDATE(), CURRTIME() ? Returns the current date or time.

NOW() ? Returns the current date and time as one value.

MONTH(), DAY(), YEAR(), WEEK(), WEEKDAY() ? Extracts the given data from a date value.

HOUR(), MINUTE(), SECOND() ? Extracts the given data from Source: CoolInterview.com
Question: Explain about normalization?

Answer: Applying specific rules (normal forms) to the database is the primary process. These rules should be applied in the order specified starting with the first normal form. These rules should be adhered by every database they are
1) Each column should have only one value
2) Repeating columns of data cannot be done. Source: CoolInterview.com
Question: How to display nth highest record in a table for example?How to display 4th highest (salary) record from customer table?



Answer: Query: SELECT sal FROM `emp` order by sal desc limit (n-1),1If the question: "how to display 4th highest (salary) record from customer table."The query will SELECT sal FROM `emp` order by sal desc limit 3,1

Source: CoolInterview.com
Question: How will retrieve nth level categories from one query in mysql ?

Answer: SELECT c1.CategoryID c1.Name c2.CategoryID c2.Name
FROM category AS c1 category AS c2
WHERE c1.CategoryID c2.ParentID
ORDER BY c1.CategoryID c2.CategoryID Source: CoolInterview.com
Question: Explain about MYSQL and its features?

Answer: MYSQL is a relational data base model and most widely RDBMS all over the world. It provides multi user access to databases. Source code for this database is available under General public license. It became popular for web applications and this is widely used. Performance and reliability became its features. Source: CoolInterview.com
Question: What is the difference between MyISAM Static and MyISAM Dynamic?

Answer: In MyISAM static all the fields will have fixed width. The Dynamic MyISAM table will have fields like TEXT, BLOB, etc. to accommodate the data types with various lengths.

MyISAM Static would be easier to restore in case of corruption. Source: CoolInterview.com
Question: State some of the features of MYSQL?

Answer: Some of the features presented by MYSQL are
1) Multiple storage engines, Native storage engines, Partner developed storage engines, custom storage engines, community developed storage engines and commit grouping.
Some of these features present in MYSQL are not present in most popular RDBMS. Source: CoolInterview.com
Question: What are the advantages of mysql comparing with oracle?

Answer: MySql has many advantages in comparison to Oracle.

1 - MySql is Open source, which can be available any time

2 - MySql has no cost of development purpose.

3 - MySql has most of features , which oracle provides

4 - MySql day by day updating with new facilities.

5 - Good for small application.

6 - easy to learn and to become master.

7 - MySql has a good power these days.

even though MySql having so many advantages, Oracle is best database eve Source: CoolInterview.com

1 2 3 4 Next



India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.078125 Seconds