Reputation: 1883
I have to write a hive query to display a full table if a particular record is present in the table.
For example: I have a table customers ( cust _name,cust_num,city,rating)
I have to display all the records if city San Jose is present in this table. how can i write my query using select statement?
Upvotes: 0
Views: 462
Reputation: 2057
You could do this:
select a.* from customers a
inner join customers b on b.city = 'San Jose'
Upvotes: 1