This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataBinding | |
{ | |
enabled = true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<android.support.constraint.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context="com.processmap.databindingexample.MainActivity"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.databinding.DataBindingUtil | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import com.processmap.databindingexample.databinding.ActivityMainBinding | |
class MainActivity : AppCompatActivity() { | |
private var mBinding: ActivityMainBinding? = null //This ActivityMainBinding class is auto generated by data binding library for us | |
override fun onCreate(savedInstanceState: Bundle?) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.Emp_id, a.Emp_name,a.Emp_Hire_date,b.Dept_name | |
FROM employees a | |
LEFT JOIN departments b | |
ON a.Dept_id=b.Dept_id | |
ORDER BY a.Emp_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.Emp_id, a.Emp_name,a.Emp_Hire_date,b.Dept_name | |
FROM Employees a | |
LEFT OUTER JOIN Departments b | |
ON a.Dept_id = b.Dept_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.Emp_id, a.emp_name,b.Dept_name | |
FROM employees a | |
CROSS JOIN departments b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.Emp_id, a.Emp_name, b.Department_name | |
FROM Employees a | |
CROSS JOIN Departments b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.Emp_id, a.Emp_name,b.Dept_name | |
FROM employees a | |
INNER JOIN departments b | |
ON a.Dept_id=b.Dept_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.emp_id, a.emp_name, b.Department_name | |
FROM employees a | |
INNER JOIN Departments b | |
ON a.Dept_id = b.Dept_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.Emp_id, a.Emp_name,a.Emp_Role,b.Dept_id,b.Dept_name,b.Location | |
FROM employees a | |
RIGHT JOIN departments b | |
on a.Dept_id = b.Dept_id | |
ORDER BY a.Emp_id; |
OlderNewer