LLX Posted September 10, 2008 Posted September 10, 2008 In my DB i have a calculation field that i feel could be streamlined into a seperate table and reference instead of a complex calculation but i'm not sure how and thought someone might have ideas. Case (Type = "Basic Subscriber" and Country = "USA"; "USA 1 Year - 6 Issue Term" ;Type = "Basic Subscriber" and Country = "Canada"; "CAN 1 Year - 6 Issue Term" ;Type = "Ezine Subscriber" and Country = "USA"; "Ezine 1 Year - 6 Issue Term" ; Type = "Digital Subscriber" and Country = "USA"; "Digital 1 Year - 6 Issue Term" ;Type = "Single Ezine Issue" and Country = "USA"; "Online Single Issue" ; Type = "Single Digital Issue" and Country = "USA"; "Online Single Issue" ; Type = "Single Issue" and Country = "USA"; "Single Issue" ;Type = "Free Subscription" and Country = "USA"; "Complementary Subcription" ;Type = "Basic Subscriber" and Country = "United Kingdom"; "UK 1 Year - 6 Issue Term" ; "..." )
Raybaudi Posted September 10, 2008 Posted September 10, 2008 Yes, you can start with add a separate table with 4 fields: Id related Type Country Description
LLX Posted September 10, 2008 Author Posted September 10, 2008 the tricky part is that i used Type and Contry to generate the long description currently so Type and Country are in the first Table (records) why wound i need them in what is basicly a table to make getinng the long description simplier need to reference 2 fields (ie isn't matching Records::type, Records::Country to Description::Type, Description::country a obtuse design?)
Raybaudi Posted September 10, 2008 Posted September 10, 2008 These are some records from the new table: Id--- Type------------- Country---- Description 1---- Basic Subcriber--- USA------- USA 1 Year - 6 Issue Term 2---- Basic Subcriber--- Canada---- CAN 1 Year - 6 Issue Term 3---- Ezine Subscriber-- USA------- Ezine 1 Year - 6 Issue Term and so on.
LLX Posted September 10, 2008 Author Posted September 10, 2008 guess i see what your going for now, thanks.
Recommended Posts
This topic is 5918 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now