Alankritha Ammu has Published 27 Articles

How to set background image of a webpage?

Alankritha Ammu

Alankritha Ammu

Updated on 09-Sep-2023 23:37:45

33K+ Views

Beautiful webpages are a very strong means of catching user attention. In this article, we are going to see how we can add an image as the background image of a web. Approach There are two approaches to setting an image as the webpage's background image, which we will learn in ... Read More

How to use floating image in HTML page?

Alankritha Ammu

Alankritha Ammu

Updated on 22-Dec-2021 10:35:43

22K+ Views

To use a floating image in HTML, use the CSS property float. It allows you to float an image left or right. More property values include the following:Sr.No.Property Value & Description1noneNot floated2leftFloats to the left3rightFloats to the right4initialDefault valueExampleYou can try to run the following code to use floating image ... Read More

How to return a number indicating the Unicode value of the character?

Alankritha Ammu

Alankritha Ammu

Updated on 23-Jun-2020 08:41:29

406 Views

The charCodeAt() method returns a number indicating the Unicode value of the character at the given index. Unicode code points range from 0 to 1, 114, 111. The first 128 Unicode code points are a direct match of the ASCII character encoding.The following parameter is supported by charCodeAt(index) −index − An integer ... Read More

How can we use a subquery that contains a reference to a table that also appears in the outer query?

Alankritha Ammu

Alankritha Ammu

Updated on 22-Jun-2020 08:24:37

845 Views

A subquery that contains a reference to a table that also appears in the outer query is called a correlated subquery. In this case,  MySQL evaluates from inner query to the outer query. To understand it we are having the following data from table ‘cars’ −mysql> Select * from Cars; ... Read More

What are MySQL group functions?

Alankritha Ammu

Alankritha Ammu

Updated on 22-Jun-2020 08:04:31

228 Views

Group functions are the function which applied to a group of rows or in other words group functions operate on sets of values. The following table gives the Description of MySQL group functions −Sr.No.Name & Description1AVG()It returns the average value of the argument.2BIT_AND()It returns bitwise AND.3BIT_ORIt returns bitwise OR.4BIT_XOR()It returns ... Read More

What MySQL returns if we provide value larger than 255 as argument to MySQL CHAR() function?

Alankritha Ammu

Alankritha Ammu

Updated on 22-Jun-2020 06:10:54

153 Views

MySQL converts the arguments of CHAR() function which is greater than 255 to multiple result bytes. For example, CHAR(260) is equivalent to CHAR(0, 1, 0, 4). It can be more clear with the help of following statements −mysql> Select HEX(CHAR(256)), HEX(CHAR(1, 0)); +----------------+----------------+ | HEX(CHAR(256)) | HEX(CHAR(1, 0)) | +----------------+----------------+ ... Read More

How can we add day/s in the date stored in a column of MySQL table?

Alankritha Ammu

Alankritha Ammu

Updated on 22-Jun-2020 04:57:37

242 Views

Two functions can be used for this purpose and in both the functions we need to provide column name as an argument along with INTERVAL keyword. The functions are as follows −DATE_ADD() functionThe syntax of this function is DATE_ADD(date, INTERVAL expression unit). It can be demonstrated by following the example ... Read More

What would be the output of MySQL ELT() function if the index number, provided as an argument, is not an integer?

Alankritha Ammu

Alankritha Ammu

Updated on 20-Jun-2020 08:56:38

170 Views

As we know the 1st argument of ELT() function must be an integer value but when we provide index number which is not an integer the MySQL ELT() function returns NULL with a warning.Examplemysql> select ELT('one', 'Ram, is, good, boy')As Result; +--------+ | Result | +--------+ | NULL   | ... Read More

How to convert a boolean value to string value in JavaScript?

Alankritha Ammu

Alankritha Ammu

Updated on 15-Jun-2020 06:58:38

16K+ Views

To convert a Boolean value to string value in JavaScript, use the toString() method. This method returns a string of either "true" or "false" depending upon the value of the object.ExampleYou can try to run the following code to convert a boolean value to string value −Live Demo     ... Read More

How to set JAVA_HOME for Java in Windows?

Alankritha Ammu

Alankritha Ammu

Updated on 13-Jun-2020 12:49:30

1K+ Views

Assuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, add the 'JAVA_HOME' variable and set the path to the c:\Program Files\java\jdk'.

Advertisements