rows

Who is online?  0 guests and 1 members
Home  »  Forums   »  microsoft business intelligence   »  reporting services   » rows

rows

Topic RSS Feed

Posts under the topic: rows

Posted: 4/11/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

hi
i have 1 table 

code item1

a pen
a pencil

b item3
b item4


i need to select any item based on code in just 1 column.

now item3 contains pen and pencil.

so i supply @item3 it gives me 

a pen
a pencil

,what i need is ,if @sign is there,it should return b item3

@works for group

how to do that?


Posted: 4/11/2012

Jedi Master 2837  points  Jedi Master
  • Joined on: 2/19/2010
  • Posts: 414

The way I would do it is to change the structure.  I would add another table with the component elements for your item3 and item4 and then do a join to that table to return the proper components.


Posted: 4/11/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

OK.

 

I M creating 1 temp table.but as this all in sp ,i need to retun in 1 single slect stm.

 

hwo to do that and what query should i write to get desire result,its only 1 table


Posted: 4/11/2012

Padawan 378  points  Padawan
  • Joined on: 4/3/2012
  • Posts: 189

my prob is i m passing value as @param

 

but in table it stored like param.

 

so i am not getting exact match


Page 1 of 1 (4 items)