Chandu yadav has Published 1163 Articles

How to use MySQL SOUNDEX() function with LIKE operator to retrieve the records from table?

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 07:55:56

219 Views

As we know that SOUNDEX() function is used to return the soundex, a phonetic algorithm for indexing names after English pronunciation of sound,  a string of a string. In the following example, we are taking the data from ‘student_info’ table and applying SOUNDEX() function with LIKE operator to retrieve a particular record from a table ... Read More

Retrieve data value as a pointer in C#

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 07:50:46

575 Views

A pointer is a variable whose value is the address of another variable. Retrieve the data stored at the located referenced by the pointer variable, using the ToString() method.ExampleHere in an example −using System; namespace UnsafeCodeApplication {    class Program {       public static void Main() {   ... Read More

CSS position: relative;

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 07:42:43

176 Views

The position: relative; property allows you to position element relative to its normal position. You can try to run the following code to implement CSS position: relative;ExampleLive Demo                    div {             position: relative;             left: 20px;             border: 3px solid blue;          }                     Positioning Element                div element with position: relative;           Output

Different ways for Integer to String Conversions in C#

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 07:39:03

12K+ Views

The easiest way to convert an integer to a string in C# is using the ToString() method.Let us see an example −int a = 100; string str = a.ToString();Another way is to use Convert.ToString();b = 50; string str2 = Convert.ToString(b); Console.WriteLine(str2);The following is the example showing the different ways to ... Read More

Inbuilt Data Structures in C#

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 07:34:37

290 Views

C# has a lot of inbuilt Data Structures. Here are two of them −ListGeneric List is a generic collection and the ArrayList is a non-generic collection. The size can be dynamicallyincreased using List, unlike Arrays.Let us see an example.We have set the List first −List myList = new List()ArrayListIt represents ... Read More

How to generate the first 100 Odd Numbers using C#?

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 07:31:12

534 Views

To generate first 100 odd numbers, set a for loop from 1 to 100.for(val = 1; val

While linking two strings, if I will add a NULL value then what would be the output of a CONCAT() function?

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 07:22:58

54 Views

MySQL CONCAT() function will return a NULL if you will add a NULL value while linking two strings. Following example will demonstrate it −Examplemysql> Select CONCAT('Tutorials', NULL, 'Point'); +----------------------------------+ | CONCAT('Tutorials', NULL, 'Point') | +----------------------------------+ | NULL                           ... Read More

Write a C# program to check if the entered number is Armstrong number?

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 07:21:29

195 Views

A number is an Armstrong number if the sum of the cube of each digit of the number is equal to the number itself.Here, we will find out the remainder and will sum it to the cube of remainder.rem = i % 10; sum = sum + rem*rem*rem;Then if the ... Read More

Why is it good to write the numbers in MySQL INTERVAL() function in ascending order?

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 06:44:25

65 Views

Actually, INTERVAL() function uses the binary search for searching the bigger number than the number at first argument. So, that is why if we want INTERVAL() function to work efficiently the list of numbers would be in ascending order. Following is a good way to use INTERVAL() function −mysql> Select ... Read More

How can we combine values of two or more columns of MySQL table and get that value in a single column?

Chandu yadav

Chandu yadav

Updated on 22-Jun-2020 06:21:50

120 Views

For combining values of two or more columns, we can use MySQL CONCAT() function. In this case, the arguments of the CONCAT() functions would be the name of the columns. For example, suppose we have a table named ‘Student’ and we want the name and address of the student collectively ... Read More

Advertisements