Sai Subramanyam has Published 80 Articles

How can we create multicolumn UNIQUE indexes?

Sai Subramanyam

Sai Subramanyam

Updated on 28-Jan-2020 06:26:06

159 Views

For creating multicolumn UNIQUE indexes we need to specify an index name on more than one column. Following example will create a multicolumn index named ‘id_fname_lname’ on the columns ‘empid’, ’first_name’, ’last_name’ of ‘employee’ table −mysql> Create UNIQUE INDEX id_fname_lname on employee(empid, first_name, last_name); Query OK, 0 rows affected (0.41 ... Read More

How to create array of strings in Java?

Sai Subramanyam

Sai Subramanyam

Updated on 19-Dec-2019 10:13:26

2K+ Views

In Java, you can create an array just like an object using the new keyword. The syntax of creating an array in Java using new keyword −type[] reference = new type[10];Where, type is the data type of the elements of the array.reference is the reference that holds the array.And, if ... Read More

How to unset a JavaScript variable?

Sai Subramanyam

Sai Subramanyam

Updated on 13-Sep-2019 07:44:06

18K+ Views

To unset a variable in JavaScript, use the undefined. After that, use delete operator to completely remove it.Let’s try the code snippet again.var str = “Demo Text”; window.onscroll = function() {    var y = this.pageYOffset;    if(y > 200) {       document.write(nxt);       nxt = ... Read More

The Maximum Data Rate of a Channel

Sai Subramanyam

Sai Subramanyam

Updated on 05-Aug-2019 07:30:29

13K+ Views

Data rate refers to the speed of data transfer through a channel. It is generally computed in bits per second (bps). Higher data rates are expressed as Kbps ("Kilo" bits per second, i.e.1000 bps), Mbps ("Mega" bits per second, i.e.1000 Kbps), Gbps ("Giga" bits per second, i.e. 1000 Mbps) and ... Read More

DecimalFormat("000000E0") in Java

Sai Subramanyam

Sai Subramanyam

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

193 Views

DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers. Let us set DecimalFormat("000000E0") and use the format() method as well.new DecimalFormat("000000E0").format(199) new DecimalFormat("000000E0").format(29089)Since we have used DecimalFormat class in Java, therefore importing the following package is a must −import java.text.DecimalFormat;The following is the complete example −Example Live Demoimport java.text.DecimalFormat; ... Read More

Python Vs Ruby, which one to choose?

Sai Subramanyam

Sai Subramanyam

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

195 Views

First thing comes in my mind, why to compare these two language only? This may be because both are interpreted, agile languages with an object oriented philosophy and very huge communities support. However, though both languages share some ideas, syntax elements and have almost the same features the two communities ... Read More

Creating orders in SAP system using .Net

Sai Subramanyam

Sai Subramanyam

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

339 Views

You can handle it by creating an array and insert an object into Array. Bapisdhd1 order_header_in = new Bapisdhd1(); order_header_in.DocType = "OR"; order_header_in.CollectNo = "111022"; order_header_in.SalesOrg = "11011"; order_header_in.DistrChan = "100"; order_header_in.Division = "000"; order_header_in.DlvBlock = "010"; order_header_in.PurchNoC = "TEST ORDER"; newOrder.OrderHeaderIn = order_header_in; Read More

Using ABAP, changing a value in itab by getting data from database table

Sai Subramanyam

Sai Subramanyam

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

2K+ Views

You should do this using a Modify statement as in below − LOOP AT itab. SELECT SINGLE matnr INTO itab-matnr FROM zlldet WHERE palet = itab-palet. MODIFY itab. ENDLOOP. Also note that when you have an ... Read More

How to show if...else statement using a flowchart in JavaScript?

Sai Subramanyam

Sai Subramanyam

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

351 Views

The if statement is the fundamental control statement that allows JavaScript to make decisions and execute statements conditionally. Let’s see how to show if…else statement using flowchart in JavaScript.

What does language attribute do in