Monica Mona has Published 94 Articles

Kth Largest Element in an Array

Monica Mona

Monica Mona

Updated on 04-Jan-2023 18:04:51

From a set of data, this algorithm will find the largest element to kth largest element of the array.This problem can be solved easily by sorting the array. We can sort them either in ascending order or in descending order. Solving it in descending order, we can get first k ... Read More

How to set all the outline properties in one declaration with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 13:23:32

To set outline properties, use the outline property. It allows you to set the color, style, and offset of the outline.ExampleYou can try to run the following code to set all the outline properties in one declaration with JavaScript −Live Demo               ... Read More

How to set an image as the list-item marker with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 13:21:08

To set an image as the marker in list-item, use the listStyleImage property in JavaScript.ExampleYou can try to run the following code to set an image as the list-item marker with JavaScript −Live Demo                    One         ... Read More

How to set the horizontal alignment of an element with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 12:34:52

To align the element horizontally, use the cssFloat property.ExampleYou can try to run the following code to set the horizontal alignment of an element with JavaScript −Live Demo                 This is Demo Text. This is Demo Text. This is Demo Text. ... Read More

How to set the width of the rule between columns with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 12:18:22

Use the columnRuleWidth property to set the width between columns. You can try to run the following code to set the width of the rule between columns with JavaScript −ExampleLive Demo                    #myID {             ... Read More

Set whether or not an element should be visible while not facing the screen with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 12:03:19

Use the JavaScript backfaceVisibility property to set whether or not an element should be visible while not facing the screen.ExampleYou can try to run the following code to learn how to implement a backfaceVisibility property in JavaScript −Live Demo                   ... Read More

How to set all the border top properties in one declaration with JavaScript?

Monica Mona

Monica Mona

Updated on 23-Jun-2020 11:38:38

To set all the border top properties in a single declaration, use the borderTop property. With this property, you can set the border-top-width, border-top-style, and border-top-color property.ExampleYou can try to run the following code to learn how to work with border-top properties in JavaScript −Live Demo       ... Read More

How can we use a combination of logical operators while creating MySQL views?

Monica Mona

Monica Mona

Updated on 22-Jun-2020 13:47:56

MySQL views can be created by using a combination of logical operators like AND, OR, and NOT. It can be illustrated with the help of following examples −Examplemysql> Create or Replace View Info AS select ID, Name, Address , Subject FROM Student_info WHERE (Subject = 'Computers' AND ADDRESS = 'Delhi') ... Read More

How can we use SIGNAL statement with MySQL triggers?

Monica Mona

Monica Mona

Updated on 22-Jun-2020 13:04:51

Actually, MySQL SIGNAL statement is an error handling mechanism for handling unexpected occurrences and a graceful exit from the application if need to be. Basically, it provides error information to the handler. Its basic syntax would be as follows −SIGNAL SQLSTATE | condition_value [SET signal_information_item = value_1, [, signal_information_item] = ... Read More

How can we destroy a trigger?

Monica Mona

Monica Mona

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

We can destroy a trigger in two ways −Dropping a trigger explicitlyWith the help of the DROP statement, we can destroy a trigger explicitly. It can be understood with the help of the following example −mysql> DROP Trigger before_inser_studentage1; Query OK, 0 rows affected (0.05 sec)Dropping a trigger implicitlyA trigger ... Read More

1 2 3 4 5 ... 10 Next
Advertisements