Little help in DataBase Structure
Hello,
I'm doing a music database, it's working perfect, i Just need some help with my database structure, here is what I did in my database:
Database Music
table catalog [
artist ( band or artist name )
country
Type ( MP3, CD, LP, EP, Picture )
Title ( CD, LP, EP or Picture Title )
Style ( Music Style )
Year ( Release Year )
Musics ( List of music in CD, LP, EP ... )
Commentary ( Commentary about Cd or band or a song ) ]
My Java GUI to insert in data base
artist ( textField )
country ( textField )
Type ( JComboBox )
Title (textField )
Style ( textField )
year ( textField )
Musics ( JTextArea )
Commentary ( JTextArea )
The problem is that I'm inserting musics in a TextArea in that way
01 - Tom Sawyer 4:33
02 - Red Barchetta 6:06
03 - YYZ 4:24
04 - Limelight 4:19
05 - The Camera Eye 10:56
06 - Witch Hunt 4:43
07 - Vital Signs 4:43
and it all go to a single musics row in database, and I'm thinking in insert the lyric for each song too and insert the
music length in a separeted row too , so i need insert each music in a single textField then the length and the lyric
And I need a way to know that each music belongs to a cd and each length and lyric
belongs to a song, and where should i put my primary key or make the relationship?
song name is not the better choise i think, since there is too many songs with same name.
If you know a better way to do it, would help me alot, and if you know what changes i need to do
in my GUI too.
Thank You.
I suppose you are just messing around but from the point of view of formally managing a lot of music there are going to be a number of problems.
For example how many people have sung "White Christmas"? How many CDs has it appeared on? How many CDs has the same song (version) by the same artist appeared? How many CDs have the same song title and artist but a different version (for instance a live vs studio performance.)
How many songs have more than one 'style'? How many songs have more than one artist?
Realistically you need to start by figuring out exactly what important aspects do you want to manage. For instance maybe you just want to manage CDs, and just want to know the songs on each. Or perhaps you want CDs and artists - so you can cross reference an artist to all the CDs.
Because music is so complex every time you add an important aspect you are likely to add several more tables and linkages for each aspect.
Thus if you want to manage just CDs you might be better off with this
CD Table - cd_id, name
Songs - cd_id, title, artists, length, type
But with CDs and artists you are going to need this
CD Table - cd_id, name
Songs - song_id, cd_id, title, length, type
song_to_artist - song_id, artist_id
artist - artist_id, name
Notice that "song_to_artist" is a linkage that exists only to hook a song to an artist.
Similar Messages
-
Message: "The database structure has been modified" every time I log to SAP
Hello,
"The database structure has been modified. In order to resume this process, all open windows will be closed". Every time I log to one of my companies in SAP Business One this message appears.
I haven't installed any new addons and made no changes in database structure (and any other user hasn't done any changes), but this message appears always when I log to company for the first time (when I try to log on another user or log to another company there is no message). Can anyone help me with this problem?
Best regards
Ela ŚwiderskaHi Ela Świderska,
You may check this thread first:
UDFs disappeared
Thanks,
Gordon -
The Database Structure Has Been Modified
Good Day!
Just want to ask what is the probable reason why upon using SAP, there is a system message " The database structure has been modified. In order to resume the process, all open windows will be closed. Continue?" Even upon user log in , this system message appear affecting other user's data entry. Upon adding of the document (of other users when this system message appear), all the UDFs are missing, causing their data entry to be inaccurate since you cannot update row level once the document has been added.
Hope to hear from you soon.
Thanks
SandraHello ...
This error message appears every time that has altered the structure of the database, either by creating a new field of user or user table, so it is inevitable that appear the same.
Now, it is necessary as a measure, to control who has access to make these changes, and that they are made without users.
I hope it will help
Best regards, -
The database structure has been modified - how to check if it happend?
Hello,
I have a question. How to check if the database structure has been modified? I know that there is shown a messagebox after creating table and adding some fields, but sometimes this message appear after some seconds. The problem is that I want to create table and UDO for this table, and until database structure is not modified I got an error message. If I wait and DB strucuture modifies then UDO is creating correctly.
My question is - does anyone know how to check if database structure has been modified?
Regards,
HmgHi Szymon,
I guess you are stuck up in a kinda scenario, where in, you will be populating a form with values, before the structure modifies, if this is going to be your problem, I can help you out with a work around.
In the beginning of the process, before the creation of the UDO or tables, set a boolean value to false, and once all UDO's and Tables are created, only then, should you make it true and only after the boolean becomes true, you should proceed with populating the values from the screen.
I really ament sure what your problem is, but one of my guys faced this problem, I then, thought even you might have a similar problem.
Satish. -
Is it possible to change selection screen of logical database structure?
I have to create a z report for a standard transaction FBL01N which is extracting data according to the vendor account number(LIFNR) at the selection screen. Now as per the requirement the system should extract details according to 'vendor name' keeping the same functionality.
But the standard program is using some logical database structure KDB and the include for the selection screen is DBKDFSEL.So can I modify the selection screen of this transaction replacing Vendor No with Vendor Name.Hi..
Refer this links
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9b8535c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9b8535c111d1829f0000e829fbfe/content.htm
Hope this may b very helpful to u
Sravani
Plz reward points -
Automatic Checking of Database Structures
In OSS note 521870 SAP recommends to perform a weekly
check of the Database Structures to verify that the
Maxdb database is not corrupt. Unfortunately this
OSS note only describes the manual procedure to
perform this task:
dbmgui -> Check -> Database Structure
Is there any way to easily schedule this also via dbmcli?
The SAP online documentation contains some interesting
information about integrating the check into the CCMS,
here I can see whether the database structure check
was performed recently, but unfortunately I cannot
schedule it
http://dev.mysql.com/doc/maxdb/en/30/5ada6e596211d4aa83006094b92fad/content.htm
All I can find here is to schedule it via DB13,
but unfortunately my SCM 4.1 system is running on
Oracle and I want to check the liveCache on Maxdb,
so I cannot use DB13 for scheduling the check.Hello Mark,
Central DBA Planning Calendar ::
In the user menu, choose the Central DBA Planning Calendar
(transaction DB13C).
If it is not already there, add your liveCache to the list of systems.
To do this, choose Configuration ® Add System.
System ID: Enter here the liveCache name that you assigned during the
integration of the liveCache (using MaxDB/liveCache System Overview).
Database: Choose SDB/LVC.
Database Release: Choose the liveCache Version in accordance with the
version notation .
Select No SAP Basis.
Database Server: Enter the name of the liveCache server.
Connection Name: Enter the name of the database connection.
To switch to a local DBA planning calendar, choose Local Calendar and then
select the system for which you want to edit actions.
Please also review the SAP notes 940420, 521870 ( you already know this note ).
And note 820824 FAQ: MaxDB to find the note for the documentation & more -
For SAP liveCache documentation in English:
http://help.sap.com/saphelp_nw04/helpdata/en/f2/0271f49770f0498d32844fc0283645/frameset.htm
->Database Administration in CCMS: SAP liveCache ->
-> Central DBA Planning Calendar
If you are the official SAP customer, I recommend you to create
the ticket to SAP on 'BC-DB-LVC' queue.
Thank you and best regards, Natalia Khlopina -
Update the database structure from entity Framework Model
Hello !
I'm using VB.net , EF6 with SQL server 2008R2 database.
This is the situation :
I have created the application. Using wizard I have created the Entity model from an existing database.
A client start using this application using this database on his computer.
After some month , I made some modifications on the database and I have updated the model on my application .
Now I have a new .exe file that has the new model from the new database.
I put the new .exe file on the client computer.
Now on his computer : The .exe file has the new database model , but the sql server database has the old structure.
I want to know : Is possible to update the database structure from the entity model on application ?
I want to add a command on application that can make ( if is possible ) this update , so the database become up to date according to entity model ?
Thank you !Hello,
From your description, it seems that you want to apply a migration for a database first approach, unfortunately, as far as I know, EF Migrations is a product targeted at Code First and doesn't support Database First operations. A workaround I know is to
use update-scripts. If your database structure would be changed frequently, it is recommended to use the Code First approach which would have a better workaround for migrations, for details, you could refer to this
video,
and with the
Entity Framework Power Tools, it is easy to create a code first based project form an existing database.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I have to add a tabel a mailalerttext and link that to mailalertypes which is linked to mailalerts. I had some problems with the selectlists, underneath you will find something that will solve that problem I thought, but it may be easier to solve it simpler, but thats apex stuff.
If a default user and default applicationcode would exist, it would be possible to use them in the mailalert table which has following colums:
MAILALERTID,APPLICATIECD,GEBRUIKERID,MAILALERTTYPEID,SENDMAILIND
gebruikerid means userid.
The defaultuser and application code would then be used in the mailalerts table and the column mailalertype would be replaced by mailalerttypecode. These are defined they can't change.
The reason is that if mailalerttext is linked to maillalerts using the mailalertid as the foreign key, then that allows to find the correct text, or select it straightaway by using the mailtextid. All the selects would then be made on the mailalert table.
The numbers used as default are just those that are free, a default user can be filled in like that in te gebruikers table, and a default application code in the apps table.
Only the standard user and the mailalerttypecode are important, the standard applicationcode could be used as an extra check but might not be necessary.
A select could then be made on that applicationcode, that user, that typecode if not found select standarduser and typecode.
Applicationcode is only filled in to stick to the table definitions. To solve a problem with a select list on a page in apex i think this is overkill, as it requires more changes then does the first solution, It means changing tables, dropping columns adding them, changing triggers, changing code in apex pages, a lot of work.
But I was wondering if concerning a database structure, starting from scratch this is something that would be considered good, not so good, bad, something to not do ?
I'm not sure this is the right group, but it isn't strictly apex, and it isn't really sql/plsql either. More database structure.
I'm just beginning, so i'd like to know your opinions and why it would be bad, or possibly good.
Message was edited by: Floris Vermeir
Removed the spelling mistakes.
FlorisI'm still not sure I understand your existing data model properly. The following is my interpretation of what I think your're trying to achieve.
There are four core data tables -
* APPLICATIONS - holds information relating to the programs you administer
* MAIL_TEXT - holds boilerplate text for each type of e-mail (I'm assuming this text can be shared across applications)
* MAIL_TYPES - the different kinds of e-mail alerts which can be sent
* USERS - holds information about the support staff.
I think you need two intersection tables
* APP_MAIL_TYPES - application X uses text Y for e-mails of type Z (candidate key: app id and type id)
* USER_MAIL_REGS - user Joe gets e-mails of type Z from application X (candidate key: app id, type id and user id)
NB If the registration is just done against alert type for all apps, then the USER_MAIL_REGS table shoudl intersect USERS and MAIL_TYPES.
| |
| applications |
| |
|
|
/|\
| | | |
| app_mail_types |>---------------| mail types |
| | | |
\|/ |
| |
| ---------------------------------
| |
| /|\
| | | |
| mail text | | user_mail_regs |
| | | |
\|/
|
|
| |
| users |
| |
---------------------- I think USER_MAIL_REGS corresponds to your "overview" table. (It's a good idea to use names which convey as much info as possible. I acknowledge the difficulty of doing this in another language). Changing the users' registrations would simply be a matter of inserting or deleting rows from the USER_MAIL_REGS.
If this doesn't help you then I'm afraid you will need to give me more info. Specifically, what tables you have, the role they play and the relationships between them.
Cheers, APC -
Can you Please explain about the general database structure(Conventional one).
Thanks
GovindThe best thing is to read oracle documentation. You can download documentation from otn site. Read the documentation and then come to the forum for any kind of help.
http://download-west.oracle.com/docs/cd/B10501_01/index.htm -
Create database structure?_
i want to create a database structure for following :
1 member can have many groups
1 group can have only one group member
1 group can be joined by many members
please help me to structure these in sql?
Ashish Fugat (ashuthinksatgmail.com) SEThree Tables
GroupTable (GroupID, Group Desc,.. any other columns)
MemberTable (memberID,MemberName,...)
GroupMembershiptable (GroupID,MemberID,..)
Each record in GroupMembership denotes association between member on to a group
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Just looking for a bit of advice as to how to best go set up my database structure.
I currently have the following tables:
lodges
LodgeID (PK)
Lodge
etc
scores
ScoreID (PK)
Score
CategoryID (FK)
LodgeID (FK)
etc
categoriesFull
CategoryID (PK)
Category
etc
countries
CountryID (PK)
Country
So any lodge can have multiple scores, in multiple categories.
And I can currently produce a list of lodges for any given category, in a particular country which lists the lodge, the number of votes in the category, and the average score in the for that category, using:
SELECT ScoreID, COUNT(ScoreID) as scoreCount, AVG(Score) as AverageScore, lodges.LodgeID, Lodge, Country, lodges.CountryID, CategoryID FROM lodges INNER JOIN countries ON lodges.CountryID = countries.CountryID INNER JOIN scores ON lodges.LodgeID = scores.LodgeID WHERE lodges.CountryID = 37 AND CategoryID='14' GROUP BY Lodge
So far, so good.
What I'm looking to do now is allow create two new fields, 'rank', and 'finalist'. So the plan is to use an update multiple record on those pages, with a tick box for 'finalist' and a text / integer field for 'rank'.
So someone can view all the lodges in a list and just tick the boxes for the ones they want to be a finalist, enter the rank of 1-10 for the top 10 ,and click update to update all the records.
However, I am not sure which table it would be best to put these in. They're kind of related to the scores, but really apply to the lodges, i.e. any given lodge will be deemed to be a finalist in a particular category, and may be ranked in any category.
At the moment I'm thinking I just need an extra table:
finalists
FinalistID (PK)
Finalist (yes / no)
Rank
LodgeID (FK)
CategoryID (FK)
Hope that makes sense - any advice on this would be appreciated before I start down the wrong path.
Thank you!I currently have the following tables:
lodges
LodgeID (PK)
Lodge etc
scores
ScoreID (PK)
Score
CategoryID (FK)
LodgeID (FK)
(also used to calculate ScoreCount and AverageScore)
categoriesFull
CategoryID (PK)
Category
countries
CountryID (PK)
Country
nominations
NominationID (PK)
LodgeID (FK)
CategoriesFullID (FK) (--to categoriesFull.CategoryID)
SW_finalist
SW_rank
So if I have the following:
lodges
LodgeID, Lodge
798, Borana Lodge
scores
ScoreID, LodgeID, CategoryID, Score
1001, 798, 7, 3 1002, 798, 7, 6 1003, 798, 7, 9
categoriesFull
CategoryID
7
countries
CountryID
3
nominations
NominationID, LodgeID, CategoryID, SW_finalist, SW_rank
1234, 798, 7, Yes, 2
I'd like to be able to output
LodgeID, Lodge, CategoryID, CountryID, ScoreCount, AverageScore, NominationID, SW_finalist, SW_rank
798, Borana Lodge, 7, 3, 3, 6, 1234, Yes, 2
This is what I had before introducing the nominations table:
SELECT ScoreID, COUNT(ScoreID) as scoreCount, AVG(Score) as AverageScore, lodges.LodgeID, Lodge, Country, lodges.CountryID, CategoryID, SW_finalist, SW_rank FROM lodges INNER JOIN countries ON lodges.CountryID = countries.CountryID INNER JOIN nominations ON lodges.LodgeID=nominations.LodgeID INNER JOIN scores ON lodges.LodgeID = scores.LodgeID WHERE lodges.CountryID = 3 AND CategoryID='7' GROUP BY Lodge
Which seemed to work to output:
LodgeID, Lodge, CategoryID, CountryID, ScoreCount, AverageScore 798, Borana Lodge, 7, 3, 3, 6
I just need to tag on those three fields from the nominations table. I presume the join on nominations needs to be also be on categoriesFull.CategoryID, but when I try something like
SELECT ScoreID, COUNT(ScoreID) as scoreCount, AVG(Score) as AverageScore, lodges.LodgeID, Lodge, Country, lodges.CountryID, CategoryID, SW_finalist, SW_rank FROM lodges INNER JOIN countries ON lodges.CountryID = countries.CountryID LEFT OUTER JOIN nominations ON lodges.LodgeID=nominations.LodgeID AND nominations.CategoriesFullID = categoriesFull.CategoryID INNER JOIN scores ON lodges.LodgeID = scores.LodgeID WHERE lodges.CountryID = 3 AND CategoryID='7' GROUP BY Lodge
I get an error about categoriesFull.CategoryID being an unknown column.
I think all the tables have the IDs they need, but any help with the right joins to get it to work would be much appreciated.
Thank you. -
Database Structure For Articles and Categories
Hi - This is a question about database structure - please help. Thanks
For a website with many subjects or themes is it best to use 1 big table to hold or the articles or many small tables to hold articles for different subjects - I will explain what I mean.
Say my website has a 'cooking' section, a 'sports' section and a general 'blog' section.
In each section the articles will be organized into different sub-categories but I can't see a way to do this.
Case 1: All the articles are stored in 1 table. There is a second table which 'assigns' an article to a category (the cateogries themselves are stored in a separate table) and also assigns a sub-category (sub-categories stored in a separate table???) and then what if there needed to be a sub-sub-cateogry?? This just doesn't seem to work well!
Case 2: For each theme there is a separate table - Cooking Table, Sports Table, Blog Table. And for each separate table there is a categories table Cooking-Categories which assigns each cooking article a sub-cateogry (and the sub-categories are stored in a separate table also) - and what if I needed to make a sub-sub-category - then would I need to make another table? This just sounds like a lot of tables even though the end result would probably be easier!
Case 3: All categories are stored in 1 table - as well as all subcateogires of those categories as well as all sub-sub categories, etc (each with an ID)... Each article is 'assigned' a category ID
Please someone show me the light! I am confusing myself.
Thanks
ChrisThere is no 'best' way of creating a database. It's more logic that is involved in examining the parameters that determine what DB will suit your current requirement. These parameters may include but aren't limited to:
Latency
Performance
Sortability
Accessibility
Ease-of-use
Scalability
If I were you, for the said purpose, I'd create with 4 tables as follows:
Categories - this will hold your main categoriesCatID, Name, Order ID
Sub-CategotiesSubCatID, CatID (that the SubCat is linked to), Name, Order ID
Sub-Sub CategoriesSubSubCatID, SubCatID, CatID, Name, Order Id
ArticlesArticleID, SubSubCatID (can hold multiple Sub-Sub-categories) SubCatID (can hold multiple Sub-categories), CatID (can hold multiple Categotries), Name, Order ID, Article Title, Article Description, Article Thumbnail, URL Name, Metatags (for SEO, if you're looking at doing SEO)
The CatID in Article Table will usually be an INT value with limited chars, the SubCatID and SubSubCatID in Article Table will ideally be a varchar value with about 200 chars so you could assign multiple SubCatIDs to one article.
I'd like to add here that this is very much a debatable post. What suits me may not suit you and/ or the others who may read this post! But this way, I can accomplish my programming/ coding task/ CMS integration with ease-of-use.
Good luck with your DB!
~ST -
Database structure documentation tool
I have been asked to include the database structure of our application in the help. It doesn't look as though there is a tool within RH that will do this but I thought it was worth asking in case it's hidden away somewhere.
If not, there are plenty of tools out there that will do the job but are there any that will integrate best with my RH7 chm and webhelp output?
ThanksHi there
No, there really isn't a tool in RoboHelp that will facilitate that. If you try a different tool you might ensure it outputs HTML files. You would then import the HTML files into a RoboHelp project.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
Adobe Certified RoboHelp HTML Training
SorcererStone Blog
RoboHelp eBooks -
Database structure for Oracle to use with SMP 3.0
Hi,
We are planning to use Custom Database for SMP 3.0.
Please help me with the Database Structure I need to create in Oracle DB instance to use with SMP 3.0.
Additional Details:
SMP Version: 3.0
Service Pack Level: SP 03
Server OS: Windows Server 2008 R2
Database Version: Oracle 11.2Will this PDF be useful? at page # 33 as titled Oracle Database Preparation
Regards,
JK -
Database structure syncronization
Hi,
I have a test and production database. I want to syncronize production db as test db. I'm almost new in oracle I have found 3rd party programs doing this. I was wandering ther must be a wat to do it from oracle.
Thanks for help...Thank for answer,
Now the story is like this: We have an on going project. After we finish each module we made some structure and system table data changes in our test db. The problem is customer is using the program when we are developing modules. So they dont want to lose their datas everytime each module is installed.
We must install the all database structure changes and some system table datas from test db to production db.
So we cant use export/import.
A 3rd party program I have found compares 2 db and creates structure update scripts.
Is there a way to do this inside oracle...
Thanks
Maybe you are looking for
-
Regarding iMessage, when i want to send text to a person in my contacts app, i've been getting a message saying the number has not been registered with iMessage. How can one fix this problem? It works on the iPhone.
-
Archiving ERS documents into an external archive
Hello guys, I'm an apprentice that is currently getting worked into SAP. We are currently working on a release Change for SRM. Now my task is to think about ways to realize the archiving of ERS documents (credit items?) from SRM into an external arch
-
Role of Apps DBA in Implementing New Module
Hi Friends, Supposing a company has a running smooth production system of EBS 11i. With modules FINANCIALS(GL,AR,AP,FA,CM) in it. Then the Company want to add another module HR system. Is an Apps DBA needed in the scenario? or only the SysAdmin and F
-
My incoming emails shows all the tracking information ( that was previously hidden) on the screen and the printed emails. If I forward an email the tracking information is included on the forwarded email. If I reply to an email, the information is no
-
I installed version 4.3 on my vista desktop, but it didn't open properly. The window would flash up, then disappear. I downloaded 4.3 from the BB site, installed it, and restarted. I'm getting the same problem whether or not I run it as admin. Anyone