How to define relationship between two nodes

8 views
Skip to first unread message

karlpete...@gmail.com

unread,
Dec 6, 2016, 7:24:22 AM12/6/16
to Neo4j
Hello Friends,

I am new to neo4j. I am not aware about how to define relationship between two nodes. As i have to define relationship between below graph. how to define relationship between below tables. One only works for one department. but one department have many employee.

Department Table
====================
id    name
====================
1    HR
2    Account
3    Developer
4    Management

Employee Table
====================
id    name dept_id
====================
1   ABC     1
2   XYZ        2
3    PQR        3
4    DEF        1
5    MRF        3
6    BAT        2

=====================================
Reply all
Reply to author
Forward
0 new messages