Familiar with sql statements a bit more - have this column table VENUE. The column contains strings such as NYSE, NASDAQ, CBOE, and more. I want to create a new column where I define it based of the VENUE values.
so in SQL I would state -
select VENUE,
Case when VENUE = 'NYSE' then 'Primary'
when VENUE <> 'NYSE then 'NotPrimary'
else VENUE end as VenueType
from data
How can i achieve this in kdb? any guidance is much appreciated.