Anvi Jain has Published 634 Articles

8085 program for bubble sort

Anvi Jain

Anvi Jain

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

2K+ Views

In this program we will see how to sort a block of bytes using bubble sorting technique.Problem StatementWrite 8085 Assembly language program to sort numbers in ascending order where n number of numbers are stored in consecutive memory locations starting from 8041H and the value of n is available in ... Read More

8085 Program to convert two-digit hex to two ASCII values

Anvi Jain

Anvi Jain

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

209 Views

Now let us see a program of Intel 8085 Microprocessor. This program will convert 8-bit numbers to two digit ASCII values.Problem StatementWrite 8085 Assembly language program where an 8-bit binary number is stored in memory location 8050H. Separate each nibbles and convert it to corresponding ASCII code and store it ... Read More

Count how many rows have the same value in MySQL?

Anvi Jain

Anvi Jain

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

2K+ Views

To count how many rows have the same value using the function COUNT(*) and GROUP BY. The syntax is as follows −SELECT yourColumName1, count(*) as anyVariableName from yourTableName GROUP BY yourColumName1;To understand the above syntax, let us first create a table. The query to create a table is as follows ... Read More

Delimiters in MySQL?

Anvi Jain

Anvi Jain

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

6K+ Views

Delimiters can be used when you need to define the stored procedures, function as well as to create triggers. The default delimiter is semicolon.You can change the delimiters to create procedures and so on. However, but if you are considering multiple statements, then you need to use different delimiters like ... Read More

MySQL command line client for Windows?

Anvi Jain

Anvi Jain

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

3K+ Views

In order to install MySQL command line client for Windows, you need to visit the following URL to get the download link https://dev.mysql.com/downloads/mysql/ −The snapshot is as follows −After that you need to select operating system. The snapshot is as follows −You need to choose Windows (x86, 32/64-bit) and download ... Read More

How to front pad zip code with “0” in MySQL?

Anvi Jain

Anvi Jain

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

386 Views

To front pad zip code with 0, use LPAD() function in MySQL. The syntax is as follows −SELECT LPAD(yourColumnName, columnWidth+1, '0') as anyVariableName from yourTableName;To understand the above concept of LPAD() to add front pad zip code with 0, let us create a table. One of the columns of the ... Read More

How to store Query Result in a variable using MySQL?

Anvi Jain

Anvi Jain

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

8K+ Views

To store query result in a variable with MySQL, use the SET command. The syntax is as follows −SET @anyVariableName = ( yourQuery);To understand the above concept, let us create a table. The following is the query to create a table −mysql> create table QueryResultDemo    −> (    −> ... Read More

Demonstrate getting the immediate superclass information in Java

Anvi Jain

Anvi Jain

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

99 Views

The immediate superclass information of any entity such as an object, class, primitive type, interface etc. can be obtained using the method java.lang.Class.getSuperclass().A program that demonstrates this is given as follows −Example Live Demopackage Test; import java.lang.*; class Class1{ } class Class2 extends Class1{ } public class Demo { ... Read More

How to order records by a column in MySQL and place empty records at the end?

Anvi Jain

Anvi Jain

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

158 Views

To get order by column and place empty records at the end, use ORDER By and “is null” from MySQL. The syntax is as follows −select *from yourTableName order by if(yourColumName = ’ ’ or yourColumName is null, 1, 0), yourColumnName;To understand the above syntax, let us create a table. ... Read More

Changing the current count of an Auto Increment value in MySQL?

Anvi Jain

Anvi Jain

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

357 Views

You can change the current count of an auto_increment in MySQL using ALTER command.The syntax is as follows −ALTER TABLE yourTableName AUTO_INCREMENT = IntegerValue;To understand the above syntax, let us create a table. The query to create a table is as follows −mysql> create table changeCurrentAutoIncrementValue    −> (   ... Read More

Advertisements