Good afternoon everybody,
I hope you are all doing well.
I have an excel file with two tabs:
Data
Workings
On the data one, I have tables from a website https://www.soccerstats.com/team.asp?league=spain&stats=10-real-madrid where you can see the teams stats.
The problem is that for, only a few teams, some of the tables are not working. For instance, for Real Madrid, the website table named “Scoring Patterns” works properly when I export (linked the data) to Excel by using a query. However, for other teams like Real Sociedad when going to Data on the ribbon, then get & transform from web and then pasting the URL https://www.soccerstats.com/team.asp?league=spain&stats=14-real-sociedad when I find the table “Scoring Patterns” it has another name. When I select the table that have another name but contains the same data as for the “Scoring Patterns” for Real Madrid, it gives me an error. It says that it couldn´t find the Goal/No Goal column. Why is it happening?
Thanks
Related
On our Wordpress site, we use a plugin called s2member and it stores the levels (roles) of our clients as well as the times they were assigned a specific level in our database. I would like to create a table that shows when a user was assigned a specific level. I'm having a challenge getting the data I need because of the way the data is stored in the field. It stores all of the levels along with the associated dates and times when a user's level was changed in one field. In addition, it stores all of the times as Unix timestamps. Here's an example of a typical field associated with a client:
a:20:{s:15:"1562695223.0001";s:6:"level0";s:15:"1562695223.0002";s:6:"level1";s:15:"1562695223.0003";s:6:"level2";s:15:"1562695223.0004";s:6:"level3";s:15:"1577906312.0001";s:11:"ccap_prepay";s:15:"1596575898.0001";s:12:"-ccap_prepay";s:15:"1596575898.0002";s:13:"ccap_graduate";s:15:"1596575898.0003";s:11:"ccap_prepay";s:15:"1596575898.0004";s:7:"-level3";s:15:"1597196952.0001";s:14:"-ccap_graduate";s:15:"1597196952.0002";s:12:"-ccap_prepay";s:15:"1597196952.0003";s:13:"ccap_graduate";s:15:"1597196952.0004";s:11:"ccap_prepay";s:15:"1598382433.0001";s:14:"-ccap_graduate";s:15:"1598382433.0002";s:12:"-ccap_prepay";s:15:"1598382433.0003";s:11:"ccap_prepay";s:15:"1598382433.0004";s:6:"level3";s:15:"1605290551.0001";s:12:"-ccap_prepay";s:15:"1605290551.0002";s:11:"ccap_prepay";s:15:"1605290551.0003";s:13:"ccap_graduate";}
There are four columns in this table: umeta_id; user_id; meta_key; meta_value. The data above is stored in the meta_value column.
You'll notice that it also has multiple ccap_* entries. CCAP stands for custom capapability and I would like to be able to chart those assignments and associated times as well.
Do you have any idea how I can accomplish this?
Thank you for any help you can give.
I talked to an engineer about this and he told me that I would need to learn Python and I believe he said I would need to learn how to also use Pandas and Numpy to extract the data I need but he wasn't exactly sure. I started taking a data analyst course on Coursera but I still haven't learned what I need to learn and it's already been several months. It would be great if someone could provide a solution that I could implement more quickly and use on an ongoing basis.
If there's a way to accomplish my goal by exporting this table to a CSV file and using Microsoft Excel or Google Sheets, I'm open to that too.
Here's an image of the table (if it helps):
Database table
Here's an example of my desired output:
Desired output
In my desired output, I used Excel and created a column that converts the Unix timestamp to a short date and another column where I used a nested IF statement to convert the CCAP or level to its meaning that we understand internally.
I am building a web application that will run off of data that is produced for the public by a governmental agency. The issue is that the csv file that houses the data I need is a 2,000 column beast of a file. The file is what it is, I need to find the best way to take it and modify it. I know I need to break this data up into much smaller tables within MySQL, but I'm struggling with the best way to do this. I need to make this as easy as possible to replicate for next year when the data file is produced again (and every year after). I've searched for programs to help, and everything I've seen deals with a huge amount of rows, not columns. Has anyone else dealt with this problem before? Any ideas? I've spent the last week color coding columns in excel and moving data to new tabs, but this is time consuming, will be super difficult to replicate and I worry it leaves me open for copy and paste errors. I'm at a complete loss here!
Thank you in advance!
I suggest that you use functions in excel to give every column an automatic name "column1", "column2", "column3", etc.
After that import the entire csv file into MySQL.
Decide on which columns you want to group together into separate tables. This is the longest step and no program can help you manage this part.
Query your massive SQL table to get just the columns you want for each group. Export these queries to CSV and then import them as new tables in your database.
At the end, if you want, query all the columns you didn't put into separate groups. Make this a new table in the database and delete the original table to save on storage space.
Does this government csv file get updated and republished in the same format every time? If so you'll need to write a script to do all of the above automatically.
Hi guys I'm currently trying to create a database for a business which works with unit sensor data. A company has multiple monitoring units which has multiple sensors, each sensor spits out CSV files every hour or so.
Im trying to relate this data to a company, so clients can view their sensors when they enter the site. Im currently just importing csv scripts into custom tables (by custom i mean just custom headers), obviously the table can only be as big as the CSV table (needs to be the same amount of rows). But the issue i am having is trying to link the csv data to the company? The CSV's don't have id numbers so i cant use keys to link tables.
Here is my Schema: https://puu.sh/wRnPs/eff7a60b5b.png
Here is a CSV example: https://puu.sh/wRoPA/09b3146d40.png
Any ideas would be greatly appreciated i have done a lot of research and can't seem to find a solution!
Before I look any further on the internet to try and solve this, is actually possible to do this:
There are two list-boxes with data been displayed. The first list-box shows results from a SQL query. i.e. bus, cab, plane, lorry. The user can select certain data and then add it to listbox2. listbox2 could have the following data: bus, cab, plane in it. what I am trying to do is this:
None of the data has been selected, when an export button is clicked, it loops through listbox2, gets the data from the list-box (Bus, Cab, Plane) and stores it in an array, what I want to do next, is query it in a SQL statement to get the results back to be exported to excel. I can do the SQL part and exporting.
I thought it I would be able to do the code for this, but the amount of different loops and other methods I try it complains. I can get it to count how many rows there are in listbox2, but not pull the data from it.
Looking on the internet the majority of information I seem to find is when it requires data to be selected first - and very little that is based on vba in access, as VBA/VBA Excel is different from the VBA in access so I have found (Urgh)
I'm not expecting someone to give me a coded solution to this, I just want to know before I waste any more time, is this actually possible to achieve?
Good Morning,
I'm fairly new to Access VBA and I've been trying to find a solution to a problem:
I've created a form from which users upload an excel file to a database. File open prompt appears, user selects the file, temp table gets created and data gets pulled to this table. From there a set of macros populate the required fields and push the complete set to a perm table and then temp table gets deleted. Now I would like to take it a step further and try and count how many times a value has been uploaded to the table...
Lets say that the value appears in the table twice already, then if user tries to upload the same value for the third time it will be uploaded to a different table. Bear in mind that the file which users will upload may contain values that will be uploaded for the first, second, third, etc. time.
Do you have any suggestions or solutions to my problem? Is it even possible? If yes then how can I make Access to distinguish which records are being uploaded for the first, second, third, etc. time and follow appropriate paths?
I've been scouting the internet for several days now, but no one seems to have such issue.
Thank you in advance for replies.
I'm not sure I follow. You are essentially trying to prevent inserting duplicate data to a production table and if a duplicate is encountered at the record to a different table?