SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How can I create tables depending on requirments?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

grandhi
Starting Member

31 Posts

Posted - 05/06/2013 :  04:41:01  Show Profile  Reply with Quote
Hi All,

I don't know, whether it is correct a correct question or not?

In my App,I have 2 PopupMenus names are ProductBrand,both are Associated to each other means.

At the initial time,First popupmenu (Product) have the list {A,B,C,D} and Second PopupMenu have {1,2,3,4}.

If you select A from First popupmenu,then if you can observe second popupmenu list ,it will have associated values like {1,2,3}
.

like If you select any value from any popupmenu,That corresponding associated values will be available in another Popupmenu.

Popupmenu logica wise,everyThing was fine,But the problem was How can create Tables for this Associations.

I hope,you understand what my problem.

Can anyone help me?

Thank You.

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 05/06/2013 :  04:46:37  Show Profile  Reply with Quote
sounds like what you're asking for is cascading parameters

see

http://www.resultdata.com/adding-cascading-parameters-to-a-ssrs-report/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

grandhi
Starting Member

31 Posts

Posted - 05/06/2013 :  05:35:42  Show Profile  Reply with Quote
@visakh16,How can I set storedprocrdures in my DB.I am using MSSQL server 2012.

can you tell me one thing,Is it possible to insert two values in single column.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 05/06/2013 :  06:17:19  Show Profile  Reply with Quote
you need to write stored procedures code using CREATE PROC...statement and execute the code in your db to create it

Its possible to insert two values. use INSERT...SELECT syntax or
use table value constructor as
INSERT table (column) VALUES(value1),(value2)

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

grandhi
Starting Member

31 Posts

Posted - 05/07/2013 :  01:09:47  Show Profile  Reply with Quote
Thank you Visakh16...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 05/07/2013 :  01:10:44  Show Profile  Reply with Quote
you're welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000