George John has Published 1167 Articles

MySQL status in terms of active or total connections?

George John

George John

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

7K+ Views

The active or total connection can be known with the help of threads_connected variable. The variable tells about the number of currently open connections. The query is as follows − mysql> show status where `variable_name` = 'Threads_connected'; Here is the output. +-------------------+-------+ | Variable_name ... Read More

Generating a unique random 10 character string using MySQL?

George John

George John

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

3K+ Views

In order to generate a 10 character string, we can use inbuilt functions ‘rand()’ and ‘char()’. The following is the query to generate random 10 character string. mysql> SELECT concat( - > char(round(rand()*25)+97), - > char(round(rand()*25)+97), - > char(round(rand()*25)+97), ... Read More

Handoff in Mobile Connections

George John

George John

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

36K+ Views

Definition In cellular communications, the handoff is the process of transferring an active call or data session from one cell in a cellular network or from one channel to another. In satellite communications, it is the process of transferring control from one earth station to another. Handoff is necessary for ... Read More

Updating a MySQL table with values from another table?

George John

George John

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

9K+ Views

We can update another table with the help of inner join. Let us create two tables. Creating a table mysql> CREATE table tblFirst -> ( -> id int, -> name varchar(100) -> ); Query OK, 0 rows ... Read More

CDMA2000

George John

George John

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

9K+ Views

CDMA2000 is a code division multiple access (CDMA) version of IMT-2000 specifications developed by International Telecommunication Union (ITU). It includes a group of standards for voice and data services − Voice − CDMA2000 1xRTT, 1X Advanced Data − CDMA2000 1xEV-DO (Evolution-Data Optimized) Features CDMA2000 is a ... Read More

Which one is preferred between a large table or multiple small tables in MySQL?

George John

George John

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

159 Views

It is very difficult to say whether to prefer one large table or multiple small tables. It depends − On the application we are using. On database normalization However, there are many key points, through which we can say that multiple small tables are good in that situation. ... Read More

How do I get SUM function in MySQL to return '0' if no values are found?

George John

George John

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

7K+ Views

To return Sum as ‘0’ if no values are found, use IFNULL or COALESCE commands. The following is the syntax for IFNULL. SELECT IFNULL(SUM(NULL), 0) AS aliasName; Let us now implement the above syntax in the following query. mysql> SELECT IFNULL(SUM(NULL), 0) AS SUMOFTWO; The following ... Read More

Cable Television

George John

George John

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

817 Views

Cable television is a popular television system that delivers television programming services through cables. This is different from terrestrial television (where radio waves are transmitted over air and received by antennas) and satellite television (where signals are sent by communication satellites and received by satellite dish). Types of cables ... Read More

Best data type for storing currency values in a MySQL database?

George John

George John

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

598 Views

For representation of money, we need to use Decimal (TotalDigitsinteger, DigitsAfterDecimalinteger) method. Let’s say, we need to display the value 345.66. For that, count how many digits are available. In value 345.66, there are 5 digits in total and 2 digits after decimal point, which is 66. We can represent ... Read More

What is the C# equivalent to Java's isInstance()?

George John

George John

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

532 Views

The java.lang.Class.isInstance() determines if the specified Object is assignment-compatible with the object represented by this Class Java’s isInstance() method’s equivalent in C# is IsAssignableFrom(). Another simplest way for isInstance() equivalent is − bool res = (ob is DemoClass); You can also work with Type.IsInstanceOfType for the same result ... Read More

Advertisements