source: other-projects/the-macronizer/trunk/src/scripts-and-sql/INSERT.sql@ 32747

Last change on this file since 32747 was 32742, checked in by ak19, 5 years ago

Western Wilson's commit of Macronizer work so far (processes old log files and puts them into a mysql DB. Make sure you have MySQL installed and running locally with mysql.properties file's db.password set, if not also db.username.)

File size: 698 bytes
Line 
1SET names utf8mb4;
2
3USE Macroniser;
4
5INSERT INTO MarkedWords (marked_word) VALUES
6 ('dōg'),('lāx'),('whāle'),('ōstrich');
7
8INSERT INTO EntryDates (entry_date) VALUES
9 ('2018-01-01'),('2018-02-02'),('2018-03-03'),('2018-04-04');
10
11INSERT INTO EntryTimes (entry_time) VALUES
12 ('09:00:09'),('10:10:10'),('21:11:11'),('23:23:23');
13
14INSERT INTO Occurrences (word_id, time_id, date_id) VALUES
15 (1, 1, 1), (2, 2, 2), (3, 3, 3), (1, 4, 1), (4, 4, 4);
16
17
18Select o.occurrence_id, mw.marked_word, ed.entry_date, et.entry_time
19FROM Occurrences o, MarkedWords mw, EntryDates ed, EntryTimes et
20WHERE o.word_id = mw.word_id
21AND o.date_id = ed.date_id
22AND o.time_id = et.time_id;
Note: See TracBrowser for help on using the repository browser.