Rishi Rathor has Published 155 Articles

MySQL alias for SELECT * columns?

Rishi Rathor

Rishi Rathor

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

260 Views

MySQL alias cannot be used with *. However, it can be used for individual column. The syntax is as follows −select anyaliasName.yourColumnName1 as anyaliasName1, anyaliasName.yourColumnName2 as anyaliasName2, anyaliasName.yourColumnName3 as anyaliasName3, anyaliasName.yourColumnName4 as anyaliasName4, . . . . N from yourTableName as anyaliasName;MySQL alias is a variable of table that can ... Read More

Equaivalent of Oracle concatenation operator in MySQL?

Rishi Rathor

Rishi Rathor

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

78 Views

The concat operator can be used in ORACLE. MySQL use concat() function to perform concatenation.To understand the concat() function, let us create a table. The query to create a table is as follows −mysql> create table ConcatenationDemo −> ( −> Id int, ... Read More

8085 Executing the program and checking result

Rishi Rathor

Rishi Rathor

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

5K+ Views

In this section we will see how to use 8085 to write a program in 8085 kit. We will also see how to debug the program and check the result after successful execution. Let us see a typical keypad structure of 8085 kit. (This keyboard pattern may vary indifferent kits of ... Read More

Description of 8257 DMA controller chip

Rishi Rathor

Rishi Rathor

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

1K+ Views

As per DIP package Intel 8257 DMA controller chip is a 40-pin programmable Integrated Circuit. The pin diagrams of physical and functional are indicated below. The DMA controller chip 8257 works in two modes namely slave mode and master mode. Likely the processor also works in two modes namely active ... Read More

8085 Program to find the smallest number

Rishi Rathor

Rishi Rathor

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

7K+ Views

In this program we will see how to find the smallest number from a block of bytes using 8085.Problem StatementWrite 8085 Assembly language program to find the smallest number from a block of bytes.DiscussionIn this program the data are stored at location 8001H onwards. The 8000H is containing the size ... Read More

8085 Program to convert an 8-bit binary to BCD

Rishi Rathor

Rishi Rathor

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

8K+ Views

In this program we will see how to convert binary numbers to its BCD equivalent.Problem StatementA binary number is store dat location 800H. Convert the number into its BCD equivalent and store it to the memory location 8050H.DiscussionHere we are taking a number from the memory, and initializing it as ... Read More

Control register of 8257

Rishi Rathor

Rishi Rathor

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

1K+ Views

The processor, in active state writes to the Control register of 8257 to configure its working purpose. To find out the status of 8257, the processor reads status register of the processor. The control register is of length 8-bits which is only read by the processor but not read. It ... Read More

Programming the 8253

Rishi Rathor

Rishi Rathor

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

305 Views

According to the microprocessor point of view, the 8253 is designed and has some specialty port chip I/O. We don't use it for interfering the I/O devices. For performing the application of time it is used. 8253 has the addressed A1 and A0 input pins.The counters have width of 16 bits. ... Read More

MySQL extract year from date format?

Rishi Rathor

Rishi Rathor

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

281 Views

To extract year from date format, you can use in-built function YEAR() from MySQL. The query is as follows −mysql> SELECT YEAR(curdate()) as OnlyYearFromCurrentDate;The following is the output −+-------------------------+ | OnlyYearFromCurrentDate | +-------------------------+ | 2018 ... Read More

Create a table in MySQL that matches another table?

Rishi Rathor

Rishi Rathor

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

115 Views

To create a table in MySQL that matches with another table, use CREATE TABLE command with LIKE operator. The syntax is as follows −create table yourNewTableName like yourOldTableName;The above syntax creates structure of the table.If you want all records then use INSERT INTO…...SELECT *FROM command. The syntax is as follows ... Read More

Advertisements