Paul Mansour
unread,Jun 12, 2008, 11:40:47 PM6/12/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kdb+ Personal Developers
Hi,
I'm just getting started in q, so please forgive me if this is a silly
question.
In some (most?) cases, it appears that q prohibits duplicate column
names, or at least attempts to avoid accidental introduction of them,
while in others (well, at least one other) it appears to allow them.
For example if:
t:([] name: `Dent`Beeblebrox`Prefect; iq:98 42 126
then:
select name, iq, iq1:iq+2, iq from t
returns a table with duplicate col name 'iq1'.
Is this a bug or a feature? Are there other cases where duplicate
column names can arise? Is it a mistake to code under the assumption
that column names are unique?
Thanks.