25 questions
Advice
0
votes
6
replies
112
views
Database design: to normalise or not?
I’m wondering when designing a database, is really strict normalization better or do you denormalize for performance from the beginning? It’s better because it runs faster right?
0
votes
3
answers
106
views
Query for normalized Google Sheet table
I want to normalize following table in Google Sheet:
Process
Tool A
Tool B
Process 1
Tool 1
Tool 2
Process 2
Tool 1
Process 3
Tool 2
Tool 3
into the following 1NF table:
Process
Tool A
Tool B
Process ...
1
vote
0
answers
49
views
split multi-valued cell (with delimeter) to multiple rows with copied data [duplicate]
I have an Excel table (export from MS MDE, to be precise) of vulnerabilities along with the machines on which they occur. One vulnerability can occur on hundreds of devices and I would like to ...
0
votes
0
answers
49
views
Parse, transpose and insert a new row [duplicate]
I have a large spreadsheet and need to parse, transpose and insert the parsed values into a new row.
My sample data:
What I need to do is format the sheet to read as below:
I tried
TOCOL(A2:(...
0
votes
1
answer
55
views
xplode data in google sheet [duplicate]
I got a table like this
Category is a multiple selection, the count simply is the number of occurrences. I want to tranform to this table
.
In python, i can use xplode function. But u want using ...
1
vote
2
answers
841
views
How do you deal with multiple values in a single cell separated by comma?
Student
Fruits
Foo
Apple,Banana
Bar
Orange
Baz
Lemon,Orange
How do I quantify/analyze the column Fruits with multiple values in a single cell separated by comma?
I created multiple helper columns, ...
-2
votes
1
answer
171
views
Database normalization for 1 to many, many to many, many to 1
For both scenarios I'm using the same Color [lookup] table but storing the data differently. Here's the spec for the records to store:
Car with Id 1 is available in 3 colors: Blue, Red, White.
Car ...
0
votes
2
answers
153
views
How to normalize table1 in postgres sql?
I need to normalize (in a technical way) table1 by splitting the column "error occured at" so that it was like in table2.
Is there is any DML function that will help me solve this? So that ...
-2
votes
1
answer
283
views
PHP/MySQL: Multiple comma separated values per table field vs... WHAT?
Storing multiple comma-separated values in a single table field is a notoriously bad design as it impacts performance and breaks relationships. Except I don't know how to change things.
I have a ...
1
vote
2
answers
107
views
How to create new rows of data based on a single cell within an arrayforumla-wrapped-query call in google sheets?s?
I currently have a dataset that is formatted:
Company
Clients
Date
Type
Amt
comp1
client1, client2, client3
01/02/22
visa
$1500
comp2
client1
amex
$600
comp3
client3, client4, client5, client1
02/23/...
-1
votes
1
answer
626
views
convert data to 1NF
I have a dataset like this
import pandas as pd
df = pd.read_csv("music.csv")
df
name
date
singer
language
phase
1
Yes or No
02.01.20
Benjamin Smith
en
1
2
Parabens
01.06.21
Rafael Galvao;...
1
vote
2
answers
392
views
How to create a formula that will repeat a range by splitting one column and joining with the other column?
I have 2 columns, first name and surname. I want to split a cell that contains multiple values and then combine it with the cell on the right. I have no idea how to do this using a formula, please ...
-1
votes
3
answers
601
views
Make Into First Normal Form [closed]
Given the following relation:
school =(teacherID, list of kids)
I need to convert this to First Normal Form. My thought was that I have one table for teacherID then have a kids table with each kid ...
89
votes
8
answers
119k
views
When can I save JSON or XML data in an SQL table?
When using SQL, like MySQL, or any relational DB, saving the data in regular columns is better for indexing and other purposes.
But loading and saving JSON data is sometimes a lot more simple and ...
0
votes
1
answer
825
views
Determining if a relation is 1NF with no data
I have a relation
CAR_SALE(Car#, Date_sold, Salesperson#, Commission%, Discount_amt)
Primary Key: {Car#, Salesperson#}
Additional Dependencies: Date_sold -> Discount_amt
...