1

Suppose I have a table M which is : [[1 A],[2 B],[3 C]] and another table N: [[3 a],[2 b]]

Applying a left join(using 1st column in table M as the primary key),will give the resulting table as: [[1 A],[2 B b],[3 C a]]

How can this be implemented using javascript?

11
  • Im pretty sure it cant. Javascript is a client side language unless used with something like nodeJS and even then it is used with a noSQL database such as mongo Commented Mar 8, 2017 at 19:06
  • 1
    @Janpan That's not what the OP was asking. They are asking for the behavior of a left join Commented Mar 8, 2017 at 19:10
  • 1
    @Janpan Verbiage !== intent. I can read what the post says, but the intention is "I can do a left join in sql, but I am working with javascript arrays. How can I achieve the same functionality in javascript as I have in sql?" Also, to your first comment, nodeJS is not limited to noSQL databases... Commented Mar 9, 2017 at 20:58
  • 1
    @Janpan That's like questions asking "How can classes be implemented using javascript?" or "How can static typing be implemented using javascript?".. They want to know how to replicate the functionality -- not to somehow access features from another language/architecture. Commented Mar 9, 2017 at 21:00
  • 2
    I just wanted to know how can a left join be implemented using javascript if I have two 2D arrays and I need a third array which has the result of left join of those 2 given arrays. Commented Mar 10, 2017 at 6:38

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.