Jump to content

SQL anyone know how???


Guest aikdo

Recommended Posts

Hey does anyone know how to prase a SQL comand to select from a column where column = 1 or 2 or 3 or 4 ect ect...

need to filter the results not to show them all , but need it all in one MY SQL statment so i can use ORDER BY...

anyone help is needed...

Link to comment
Share on other sites

anyone... ok let me clarify i want to write a code that selects all products withing a catagory and its sub catagories, i know how to set it by catagory and i know how to select them in groups but i want them all to be selected in one where i can then just use ORDER BY...

WHY is google failing me now... DOES anyone know if this is possible???

Link to comment
Share on other sites

anyone... ok let me clarify i want to write a code that selects all products withing a catagory and its sub catagories, i know how to set it by catagory and i know how to select them in groups but i want them all to be selected in one where i can then just use ORDER BY...

WHY is google failing me now... DOES anyone know if this is possible???

here you go :D

select * from table_name where column_a in (2,3,4)

select * from table_name where columnb_b in ('text1','text2','text3')

Good Luck

/Goober

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...