Effect of NULL and Other Values on MySQL FIELD Function Output

Sai Subramanyam
Updated on 30-Jul-2019 22:30:21

99 Views

There will be a significant change in the output if we have the combination of NULL and other values in the list of strings, provided as arguments in FIELD() function. Following example will demonstrate it Example mysql> Select FIELD('good', 'Ram', 'is', 'good', 'boy'); +---------------------------------------+ | FIELD('good', 'Ram', 'is', 'good', 'boy') | +---------------------------------------+ | 3 | +---------------------------------------+ 1 row in set (0.00 sec) ... Read More

Using Different Engine Types in SAP HANA

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:21

262 Views

It will use both OLAP and Join engine. The join between the FACT and DIM will be executed in the OLAP engine and joins inside the attribute views will be executed in the JOIN engine so both the engines will be used.

What Does the Method getLast Do in Java

Ramu Prasad
Updated on 30-Jul-2019 22:30:21

136 Views

The getLast() method of the class java.util.LinkedList returns the last element in this list.Example:import java.util.*; public class LinkedListDemo {    public static void main(String[] args) {       LinkedList list = new LinkedList();       list.add("Hello");       list.add(2);       list.add("Chocolate");       list.add("10");       System.out.println("LinkedList:" + list);       System.out.println("Last Element :" + list.getLast());    } }Output:LinkedList:[Hello, 2, Chocolate, 10] Last Element :10

Handling Failed Transactions in SAP HANA System

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:21

290 Views

In SAP HANA system, Session and Transaction Manager is responsible to keep track of all the executed transactions in HANA database. It includes both running transactions and closed transaction. When a transaction in HANA system is failed due to any reason, Transaction Manager informs corresponding engine to handle the error.Session Manager is responsible to manage open and closed sessions and to authorize all the transactions executed in HANA db.

What Does the Method removeFirst Do in Java

Govinda Sai
Updated on 30-Jul-2019 22:30:21

143 Views

The removeFirst() method of the java.util.LinkedList class removes and returns the first element from this list.Example:import java.util.*; public class LinkedListDemo {    public static void main(String[] args) {       LinkedList list = new LinkedList();       list.add("Hello");       list.add(2);       list.add("Chocolate");       list.add("10");       System.out.println("LinkedList:" + list);       System.out.println("First element:" + list.removeFirst());       System.out.println("LinkedList:" + list);    } }Output:LinkedList:[Hello, 2, Chocolate, 10] First element:Hello LinkedList:[2, Chocolate, 10]

Handling User Requests for HANA System Applications

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:21

186 Views

It consists of various components as mentioned above for processing of SQL statements from application users hosted on the top of HANA system.User requests via user interface/web browsers are sent to Web server hosting application which is communicated to SQL/MDX Processor in form of SQL queries. These are further segregated to different data engines in Index server according to query types.Session and Transaction Manager authorize SQL transactions and keep track of all the transactions either completed or running in the system.

What does the method removeLast do in Java

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

100 Views

The removeLast() method of the java.util.LinkedList class removes and returns the last element of this list.Example:import java.util.*; public class LinkedListDemo {    public static void main(String[] args) {       LinkedList list = new LinkedList();       list.add("Hello");       list.add(2);       list.add("Chocolate");       list.add("10");       System.out.println("LinkedList:" + list);       System.out.println("Last element:" + list.removeLast());       System.out.println("LinkedList:" + list);    } }Output:LinkedList:[Hello, 2, Chocolate, 10] Last element:10 LinkedList:[Hello, 2, Chocolate]

Handling System Failure and Database Corruption in SAP HANA

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:21

549 Views

Persistence layer is used in case of system failure, database corruption or power failure to restore the database to most recent save point in HANA. Persistence Layer is responsible for data and transaction log backup and also to store configuration of HANA system.Backup of data and transaction log files are taken as per Backup settings in HANA system configuration. It can be set to minutes, Hours and days and destination of backup is also defined under Backup settings.When a backup is run for data and transaction files, system takes the backup from all the servers in HANA system.Persistence Layer is ... Read More

Max Allowed Packet and String-Valued Function Results

Rishi Raj
Updated on 30-Jul-2019 22:30:21

244 Views

String-valued functions return NULL if the length of the result would be greater than the value of the max_allowed_packet system variable. Actually, max_allowed_packet is a dynamic global variable which can accept the integer type values. These values can be set for a session only. It can accept 1024 as the minimum value and 1073741824 as the maximum value. The by the default value of this system variable is 1048576.

Show a While Loop Using a Flow Chart in JavaScript

Sai Subramanyam
Updated on 30-Jul-2019 22:30:21

292 Views

The purpose of a while loop is to execute a statement or code block repeatedly as long as an expression is true. Once the expression becomes false, the loop terminates. Let’s see how to show while loop using flowchart in JavaScript −

Advertisements