Solved

Named Value Pairs and storing one-to-many

Posted on 2012-03-28
3
492 Views
Last Modified: 2016-12-08
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
ID: 37777024
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
ID: 37777039
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
ID: 37777241
<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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

766 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