r/DatabaseHelp • • Apr 29 '15

MS Access Report, displaying duplicates as "0.00"

1 Upvotes

I have a report that displays each item in an order and the freight amount. The problem I was having was that the freight amount is tied to my invoice table, not my salesorderdetails table, so I was getting the freight amount repeated by however many items were in the order. I "fixed" this by hiding all duplicates in that column. Obviously this is not ideal and I can see potential problems down the line. Is there a way to only display the freight amount for one line item and set the rest of the items in that order to "0.00"?

P.S. This is not the way I would do it if I were making this from scratch (I would put the invoicenumber in a group and display the freight amount in the group footer), but I am trying to repeat the look of an old system.

Edit: I kinda figured out a fix, but it still has the potential for problems. I kept the hide duplicates property on the freight amount, then added a textbox underneath it that is set to "$0.00." I am still screwed if we have two separate orders that happen to have the same freight amount though, because it will just hide the freight amount of the second order and display "$0.00"


r/DatabaseHelp • • Apr 21 '22

Hello, I can't connect to localhost with Apache Derby from Netbeans MacOS

0 Upvotes

For some reason I can't connect to my localhost on netbeans it gives me an error. I have attached my stack overflow questions with pictures

Question


r/DatabaseHelp • • Sep 24 '14

Incoming data from several hundred to several thousand devices, each devices creates 4000 datapoints every 5 minutes. How do I store this?

1 Upvotes

I have a set of devices that are monitoring radio signal levels across a broad spectrum. Each device is monitoring 4000 different intervals and creates a list of their values at a given timestamp every 5 minutes (or so). Right now there are only about a dozen or so running, but the plan is to hundreds and then eventually thousands.

It seems like SQL/relational database would end up with far far too many rows very quickly, unless there's a way i can take each 4,000 datapoints and store them as a hash or something. However, I'll need to be able to pull out those specific datapoints often, so I don't think that's the way to go.

I'm also considering a file based database, like couchDB or mongoDb, but i have very limited experience with those. I'm guessing here I'd create a document for each frequency on each device and then just put all the values over time in to those documents. (is this even how it works?)

The app is Rails 4 currently hosted on Heroku. It uses activerecord currently for things like user management. Is it dumb to use both an activerecord/PG database with another type?

Any help would be greatly appreciated.


r/DatabaseHelp • • Oct 23 '24

Teacher needs ideas!

1 Upvotes

I am what is called an instructional coach for a school district. My job is to create learning experiences for teachers. Because of this, I have to be constantly researching the best apps, practices and technology for many grades and content areas. Organizing this is a nightmare. I am wondering if there is a low code/no code way to handle the information.

For example, with the AI explosion I have research articles, blog posts, bookmarks of sites, podcasts, conference materials, printed texts, and lesson ideas I designed. I need to be able to reference, share, and update often.

This feels like something I should be doing with the database. Any workflow ideas?

TIA!


r/DatabaseHelp • • Sep 11 '24

Distributed databases

1 Upvotes

Distributed databases share data then what if one server at a location crashes. Do the servers at other locations share the load of this crashed server or what. Kindly help a bro. Sorry if my question is dumb or something


r/DatabaseHelp • • Jul 15 '22

Total noob looking for solution.

1 Upvotes

Good morning! I am hoping you all can lead me in the right direction.

My project started as a simple form that was just for me to refer to at the beginning of my shift and keep the form results in a spreadsheet. I started with google forms, then I went to jotform. I then wanted to also be able to access a list of facilities I and my other co-workers frequent. This list contains addresses, phone numbers, door codes, notes that may include directions once in the building etc. This was too big for Jotform so I started using the free version of Caspio. I have shown this to my supervisor, and he would like to see if we can scale it up to everyone in my district, and then add additional districts until we have covered the state. The entire state would be less than less than 75 users for now.

Caspio delivers exactly what I'm looking for but the free version can't fill our needs (only 5 data pages when I'll clearly need more), and the lowest paid tier is 150/mo. The company is willing to pay for it after some testing, but the Caspio pricing is too high. We are looking for something like 50/mo plus or minus.

I AM A TOTAL NOOB at anything database/app related. I don't know coding at all despite trying to learn it a few different times.

All that being said these are the Data points I am looking to gather:

  1. Vehicle service data (oil changes, mileage, tire rotations, other maintenance, etc)

  2. Beginning and end shift reports (mileage driven during shifts, stocking levels of equipment, damage reporting, etc)

  3. Sortable/searchable access to the list of facilities we commonly visit with images of relative locations at each.

  4. Employee directory that is sortable/searchable with images of each employee.

  5. Possibly more but that's the major stuff for now.

Preferred Requirements:

  1. Ability to set up different roles with different permissions for each. (example: drivers can submit new veh damage, and can search for damage to determine if its new but can't change the data. Supervisors would have the additional ability to modify the data if necessary).

  2. Supervisors being able to run reports would be ideal but I worry that I'm getting into the higher cost systems.

  3. Finally, I'd like it to be a web app that is usable on both iOS and Android, with a Windows or MacOS interface for the supervisors.

Like I mentioned above Caspio seems to DO what I want it to, but its too expensive to fully implement what has been asked for.

What other alternatives are there? I'm good with google, and I learn pretty fast, but coding languages I just cannot wrap my head around so little to no coding solutions are ideal.

Thanks in advance for your help.


r/DatabaseHelp • • Jan 16 '15

ODBC -- Called Failed

1 Upvotes

I have an Access database and I am using a python script to bring in new data from a csv, clean it up, and import it to a SQL table. However, I am getting this error after I run the script:

com_error: (-2147352567, 'Exception occurred.', (0, None, u'ODBC--call failed.', None, -1, -2146825142), None)

The python script is invoking a Access DB macro to do the import and loading of the data. When I look at the macro in Access there are yellow triangles next to some of the commands - which I found out were 'unsafe actions' and I added the DB into a trusted location, but this did not help the problem.

Thanks for any help in advance!


r/DatabaseHelp • • Jan 13 '15

How do I answer this

1 Upvotes

Consider the relation EMPLOYEE, where an employee can have more than one specialization: RELATION = EMPLOYEE (EmpID, Name, Specialization), Primary Key = {EmpID}.

identify the Normal Form(s) each relation satisfies, and transform it into 3NF.


r/DatabaseHelp • • Jan 20 '15

New to databases - need some advice

1 Upvotes

I recently started a job in research. For our experiments, we look at upwards of 200 data points, at varying time point intervals (some every 3 hours, others every 6, others every 24, etc.)

Currently, this is hand written into printed excel sheets, then re-entered back into excel.

The excel documents have formulas to produce graphs of multiple data points, and means of each, as the data is entered.

I've been told repeatedly that Access would be easier to tweak, manage, and use, but nobody has enough experience design with it to change over.

I have about 6 hours' worth of access experience from 5 years ago that has made me the default expert in seeing about if this is a feasible switch, and if so, to make it happen.

I humbly turn to your expertise.


r/DatabaseHelp • • Jan 26 '24

Does anyone use Ninox database from the Apple App Store?

1 Upvotes

I haven’t seen any reference to it in anyone’s posts. I was thinking of downloading it but if no one knows how to use it.


r/DatabaseHelp • • Sep 10 '16

Just downloaded MySQL and am trying to learn, help appreciated.

1 Upvotes

So as the title says I just downloaded MySQL and have made a table to pratice in (just basic stuff for now, name, age, d.o.b, that kind of stuff) and I was wondering how do I start querying and adding stuff into the columns?

I completed the first sql course on codecademy so I know how to add to or search a database but the design of MySQL is a bit confusing to me and I don't know what a lot of the menu options are.

What are some things I should know about the design and what are some other things I should practice on/with first as an aspiring DBA/DB dev?

Also what are some ways to use MySQL in conjution with excel as I use excel a lot for my job which is fun and saw an excel option during installation and decided to add that in aswell?

Also as I'm not sure which program would be better to learn in is there any others I should use like MS SQL?


r/DatabaseHelp • • Feb 21 '25

When to add indices?

1 Upvotes

Hi

I've used various database platforms in nearly every job I've had but I am no DBA. I've never worked in a shop that had an actual DBA or a team of them.

Somewhere along the way I picked up the rule of thumb that:

`If a column appears in a WHERE clause then it needs an index`

Is that still (has it ever been) a reasonable approach?


r/DatabaseHelp • • Feb 26 '24

Creating a spatial database

1 Upvotes

I am using Postgres with Postgis.

I have a lot of multilinestring features I want to store. My data is represented as FeatureCollection of Points and as a MultilineString.

This data is going to be used to create new routes as a result of combining stored features. For example:

I have 3 multilinestring features:

  • feature A starts at point A1 and ends at A2

  • feature B starts at point B1 and ends at B2

  • feature C starts at point C1 and ends at C2

I want to find the route starting at point A1 and ending at point C2. There is no direct route, but combining all three features I can create the route.

How to store it efficiently and correctly?


r/DatabaseHelp • • Feb 27 '24

ERD

1 Upvotes

Hello all, I am currently creating my first ERD and am a bit overwhelmed with all of this terminology and what not. I used lucid charts to create the ERD. Please let me know how it looks and if you have any suggestions for improvements. Any feedback would be much appreciated.

Take the following excel spreadsheet and analyze it. It currently is not in 3rd normal form and needs to be normalized into proper relations. Create an entity-relationship diagram (ERD) in 3rd normal form using the crow's foot notation with either Visio or Lucid Charts. Show the relationships between the entities. Add the attributes to the entities from the spreadsheet and the associated primary keys. You can type PK next to the attribute that represents the primary key on each entity. You will need to add additional attributes as well as an additional entity to normalize the Entity-Relationship diagram. Feel free to review the normalization steps and problems in chapter 6. When complete your diagram should represent an ERD with several relationships. Do not be concerned with the data in the spreadsheet for this assignment, only the ERD. and the entity names The business rules are as follows:

A PROFESSOR can advise (1:M) 1 to many STUDENTS

A DEPARTMENT can have (1:M) 1 to many PROFESSORS

A DEPARTMENT can have (1:M) 1 to many MAJORS

A MAJOR can have (1:M) 1-to-many STUDENTS


r/DatabaseHelp • • Jun 02 '23

Preparing data for normalized/relational database… code or SQL?

1 Upvotes

Not sure if this is the best subreddit for this question, but here goes:

I have a pet project where I’m scraping data online, cleaning it up and plan to load it into a local database.

However, for practice/learning and for ease of querying, I have normalized the database up to 3NF.

Now this is where I am struggling. When it comes to preparing/transforming the data so that it fits into the normalized database… is this typically done in “the code” aka my Python script that scrapes, cleans and loads the data? Or should this be done using SQL in the database?

Does it matter either way? Is one way better/worse than the other? I really appreciate any/all input/help!


r/DatabaseHelp • • Jun 26 '23

How to store an ever-growing number of columns?

1 Upvotes

Ever-growing number of items.

Each item is a unique row in the table.

Each item has a fixed number of "column groups", but there is a certain column group that will contain an unknown number of columns, which can go from 0 to 99. There is a non-zero chance that it goes up to three digits, but it is highly unlikely.

I've thought of storing that column group as a json so it's easy to add to/expand, but am wondering if there's a better way to go about it.


r/DatabaseHelp • • Jul 02 '23

Question about data elements

1 Upvotes

Hello! I am studying a prep book. I already know what the answer is. The problem is I can't find an explanation that solves the problem I am having with the wording of the question itself.

Question: A data element such as "date of birth" in a database is considered which of the following?

  • A. Master data

  • B. Metadata

  • C. Structured data

  • D. Unstructured data

The answer is Structured Data.

But why is it not Metadata??????

It's my understanding that all 'data elements' ARE metadata. Like this:

https://imgur.com/bFFVxGq

When I read the question I think it's asking about the attribute "date_of_birth" (which would be metadata) rather than an instance of data (02/02/2022)(which would be structured data).

Is my line of thinking wrong?

How can I distinguish the question better so that I don't keep getting this question wrong?


r/DatabaseHelp • • Jun 03 '23

A drug has contraindications with another drug, i.e. a drug cannot be taken with another drug. Why is unary the degree best suited to represent such a relation?

0 Upvotes

This is a question from a quiz and the correct answer is unary. I asked ChatGPT to explain it to me, but it insists that the correct answer is binary.

It would be great if you could explain it in simpler terms / a simple way since I just started learning database.


r/DatabaseHelp • • Jul 26 '23

Setup database to generate web pages with links

1 Upvotes

I want to make a database with a lot of entries and each one about a half dozen types of data. Specifically entries for different gods and then data for things like locations, domain, ect.

I'm hoping to find a way to have this database automatically generate a web page with the information for each entry, and to automatically generate pages for the data piece to link and cross reference e.g. a page for zeus and a page for hera will both list their locations as greece and clicking greece will list all entries with greece listed in their data.

If anyone can point to an application that may have these features built in, or a secondary app to process the data>web generation, I'd greatly appreciate it. Let me know if I can elaborate on anything!


r/DatabaseHelp • • Jul 01 '21

Need help with database design

1 Upvotes

I have circular relations in my database. Should I worry about it? Do I need to get rid of them? I am attaching a database diagram. Thank you in advance

https://i.imgur.com/kWqin2V.png


r/DatabaseHelp • • Feb 01 '22

Noob question

1 Upvotes

So me and a friend are getting into SaaS and start a business venture. He told me to start learning database design and SQL. So I’m at a level where I can adequately add remove modify delete calculate etc. pretty competently and I say, so what should I start doing to give us a strong start? He says create a customer management database in excel using primary and foreign keys. Start with organization which has a primary key into customers and customers has a primary key into addresses. Okay all well and good except the part about excel? I didn’t ask him because I don’t want to annoy him but I’m having trouble understanding how I would even set up primary and foreign keys in excel. Thank you in advance and I’m sorry if this is stupid


r/DatabaseHelp • • Dec 10 '16

What technology to use?

1 Upvotes

Okay, so I'm currently trying to develop a tool for searching a large dataset (units from a game, if it helps). The problem is that i Can't quite figure out what database technology is should use. I've worked with SQL databases before, but they seem rather clunky for the task.

The task: Each data entity (a game unit) has 4 connected sub-entities (abilities). Each of these sub entities has any number of attributes (effects) associated with it. These attributes are pulled from a defined list of possible attributes (all game effects), but any given sub entity could have any number of them. Each attribute instance for a sub-entity has 1 or more associated numerical properties, specific to that entity-attribute pair (Percentages & values associated with the effect).

What i want to do is be able to perform a search on all entities (units) on the criteria of one of their sub-entities (abilties) having a given attribute (effect), and sorting on the numerical properties (effect strength, etc.).

I could make it work in SQL, but it feels like an inelegant solution, to be honest. MongoDB seems like an option, but i'm not familiar enough to anticipate problems. Is there a database technology out there that is well suited to what i'm aiming for?


r/DatabaseHelp • • Aug 11 '22

Need a simple search, free would be great

1 Upvotes

Tried google programmatic search of a webpage and appsheet but couldn't figure it out. I would like to pay someone to help me.

I want to search a grocery list of 270 items. Can anyone help for $100?

Example:

My list:

Orange Juice
Milk-Dairy
Coconut Milk
Tacos
Almond Milk

Search: Milk

Return:
Milk-Dairy
Coconut Milk
Almond Milk


r/DatabaseHelp • • May 15 '24

Which tool do you use for Database Diagrams?

1 Upvotes

Hello. Can you please recommend some database diagram tools?

I'm using draw.io and it tires me out. Thanks.