Green Building Forum - SQL Tue, 19 Dec 2023 05:13:08 +0000 http://www.greenbuildingforum.co.uk/newforum/ Lussumo Vanilla 1.0.3 SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196919#Comment_196919 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196919#Comment_196919 Tue, 25 Feb 2014 14:05:10 +0000 SteamyTea I was wondering if one of the flavours of SQL could handle it. And if it can how easy is it to use.
All I really need to do is some conditional searching on location and time and maybe a bit of stats work on them, though Excel does this nicely (and charting).
Anyone an expert on SQL?]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196922#Comment_196922 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196922#Comment_196922 Tue, 25 Feb 2014 14:14:18 +0000 jamesingram Posted By: SteamyTeaI have access to the Met Office weather database. Excellent , so tell me, is it ok to strip some chimney flashing this afternoon or will it rain later ? thames valley area.
:bigsmile:]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196924#Comment_196924 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196924#Comment_196924 Tue, 25 Feb 2014 14:22:15 +0000 Paul in Montreal
If you're on a 64-bit platform you're good up to between 2 and 4TB for the database size.

You'll have to design a table structure for the data, but it should be fairly straightforward.

http://dev.mysql.com/doc/refman/5.6/en/table-size-limit.html

http://www.phpmyadmin.net/home_page/index.php is useful to admin a database and run queries.

Paul in Montreal.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196928#Comment_196928 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196928#Comment_196928 Tue, 25 Feb 2014 14:45:45 +0000 SteamyTea
Any particular flavour I should download, was going to go for MySQL.
I can install Linux if that would be easier.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196935#Comment_196935 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196935#Comment_196935 Tue, 25 Feb 2014 15:20:00 +0000 Paul in Montreal
See http://www.mysqlperformanceblog.com/2011/12/08/which-linux-distribution-for-mysql-server/

Paul in Montreal]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196936#Comment_196936 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196936#Comment_196936 Tue, 25 Feb 2014 15:24:04 +0000 SteamyTea As I use NTFS, I should be OK to handle the big files.
Do you know of a good tutorial as I can't find one, the 3 sites I looked at jump straight into the commands. I need to know how to set it up from scratch.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196939#Comment_196939 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196939#Comment_196939 Tue, 25 Feb 2014 15:29:09 +0000 Paul in Montreal
However, take a look at these:

http://www.elated.com/articles/mysql-for-absolute-beginners/

http://www.dreamincode.net/forums/topic/42301-beginners-guide-to-creating-simple-mysql-tables/

Paul in Montreal.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196943#Comment_196943 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196943#Comment_196943 Tue, 25 Feb 2014 15:40:25 +0000 SteamyTea
I am sure that importing data is not that hard, already done it in Access. Actually linked to the *.csv files.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196949#Comment_196949 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196949#Comment_196949 Tue, 25 Feb 2014 15:52:22 +0000 ted
You will probably want to play around with small files first rather than 10GB in one go.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196951#Comment_196951 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196951#Comment_196951 Tue, 25 Feb 2014 15:55:18 +0000 SteamyTea ]]> SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196967#Comment_196967 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196967#Comment_196967 Tue, 25 Feb 2014 16:43:56 +0000 Ed Davies SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196970#Comment_196970 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196970#Comment_196970 Tue, 25 Feb 2014 17:20:21 +0000 SteamyTea SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196974#Comment_196974 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196974#Comment_196974 Tue, 25 Feb 2014 17:52:19 +0000 bot de paille
Maybe you could try ST, would be interesting to see what it shows.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196975#Comment_196975 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=196975#Comment_196975 Tue, 25 Feb 2014 18:14:52 +0000 SteamyTea SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197013#Comment_197013 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197013#Comment_197013 Tue, 25 Feb 2014 22:50:29 +0000 Andrew_Doran
To enable queries to run in a reasonable time frame you may need to create some indexes, which act like an index in the back of a book does for a human. For example, an index on the "date" field sounds like it would be a good candidate given that you mention doing queries by date. I'd try a few queries once up and running and see.

More techy alternatives to MySQL would be PostgreSQL as mentioned (lightweight, more featureful), or IBM DB2 Express-C (not "Express", lots of documentation, tools) which is available free for personal use. SQL query syntax is very similar between all of the products until you start getting into esoteric stuff.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197014#Comment_197014 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197014#Comment_197014 Tue, 25 Feb 2014 23:13:56 +0000 bot de paille Posted By: SteamyTeaThe Rainfall one is pretty 'busy', most of the data is the QA side and once filtered can be ignored. Do you know if it was rain gauge of river gauge data?


No idea, though I had the impression the data was rainfall.

There was a lot of data in the file, every single day for every single month going back to 1850.

I think now they have changed the Met office website so that you need to register to get the data.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197017#Comment_197017 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197017#Comment_197017 Wed, 26 Feb 2014 06:56:25 +0000 SteamyTea Posted By: Andrew_Doransuch as dates for exampleYes, I found this out, the date comes as YYYY-MM-DD hh:mm but Excel prefers (and I) DD/MM/YYYY hh:mm. Though I am not sure how to get around dates before 1900 when using Excel.
I don't mind using Access, just the file size is the problem.
Good tip about skipping data, had not thought of that one.]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197030#Comment_197030 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197030#Comment_197030 Wed, 26 Feb 2014 11:51:06 +0000 bot de paille
http://www.metoffice.gov.uk/climate/uk/stationdata/help_import.html]]>
SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197032#Comment_197032 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197032#Comment_197032 Wed, 26 Feb 2014 12:54:23 +0000 nigelm SQL http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197039#Comment_197039 http://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=11803&Focus=197039#Comment_197039 Wed, 26 Feb 2014 13:39:41 +0000 djh
Oh and you ought to stick with the ISO date format; it will make your life easier. Translate it to an old-school format when printing or whatever if you insist.]]>