Rishi Raj has Published 127 Articles

How can we use INSERT() function to insert a new string into the value of a column of MySQL table?

Rishi Raj

Rishi Raj

Updated on 06-Feb-2020 06:31:51

120 Views

For this purpose, We need to use the name of the column as the first parameter i.e. at the place of an original string, of the INSERT() function. Following example will exhibit it −ExampleSuppose we want to add ‘/Old’ with the values of ‘year_of_admission’ column of ‘Student’ table then we ... Read More

Denormalization of dimension tables in InfoCube in SAP BW

Rishi Raj

Rishi Raj

Updated on 06-Dec-2019 06:54:17

146 Views

Note that In Data Warehouse, data load is less frequent as compared to data read. If you use normalized tables that result more number of joins and hence when you run multiple read statements on DW system, it effects the performance considerably.When you are not using normalized tables, the response ... Read More

Problem with division as output is either 0 or 1 when using ifthenelse condition in ABAP program

Rishi Raj

Rishi Raj

Updated on 05-Dec-2019 09:43:10

168 Views

The problem is that your second parameter is 0 which is an integer, so the output always comes as an integer as ifthenelse takes data type from the second parameter. So, in your case, if the answer is less than .5, it is converted to zeroes and in case more ... Read More

Finding minimum value across different columns in SAP HANA

Rishi Raj

Rishi Raj

Updated on 05-Dec-2019 09:20:19

388 Views

You need to use LEAST instead of min as below:“SELECT ID, LEAST(DAY_1, DAY_2, DAY_3) FROM ...” Please make sure that none of the values in your column in “NULL”.

Error while selecting into field-symbol in SAP ABAP

Rishi Raj

Rishi Raj

Updated on 05-Dec-2019 09:13:59

321 Views

The problem is that you have not declared Field-symbol. Try using the below code.data:  ws_bkpf      TYPE bkpf_type. SELECT MANDT    INTO CORRESPONDING FIELDS OF ws_mandt UP TO 1 ROWS    FROM bkpf    WHERE belnr = '1700001016'. ENDSELECT.

How to use JavaScript to redirect an HTML page?

Rishi Raj

Rishi Raj

Updated on 07-Oct-2019 08:08:32

2K+ Views

You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection.It is quite simple to do a page redirect using JavaScript on the client side. To redirect your site visitors ... Read More

How to use JavaScript to hide a DIV when the user clicks outside of it?

Rishi Raj

Rishi Raj

Updated on 18-Sep-2019 08:30:50

1K+ Views

To hide a div when the user clicks outside of it, try to run the following codeExampleLive Demo                    window.onload = function(){             var hideMe = document.getElementById('hideMe');             document.onclick = function(e){                if(e.target.id !== 'hideMe'){                   hideMe.style.display = 'none';                }             };          };             Click outside this div and hide it.    

Java ResultSet findColumn() method with example

Rishi Raj

Rishi Raj

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

1K+ Views

When we execute certain SQL queries (SELECT query in general) they return tabular data.The java.sql.ResultSet interface represents such tabular data returned by the SQL statements.i.e. the ResultSet object holds the tabular data returned by the methods that execute the statements which quires the database (executeQuery() method of the Statement interface in general).The ... Read More

Java ResultSet relative() method with example

Rishi Raj

Rishi Raj

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

659 Views

When we execute certain SQL queries (SELECT query in general) they return tabular data.The java.sql.ResultSet interface represents such tabular data returned by the SQL statements.i.e. the ResultSet object holds the tabular data returned by the methods that execute the statements which quires the database (executeQuery() method of the Statement interface in general).The ... Read More

Java ResultSetMetaData getColumnCount() method with example?

Rishi Raj

Rishi Raj

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

1K+ Views

The getColumnCount() method of the ResultSetMetaData (interface) retrieves the number of the columns of the current ResultSet object.This method returns an integer value representing the number of columns.To get the ResultSetMetaData object, you need to:Register the Driver: Select the required database register the Driver class of the particular database using the registerDriver() ... Read More

Previous 1 ... 4 5 6 7 8 ... 13 Next
Advertisements