Skip to content
Advertisement

return the rows by family with sql

This is my first question in stackoverflow so be nice to me ๐Ÿ™‚

i have a table which has a column family, when i make a query (with a where statment) i want to show the results as a group of rows with the same family

for example the table is shop:

So i want when executing a query like this :

it will select these two :

Advertisement

Answer

You can use in or exists:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement