Reputation: 2378
For the following Cassandra
schema:
CREATE TABLE periods (
period_name text,
event_name text,
event_date timestamp,
weak_race text,
strong_race text,
PRIMARY KEY (period_name, event_name, event_date)
);
Usually the select
statement can be like:
SELECT * FROM ruling_stewards
WHERE king = 'Brego'
AND reign_start >= 2450
AND reign_start < 2500 ALLOW FILTERING;
But is there a way to select the specific columns without giving a relation? For example, to show all the event_name
and period_name
columns? (do not show other unmentioned columns).
Upvotes: 2
Views: 3557