Hi,
Trying to complete exercise 2 of the funds capestone project.
2.2) Below is the extractBrokerId function which seems to be passing all the test cases-
extractBrokerId:{
parts:"-" vs x;
$[parts[0]~"CME";
"J"$ last parts ;
parts[0]~"ISE";
"J"$ parts[1] ;
0
]
}
Exercise 2.3 seems to be where the problem is , below is the query I wrote to update the messages table -
messages: update broker_id: extractBrokerId each string each exch_message from messages
Also noticed that trade_id column in messages table is not getting populated correctly it seems?
Kindly help.


