r/databases • • May 02 '19

Help developing a potential entity model

1 Upvotes

A concert season organiser schedules a number of musical performances, on various dates at various venues. Each concert is given by a particular orchestra and conductor, but not always the same ones throughout the season. A number of different works may be performed in the programme at one concert, each having a specific title, catalogue number and composer, and possibly requiring one or more soloists to play. The organiser has to book each venue through its manager, arrange the services of any soloists needed, and pay performance fees to the conductor and any soloists involved


r/databases • • Apr 19 '19

Multiple reports but no single source of truth

1 Upvotes

Our county political party websit has 4 google sheets for members of the State Central Committee, County Central Committee, Precinct Officers, and County Officers. Many of these people are on all 4. I could kludge something in sheets using Vlookup to get all the data from one source but there has to be a better way than that. Suggestions?


r/databases • • Feb 19 '19

Thinking about using MySql and Oracle for a senior project in college but not sure if this idea would make for a good project.

1 Upvotes

Currently I am developing a capstone project for college as an IT major. The only real guild lines of the project are that I need to pick an area I have previous knowledge of and use it in context of something new I have never worked with before. So in the past I have spent multiple classes working with relationship databases, specifically MySQL in the MySQL workbench. I have zero experience in anything Oracle.

So my project idea is to create an database in MySQL workbench and then transition it to an Oracle database and then back again. Is project a good idea? I'll be honest I am not even sure if this is possible. Thank you for any responses!


r/databases • • Feb 11 '19

Handling all of the excel information for a startup.

1 Upvotes

Hey guys & gals, Im on the team of a new start up and I really need some help determining which database software i could use. We get a bunch of sales reports and I need to look up certain events from these reports but its getting hard to see all the information at once. We use excel often but its getting messy. I dont have alot of experience coding so I was hoping someone could recommend some database software (preferably free lol) that allows me to import spreadsheets and compile all the information associated certain events together so that I can see what all the available information says about the event im looking up. My goal is to basically just type in the event in a search bar of some sort and have all and only the occurrences of the event come up and show its information. Would really appreciate any help I can find thanks.


r/databases • • Feb 11 '19

Adjacency List vs Nested Set Model in MySQL

1 Upvotes

Hi guys,

I am currently trying to find out what’s the best relational database structure is for modeling a filesystem. I have experience implementing a Nested Model set before since I thought that was the best way to do it.

However, after reading this SO question, it seems to imply that Adjacency List model is now preferred. I am skeptical about this claim so I would like to know what you guys think.

Btw, I am stuck with MySQL for work.


r/databases • • Jan 25 '19

The AtomSpace: a Typed Graphical Distributed in-RAM Knowledgebase

Thumbnail
blog.opencog.org
1 Upvotes

r/databases • • Jan 16 '19

Easier web accessible systems to view an MS SQL table?

1 Upvotes

I'm looking for a relatively easy and inexpensive solution to allow people to view SQL data via a web interface. I could use Access instead but it tends to break so easily and requires a PC.

The project is a simple 'bin' lookup for inventory because our warehouse tool doesn't do a "what's in the bin" lookup. I intend to copy important data to a fresh database not sharing a password with the SAP database also stored in SQL, so that any device on our wifi can do a simple lookup. Any ideas?


r/databases • • Dec 16 '18

Need help making sense of gzip files.

1 Upvotes

https://portal.inshosteddata.com/docs

I'm getting gz files and reading them in as .csv into Python. But the columns and rows are just keys (100027373628373). How do I get the actual data from these files?


r/databases • • Dec 04 '18

Is it possible to get a database of historical data of business name at each address?

1 Upvotes

Example, the database would have a range to/from so I could look up the address and date (From <= Date <= To) and it will give the name of the business that was at that address at that time.

Nationwide, going back at least 10 years, preferably 20. Even if it's a paid database, please let me know.


r/databases • • Dec 01 '18

Looking for a french words database

1 Upvotes

I'd like to have every word with their categories (adjective, noun, etc).

Also maybe phonetics.

Anybody knows where to start my research?


r/databases • • Dec 01 '18

Which type of database is right for me

1 Upvotes

I am looking to store a few million rows. Each row will be uniquely keyed by time. As for columns, there will be around 300 of them, however, that count may change along the way. The end goal is to run correlations between all of the columns. I am not certain every column will have data for every insert. Instead of going the RDBMS route was considering NOSQL, of which I have no experience with. I think what I need is a key value pair, were the pair is an array of data? However, maybe a column based database like cassandra is the way to go? Thoughts


r/databases • • Nov 24 '18

Synchronizing a table between two databases, separated by a firewall

1 Upvotes

First, here's a simple picture.

So I have database A on Server A which can access database B. However, due to our firewall rules database B cannot access database A.

There is one table on both DBs that should be more or less in sync on both servers, not many rows, not business critical. Data should be correct but it can wait.

A to B is of course not a problem, but I don't know how to do B to A. Both servers have access to a common file share, so I was thinking about writing a PowerShell script on both sides to export and import the data. Select the stuff into a csv, and update/insert it on the other server. It's only one table (and a second one for my logging.)

Any better ideas?


r/databases • • Nov 23 '18

Happy Fibonacci day, here is how to generate a Fibonacci sequence in SQL

Thumbnail
sqlservercode.blogspot.com
1 Upvotes

r/databases • • Nov 15 '18

A better way to handle big amounts of data in a relational database that is already horizontally partitioned using shards .

1 Upvotes

Is there a better way or some strategy that can be combined with using shards?


r/databases • • Nov 11 '18

How can I best represent this tree in a Postgres database?

1 Upvotes

I'm storing a tree of small strings in Postgres. It looks like this:

"Languages"
    |
    |--- "French"
            |
            |--- "Verbs"
            |--- "Pronunciation"
    |--- "German"
            |
            |--- "Pronunciation"
            |--- "Cuisine"
"Music"
   |
   |--- "Guitar"
   |--- "Voice"
           |
           |--- "Breathing Exercises"
"Reminders"
"Vehicles"
   |
   |--- "Car"
          |
          |--- "Road Rules"
                    |
                    |--- "Fines"
                    |--- "Highways"
   |--- "Bike"
           |
           |--- "Repair Guide"

You get the idea. These are tag names; there will be another table full of flashcards/notes each of which is associated with one or more of these tags. One note might be tagged Languages.French.Verbs and Reminders for example, or a note about Queen Elizabeth might be tagged People.Historical and Countries.UK.History (where a . indicates a level in the hierarchy). In my application I want to browse the list of tags and their associated notes like a filesystem (tags as folders, notes as files within them) and see the same note appearing at multiple points because of these multiple tags.

I've been researching Postgres, which I'm not very familiar with (my classes used SQLite), and I can imagine two ways of accomplishing this -- but I'm not sure which is ideal/correct or what the tradeoffs are. Would love some advice about that.

When the user searches for some notes (either by tag name, note title, or text content) I want to show them a list of the results, and the full hierarchy of the tags associated with that note. As in, they search "Elizabeth", and note #1 is tagged People.Historical and Countries.UK.History. If I get the search results by searching in their notes table, and each note stores one parent ID, then how do I efficiently build up the full tag names?

Should I store a parent ID with each tag and do recursive queries? Would that necessarily be a separate recursive query for each leaf-node tag I'm looking up (as in one query for History and its parents and one for Historical)?

Would it be better if I stored two arrays with each tag, one with children and one with parents? That would avoid needing to do complex lookups each time, but adding and removing children would become more complex. If I expect to do 100 lookups for every add or remove, does that make sense, or is this a stupid idea?


r/databases • • Sep 16 '18

MySQL charset and collation recommendations | Cron-Dev

Thumbnail
crondev.blog
1 Upvotes

r/databases • • Aug 26 '18

[questions] Entity Relationship Diagram

Thumbnail
self.learnprogramming
1 Upvotes

r/databases • • Jul 09 '18

Looking to build web user tracking database

1 Upvotes

Looking to build a database that assigns a random ID to each web user and keeps track their behavior on my site. Looking for some good starting off points as I have little experience working with servers/databases. Thanks!


r/databases • • Jun 22 '18

Database Cartoon | Savage Chickens - Cartoons on Sticky Notes by Doug Savage

Thumbnail savagechickens.com
1 Upvotes

r/databases • • Jun 19 '18

Noora makes database projects easy transferable between developers

1 Upvotes

noora is an opensource database deployment tool, that focuses on making database projects easy transferable between developers by implementing a pattern. No additional scripting in batch or shell is required. By simply put your sql in the obvious object folder noora knows how to deploy your sql scripts.

https://github.com/janripke/noora


r/databases • • Jun 11 '18

If You're into Leads Generation Service, Find Out Ways Of Nurturing the Leads

Thumbnail
salesdatahub.com
1 Upvotes

r/databases • • May 18 '18

Assignment Question Help!

1 Upvotes

Hi All

I have the following question on an assignment and was hoping to get some help. I have answered this the best I can but want was hoping to get answers from your side to compare to what I ended up with.

Thank you,

A database is needed to keep data for the booking systems of the ABC Clinic. Consider the below database schema of one relation including attributes for doctors (doc-), patients (pat-) and appointments (app-).

ABC(doc-firstname, doc-surname, doc-gender, doc-rego, doc-qualification, pat-ID, pat-givename, pat-surname, pat-gender, pat-DOB, pat-addr, pat-phone, app-ID, app-datetime, app-type)

  • A doctor has a unique registration number (doc-rego) and is also described by name, gender and qualification.

  • A patient is identified by a unique patient ID (pat-ID) and has other information.

  • Each appointment by a patient with a doctor is assigned a unique appointment ID (app-ID). An appointment can be of the long or short type.

Answer questions:

  1. \Give likely FDs.

  2. \Give the candidate keys for the ABC relation. In your working, show how you develop the closure for each candidate key you have discovered..

  3. \Is the relation ABC in BCNF or 3NF? Explain your answer.


r/databases • • Apr 29 '18

New release of FileMaker Pro expected May 8th

1 Upvotes

r/databases • • Apr 24 '18

Creating SQL queries that could be executed by a specific algorithm

1 Upvotes

Hi!

So I have an exercise where I'm supposed to write SQL queries for algorithms A1-A10 from Database System Concepts by Silberschatz. So first algorithm A1 is linear search so I could write it as:

select * from department where building = "Taylor" 

Second A2 is selection using primary index and equality on key. Couldn't the former query work for that as well if building was a key? And if it wasn't a key it would work for A3 which is for primary index but equality on non-key value? How do I in MySQL check if these queries satisfy the conditions I'm trying to meet?


r/databases • • Apr 17 '18

Q: How do i break this down into xNF?

1 Upvotes

I've been having trouble coming up with a good relational model for this data. I feel like I'm either over thinking it, or getting lost drawing/thinking it through. The largest issue i'm encountering is how to relate the data to the dates so i can filter through them. I'm open to suggestions and direction. I appreciate the help in advance.

Imgur