Solved

Named Value Pairs and storing one-to-many

Posted on 2012-03-28
3
488 Views
Last Modified: 2012-03-28
I am using JIRA and subtasks in JIRA to be able to use a one-to-many relationship for some fields.  JIRA Is connected to an Oracle database where values are stored in Named Value Pair format.   Then a DBA will write PLSQL to place values into comlumns.  Users will use Tableau (for charts and reporting) to connect to Oracle to see the one to many relationships and add to reporting.

My question is for a DBA is it better to store the one to many values in a single column comma delimated or in rows?  Tableau uses sql and has a lot of capablilities to look at fields.  Not sure about how it looks at comma delimated though and the user will need to search on values for reporting in the one-to-many fields.
0
Comment
Question by:leezac
3 Comments
 
LVL 34

Expert Comment

by:johnsone
Comment Utility
I would not delimit anything in the database.  Keep everything in separate columns.

Makes querying and indexing a lot easier and more efficient.
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
The 'R' in RDBMS stands for 'Relational'.  If you are going to store values in a delimited list, do you need a database?

Store it relationally.  If you need the delimited list, it is easily created:
http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php

There is also a XML trick to create a delimited string.

I also want to suggest XML as an alternative to a delimited list.  Most tools these days can process XML.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
Comment Utility
<My question is for a DBA is it better to store the one to many values in a single column comma delimated or in rows?>
Store this data in rows, as this is standard for a one to many relationship.
ex.: One Customer, Many Orders
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now