Arjun Thakur has Published 1176 Articles

Find rows that have the same value on a column in MySQL?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

2K+ Views

First, we will create a table and insert some values into the table. Let us create a table. mysql> create table RowValueDemo -> ( -> Name varchar(100) -> ); Query OK, 0 rows affected (0.69 sec) Insert records using ... Read More

How to use MySQL JOIN without ON condition?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

4K+ Views

We can use ‘cross join’ without on condition. Cross join gives the result in cartesian product form. For instance, if in one table there are 3 records and another table has 2 records, then the first record will match with all the second table records. Then, the same process will ... Read More

array_product() function in PHP

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

31 Views

The array_product() function calculates the product of the values in an array. It returns the product of values. Syntax array_product(arr) Parameters arr − The specified array. Return The array_product() function returns the product of values in the array. The value is returned as integer or float. ... Read More

Where objects, methods and variables are stored in memory in Java?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

3K+ Views

There are five main memory areas which are used to various Java elements. Following is the list of the same. Class Area - This area contains the static members of the class. Method Area - This area contains the method definition and executable code. Heap Area - This area ... Read More

Initialization vs Instantiation in C#

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

4K+ Views

Initialization When you assign a value to a variable when it is declared, it is called Initialization. Here is an example − int val = 50; For array initialization, you may need a new keyword, whereas to initialize a variable, you do not need it. Instantiation When you ... Read More

count() function in PHP

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

497 Views

The count() function counts elements in an array, or properties in an object. It returns the number of elements in an array. Syntax count(arr, mode) Parameters arr − The specified array. mode − Specifies the mode. Possible values are 0 or 1. 0: Do not count all ... Read More

Digitizing Voice Signals

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

234 Views

Analog Telephone Cores The early telephone networks had analog cores. Frequency division multiplexing (FDM) was used to transmit a number of voice signals over the single line. Twelve calls were multiplexed into a group. Five groups were multiplexed into a supergroup. Digital Telephone Cores The present telephone networks have digital ... Read More

Display MySQL Results as comma separated list?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

1K+ Views

We can show the result as a comma separated list with the help of the ‘concat()’ function with the parameter ‘, ’. Let us see an example now. Firstly, we will create a table. The CREATE command is used to create a table. mysql> create table CommaSeperateDemo ... Read More

MyISAM versus InnoDB in MySQL?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

200 Views

Both are engine types. Here is the query by which we can get to know which engine type and tables are being used. Firstly, we will choose the database with the help of USE command − mysql> USE business; Database changed Here is the query through which we ... Read More

How to change MySQL column definition?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

143 Views

To change MySQL column definition, we can use modify or change clause with ALTER command. Let us first create a table with a column as ID, with int data type. We will modify the same column name with varchar data type. Creating a table. mysql> create table ModifyColumnDemo ... Read More

Advertisements