
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
905 Views
Let us first create a table −mysql> create table DemoTable -> ( -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> Marks1 int, -> Marks2 int, -> Marks3 int -> ); Query OK, 0 rows affected (0.60 sec)Insert some records in the table using ... Read More

AmitDiwan
203 Views
For this, you can use GROUP BY along with the ORDER BY clause. Let us first create a table &mins;mysql> create table DemoTable -> ( -> URL varchar(40), -> DomainName varchar(20), -> SearchTimes int -> ); Query OK, 0 rows affected (0.62 sec)Insert some records ... Read More

AmitDiwan
190 Views
The from() method of JavaScript is used to return the Array object from any object with a length property or an iterable object.The syntax is as follows −Array.from(obj, mapFunction, val)Above, the parameter obj is the object to convert to an array, mapFunction is a map function to call, val is ... Read More

AmitDiwan
149 Views
Use SELECT ENGINE to display the storage engine name. Let us first create a table −mysql> create table DemoTable -> ( -> Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, -> Name varchar(20), -> Age int, -> CountryName varchar(20) -> ); Query OK, 0 rows ... Read More

AmitDiwan
335 Views
To get the last second of a date in MySQL, use the INTERVAL command. Let us first create a table −mysql> create table DemoTable -> ( -> JoiningDatetime datetime, -> DueDatetime datetime -> ); Query OK, 0 rows affected (0.55 sec)Insert some records in the table ... Read More

AmitDiwan
798 Views
The findIndex() method of JavaScript is used to return the index of the first element in an array, if the condition is passed.The syntax is as follows −array.findIndex(function(currentValue, index, arr), thisValue)Let us now implement the findIndex() method in JavaScript −Example Live Demo Rank Result ... Read More

AmitDiwan
182 Views
You can use ORDER BY TRIM(). Let us first create a table −mysql> create table DemoTable -> ( -> Title text -> ); Query OK, 0 rows affected (1.09 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('MongoDB is a no SQL ... Read More

AmitDiwan
414 Views
To fix, you need to put MySQL connector to the Java classpath. Import the jar file of the connector to the project folder for the IDE you are using.Here is the snapshot to place classpath −Let us now see the code for connectivity in Java with MySQL −This will produce ... Read More

AmitDiwan
384 Views
To replace only a single character, use REPLACE() in MySQL. Let us first create a table −mysql> create table DemoTable -> ( -> Name varchar(20) -> ); Query OK, 0 rows affected (0.69 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('John ... Read More

AmitDiwan
109 Views
For this, you can use ORDER BY IFNULL(). Let us first create a table −mysql> create table DemoTable -> ( -> Name varchar(20), -> CountryName varchar(20) -> ); Query OK, 0 rows affected (0.61 sec)Insert some records in the table using insert command −mysql> insert into ... Read More