|
INTERVIEW QUESTIONS
DATABASE
MYSQL
DETAILS
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 a time value.
DATEDIFF(A, B) – Determines the difference between two dates and it is commonly used to calculate age
SUBTIMES(A, B) – Determines the difference between two times.
FROMDAYS(INT) – Converts an integer number of days into a date value.
|
|
|
Category |
MYSQL Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9285 users |
Added on |
5/9/2016 |
Views |
66196 |
Rate it! |
|
|
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 a time value.
DATEDIFF(A, B) – Determines the difference between two dates and it is commonly used to calculate age
SUBTIMES(A, B) – Determines the difference between two times.
FROMDAYS(INT) – Converts an integer number of days into a date value. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How many TRIGGERS are allowed in MySql table?
|
View Answer
|
|
What are the objects can be created using CREATE statement?
|
View Answer
|
|
How to enter Characters as HEX Numbers?
|
View Answer
|
|
What is the difference between BLOB AND TEXT?
|
View Answer
|
|
What are the column comparisons operators?
|
View Answer
|
|
What is the difference between MyISAM Static and MyISAM Dynamic?
|
View Answer
|
|
What does a TIMESTAMP do on UPDATE CURRENT_TIMESTAMP data type?
|
View Answer
|
|
Give string types available for column?
|
View Answer
|
|
What are the advantages of MySQL when compared with Oracle?
|
View Answer
|
|
Explain about HEAP table?
|
View Answer
|
|
Explain about MyISAM table?
|
View Answer
|
|
Explain about the time stamp field?
|
View Answer
|
|
State two considerations which can improve the performance of MYSQL?
|
View Answer
|
|
Explain about normalization?
|
View Answer
|
|
Explain about primary keys?
|
View Answer
|
|
Explain about creating database?
|
View Answer
|
|
Explain about database design?
|
View Answer
|
|
State some security recommendations while using MYSQL?
|
View Answer
|
|
Explain about a security flaw which is present while creating a username?
|
View Answer
|
|
Explain about the rules which should be followed while assigning a username?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All MYSQL Interview Questions & Answers - Exam Mode /
Learning Mode
|