Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint
Cover Image
Cover Image
Drag to reposition
Contributed Answers

Which one is better POW() or POWER() in MySQL?

Answered on 3rd May, 2019, 0 Views

Both pow() and power() are synonyms in MySQL. Following is the syntax − , Let us implement both the above syntaxes. , This will produce the following output − , , This will produce the following output − , Let us implement the above syntax in a table − , Insert some records in the table using insert command − , Display all records from the table using select st.....

How to concatenate all columns in MySQL?

Answered on 3rd May, 2019, 0 Views

First, you need to know how many columns are present in a table. Following is the syntax to know the column names − , Following is the syntax to concatenate all columns − , Let us first create a table − , Following is the query to know the exact column − , This will produce the following output − , Insert records in the table using insert command − , Disp.....

How to update all dates in a Table?

Answered on 3rd May, 2019, 0 Views

You can use UPDATE with DATE_ADD() to update all dates. Let us first create a table − , Insert records in the table using insert command − , Display all records from the table using a select statement. The query is as follows − , This will produce the following output − , Following is the query to update all dates in a table − , Let us display all records from .....

MySQL query to count frequency of students with the same age?

Answered on 3rd May, 2019, 0 Views

You can use COUNT(*) along with GROUP BY for this. Let us first create a table − , Insert records in the table using insert command − , Display all records from the table using select statement − , This will produce the following output − , Following is the query to count frequency − , This will produce the following output − ,

How to select the maximum value of a column in MySQL?

Answered on 3rd May, 2019, 0 Views

You can use ORDER BY clause or aggregate function MAX() to select the maximum value. Following is the syntax − , Let us first create a table − , Insert records in the table using insert command − , Display all records from the table using select statement − , This will produce the following output − , Following is the query to select the maximum value of a colu.....

Select the table name as a column in a UNION select query with MySQL?

Answered on 3rd May, 2019, 0 Views

You can use AS command for this. Let us first create a table − , Insert records in the table using insert command − , Display all records from the table using select statement − , This will produce the following output − , Here is the query to create the second table. , Insert records in the table using insert command − , Display all records from the table usin.....

How to count the distinct column in MySQL?

Answered on 3rd May, 2019, 0 Views

You need to use GROUP BY for this. Let us first create a table − , Insert records in the table using insert command − , Display all records from the table using select statement − , This will produce the following output − , Here is the query to count the distinct column in MySQL − , This will produce the following output − ,

Counting same strings in a new MySQL column?

Answered on 3rd May, 2019, 0 Views

Use COUNT() for this. Let us first create a table − , Insert records in the table using insert command − , Display all records from the table using select statement − , This will produce the following output − , Following is the query to count same strings in MySQL − , This will produce the following output − ,

How to select all distinct filename extensions from a table of filenames in MySQL?

Answered on 3rd May, 2019, 0 Views

You can use DISTINCT along with SUBSTRING_INDEX() to extract the filename extensions. Let us first create a table− , Insert records in the table using insert command − , Display all records from the table using select statement − , This will produce the following output− , Following is the query to select all distinct filename extensions from a table of filenames&min.....

Can we use WHERE, AND & OR in a single MySQL query?

Answered on 3rd May, 2019, 0 Views

Yes, we can use all of them in a single query. Let us first create a table − , Insert records in the table using insert command − , Display all records from the table using select statement − , This will produce the following output − , Following is the query to use MySQL WHERE, AND & OR in a single MySQL query to fetch records− , This will produce the foll.....

1 2 3 4 5 6 7 ... 114 Next
loader
Advertisements
Contribution

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.