text
stringlengths
6
9.38M
-- migrate:up create schema if not exists stripe; -- migrate:down drop schema if exists stripe;
-- Query all columns for a city in CITY with the ID 1661. -- The CITY table is described as follows: -- from: https://www.hackerrank.com/challenges/select-by-id/problem?h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen SELECT * FROM CITY WHERE ID ='1661';
CREATE VIEW dbo.menu_prop_attributes_v AS SELECT dbo.attributes.*, dbo.menu_prop_y_only_v.is_show_attributes FROM dbo.menu_prop_y_only_v INNER JOIN dbo.attributes ON dbo.menu_prop_y_only_v.property_id = dbo.attributes.property_id WHERE (dbo.menu_prop_y_only_v.is_show_attributes = 'Y')
INSERT INTO PRODUCT (id, name, unit_Price) VALUES (1, 'shirt', 100), (2, 'pant', 200), (3, 'socks', 100), (4, 'lipstick', 500); INSERT INTO CUSTOMER (id, name, email) VALUES (1, 'tom', 'abc@gmail.com'), (2, 'russ', 'xyz@yahoo.com'), (3, 'joe', 'joe@gmail.com'); INSERT INTO ORDERS (id, amount, customer_id) VALUES (1, 1500, 3), (2, 400, 2), (3, 100, 1); INSERT INTO ORDER_DETAILS (id, price,quantity, order_id,product_id) VALUES (1, 500, 3, 1 , 4), (2, 200, 1,2,2), (3, 100, 2,2,3), (4,100,1,3,1)
USE `bank_db`; INSERT INTO client(id, firstName, lastName, passport, version) VALUES(1, 'Ivan', 'Ivanov', 'ЕР123456', 1); INSERT INTO client(id, firstName, lastName, passport, version) VALUES(2, 'Petr', 'Petrov', 'ЕР121212', 1); INSERT INTO account(id, client_id, title, amount, version) VALUES(1, 1, 'student card', 1000, 1); INSERT INTO account(id, client_id, title, amount, version) VALUES(2, 1, 'credit card', 0, 1); INSERT INTO account(id, client_id, title, amount, version) VALUES(3, 2, 'student card', 0, 1); INSERT INTO account(id, client_id, title, amount, version) VALUES(4, 2, 'credit card', 0, 1);
CREATE TABLE Awards ( awardID INT IDENTITY (1,1) NOT NULL, awardType NVARCHAR(100) NOT NULL, awardLocation NVARCHAR (255), volunteerIDFK INT, jobIDFK INT, educationIDFK INT, proDevIDFK INT )
-- CREATE USER 'project'@'localhost' IDENTIFIED BY 'tiger'; -- GRANT ALL ON project.* TO 'project'@'localhost'; CREATE DATABASE barker; USE barker; create table if not exists User( userid int auto_increment, user_full_name varchar(30) not null, user_handle varchar(30) not null unique, password varchar(30) not null, email varchar (50) not null, followers int, constraint User_userid_pk primary key(userid) ); create table if not exists Tweets( tweetid int auto_increment, tweet varchar(140) not null, tweet_time dateTime not null, tweet_likes int, tweet_retweets int, userid int not null, constraint Tweets_tweetid_pk primary key(tweetid), constraint User_userid_fk foreign key(userid) references User(userid) ); create table if not exists Replies( replyid int auto_increment, reply varchar(140) not null, reply_time dateTime not null, reply_likes int, reply_retweets int, tweetid int not null, userid int not null, constraint Replies_replyid_pk primary key(replyid), constraint Tweets_tweetid_fk foreign key(tweetid) references Tweets(tweetid) on delete cascade on update cascade ); create table if not exists Follows( followid int auto_increment, userid_follows int not null, userid_followed int not null, constraint Follows_followid_pk primary key(followid), constraint User_userid_follows_fk foreign key(userid_follows) references User(userid), constraint User_userid_followed_fk foreign key(userid_followed) references User(userid) ); create table if not exists Likes( likeid int auto_increment, like_userid int not null, liked_tweetid int not null, constraint Likes_likeid_pk primary key(likeid), constraint User_like_userid_fk foreign key(like_userid) references User(userid), constraint Tweets_liked_tweetid_fk foreign key(liked_tweetid) references Tweets(tweetid) on delete cascade on update cascade ); insert into User (userid, user_full_name, user_handle, password, email, followers) values (0, 'Rain Tomista', '@admin', 'admin', 'admin@up.edu.ph', 4); insert into User (userid, user_full_name, user_handle, password, email, followers) values (1, 'Julia Fields', '@jfields0', 'yQ0QADp', 'jfields0@goo.gl', 4); insert into User (userid, user_full_name, user_handle, password, email, followers) values (2, 'Martha Burke', '@mburke1', 'CLORV15d8g', 'mburke1@ucoz.ru', 8); insert into User (userid, user_full_name, user_handle, password, email, followers) values (3, 'Jesse Mills', '@jmills2', 'YTZxaYs', 'jmills2@walmart.com', 7); insert into User (userid, user_full_name, user_handle, password, email, followers) values (4, 'Bruce Bradley', '@bbradley3', '1P2ZXlX', 'bbradley3@shareasale.com', 2); insert into User (userid, user_full_name, user_handle, password, email, followers) values (5, 'Frances Kelley', '@fkelley4', 'SIJ0igj4n', 'fkelley4@merriam-webster.com', 6); insert into User (userid, user_full_name, user_handle, password, email, followers) values (6, 'Kenneth Franklin', '@kfranklin5', 'tvXG8aBVs', 'kfranklin5@mysql.com', 6); insert into User (userid, user_full_name, user_handle, password, email, followers) values (7, 'Louis Ferguson', '@lferguson6', 'QODjTX', 'lferguson6@wordpress.com', 9); insert into User (userid, user_full_name, user_handle, password, email, followers) values (8, 'Rachel Cook', '@rcook7', 'ZMuTcs', 'rcook7@forbes.com', 2); insert into User (userid, user_full_name, user_handle, password, email, followers) values (9, 'Lois Jacobs', '@ljacobs8', '3SY4i1KofoLX', 'ljacobs8@shareasale.com', 7); insert into User (userid, user_full_name, user_handle, password, email, followers) values (10, 'Eugene Hayes', '@ehayes9', 'N5a1MO7ZLO', 'ehayes9@photobucket.com', 8); insert into User (userid, user_full_name, user_handle, password, email, followers) values (11, 'David Adams', '@dadamsa', 'cfkKtyK', 'dadamsa@ed.gov', 7); insert into User (userid, user_full_name, user_handle, password, email, followers) values (12, 'Carl Palmer', '@cpalmerb', 'LT1HWA4bDVD', 'cpalmerb@posterous.com', 10); insert into User (userid, user_full_name, user_handle, password, email, followers) values (13, 'Virginia Holmes', '@vholmesc', 'NbE1Iw', 'vholmesc@google.nl', 8); insert into User (userid, user_full_name, user_handle, password, email, followers) values (14, 'Philip Medina', '@pmedinad', 'flM4byP1y', 'pmedinad@diigo.com', 3); insert into User (userid, user_full_name, user_handle, password, email, followers) values (15, 'Stephen Jenkins', '@sjenkinse', 'Pyv3j69V', 'sjenkinse@clickbank.net', 7); insert into User (userid, user_full_name, user_handle, password, email, followers) values (30, 'Adam Andrews', '@aandrewsf', 'lw3SaDOV', 'aandrewsf@cnet.com', 4); insert into User (userid, user_full_name, user_handle, password, email, followers) values (17, 'Joseph Morris', '@jmorrisg', 'lalyMZ', 'jmorrisg@mail.ru', 7); insert into User (userid, user_full_name, user_handle, password, email, followers) values (18, 'Kathleen Peters', '@kpetersh', 'aBrZpYkx2g', 'kpetersh@infoseek.co.jp', 2); insert into User (userid, user_full_name, user_handle, password, email, followers) values (19, 'Ronald Banks', '@rbanksi', 'uDMkm2', 'rbanksi@dagondesign.com', 2); insert into User (userid, user_full_name, user_handle, password, email, followers) values (20, 'Elizabeth Rice', '@ericej', 'id6z2gzY1mf', 'ericej@nih.gov', 3); insert into User (userid, user_full_name, user_handle, password, email, followers) values (21, 'Antonio Ford', '@afordk', 'FF0B4AI', 'afordk@engadget.com', 3); insert into User (userid, user_full_name, user_handle, password, email, followers) values (22, 'Terry Hunter', '@thunterl', 'SS1L5IzuL', 'thunterl@princeton.edu', 3); insert into User (userid, user_full_name, user_handle, password, email, followers) values (23, 'Susan Berry', '@sberrym', 'Ek0sMn2dAd', 'sberrym@wikipedia.org', 4); insert into User (userid, user_full_name, user_handle, password, email, followers) values (24, 'Jesse Miller', '@jmillern', 'JsjMtCF0E', 'jmillern@redcross.org', 10); insert into User (userid, user_full_name, user_handle, password, email, followers) values (25, 'Joshua Lawrence', '@jlawrenceo', '8RUjuYqxD0SO', 'jlawrenceo@photobucket.com', 10); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (1, 'In hac habitasse platea dictumst. Etiam faucibus cursus urna. Ut tellus.', '2030-08-06', 191, 104, 7); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (2, 'Curabitur at ipsum ac tellus semper interdum. Mauris ullamcorper purus sit amet nulla. Quisque arcu libero, rutrum ac, lobortis vel, dapibus at, diam.', '2030-04-05', 485, 83, 24); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (3, 'Phasellus sit amet erat. Nulla tempus. Vivamus in felis eu sapien cursus vestibulum.', '2015-12-09', 1, 38, 6); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (4, 'Cras mi pede, malesuada in, imperdiet et, commodo vulputate, justo. In blandit ultrices enim. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.', '2015-12-08', 308, 114, 17); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (5, 'Phasellus sit amet erat. Nulla tempus. Vivamus in felis eu sapien cursus vestibulum.', '2030-11-25', 304, 235, 17); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (6, 'Cras mi pede, malesuada in, imperdiet et, commodo vulputate, justo. In blandit ultrices enim. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.', '2030-08-04', 131, 41, 19); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (7, 'Duis bibendum. Morbi non quam nec dui luctus rutrum. Nulla tellus.', '2030-10-23', 490, 128, 17); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (8, 'Suspendisse potenti. In eleifend quam a odio. In hac habitasse platea dictumst.', '2030-10-24', 60, 443, 25); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (9, 'Sed sagittis. Nam congue, risus semper porta volutpat, quam pede lobortis ligula, sit amet eleifend pede libero quis orci. Nullam molestie nibh in lectus.', '2030-10-17', 39, 80, 2); insert into Tweets (tweetid, tweet, tweet_time, tweet_likes, tweet_retweets, userid) values (10, 'Aenean fermentum. Donec ut mauris eget massa tempor convallis. Nulla neque libero, convallis eget, eleifend luctus, ultricies eu, nibh.', '2030-03-11', 469, 5, 5); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (1, 'Donec diam neque, vestibulum eget, vulputate ut, ultrices vel, augue. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec pharetra, magna vestibulum aliquet ultrices, erat tortor sollicitudin mi, sit amet lobortis sapien sapien non mi. Integer ac neque.', '2030-03-30', 6, 224, 5, 30); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (2, 'Curabitur in libero ut massa volutpat convallis. Morbi odio odio, elementum eu, interdum eu, tincidunt in, leo. Maecenas pulvinar lobortis est.', '2030-07-24', 304, 153, 2, 26); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (3, 'In congue. Etiam justo. Etiam pretium iaculis justo.', '2015-12-20', 423, 208, 6, 3); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (4, 'Integer ac leo. Pellentesque ultrices mattis odio. Donec vitae nisi.', '2030-06-07', 171, 437, 2, 34); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (5, 'Aenean fermentum. Donec ut mauris eget massa tempor convallis. Nulla neque libero, convallis eget, eleifend luctus, ultricies eu, nibh.', '2030-06-28', 442, 13, 8, 2); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (6, 'Curabitur in libero ut massa volutpat convallis. Morbi odio odio, elementum eu, interdum eu, tincidunt in, leo. Maecenas pulvinar lobortis est.', '2030-10-08', 64, 231, 5, 8); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (7, 'In hac habitasse platea dictumst. Morbi vestibulum, velit id pretium iaculis, diam erat fermentum justo, nec condimentum neque sapien placerat ante. Nulla justo.', '2030-01-02', 347, 20, 5, 38); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (8, 'Pellentesque at nulla. Suspendisse potenti. Cras in purus eu magna vulputate luctus.', '2030-07-04', 129, 362, 3, 21); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (9, 'Fusce consequat. Nulla nisl. Nunc nisl.', '2030-04-24', 3, 265, 4, 49); insert into Replies (replyid, reply, reply_time, reply_likes, reply_retweets, tweetid, userid) values (10, 'Fusce consequat. Nulla nisl. Nunc nisl.', '2030-09-12', 224, 422, 1, 3); insert into Follows (followid, userid_follows, userid_followed) values (1, 2, 3); insert into Follows (followid, userid_follows, userid_followed) values (2, 12, 13); insert into Follows (followid, userid_follows, userid_followed) values (3, 22, 23); insert into Follows (followid, userid_follows, userid_followed) values (4, 4, 7); insert into Follows (followid, userid_follows, userid_followed) values (5, 8, 3); insert into Follows (followid, userid_follows, userid_followed) values (6, 10, 3); insert into Follows (followid, userid_follows, userid_followed) values (7, 4, 2); insert into Follows (followid, userid_follows, userid_followed) values (8, 2, 6); insert into Follows (followid, userid_follows, userid_followed) values (9, 1, 4); insert into Follows (followid, userid_follows, userid_followed) values (10, 2, 1); insert into Follows (followid, userid_follows, userid_followed) values (11, 3, 3); insert into Follows (followid, userid_follows, userid_followed) values (12, 7, 20); insert into Follows (followid, userid_follows, userid_followed) values (13, 15, 12); insert into Follows (followid, userid_follows, userid_followed) values (14, 17, 17); insert into Follows (followid, userid_follows, userid_followed) values (15, 23, 4); insert into Follows (followid, userid_follows, userid_followed) values (30, 4, 3); insert into Follows (followid, userid_follows, userid_followed) values (17, 2, 8); insert into Follows (followid, userid_follows, userid_followed) values (18, 4, 19);
DECLARE v_acl_ids NVARCHAR2(32767); v_result NUMBER; v_errorCode NUMBER; v_errorMessage NCLOB; BEGIN v_errorCode := 0; v_errorMessage := ''; --Check if an external party is assigned to existent AppBase user FOR rec IN (SELECT col_id, col_name, col_userid FROM Tbl_Externalparty WHERE col_userid IN (SELECT ep.col_userid FROM tbl_externalparty ep WHERE ep.col_userid IS NOT NULL AND NVL(ep.col_isdeleted, 0) = 0 MINUS SELECT userid FROM vw_users)) LOOP v_errorCode := 128; v_errorMessage := v_errorMessage || '<li>External Party ' || rec.col_name || ' with Id# ' || rec.col_id || ' is assigned to non-existant AppBase user' || '</li>'; END LOOP; --Check if every external party has a workbasket FOR rec IN (SELECT ex.col_id ExtParyId, ex.col_name ExtPartyName, wb.col_id FROM Tbl_Externalparty ex LEFT JOIN (SELECT col_id, Col_Workbasketexternalparty FROM tbl_ppl_workbasket WHERE Col_Workbasketexternalparty IS NOT NULL) wb ON ex.col_id = wb.Col_Workbasketexternalparty WHERE wb.col_id IS NULL AND NVL(ex.col_isdeleted, 0) = 0) LOOP v_errorCode := 128; v_errorMessage := v_errorMessage || '<li>External Party ' || rec.ExtPartyName || ' with Id# ' || rec.ExtParyId || ' does not have workbasket' || '</li>'; END LOOP; -- Check if every External Party has Access Subject record FOR rec IN (SELECT ex.col_id ExId, ex.col_name ExName, Ex.Col_Extpartyaccesssubject ExAccessSubjectId FROM Tbl_Externalparty ex LEFT JOIN Tbl_Ac_Accesssubject acs ON Ex.Col_Extpartyaccesssubject = acs.col_id WHERE Ex.Col_Extpartyaccesssubject IS NULL AND NVL(ex.col_isdeleted, 0) = 0 ORDER BY ex.col_id) LOOP v_errorCode := 129; v_errorMessage := v_errorMessage || '<li>External Party ' || rec.ExName || ' with id# ' || rec.ExId || ' does not have Access Subject record' || '</li>'; END LOOP; -- Check if evry external party has one and only one corresponding Access Subject records FOR REC IN (SELECT Col_Extpartyaccesssubject AccessSubjectId, COUNT(col_id) FROM Tbl_Externalparty WHERE Col_Extpartyaccesssubject IS NOT NULL AND NVL(col_isdeleted, 0) = 0 GROUP BY Col_Extpartyaccesssubject HAVING(COUNT(col_id)) > 1) LOOP v_errorCode := 130; v_errorMessage := v_errorMessage || '<li>External Party with Access Subject Id# ' || rec.AccessSubjectId || ' has more than one Access Subject' || '</li>'; END LOOP; --Check that that there aren't 2 ExternalParties linked to the same AppBase User FOR rec IN (SELECT COUNT(1) amount, ep.col_userid, Usr.Name AppBaseName FROM Tbl_Externalparty ep LEFT JOIN vw_users usr ON usr.userid = Ep.Col_Userid WHERE ep.col_userid IS NOT NULL AND NVL(ep.col_isdeleted, 0) = 0 GROUP BY Ep.Col_Userid, Usr.Name HAVING(COUNT(1) > 1)) LOOP v_errorCode := 141; v_errorMessage := V_Errormessage || '<li>' || rec.amount || ' external parties associated with AppBase User: ' || rec.AppBaseName || ' with Id # ' || rec.col_userid || '</li>'; END LOOP; --every AppBase User has to be linked either to a CASEWORKER or a External Party but not at both FOR rec IN (SELECT usr.userid USERID, usr.name USERNAME FROM vw_users usr INNER JOIN tbl_ppl_caseworker cw ON usr.userid = cw.col_userid WHERE NVL(cw.col_isdeleted, 0) = 0 INTERSECT SELECT usr.userid userid, usr.name username FROM vw_users usr INNER JOIN tbl_externalparty ep ON usr.userid = ep.col_userid WHERE NVL(ep.col_isdeleted, 0) = 0) LOOP v_errorcode := 143; v_errormessage := v_errormessage || '<li>User ' || rec.username || ' is both linked to CaseWorker and External Party</li>'; END LOOP; -- Check if every External Party has unused ACL and AccessSubject FOR rec IN (SELECT acs.col_id AS accessSubject_Id, acs.col_name AS NAME FROM tbl_ac_accesssubject acs LEFT JOIN tbl_externalparty ep ON ep.col_extpartyaccesssubject = acs.col_id WHERE ep.col_id IS NULL AND acs.col_type = 'EXTERNALPARTY') LOOP v_errorCode := 122; v_errorMessage := v_errorMessage || '<li>External Party ' || rec.name || ' was lost and there are unused AccessSubject_Id# ' || to_char(rec.accessSubject_Id); v_acl_ids := NULL; SELECT LISTAGG(TO_CHAR(acl.col_id), ',') WITHIN GROUP(ORDER BY acl.col_id) INTO v_acl_ids FROM tbl_ac_acl acl WHERE acl.col_aclaccesssubject = rec.accessSubject_Id; IF v_acl_ids IS NOT NULL THEN v_errorMessage := v_errorMessage || ', ACL_Id# ' || v_acl_ids; END IF; v_errorMessage := to_char(v_errorMessage) || '</li>'; END LOOP; -- Check if every External Party has unused Workbasket FOR rec IN (SELECT wb.col_id AS wb_id, wb.col_name AS NAME FROM tbl_ppl_workbasket wb LEFT JOIN tbl_externalparty ep ON ep.col_id = wb.col_workbasketexternalparty WHERE ep.col_id IS NULL AND wb.col_workbasketexternalparty IS NOT NULL) LOOP v_errorCode := 123; v_errorMessage := v_errorMessage || '<li>External Party ' || rec.name || ' was lost and there is unused Workbasket_Id# ' || to_char(rec.wb_id) || '</li>'; END LOOP; :ErrorCode := v_errorCode; :ErrorMessage := v_errorMessage; END;
-- Schedule INSERT INTO SCHEDULE VALUES(0, 'Summer 2011', 'C League'); INSERT INTO SCHEDULE VALUES(1, 'Winter 2011-2012', 'B League'); -- Players INSERT INTO PLAYER VALUES(0, 'Ben', 'Joe', 'benjoe@something.com', '1980-01-01', '111 some street', 'Dallas', 'TX', '74444' ,'111-111-1111', 99, 'Boston', 'CENTER', 'ACTIVE'); INSERT INTO PLAYER VALUES(1, 'Rick', 'Hogue', 'rickhogue@something.com', '1980-01-01', '343 some street', 'Dallas', 'TX', '74444' ,'111-111-1111', 88, 'Montreal', 'DEFENSEMEN', 'ACTIVE'); INSERT INTO PLAYER VALUES(2, 'Frank', 'Desrocher', 'fdesrocher@something.com', '1980-01-01', '434 some street', 'Irving', 'TX', '74444' ,'111-111-1111', 1, 'Montreal', 'GOALIE', 'ACTIVE'); INSERT INTO PLAYER VALUES(3, 'Ian', 'Turner', 'iturner@something.com', '1980-01-01', '431 some street', 'Keller', 'TX', '74444' ,'111-111-1111', 8, 'Dallas', 'RIGHT_WING', 'ACTIVE'); INSERT INTO PLAYER VALUES(4, 'Willie', 'Hayes', 'williehayes@something.com', '1980-01-01', '56 some street', 'Richardson', 'TX', '74444' ,'111-111-1111', 22, 'Forth Worth', 'CENTER', 'ACTIVE'); -- Game INSERT INTO GAME VALUES(0, 0, '2012-05-03', '20:30:00', 'Flyers', 'HOME', 'Frisco Stars Center', 2, null, null); INSERT INTO GAME VALUES(1, 0, '2012-05-10', '19:30:00', 'Hawks', 'HOME', 'Frisco Stars Center', 0, null, null); INSERT INTO GAME VALUES(2, 0, '2012-05-17', '21:30:00', 'Habs', 'AWAY', 'Frisco Stars Center', 3, null, null); INSERT INTO GAME VALUES(3, 0, '2012-05-24', '22:30:00', 'Chiefs', 'AWAY', 'Frisco Stars Center', 4, null, null); INSERT INTO GAME VALUES(4, 0, '2012-05-31', '20:30:00', 'Rangers', 'HOME', 'Frisco Stars Center', 1, null, null);
delete from HtmlLabelIndex where id=26096 / delete from HtmlLabelInfo where indexid=26096 / INSERT INTO HtmlLabelIndex values(26096,'全屏') / INSERT INTO HtmlLabelInfo VALUES(26096,'全屏',7) / INSERT INTO HtmlLabelInfo VALUES(26096,'fullscreen',8) / INSERT INTO HtmlLabelInfo VALUES(26096,'全屏',9) / delete from HtmlLabelIndex where id=26084 / delete from HtmlLabelInfo where indexid=26084 / INSERT INTO HtmlLabelIndex values(26084,'表单附件') / INSERT INTO HtmlLabelInfo VALUES(26084,'表单附件',7) / INSERT INTO HtmlLabelInfo VALUES(26084,'Form attachments',8) / INSERT INTO HtmlLabelInfo VALUES(26084,'表單附件',9) / delete from HtmlLabelIndex where id=26083 / delete from HtmlLabelInfo where indexid=26083 / INSERT INTO HtmlLabelIndex values(26083,'上传人') / INSERT INTO HtmlLabelInfo VALUES(26083,'上传人',7) / INSERT INTO HtmlLabelInfo VALUES(26083,'By person',8) / INSERT INTO HtmlLabelInfo VALUES(26083,'上傳人',9) /
CREATE TABLE OPCS ( CUI VARCHAR2 (50), TERM VARCHAR2 (150) ); CREATE TABLE OPCSSCTMAP ( SCUI VARCHAR2 (5), STUI VARCHAR2 (1), TCUI VARCHAR2 (18), TTUI VARCHAR2 (1), MAPTYP VARCHAR2 (1) );
CREATE TABLE NAMKYU_USER ( SEQUENCE_ID BIGINT AUTO_INCREMENT, USER_ID VARCHAR(255) NOT NULL, );
create table ACT_RU_EXTERNAL_JOB ( ID_ NVARCHAR2(64) NOT NULL, REV_ INTEGER, CATEGORY_ NVARCHAR2(255), TYPE_ NVARCHAR2(255) NOT NULL, LOCK_EXP_TIME_ TIMESTAMP(6), LOCK_OWNER_ NVARCHAR2(255), EXCLUSIVE_ NUMBER(1,0) CHECK (EXCLUSIVE_ IN (1,0)), EXECUTION_ID_ NVARCHAR2(64), PROCESS_INSTANCE_ID_ NVARCHAR2(64), PROC_DEF_ID_ NVARCHAR2(64), ELEMENT_ID_ NVARCHAR2(255), ELEMENT_NAME_ NVARCHAR2(255), SCOPE_ID_ NVARCHAR2(255), SUB_SCOPE_ID_ NVARCHAR2(255), SCOPE_TYPE_ NVARCHAR2(255), SCOPE_DEFINITION_ID_ NVARCHAR2(255), RETRIES_ INTEGER, EXCEPTION_STACK_ID_ NVARCHAR2(64), EXCEPTION_MSG_ NVARCHAR2(2000), DUEDATE_ TIMESTAMP(6), REPEAT_ NVARCHAR2(255), HANDLER_TYPE_ NVARCHAR2(255), HANDLER_CFG_ NVARCHAR2(2000), CUSTOM_VALUES_ID_ NVARCHAR2(64), CREATE_TIME_ TIMESTAMP(6), TENANT_ID_ NVARCHAR2(255) DEFAULT '', primary key (ID_) ); create index ACT_IDX_EJOB_EXCEPTION on ACT_RU_EXTERNAL_JOB(EXCEPTION_STACK_ID_); create index ACT_IDX_EJOB_CUSTOM_VAL_ID on ACT_RU_EXTERNAL_JOB(CUSTOM_VALUES_ID_); alter table ACT_RU_EXTERNAL_JOB add constraint ACT_FK_EJOB_EXCEPTION foreign key (EXCEPTION_STACK_ID_) references ACT_GE_BYTEARRAY (ID_); alter table ACT_RU_EXTERNAL_JOB add constraint ACT_FK_EJOB_CUSTOM_VAL foreign key (CUSTOM_VALUES_ID_) references ACT_GE_BYTEARRAY (ID_); create index ACT_IDX_EJOB_SCOPE on ACT_RU_EXTERNAL_JOB(SCOPE_ID_, SCOPE_TYPE_); create index ACT_IDX_EJOB_SUB_SCOPE on ACT_RU_EXTERNAL_JOB(SUB_SCOPE_ID_, SCOPE_TYPE_); create index ACT_IDX_EJOB_SCOPE_DEF on ACT_RU_EXTERNAL_JOB(SCOPE_DEFINITION_ID_, SCOPE_TYPE_); update ACT_GE_PROPERTY set VALUE_ = '6.5.1.3' where NAME_ = 'job.schema.version';
-- hdfs commands hadoop fs -mkdir billsHive hadoop fs -mkdir billsHive/lobfinancials hadoop fs -mkdir billsHive/tfidf hadoop fs -mkdir billsHive/wordstobills hadoop fs -mkdir billsHive/billslobbyists hadoop fs -put tfidf.txt billsHive/tfidf hadoop fs -put wordsToBills.txt billsHive/wordstobill hadoop fs -put lob_financials.csv billsHive/lobfinancials hadoop fs -put bills_lobbyists.csv billsHive/billslobbyists -- hive queries -- create tables from external data (exsited in the Oracle database). CREATE EXTERNAL TABLE lob_financials (lcl_id string, client_name string, lobbyist_name string, total_compensation int) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '/user/cloudera/billsHive/lobfinancials'; -- bills_lobbyisys is one of our deliverables, as part of out CUSP capstone project CREATE EXTERNAL TABLE bills_lobbyists (lcl_id string, bill_norm string, bill_period string, lobbyist_year string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '/user/cloudera/billsHive/billslobbyists'; -- create tables from our 2 MapReduce final outputs CREATE EXTERNAL TABLE tfidf (word string, tfidf float) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' LOCATION '/user/cloudera/billsHive/tfidf'; CREATE EXTERNAL TABLE words_bills (word string, bill string, year string) row format delimited fields terminated by '\t' location '/user/cloudera/billsHive/wordstobills'; --create the table that gets a count of the number of bills per lobbyist --report activity ON per submission CREATE TABLE bills_count_lob row format delimited fields terminated by ',' STORED AS RCFile AS SELECT lcl_id, count(*) AS count FROM bills_lobbyists GROUP BY lcl_id ORDER BY count ASC; -- create a table with per bill funding for joining to the bills_lobbyists table CREATE TABLE bills_count_comp ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS RCFile AS SELECT bills.lcl_id, total_compensation, count, total_compensation/count AS per_bill_fund FROM bills_count_lob bills LEFT JOIN lob_financials fin ON (bills.lcl_id = fin.lcl_id); --create a table of all bills that have been lobbied ON with the total spent ON them CREATE TABLE total_spent_bills ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS RCFile AS SELECT lower(regexp_replace(bill_norm, '"', '')) AS bill, regexp_replace(bill_period, '"', '')AS year, sum(per_bill_fund) AS total_spent FROM bills_lobbyists bills LEFT JOIN bills_count_comp comp ON (bills.lcl_id = comp.lcl_id) GROUP BY bill_norm, bill_period; --count number of bills for word CREATE TABLE words_bills_count ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS RCFile AS SELECT word, count(*) num_of_bills FROM words_bills GROUP BY word ; --aggregate table with both bills cound and tfidf score per word CREATE TABLE words_bills_count_tfidf ROW FORMAT DELIMITED FIELDS TERMINATED BY',' STORED AS RCFile AS SELECT tfidf.word, num_of_bills, tfidf FROM tfidf LEFT JOIN words_bills_count ON (tfidf.word = words_bills_count.word) ; --aggregate table with word and total spent on all bills including this word CREATE TABLE spend_per_word row format delimited fields terminated by ',' STORED AS RCFile AS SELECT words.word, round(sum(spent.total_spent),2) AS total_spent_word FROM words_bills words LEFT JOIN total_spent_bills spent ON (words.bill = spent.bill and words.year = spent.year) GROUP BY words.word ; --final master table includes for each words: -- 1. number of bills it appeared in -- 2. total money (in USD) spent on lobbying activity -- 3. avg money spent per bill (in USD) CREATE TABLE master_word_metrics ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS RCFile AS SELECT tf.word, num_of_bills, tf.tfidf, spend.total_spent_word AS total_spent, round(spend.total_spent_word/num_of_bills,2) AS avg_spent FROM words_bills_count_tfidf tf LEFT JOIN spend_per_word spend ON (tf.word = spend.word) ; --save table into a local file to feed the visualization script INSERT OVERWRITE LOCAL DIRECTORY '/home/cloudera/realtimeandbigdata/outputs/hiveout' row format delimited fields terminated by ',' select * from master_word_metrics; CREATE TABLE high_tfidf row format delimited fields terminated by ',' STORED as RCFile as select * from master_word_metrics where tfidf > 15 and total_spent IS NOT NULL and total_spent > 0; INSERT OVERWRITE LOCAL DIRECTORY '/home/cloudera/realtimeandbigdata/outputs/hiveout/high_tfidf' row format delimited fields terminated by ',' select * from high_tfidf
-- SQL SELECT * FROM Colors;
-- Database name treats -- Document your create tables SQL here CREATE TABLE treats ( id SERIAL PRIMARY KEY, treat_name VARCHAR(80) NOT NULL, description VARCHAR(240) NOT NULL, pic VARCHAR(80) NOT NULL );
prompt --application/shared_components/navigation/lists/order_wizard begin -- Manifest -- LIST: Order Wizard -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.03.31' ,p_release=>'20.1.0.00.13' ,p_default_workspace_id=>20 ,p_default_application_id=>8950 ,p_default_id_offset=>33309244842782322 ,p_default_owner=>'ORACLE' ); wwv_flow_api.create_list( p_id=>wwv_flow_api.id(7484433468763364809) ,p_name=>'Order Wizard' ,p_list_status=>'PUBLIC' ); wwv_flow_api.create_list_item( p_id=>wwv_flow_api.id(7484433874650366479) ,p_list_item_display_sequence=>10 ,p_list_item_link_text=>'Identify Customer' ,p_list_item_current_type=>'COLON_DELIMITED_PAGE_LIST' ,p_list_item_current_for_pages=>'11' ); wwv_flow_api.create_list_item( p_id=>wwv_flow_api.id(395928678866033182) ,p_list_item_display_sequence=>20 ,p_list_item_link_text=>'Order Items' ,p_list_item_current_type=>'COLON_DELIMITED_PAGE_LIST' ,p_list_item_current_for_pages=>'12' ); wwv_flow_api.create_list_item( p_id=>wwv_flow_api.id(7492338069932305593) ,p_list_item_display_sequence=>30 ,p_list_item_link_text=>'Order Summary' ,p_list_item_current_type=>'COLON_DELIMITED_PAGE_LIST' ,p_list_item_current_for_pages=>'14' ); wwv_flow_api.create_list_item( p_id=>wwv_flow_api.id(684925737497369387) ,p_list_item_display_sequence=>40 ,p_list_item_link_text=>'Order Confirmation' ,p_list_item_current_for_pages=>'8' ); wwv_flow_api.component_end; end; /
INSERT INTO Livro VALUES ("Livro 1","Autor 1"), ("Livro 2","Autor 2"), ("Livro 3","Autor 3"), ("Livro 4","Autor 4")
DROP TABLE IF EXISTS `taobao_user`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `taobao_user`( `user_id` bigint(20) unsigned NOT NULL, `user_name` varchar(20) NOT NULL, `city` varchar(32), `state` varchar(32), `seller_credit_level` tinyint(3) unsigned, `seller_credit_score` int(11) unsigned, `seller_credit_total` bigint(20) unsigned, `seller_credit_good` bigint(20) unsigned, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/* Udacity's - 'Programming for Data Science' certified Nanodegree Program SQL > Lesson 8 > Project: Investigate the 'Sakila DVD rental database' Q3): Compare the monthly performance of stores in terms of rental order processed in year 2005. */ WITH Table1 AS (SELECT DATE_PART('month', rental_date) as month, DATE_PART('year', rental_date) as year, store_id, COUNT (film_id) OVER (PARTITION BY DATE_TRUNC('month', rental_date) ORDER BY store_id) as count_rentals FROM rental r JOIN inventory i ON i.inventory_id = r.inventory_id) SELECT Table1.month rental_month, Table1.year rental_year, Table1.store_id, COUNT(count_rentals) count_rentals FROM Table1 GROUP BY 1, 2, 3 ORDER BY count_rentals DESC;
CREATE TABLE v1.user_oauth2_tokens ( username TEXT NOT NULL REFERENCES v1.users(username) ON DELETE RESTRICT ON UPDATE CASCADE, integration TEXT NOT NULL REFERENCES v1.oauth2_integrations(name) ON DELETE RESTRICT ON UPDATE CASCADE, external_id TEXT NOT NULL, access_token TEXT NOT NULL, refresh_token TEXT NOT NULL, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (integration, external_id) );
/* Created: 27/10/2017 Modified: 27/11/2017 Model: MySQL 5.7 Database: MySQL 5.7 */ -- Drop relationships section ------------------------------------------------- ALTER TABLE `INCIDENCIA` DROP FOREIGN KEY `Relationship15` ; ALTER TABLE `CONFIGURACION` DROP FOREIGN KEY `Relationship14` ; ALTER TABLE `CONFIGURACION` DROP FOREIGN KEY `Relationship13` ; ALTER TABLE `INCIDENCIA` DROP FOREIGN KEY `Relationship12` ; ALTER TABLE `HISTORIAL` DROP FOREIGN KEY `Relationship10` ; ALTER TABLE `HISTORIAL` DROP FOREIGN KEY `Relationship9` ; ALTER TABLE `INCIDENCIA` DROP FOREIGN KEY `Relationship7` ; ALTER TABLE `EQUIPO` DROP FOREIGN KEY `Relationship5` ; ALTER TABLE `INCIDENCIA` DROP FOREIGN KEY `Relationship3` ; -- Drop keys for tables section ------------------------------------------------- -- ALTER TABLE `HISTORIAL` DROP PRIMARY KEY -- ALTER TABLE `ESTADO` DROP PRIMARY KEY ALTER TABLE `ESTADO` DROP KEY `CODIGO` ; ALTER TABLE `ESTADO` DROP KEY `NOMBRE` ; -- ALTER TABLE `EQUIPO` DROP PRIMARY KEY ALTER TABLE `EQUIPO` DROP KEY `NUMERO_ETIQUETA_CONSEJERIA` ; -- ALTER TABLE `TIPO_EQUIPO` DROP PRIMARY KEY ALTER TABLE `TIPO_EQUIPO` DROP KEY `CODIGO` ; ALTER TABLE `TIPO_EQUIPO` DROP KEY `NOMBRE` ; -- ALTER TABLE `DEPENDENCIA` DROP PRIMARY KEY ALTER TABLE `DEPENDENCIA` DROP KEY `CODIGO` ; ALTER TABLE `DEPENDENCIA` DROP KEY `NOMBRE` ; -- ALTER TABLE `USUARIO` DROP PRIMARY KEY ALTER TABLE `USUARIO` DROP KEY `CUENTA` ; -- ALTER TABLE `INCIDENCIA` DROP PRIMARY KEY -- Drop indexes section ------------------------------------------------- DROP INDEX `IX_Relationship13` ON `CONFIGURACION` ; DROP INDEX `IX_Relationship14` ON `CONFIGURACION` ; DROP INDEX `IX_Relationship9` ON `HISTORIAL` ; DROP INDEX `IX_Relationship10` ON `HISTORIAL` ; DROP INDEX `IX_Relationship5` ON `EQUIPO` ; DROP INDEX `IX_Relationship3` ON `INCIDENCIA` ; DROP INDEX `IX_Relationship7` ON `INCIDENCIA` ; DROP INDEX `IX_Relationship12` ON `INCIDENCIA` ; DROP INDEX `IX_Relationship15` ON `INCIDENCIA` ; -- Drop tables section --------------------------------------------------- DROP TABLE `CONFIGURACION` ; DROP TABLE `HISTORIAL` ; DROP TABLE `INCIDENCIA` ; DROP TABLE `ESTADO` ; DROP TABLE `TIPO_EQUIPO` ; DROP TABLE `EQUIPO` ; DROP TABLE `DEPENDENCIA` ; DROP TABLE `USUARIO` ;
prompt --application/shared_components/user_interface/lovs/states begin -- Manifest -- STATES -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.03.31' ,p_release=>'20.1.0.00.13' ,p_default_workspace_id=>20 ,p_default_application_id=>8950 ,p_default_id_offset=>33309244842782322 ,p_default_owner=>'ORACLE' ); wwv_flow_api.create_list_of_values( p_id=>wwv_flow_api.id(7468678244299595839) ,p_lov_name=>'STATES' ,p_lov_query=>wwv_flow_string.join(wwv_flow_t_varchar2( 'select initcap(state_name) display_value, st return_value from demo_states', 'order by 1')) ,p_source_type=>'LEGACY_SQL' ,p_location=>'LOCAL' ); wwv_flow_api.component_end; end; /
-- MySQL Script generated by MySQL Workbench -- Tue Aug 13 12:37:58 2019 -- Model: SVDB Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; -- ----------------------------------------------------- -- Schema mydb -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema mydb -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET utf8 ; USE `mydb` ; -- ----------------------------------------------------- -- Table `mydb`.`admin` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`admin` ( `name` VARCHAR(20) NOT NULL, `admin_id` INT(11) NOT NULL, `admin_password` VARCHAR(50) NOT NULL, PRIMARY KEY (`admin_id`), UNIQUE INDEX `admin_admin_id_uindex` (`admin_id` ASC) VISIBLE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`item_details` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`item_details` ( `Item_id` INT(11) NOT NULL AUTO_INCREMENT, `Item_name` VARCHAR(30) NOT NULL, `Item_rate` FLOAT NOT NULL, `Item_measure` VARCHAR(20) NOT NULL, `Item_image` BLOB NULL DEFAULT NULL, PRIMARY KEY (`Item_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`user_details` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`user_details` ( `Name` VARCHAR(50) NOT NULL, `Address` VARCHAR(100) NULL DEFAULT 'NULL', `Contact_no` VARCHAR(15) NOT NULL, `email_id` VARCHAR(50) NOT NULL, `User_id` INT(11) NOT NULL AUTO_INCREMENT, `Password` VARCHAR(50) NOT NULL, PRIMARY KEY (`User_id`), UNIQUE INDEX `user_details_User_id_uindex` (`User_id` ASC) VISIBLE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`pickup_person_details` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`pickup_person_details` ( `Name` VARCHAR(50) NOT NULL, `Contact_no` INT(15) NOT NULL, `Aadhar_no` INT(12) NOT NULL, `Pickup_person_id` INT(11) NOT NULL AUTO_INCREMENT, `Salary` FLOAT NOT NULL, `Rating` INT(5) NULL DEFAULT '0', `Pickup_person_status` VARCHAR(25) NULL DEFAULT 'working', PRIMARY KEY (`Pickup_person_id`), UNIQUE INDEX `pickup_person_details_Pickup_person_id_uindex` (`Pickup_person_id` ASC) VISIBLE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`booking_details` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`booking_details` ( `User_id` INT(11) NOT NULL, `Booking_date_time` DATETIME NOT NULL, `Scheduled_pickup_date_time` DATETIME NOT NULL, `Pickup_date_time` DATETIME NULL DEFAULT NULL, `Booking_id` INT(11) NOT NULL AUTO_INCREMENT, `Pickup_person_id` INT(11) NOT NULL, `Pickup_status` VARCHAR(20) NOT NULL, `Pickup_person_rating` INT(5) NULL DEFAULT NULL, PRIMARY KEY (`Booking_id`), UNIQUE INDEX `booking_details_Booking_id_uindex` (`Booking_id` ASC) VISIBLE, INDEX `booking_details_fk0` (`User_id` ASC) VISIBLE, INDEX `booking_details_fk1` (`Pickup_person_id` ASC) VISIBLE, CONSTRAINT `booking_details___fk0` FOREIGN KEY (`User_id`) REFERENCES `mydb`.`user_details` (`User_id`), CONSTRAINT `booking_details___fk1` FOREIGN KEY (`Pickup_person_id`) REFERENCES `mydb`.`pickup_person_details` (`Pickup_person_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`booked_item_list` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`booked_item_list` ( `Item_id` INT(11) NOT NULL, `Booking_id` INT(11) NOT NULL, `Item_qty` FLOAT NOT NULL, `Item_amount` FLOAT NOT NULL, `Pickup_timestamp` TIMESTAMP NOT NULL, INDEX `booked_item_list_fk0` (`Item_id` ASC) VISIBLE, INDEX `booked_item_list_fk1` (`Booking_id` ASC) VISIBLE, CONSTRAINT `booked_item_list___fk0` FOREIGN KEY (`Item_id`) REFERENCES `mydb`.`item_details` (`Item_id`), CONSTRAINT `booked_item_list___fk1` FOREIGN KEY (`Booking_id`) REFERENCES `mydb`.`booking_details` (`Booking_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`company_details` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`company_details` ( `Company_id` INT(11) NOT NULL AUTO_INCREMENT, `Company_name` VARCHAR(50) NOT NULL, `Address` VARCHAR(50) NOT NULL, `Contact_no` VARCHAR(50) NOT NULL, PRIMARY KEY (`Company_id`), UNIQUE INDEX `company_details_Company_id_uindex` (`Company_id` ASC) VISIBLE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`company_sale_details` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`company_sale_details` ( `Company_id` INT(11) NOT NULL, `Sales_id` INT(11) NOT NULL AUTO_INCREMENT, `Sales_amount` FLOAT NOT NULL, `Date` DATETIME NOT NULL, `Sale_status` VARCHAR(20) NOT NULL, PRIMARY KEY (`Sales_id`), UNIQUE INDEX `company_sale_details_Sales_id_uindex` (`Sales_id` ASC) VISIBLE, INDEX `company_sale_details_fk0` (`Company_id` ASC) VISIBLE, CONSTRAINT `company_sale_details___fk0` FOREIGN KEY (`Company_id`) REFERENCES `mydb`.`company_details` (`Company_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`contact_us` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`contact_us` ( `Author` VARCHAR(30) NOT NULL, `Email` VARCHAR(30) NOT NULL, `Contact_no` INT(15) NOT NULL, `Subject` VARCHAR(50) NOT NULL, `Message` VARCHAR(255) NOT NULL, `Contact_id` INT(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`Contact_id`), UNIQUE INDEX `contact_id_UNIQUE` (`Contact_id` ASC) VISIBLE) ENGINE = InnoDB AUTO_INCREMENT = 3 DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`order_cancel` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`order_cancel` ( `Booking_id` INT(11) NOT NULL, `Cancellation_id` INT(11) NOT NULL AUTO_INCREMENT, `Feedback` VARCHAR(255) NULL DEFAULT NULL, PRIMARY KEY (`Cancellation_id`), UNIQUE INDEX `order_cancel_Cancellation_id_uindex` (`Cancellation_id` ASC) VISIBLE, INDEX `order_cancel___fk0` (`Booking_id` ASC) VISIBLE, CONSTRAINT `order_cancel___fk0` FOREIGN KEY (`Booking_id`) REFERENCES `mydb`.`booking_details` (`Booking_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`payment_details` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`payment_details` ( `Payment_id` INT(11) NOT NULL, `Payment_amount` FLOAT NOT NULL, `Booking_id` INT(11) NOT NULL, `Payment_mode` VARCHAR(20) NULL DEFAULT 'online', `Payment_status` VARCHAR(20) NULL DEFAULT 'pending', PRIMARY KEY (`Payment_id`), INDEX `payment_details_fk0` (`Booking_id` ASC) VISIBLE, CONSTRAINT `payment_details___fk0` FOREIGN KEY (`Booking_id`) REFERENCES `mydb`.`booking_details` (`Booking_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `mydb`.`pickup_person_record` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `mydb`.`pickup_person_record` ( `Pickup_person_id` INT(11) NOT NULL, `Date` TIMESTAMP NOT NULL, `10:00AM-12:00PM` TINYINT(4) NULL DEFAULT '1', `12:00PM-02:00PM` TINYINT(4) NULL DEFAULT '1', `02:00PM-04:00PM` TINYINT(4) NULL DEFAULT '1', `04:00PM-06:00PM` TINYINT(4) NULL DEFAULT '1', INDEX `pickup_person_record_fk0` (`Pickup_person_id` ASC) VISIBLE, CONSTRAINT `pickup_person_record___fk0` FOREIGN KEY (`Pickup_person_id`) REFERENCES `mydb`.`pickup_person_details` (`Pickup_person_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jun 14, 2019 at 01:19 PM -- Server version: 5.7.19 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `refactoringproject` -- -- -------------------------------------------------------- -- -- Table structure for table `iqa` -- DROP TABLE IF EXISTS `iqa`; CREATE TABLE IF NOT EXISTS `iqa` ( `URL` text NOT NULL, `CommitID` varchar(100) NOT NULL, `IQA` varchar(150) NOT NULL, KEY `commitid` (`CommitID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `iqa` -- INSERT INTO `iqa` (`URL`, `CommitID`, `IQA`) VALUES ('https://github.com/Pi4J/pi4j', '000a02433ae27348082ee0008fe65e3568f21508', 'abstraction'), ('https://github.com/CampagneLaboratory/goby', '000d011444d9bd24028e59b23e2e20842c9da876', 'abstraction'), ('https://github.com/adangel/pmd', '002bb4a596fe2a53e079311c72a0a7dcd0286511', 'coupling'), ('https://github.com/ModeShape/modeshape', '007bdbe3db9568eae14b4ae438c5914b020ee98d', 'composition'), ('https://github.com/hank/feathercoinj', '00cb8a4abd7a11e94b6f6b0b9552b2001f25ecfa', 'complexity'), ('https://github.com/tinkerpop/rexster', '00e89ef9bde9cda2af1fedd704ed56aedb9840be', 'abstraction'), ('https://github.com/ist-dsi/fenix', '0161ed4c1ce5be9fb4db3f15fe5df1f304a9e4b0', 'composition'), ('https://github.com/cowtowncoder/low-gc-membuffers', '01680cd1c286708dcc1d2ecbc06646d1aba106e4', 'abstraction'), ('https://github.com/lucmoreau/ProvToolbox', '017a5f76027c8e3e411734d6e9ad926be31fc2fd', 'inheritance'), ('https://github.com/orientechnologies/orientdb', '01e0c3868d58af462d9f5a53f01aedea717de6e2', 'inheritance'), ('https://github.com/kirkch/SandboxMosaic', '01e0c5c7770f563ee6ce9a039acd2535e2e19b90', 'abstraction'), ('https://github.com/futures/fcrepo4', '0224771828de8da5543d64061476e7b7201387e5', 'abstraction'), ('https://github.com/molgenis/molgenis-legacy', '024724e1bc580a892c88fb822bd95b812aa88be4', 'inheritance'), ('https://github.com/IsNull/xattrj', '0365bcfd7d1ffe627d372bf1aa72d6b944bbe1ed', 'abstraction'), ('https://github.com/BroadleafCommerce/BroadleafCommerce', '036cbcc827b22b719a6c4b863e4c641ed18b7183', 'inheritance'), ('https://github.com/seanp33/pento', '037b45eb3265391c75ba166a8fa337e7fa77a771', 'abstraction'), ('https://github.com/jmimo/netty-icap', '03ed1447a79bd71f9f902e5bb32ef25886aa0397', 'encapsulation'), ('https://github.com/nebulostore/nebulostore', '045dc64d4ff11936876ab19df64c3dd3658b6ef2', 'inheritance'), ('https://github.com/forcedotcom/aura', '046d5362ae850b8720133d601aff7c7ad3d06212', 'size & complexity'), ('https://github.com/kpacha/java-kata', '047b5c891f9aa8f2157573ca22a339297ea1f8ac', 'composition'), ('https://github.com/apache/karaf-cellar', '049c61c4ac19e0f2f5af5ab4568e77763bf81f84', 'composition'), ('https://github.com/jdbc-bare/spring-jdbc-bare', '04fa5d4b99989d96a478fd788b0e821aba9f32d6', 'inheritance'), ('https://github.com/undertow-io/undertow', '0504ee4fc9653fb9987a7bd3a1191bd93317420b', 'abstraction'), ('https://github.com/mneedham/neo4j-fork', '0515bb5b19bec22a7f864bbd1b2b57be2f7e290e', 'abstraction'), ('https://github.com/SonarCommunity/sonar-php', '05630d5f3942a18c7ca40866bfa963de81863b6c', 'complexity'), ('https://github.com/SpringSource/spring-ide', '056ba53d2604d02452514571efecbbe257ac114a', 'abstraction'), ('https://github.com/stoicflame/enunciate', '059c43b306553754b8bca0b40c87b1c8bf52c047', 'inheritance'), ('https://github.com/helun/Ektorp', '05d88e1c19040b6455625cb08113500d2be0ceaf', 'complexity'), ('https://github.com/OpenGamma/OG-Platform', '05d9a851f61848991e893dfb7d76f22a68fca4b3', 'coupling'), ('https://github.com/broadgsa/gatk-protected', '05e69b62940f47845355cca8fd28bd234f2ac4ee', 'complexity'), ('https://github.com/mneedham/neo4j-fork', '064132b1676a5c795daf138d46d96952a195006d', 'abstraction'), ('https://github.com/xwiki/xwiki-platform', '0694bd0c7fed582466370a64f890b1efd46a2dc7', 'inheritance'), ('https://github.com/cdi-spec/cdi-tck', '06975ddd9adf669e8e2fa1e406fb748648b5d028', 'inheritance'), ('https://github.com/42BV/jarb', '06e892365ec5ecef05df28690a4ccaccf5c4e452', 'composition'), ('https://github.com/imagej/imagej', '06f104b748d52f5d229a6cb5109e29c8df158024', 'complexity'), ('https://github.com/blootsvoets/jmml', '072f877d4581c20b0b7259468acd37f770d3b0e2', 'coupling'), ('https://github.com/SamirTalwar/Quacker', '07614aa826b7b50a5c88106a20d8e9db89ee6002', 'inheritance'), ('https://github.com/ArcBees/Jukito', '07b657b0190261e47e6c8b58d7a83553c09c5c49', 'inheritance'), ('https://github.com/jmkgreen/morphia', '07bc39015db51be24c655a2719fb11a8a1953f0e', 'inheritance'), ('https://github.com/sksamuel/jqm4gwt', '07cc23bf808d1a5e840b6a7d57d4d0d8a78a03f2', 'abstraction'), ('https://github.com/eclipse/dltk.core', '080c249740a67a710857f82f6ace5c24f317a96e', 'inheritance'), ('https://github.com/jtbdevelopment/e-eye-o', '08bb597f379d4f868d01efd47adf708eae942c47', 'inheritance'), ('https://github.com/SonarCommunity/sonar-dotnet', '08db4cfee2cf85377e6535e447d7350e97683d61', 'complexity'), ('https://github.com/shevek/spring-rich-client', '08df27b22679d95c532b2e1ef082035f2e925e56', 'complexity'), ('https://github.com/eclipse/bpmn2-modeler', '09202c0d82be02bf5979c2cd627acdd8d5b709da', 'composition'), ('https://github.com/npina/performanceTest', '0921796ab6415681e09e5870450227ee7414a326', 'abstraction'), ('https://github.com/SonarCommunity/sonar-javascript', '094adc5b7b2a7d1e2406b5ceb6d81b85246e1120', 'complexity'), ('https://github.com/Benoker/DockingFrames', '0976cda3d786eca49d7630d4f3c66219f5b9bff9', 'abstraction'), ('https://github.com/jdcasey/cartographer', '0982bfab6b8fd9b52c5d3806f07e75213721ab12', 'composition'), ('https://github.com/killbill/killbill-client-java', '098c1f0fd46a7844c1a6a36f10588b094e5f9ddc', 'inheritance'), ('https://github.com/antlr/stringtemplate4', '098ea617270404419252aad78c4611b1920c2ab4', 'inheritance'), ('https://github.com/shevek/spring-rich-client', '098fbe687d2aa290e12b46ffeaf3f6921469afef', 'abstraction'), ('https://github.com/BMintern/gson', '09ba39420d1e1afa1f77ed4f0a7f3a1f4501622c', 'polymorphism'), ('https://github.com/oberasoftware/jasdb', '09ce9aa6739652ba0d99c4a0a397c0991966754d', 'inheritance'), ('https://github.com/SpringSource/spring-boot', '0a730beb2a518a1ffc9bb363f25de239331e2336', 'abstraction'), ('https://github.com/wolips/wolips', '0a7a013167b6ae5bdceb534c9e8c2ae509302fd7', 'complexity'), ('https://github.com/Comcast/cmb', '0aa150baab20b1166738273e2b91442c6c382f46', 'abstraction'), ('https://github.com/Netflix/feign', '0aac921f312127aa2afa6f4fdacd38de88311d1a', 'inheritance'), ('https://github.com/apache/shiro', '0aad0e87529a0562ed50911aff5ceea9bfacab5e', 'inheritance'), ('https://github.com/rkapsi/ardverk-dht', '0b3387692ed36af122004f3fb0627df1bbd6b8f4', 'complexity'), ('https://github.com/apache/cayenne', '0b6a42405d96ec44c718fc088999a309628f32fc', 'inheritance'), ('https://github.com/openfigis/vme', '0bd7ade93ac8db3f3fff665e9d664b6ec590cde7', 'composition'), ('https://github.com/baakind/autoscale-common', '0c1d50e25139f237ad6bd73fc198988cbd5299bb', 'abstraction'), ('https://github.com/christophd/citrus', '0c35e381af5877fbd1611369a95901dadf6a3973', 'complexity'), ('https://github.com/immutables/org.immutables', '0c5e9fa235cdc37ef71bea53c38c014740f52840', 'abstraction'), ('https://github.com/metispro/metispro-common', '0c6da4b7b8cf2eedf0a272dc9938176a8c90c60e', 'abstraction'), ('https://github.com/fluxroot/pulse', '0c7f1f64d3da4dc1049def9fe43d481bbe195e7c', 'complexity'), ('https://github.com/wblancqu/designpatterns-RealDolmen', '0d5e102eee1737502bd246634d0713a7ce9e2c23', 'abstraction'), ('https://github.com/estatio/estatio', '0dc98ff98c52aa5c77a2c395d4ee86527bcca95b', 'coupling'), ('https://github.com/korpling/ANNIS', '0dce81697bba4f83a8b47e6d30dd4031c4a5e314', 'inheritance'), ('https://github.com/pdt-eg/Core-Plugin', '0e773664d29d6f5e24ca5ebcc88a373ad580ec41', 'coupling'), ('https://github.com/OpenGamma/OG-Platform', '0ed552d8908c3eb57cf642fa583129a5cb10c462', 'composition'), ('https://github.com/SonarCommunity/sonar-dotnet', '0eedef5ec5bdd052bb407506f93290e82f4243c3', 'complexity'), ('https://github.com/broadgsa/gatk', '0f3049652a72e2abebc14a79140fe66d200045f0', 'abstraction'), ('https://github.com/xXKeyleXx/MyPet', '0f4fcb13f47462461800a53612675d964b02a220', 'inheritance'), ('https://github.com/jonatas/mktc-platform', '0f528d00254fd77010d062d87476e602ce8aa967', 'abstraction'), ('https://github.com/BitResolution/xTest', '0fb04c65f6e6b6070d18906866422017591b3ca9', 'coupling'), ('https://github.com/apache/cayenne', '103f48cb34edf47e725ce98e1c5296bd1c6aea0c', 'inheritance'), ('https://github.com/xwiki/xwiki-platform', '105dd1ff8f20b84371b9721f5f55d9bec566321c', 'inheritance'), ('https://github.com/DigitalPebble/behemoth', '106c2df20cfe5319968ede85a06b3d89fdb0f954', 'complexity'), ('https://github.com/Iamkhova/ks-aethanengine', '107763f4087fa654baabffcba756aaf9000b7603', 'inheritance'), ('https://github.com/cucumber/cucumber-jvm', '10c07317c03d62168391cbc10b4d0ce64f4a7f94', 'encapsulation'), ('https://github.com/code4craft/webmagic', '110412297925415549cca50cfc0be78c30360171', 'abstraction'), ('https://github.com/hibernate/hibernate-search', '1169bb2fde841f9cb139178a36bcac5a32f80e6e', 'abstraction'), ('https://github.com/jtbdevelopment/e-eye-o', '11bb40a6da5d71b0f2ab8cde23d3f610d35df538', 'inheritance'), ('https://github.com/geotools/geotools', '11d606062851becc59399b65966ab2d44687f89c', 'coupling'), ('https://github.com/apache/jena', '126a9dcbfd19f61705a999567a0c6c6ca5e9a82d', 'abstraction'), ('https://github.com/RegalOwl/HyperConomy', '126e76bc657149b5e25eb49828a5eb91d11f66bb', 'abstraction'), ('https://github.com/openmrs/openmrs-module-registrationcore', '129dc5f47dcb9c3241b26593b0b6d9a8727b5093', 'inheritance'), ('https://github.com/ekirkilevics/Magnolia', '12cace56184bd821634294afeebe701a1b3f876d', 'inheritance'), ('https://github.com/SpringSource/spring-data-mongodb', '12ddfcc9f94cf8226f5f4fc863d33f9e18f872b2', 'inheritance'), ('https://github.com/HUSACCT/HUSACCT', '12ea041034bec3d00ed92cc2e3a28f07808228d7', 'inheritance'), ('https://github.com/md-5/SpecialSource', '132584eda4f0860c9d14f4c142e684a027a128b8', 'inheritance'), ('https://github.com/jqno/equalsverifier', '134138d076ba8e7fc58002fda3c5cf501fbfe500', 'inheritance'), ('https://github.com/korpling/ANNIS', '137aaa90e5cd2cafc955f56a0f597050156b935b', 'abstraction'), ('https://github.com/forge/core', '1391473c9fe1fb6f201a767445896497028626a9', 'abstraction'), ('https://github.com/bobmcwhirter/drools', '13c14769dd22f023fe277ad1a7d2e3d164aa2755', 'coupling'), ('https://github.com/chirino/hawtdb', '13e15bba3742983de043d4cfb300c79a887eaeac', 'abstraction'), ('https://github.com/choreos/choreos_middleware', '13e89cf93a13ea889c577112ff92dbe6566fe98c', 'coupling'), ('https://github.com/wocommunity/wonder', '1414641a39d6a7b208ba59d70a942a0287e26828', 'inheritance'), ('https://github.com/brunoborges/camel-twitter', '141f93434beebfa25d6c3b9feaf0d40a8055afeb', 'abstraction & inheritance '), ('https://github.com/obiba/onyx', '142a4cc3f364c1343f2c430be2b46878a06a12af', 'coupling'), ('https://github.com/odata4j/odata4j', '142fd8869c33ce4ef22a31815e59b9cb838f3093', 'coupling'), ('https://github.com/airlift/airship', '14f4ec225f9cfd4a9c0342366c345b8900a43f79', 'abstraction'), ('https://github.com/Igalia/libreplan', '1503b6e175582f0d9365aa46e79b27a10a1de63f', 'abstraction'), ('https://github.com/sk89q/commandhelper', '152a6a2589956a8e7e8e29c121163007e3f871ac', 'abstraction'), ('https://github.com/riptano/hector-jpa', '155e73243cc8afc5635f8dc834f06e1aaaaf17a4', 'inheritance'), ('https://github.com/apache/mina-sshd', '15d2ed1511f58b151041637d5ced0350745a0d38', 'abstraction'), ('https://github.com/SonarSource/sonar', '15e9f443eed5c74be9abe4738b07d62fe335c8e6', 'complexity'), ('https://github.com/SonarCommunity/sonar-javascript', '15ed8e1881f3f686d30e131d294da5016d124610', 'complexity'), ('https://github.com/arquillian/arquillian-core', '1614501674555a71506c5804489855918b19f60c', 'abstraction'), ('https://github.com/ekirkilevics/Magnolia', '164f497bca3be296850b7f0b6d58cb6965e73670', 'composition'), ('https://github.com/seam/social', '166eb60fbd84cbec49fbad59ae2bb8eb720e4101', 'coupling'), ('https://github.com/michalxo/LogFilterBase', '16b8b9a36ea86159fadf6cf8bff11eded1af780c', 'abstraction'), ('https://github.com/stoicflame/enunciate', '17276a95caa6c22cc8cb9c58586fdbd70570c94d', 'complexity & coupling'), ('https://github.com/vietj/chromattic', '1764f8132c336d2b06dc6d8f271d6f591534ba6c', 'inheritance'), ('https://github.com/astubbs/spring-modules', '1779a3d2642290282b61b2662e7aa78555d93dcd', 'coupling & abstraction'), ('https://github.com/codereligion/beast', '179bc7f806b4e00f8973dbd67278c929ecbba8ca', 'cohesion'), ('https://github.com/rabbitmq/rabbitmq-java-client', '17a35d42bf77c2ecf067b0c8293c5254a13e4b8f', 'abstraction'), ('https://github.com/futures/fcrepo4', '17da4039df39b5543a2cceb904e1c04f83477222', 'inheritance'), ('https://github.com/SpringSource/spring-data-commons', '1805aad718ada5f0991350f38d5a8443b4a68542', 'abstraction'), ('https://github.com/apache/roller', '181208ff847c3ff0bcc855538cda7e1587eacdc1', 'encapsulation'), ('https://github.com/SpringSource/spring-shell', '1874b7acdb2d8a6ffb4ef83e23751f64b1be29f8', 'coupling'), ('https://github.com/wocommunity/wonder', '1879cf27ae454d836e926be436b458147f334a3d', 'inheritance'), ('https://github.com/estatio/estatio', '188c9786d8cf63bd80b67b1e890df3afc685249c', 'coupling'), ('https://github.com/l2jserver2/l2jserver2', '1909bb06ccc7b309e4d26d9f631463aad2784b04', 'abstraction'), ('https://github.com/apache/camel', '194befa4f81bfab03f32a891b0c580f3a39d6aa5', 'abstraction'), ('https://github.com/wocommunity/wonder', '19922c0d66661f7221ed6bd2f2243c14bd73fc92', 'inheritance'), ('https://github.com/mneedham/neo4j-fork', '19a5c12acb1daf508e2e56d89714bf5005e9829a', 'abstraction'), ('https://github.com/rolisv/odata4j-fork', '19c52e798ae1b27101c8a4080f376b920dac7019', 'inheritance'), ('https://github.com/hector-client/hector', '1a076607786963bb5b9b348150c23724478676cd', 'inheritance'), ('https://github.com/Graylog2/graylog2-server', '1a372952dc5faa06ee5e300f45555db169c6b1c1', 'coupling'), ('https://github.com/xwiki/xwiki-platform', '1a66ea2d3363d1af62df78fbce5bb9ef91b1596e', 'complexity'), ('https://github.com/SpringSource/spring-roo', '1a8ba947af74b5400ac9d8b8de23d51bcb690271', 'inheritance'), ('https://github.com/sonatype/sisu', '1a9e9d657d49dc7b35870400bb838c3734995ce9', 'abstraction'), ('https://github.com/bedatadriven/renjin', '1b15dba656d418c052a7cfda7b4550271068fb6b', 'abstraction'), ('https://github.com/hibernate/hibernate-ogm', '1b69c827117604c9c9fac83c62a99aa748d9c01c', 'inheritance'), ('https://github.com/mikera/vectorz', '1b7cf83dfe8667d280b2384ff91bed013c19cd43', 'composition'), ('https://github.com/apache/maven-integration-testing', '1bc27aada0a3323b0bf60e7f987c1288f0b5450d', 'inheritance'), ('https://github.com/krosenvold/findbugs', '1bfe10fce9758c7653cf5121ecdef7074c8325ca', 'inheritance'), ('https://github.com/HUSACCT/HUSACCT', '1c52237df62d1910d38c5a04c01b32108434883d', 'abstraction'), ('https://github.com/BroadleafCommerce/BroadleafCommerce', '1c9dae0f24f0d8833d7194e3a65daa8da39032de', 'inheritance'), ('https://github.com/lexicalscope/jewelcli', '1cb7d8a363f4705cbca1399879fd545a799c27d4', 'coupling'), ('https://github.com/MassiveCraft/Factions', '1ccefc93b58e9aea6e3100eaf9caef414efdba4e', 'complexity'), ('https://github.com/eclipse/vert.x', '1cef521997f5ad792c6d9bb708a57e58a975d01b', 'composition'), ('https://github.com/arquillian/arquillian-container-tomcat', '1cfe1fd3ba789a909e1bacc0692a48a24ed27210', 'composition'), ('https://github.com/ceylon/ceylon-ide-eclipse', '1d2f7040fc0056bae05e7e0785f7a22c09a423e9', 'abstraction'), ('https://github.com/jri/deepamehta', '1d5fcb22f34549cb88579fd9359c42ce7f4985f3', 'composition'), ('https://github.com/gephi/gephi', '1dbcbdc04d8a4c390e1e889c77afd8d81a5720e6', 'encapsulation'), ('https://github.com/openmrs/openmrs-module-reporting', '1df17d9d491258ef6e725dd13322cdc243d9478a', 'composition'), ('https://github.com/dynjs/dynjs', '1e5c1fe2ba9ac46803cd3d7c704de851869750fa', 'abstraction'), ('https://github.com/metispro/metispro-common', '1e6d02fd35087582844a8838a036f240987ed0db', 'abstraction'), ('https://github.com/monrealis/skaitvardziai', '1e8519bbbd0f3585ae570d17c5292293312f1f1c', 'inheritance'), ('https://github.com/xXKeyleXx/MyPet', '1e8ceb0203604b493defe3e59eb91b966bf200d2', 'abstraction'), ('https://github.com/eclipse/orion.server', '1e90072aa20697bc8c18be7f31aedbfd985f6169', 'inheritance'), ('https://github.com/apache/activemq', '1ec71bdff17f6d11d50d77ff98db1c9a70e5d7b4', 'encapsulation'), ('https://github.com/AxonFramework/AxonFramework', '1f1f69e088abdd1156941924e8366e8fbb21661a', 'complexity'), ('https://github.com/hazelcast/hazelcast-heartattacker', '1f66ddb608a223880aadfa841576adb03c215040', 'complexity'), ('https://github.com/SonarCommunity/sonar-php', '1f676bd5f6d9c49074a7ff07adeecc40924b0f03', 'complexity'), ('https://github.com/ox-it/wl-assignment2', '1f6cff6583a92120e706da6c3461c824b0eef8ab', 'coupling'), ('https://github.com/SonarCommunity/sonar-php', '1f847bc0c6c201116f13f45f289f612ac75248c0', 'complexity'), ('https://github.com/42BV/jarb', '1fa6c9910b92e25261f051f68a6d4a804b01df28', ' abstraction'), ('https://github.com/apache/maven', '200d2f9935c537bf91328150192386d4fbf11554', 'inheritance'), ('https://github.com/jbosstools/jbosstools-vpe', '202aea2b178894a8e5d142a6d254b00f130c8eaf', 'composition'), ('https://github.com/droolsjbpm/optaplanner', '205320581fc0ccd66fdcb476cf9b00d86a7d252f', 'inheritance'), ('https://github.com/eclipse/jetty.project', '205ef85ead2c7ea169e4aebdabcf9f24b66de15d', 'complexity\n'), ('https://github.com/carlspring/strongbox', '207b266de44c64a0555aa1d8792e636dd27ea28f', 'abstraction'), ('https://github.com/jclouds/jclouds', '20c3426fc8c02743025139854d7e2c4049a8e4ae', 'complexity'), ('https://github.com/camunda/camunda-bpm-platform', '20e3cad2bacff5dade34748912118648fcba024e', 'inheritance'), ('https://github.com/estatio/estatio', '20e85d91a5e83568fd19dc8fb128db6a0d1378e4', 'inheritance'), ('https://github.com/SpringSource/spring-data-mongodb', '21048f211d0cc71e6deec4033c5477cdf9c6e009', 'inheritance'), ('https://github.com/exoplatform/kernel', '210e05949baf2f3bcab246ec409bd3538c7ca034', 'coupling'), ('https://github.com/jbosstools/jbosstools-base', '21a0469f696de0910add6c49aa843f6943d020dd', 'inheritance'), ('https://github.com/softwaremill/softwaremill-common', '21b21df357660b6778369265ae429ceadbde55bb', 'encapsulation'), ('https://github.com/jqno/equalsverifier', '21ba9204fc85718bb5e1cf4c09d0d62ee71ca44e', 'complexity'), ('https://github.com/timmolter/XChange', '21c0da4fe4640916fa8a84420808a1fb318047b2', 'inheritance'), ('https://github.com/intelie/lognit-cli', '21dbf5a43e137f589a65fedf2f4ae60a844af948', 'complexity'), ('https://github.com/Milkphany/PotatoRental', '220dd28646f1879d9aeee13eb57357cf5ec67093', 'abstraction'), ('https://github.com/astubbs/spring-modules', '221029dc09b338beade371f1daf0373ba577b9b2', 'coupling '), ('https://github.com/wocommunity/wonder', '2216f385a3e16a43739edb14fbf246f9ee381e54', 'inheritance'), ('https://github.com/HUSACCT/HUSACCT', '228a9df59df8a9503d3012dc77ca8affaaf87cba', 'inheritance'), ('https://github.com/RegalOwl/HyperConomy', '22b91f23a5c73a150bce698fc2b69b3c3a36a485', 'abstraction'), ('https://github.com/phrstbrn/Jobs', '22c4c406e288a444e88bde4d6302d2fb327fd937', 'abstraction'), ('https://github.com/antlr/stringtemplate4', '22d09f70e50fa485bd0927918204fa8d8e793598', 'complexity'), ('https://github.com/HUSACCT/HUSACCT', '22e818542e0a26dc43b091352bbc0ec27ec47563', 'abstraction'), ('https://github.com/stickfigure/objectify', '235b3562c8b07a4fb46cfe9197eb280c552c79cd', 'inheritance'), ('https://github.com/kristofa/brave', '238fcd7660fe62952ed72777869658500044d6d8', 'coupling'), ('https://github.com/cloudera/search', '23c01531f4ce80f0730f0b5219495344d61379dc', 'inheritance'), ('https://github.com/DozerMapper/dozer', '2437f5ae3146aa7a11b4fb81c58c46452c52fb94', 'inheritance'), ('https://github.com/stormpath/stormpath-sdk-java', '2495e2645ea5401ddf79c815d8e12fcb0b266330', 'coupling'), ('https://github.com/openmrs/openmrs-module-webservices.rest', '251064d1d247bd26af0657c1b89577c26a2c6eef', 'inheritance'), ('https://github.com/anderssv/jzx-weboo', '251d69fdef3a6a8124aef7d881945ea3eeacfc3d', 'abstraction'), ('https://github.com/gufi/OpenLogViewer', '2523f54ee50532f5793460b89749edeab8697ac2', 'complexity'), ('https://github.com/NuclearW/Slice', '256259fce214ac327da338e6e9e580d0faedf362', 'inheritance'), ('https://github.com/christophd/citrus', '2583da49ef75794deda45a0a83087af0babdb073', 'complexity'), ('https://github.com/SpringSource/eclipse-integration-cloudfoundry', '259a6cb8d8345f687aa7f7a75ad1b6a84f2dbc5c', 'abstraction'), ('https://github.com/apache/commons-math', '25a6b32fe16ff1e048c6667f05c19e0cb5b24090', 'composition'), ('https://github.com/mifos/head', '25eab09cb02a5ea3149264400f21deacb5a8853c', 'inheritance'), ('https://github.com/bguerout/jongo', '2658c16d089ab347065bcaf766aa320e384e96f7', 'polymorphism'), ('https://github.com/threerings/tripleplay', '265a94d25aebc411b0d16eda2ab1bac30790e51b', 'abstraction\n'), ('https://github.com/kongchen/swagger-maven-plugin', '265aabb6c33b202c95d13a226de804835927d6d8', 'inheritance'), ('https://github.com/hibernate/hibernate-validator', '2680f575d8bab5dfa46e2d496044bb8516bfa27d', 'composition\n'), ('https://github.com/jdbc-bare/spring-jdbc-bare', '2689751c2b9f66d06552581941fcba3b60197c4a', 'cohesion\n'), ('https://github.com/52North/SensorWebClient', '26aa1ff6d400f6c1bf0244e187b44f2b6943b672', 'encapsulation'), ('https://github.com/codereligion/reflect', '26be4b5063e6552a519ec29783b990550dec29c6', 'complexity'), ('https://github.com/camunda/camunda-bpm-platform', '26ed02124acd223c2e2a021d036ccbf2676edb8f', 'complexity'), ('https://github.com/tuxdna/semanticvectors', '270023033bde5ff51611de0031d43d9b31fa3852', 'encapsulation'), ('https://github.com/metamx/druid', '273205f217e6f730ff6905155e8841ad3aaa67e1', 'abstraction'), ('https://github.com/orfjackal/dimdwarf', '274398f3e595be2bc8bc877aedb177571870b31e', 'complexity'), ('https://github.com/jqno/equalsverifier', '274ec24bb62b409cdb847f34e9f758ca9a309142', 'complexity\n'), ('https://github.com/skyscreamer/nevado', '27771c80ddf2ffed685c8bed46ea6041ef71c98b', 'inheritance'), ('https://github.com/apache/maven', '2783afc4bf0a498d48c4268715b0cdf89693deb6', 'inheritance'), ('https://github.com/TexasDigitalLibrary/Vireo', '27ecc4bd2157916f0ad4285a208d8a9c781eefb4', 'inheritance'), ('https://github.com/OpenGamma/OG-Platform', '27eef2f22b09337cffc329b0eca748b84057164a', 'abstraction'), ('https://github.com/OpenNMS/opennms', '280f0bc3e3d403f8bb3307bf814d6a795f9c24a2', 'abstraction'), ('https://github.com/nathanmarz/storm-contrib', '28801fc3b7334605f267219519d85741d8f62964', 'abstraction'), ('https://github.com/jclouds/jclouds', '28aadccb49540d20dda7e68e52b8265a285843fb', 'abstraction'), ('https://github.com/johncarl81/parceler', '28b889d875af3f445fecf0a40acef0e57283932a', 'inheritance'), ('https://github.com/sonatype/gshell', '290f280234992faedd797c92606c59311fb67134', 'abstraction'), ('https://github.com/kohsuke/msv', '291cddfd85863a1c0611a7a8822fc095f9f4fb41', 'complexity'), ('https://github.com/apache/cayenne', '292c2984a92815eb6624e2f6d2b61688dfa9725d', 'inheritance\n'), ('https://github.com/SonarSource/sonar', '2930b4cde87a1dc3536c1ba66fb04fd582070ecc', 'complexity\n'), ('https://github.com/Pi4J/pi4j', '29609f54d95979b38eb92022ce00ff8befca2c7d', 'abstraction'), ('https://github.com/nathanmarz/storm', '297ee5a439c8b082ab5ffc0061d657687e1221ad', 'abstraction'), ('https://github.com/SonarCommunity/sonar-dotnet', '299ca85c1c3c5fb60a14852ed8b2bbfc60244370', 'complexity'), ('https://github.com/zxing/zxing', '29d7d6443e0a9276a6240c4144550ca9807e0d56', 'abstraction '), ('https://github.com/diosmosis/drones', '2a08e4a46eb8ce006643921ffd492ac5e11a6cd6', 'abstraction'), ('https://github.com/masterthought/cucumber-reporting', '2a1f6bf1f5cc762c4196012efee579b534f949e5', 'complexity'), ('https://github.com/carrotsearch/smartsprites', '2a5c410ef19aca9408ef471772a57ee4030ef4de', 'abstraction'), ('https://github.com/mlallaouret/ComputerDatabase', '2a7f43880fd868bf2aad8f215988874e5caf84c8', 'coupling'), ('https://github.com/goldmansachs/gs-collections', '2aa92f1f773a0a11c7460e7d3c5e4e757ee841db', 'inheritance'), ('https://github.com/dCache/dcache', '2afbbc2ab85c208847c3124222f532ed5804b953', 'encapsulation\n'), ('https://github.com/jsr107/RI', '2b471ff9336cd951a4cbe040908a79467a6b0824', 'complexity\n'), ('https://github.com/apache/karaf-cellar', '2b4997c7b217b0d1c6d5297f6f4f0aa397a45bc6', 'inheritance'), ('https://github.com/edipofederle/architecture-representation', '2bc9f6db90b675a8c00e5183f109c6b7f55430a8', 'abstraction'), ('https://github.com/resteasy/Resteasy', '2bfc96d4024623b176d1448dae9d1b12827c21ac', 'inheritance'), ('https://github.com/bguerout/jongo', '2c21c4e1d15bbbdf7f317be1dd902f1b33efe559', 'inheritance'), ('https://github.com/mneedham/neo4j-fork', '2ccaa35b39604fc0ecd4f4b062c6de4a3c8b4b78', 'abstraction'), ('https://github.com/shantanusharma/closure-compiler', '2cdc02065b5eafecf598a883ee45397bc7657626', 'inheritance\n'), ('https://github.com/axtimwalde/mpicbg', '2cf4f0b9d65923007eedad13e9b61bc8394954d2', 'inheritance'), ('https://github.com/xXKeyleXx/MyPet', '2d16e6a9ec8a14fd9850faa387f044f595b13942', 'inheritance\n'), ('https://github.com/OpenNMS/opennms', '2d30b75214e68f8825b2659a5ff9fc527e6ab29a', 'abstraction'), ('https://github.com/rabbitmq/rabbitmq-java-client', '2d337d949bfa6f594ef500e3a2cb7b063b7831e3', 'abstraction\n'), ('https://github.com/mneedham/neo4j-fork', '2d391918b0bac3e37b979ac0e2dda026f2328615', 'abstraction'), ('https://github.com/apache/cayenne', '2d3f999b0360936d25a9f08d7eea7e2dd07dbe04', 'encapsulation\n'), ('https://github.com/lmcgrath/conways-game-of-life', '2d76c80f492656ad964d565e71ece2f38ebdbe9b', 'abstraction\n'), ('https://github.com/scrutmydocs/scrutmydocs', '2ddbf82a9b7d16bfc94876473a4465839601eba5', 'abstraction'), ('https://github.com/rainbof/nyxtools', '2de7d9c36d8dae30644af7d41cdac2f2e5b2bfdc', 'encapsulation'), ('https://github.com/uklance/acme-slots', '2df512d769de9345fd48d8484e13cf5f6001921b', 'complexity'), ('https://github.com/apache/tez', '2e2312646d25ac0fc40b9cca443f83d3e10b392b', 'abstraction'), ('https://github.com/idega/com.idega.core', '2e3be506c6e4e7504cdf287100a1dabd868fd87e', 'inheritance'), ('https://github.com/nikolaspapirniywork/Algorithms_summer_2013', '2ec7d35966587f8a2e2638b9e4b1738f22ef0ba6', 'abstraction'), ('https://github.com/jenkinsci/svnkit', '2ee2f14119da9d2f1cfba2b1b824b14384c6b9d5', 'inheritance'), ('https://github.com/StuartMacKay/transform-swf', '2fcbe669ea7e89edc260a670fdc80fba55bce28f', 'coupling'), ('https://github.com/droolsjbpm/drools', '3007f2c42783b038c082ae5f83962e64ecbacd6e', 'coupling'), ('https://github.com/OpenHFT/Java-Lang', '3020937f98cb896f489b17350ab318fb412b6407', 'abstraction'), ('https://github.com/BMintern/gson', '30a7fbc11eeed535b5e5bd33386b34d897547cfa', 'inheritance'), ('https://github.com/jknack/handlebars.java', '30a9b860a8580118b1e56f1ff0215d4fd6c3bd63', 'inheritance'), ('https://github.com/caelum/vraptor', '310dca90ecc64e7e2458e1ecb28b85fde244bd85', 'complexity\n'), ('https://github.com/CoreMedia/jangaroo-tools', '3134c60dd4d94a2d73c7446fa235dfaf107c18e2', 'inheritance'), ('https://github.com/kirkch/SandboxMosaic', '3190eaa6bec14294c80d975c953f470bd2a47c17', 'abstraction'), ('https://github.com/eclipse/birt', '3205466df57ae789fba321b14ed4fccf5a285020', 'inheritance'), ('https://github.com/charite/jannovar', '321ee36265b54a59f094c93f5e52689a22fd947a', 'inheritance'), ('https://github.com/christophd/citrus', '32241f6e38c78da33e3b76b292ba051fc1079a97', 'complexity\n'), ('https://github.com/robbert/closure-compiler', '325025731e0aabcf1344d1dbf55bf28927b9b722', 'inheritance'), ('https://github.com/pilhuhn/rhq', '326f801c85208670e4879f843fdd01dbae061150', 'composition & \ninheritance'), ('https://github.com/forcedotcom/phoenix', '32d49812a9cb41880eec2c33067112a9509dadc0', 'abstraction'), ('https://github.com/Mobicents/mediaserver', '32f9fc134818a807c3b34318c3790fa69f7b5d87', 'coupling'), ('https://github.com/jdbc-bare/spring-jdbc-bare', '33252495cfea895f61aef38c56b59a660ef5ae75', 'inheritance'), ('https://github.com/BaseXdb/basex', '3341fe01f7336faeeecd9a139eb5696fee650f40', 'abstraction'), ('https://github.com/SonarSource/sonar', '334c4356cf894c8db0358ff662633c4189a42e6c', 'complexity'), ('https://github.com/PEXPlugins/PermissionsEx', '33ab96dc1260db9ecc38bac2e47044292f5f8b02', 'inheritance'), ('https://github.com/jmock-developers/jmock-library', '347702c0b1efd191772fffb505e2f25af648db2f', 'inheritance'), ('https://github.com/kohsuke/hudson', '34a07739f359b2ec173ffebeadab50ce667d4c24', 'inheritance'), ('https://github.com/aludwiko/fluentbuilder', '34b5e4e7fa04d63001d25ede88170ce0248802ca', 'inheritance'), ('https://github.com/melexis/activiti', '34cd1cbc9d248aaf9e2d664bb8062b4d3f4d7f5d', 'inheritance'), ('https://github.com/Sage-Bionetworks/Synapse-Repository-Services', '34d7f522599069e87fa9483b96ea2c41cf166956', 'inheritance'), ('https://github.com/apache/httpcore', '3560d53a611d057b73718e67231d6e26bc8f9d5c', 'coupling'), ('https://github.com/SpringSource/spring-data-commons', '35697d639ab39f50c42d80038ae99d98d43d9827', 'abstraction'), ('https://github.com/hueller/spring-activiti', '36873d0d47b12265b4cc7d30b33d4a6574e3538b', 'complexity\n'), ('https://github.com/bazaarvoice/jolt', '369519955de019a79c78ec903a22377781474ae7', 'polymorphism'), ('https://github.com/jOOQ/jOOQ', '36c98e4cc45cec91af46602a6ec89b596a113e62', 'coupling \ncomposition'), ('https://github.com/metamx/druid', '377151beda5db983bad14cbe4823babd1527b393', 'abstraction'), ('https://github.com/PEXPlugins/PermissionsEx', '377cfd113461abfca53468905ab3b82b313d510d', 'inheritance'), ('https://github.com/xwiki/xwiki-commons', '37bb3db7246e56eb4d3b70c88e865ae707a2db6e', 'complexity'), ('https://github.com/apache/cxf', '37fa0f860fb9cea02de8a792567e76ff2dc6627e', 'inheritance '), ('https://github.com/SonarSource/sonar', '380241e75968446018fba19e65df8ffe549bf1da', 'complexity'), ('https://github.com/immutables/org.immutables', '382481b381da35964a1153f408a052d87b2d8ff1', 'inheritance'), ('https://github.com/apache/ode-jacob', '38592a08262b5aee93b83e4ea0c0f6eaa86a0c95', 'abstraction\n'), ('https://github.com/apache/cayenne', '387a520dd7d54ae3497ff86a1d1c654f1dd90510', 'inheritance\n'), ('https://github.com/crashub/crash', '388dc05a5c05737d499f49c6b7816af4d26984a6', 'coupling'), ('https://github.com/ist-dsi/fenix', '38ca074be7d661080d0d2d3c9498d4b87533be24', 'abstraction'), ('https://github.com/bindian0509/bharat', '38d867355a1076316e326045717f0beb0a45e59c', 'polymorphism'), ('https://github.com/Jasig/openregistry', '38fd9e031febb4a3073f011cfef99da9bc1d2cac', 'coupling'), ('https://github.com/dana-i2cat/opennaas', '392147b4e6a81f45c863b8f4c6760223b199384c', 'encapsulation'), ('https://github.com/jqno/equalsverifier', '3942f47aba0c0185f195b691206bf3a4bfa3b5f9', 'complexity'), ('https://github.com/apache/cayenne', '394c07c3be94c96b047fe08453a8d800925aeacc', 'inheritance'), ('https://github.com/wstrange/GoogleAuth', '396d8f19ce6bb472e7e27bb8ae8754941a840f43', 'encapsulation\n'), ('https://github.com/neurord/stochdiff', '398022df9a61a35d16086e894701ed83350683e5', 'coupling'), ('https://github.com/collectionspace/services', '39bd6cb403303d585fea1807b9276cf4252a3b0b', 'abstraction'), ('https://github.com/SonarSource/sonar', '3a742bb8b929c6e1d7f12405fd82935b75c287de', 'coupling'), ('https://github.com/roboguice/roboguice', '3a8a12c4b25cae0e3a35791eb9ab049b1d9d4f93', 'inheritance'), ('https://github.com/bitronix/btm', '3a905989b92d0268106e531b945239dc19264831', 'coupling'), ('https://github.com/joshelser/cosmos', '3a9bf3844450e0b962f746c9e4f3e60237d922a7', 'abstraction'), ('https://github.com/masterthought/cucumber-reporting', '3aac7045ddb72f0006479a57bac9eeaa64afea53', 'complexity'), ('https://github.com/SpringSource/spring-ide', '3afca633d9057be6792eb45cc494e02ead5646dd', 'abstraction'), ('https://github.com/pluto-atom-4/testng', '3b2881b877fe7515d1f774f2f06755ceb56a09e7', 'composition'), ('https://github.com/SonarSource/sonar', '3b39dd732cc5a892cba690ed34e081c351749532', 'inheritance'), ('https://github.com/Activiti/Activiti', '3b649b72c334a617620e922723503b06450629e5', 'inheritance'), ('https://github.com/sk89q/commandhelper', '3bc4671e16393da49d2d481dab331dd22b75abaf', 'abstraction'), ('https://github.com/ata4/disunity', '3bd93df05933b2d8fb373d31494af8916b4fe40a', 'encapsulation'), ('https://github.com/jclouds/jclouds', '3c41116782bfc2fd362064010abafe0f6cfd0ae2', 'abstraction'), ('https://github.com/SpaceManiac/PermissionsBukkit', '3ce1baf632c1d1b3bb58181768dacffe0f1d99c4', 'inheritance'), ('https://github.com/hpehl/piriti', '3d2ffb6e34153e40399eb22ab47d24ff2c46c51e', 'inheritance\n'), ('https://github.com/deegree/deegree3', '3d64b5f70be01b9cd94a18009e997c7963c64211', 'complexity\n'), ('https://github.com/droolsjbpm/jbpm-form-builder', '3db73518f17952f1f7ebdd69ccc2302bbdaf9514', 'coupling'), ('https://github.com/SonarSource/sonar', '3e2ef8e0ed81e268f6143f170b8d5fc39fcf38b5', 'inheritance'), ('https://github.com/RegalOwl/HyperConomy', '3e7e2f3deabe3c0c94059d1717ff607f1e6671cf', 'abstraction\n'), ('https://github.com/MongoLink/mongolink', '3e95ee1c4222d6741e822cf1a3f837dbe684b31c', 'abstraction'), ('https://github.com/tyrus-project/tyrus', '3eba417cfd2b953f7b9712f26d6f3b14f13aca09', 'abstraction'), ('https://github.com/apache/jena', '3ef5291ef1185b272f6e629cbe969b189ccb82a0', 'abstraction\n'), ('https://github.com/eclipse/eclipse.platform.swt', '3f16243f15249d0c5b9acd8d735db116a6188e83', 'encapsulation'), ('https://github.com/timmolter/XChange', '3f29273f80a64a2447934b25a3eaf45829c6e7f8', 'inheritance'), ('https://github.com/apache/isis', '3f3050414cdef080eb2fe57702d0e94d827e990a', 'inheritance'), ('https://github.com/qos-ch/slf4j', '3f4e079e373e2a475631b45948f54f77497576fa', 'abstraction\n'), ('https://github.com/wolfc/microcontainer', '3f873ecd4728cf1c31f41dab78116a6a7bfea356', 'inheritance'), ('https://github.com/apache/camel', '3f8fb8dc9a961fbc772d21af42470269d802767b', 'complexity'), ('https://github.com/SpoutDev/Spout', '3f9eb21bbec81d0b6cea6b5cc2ecc104e2543472', 'inheritance'), ('https://github.com/mikaelsvensson/backup', '400bd4a23ec6709e50faf1ae563119cbd95bee84', 'coupling'), ('https://github.com/ggrandes/chainmq', '40315167344f36e819b617bdaaa275773f3c08b0', 'abstraction'), ('https://github.com/Quantas/Managed', '40500a8d25c387775d15c0c1ad1f102d9cffaaa0', 'inheritance'), ('https://github.com/openengsb/openengsb-framework', '408574f59f6c1262d4fd9ef5ecc15818bca824f4', 'abstraction'), ('https://github.com/mwinkels/xom', '40ab89ab02c71b4f29ac16e492727f77de5afc03', 'coupling\n'), ('https://github.com/Atmosphere/atmosphere', '40f2de03a2d6b9744d61ab6b10c2f445a3c990a2', 'coupling'), ('https://github.com/tpbvieira/hadoop-analyzer', '40fd1e7cf85d45b2ed67693f2a45a2c0dba72a18', 'coupling'), ('https://github.com/overturetool/overture', '415034a282fa28d45431d0c5f61ee9606f281301', 'inheritance'), ('https://github.com/xwiki/xwiki-platform', '4164b0a5529fd0e1a3dfc3bb9e3af711f99a56b5', 'complexity'), ('https://github.com/collectionspace/application', '4169c40bc3007edf16151b9d2c5717bd0c2343e2', 'abstraction\n'), ('https://github.com/rabbitmq/rabbitmq-java-client', '416be6ca47802a8ed5d5654fbf042b0a4f8b0e9b', 'abstraction'), ('https://github.com/mifos/head', '41bdbf780583735f32dc8781b5bbc27eac1008bb', 'coupling'), ('https://github.com/mneedham/neo4j-fork', '41e1b13e28b03020e47ed71b3a865b07e9479e8b', 'abstraction'), ('https://github.com/ist-dsi/fenix', '41f80f7685fc62b3beda47c0b7db791e948ac294', 'inheritance'), ('https://github.com/CloudBees-community/cloud-resource-commons', '420c31cab33775f4aa0966b603315c1f4b69b976', 'abstraction'), ('https://github.com/jclouds/jclouds', '428709f1a8f91e6d9f2301f90fa7ee039aca3c98', 'abstraction'), ('https://github.com/amnotbot/amnotbot', '429925c114b99ee543547eb8918c63d871dfa22f', 'inheritance'), ('https://github.com/Omertron/api-themoviedb', '42ff59d4ba6e03982f97ebc201a671887a53d3c3', 'complexity'), ('https://github.com/pietermartin/umlg', '4318b7a2a1f745eb90d9e2971b78a1c4618f902c', 'abstraction'), ('https://github.com/leizy/spark', '431ca39be51352dfcdacc87de7e64c2af313558d', 'inheritance'), ('https://github.com/apache/roller', '433c25b700705180973308c8f5c1ad5f458128a3', 'encapsulation'), ('https://github.com/wocommunity/wonder', '434e44cb089e6da47d4fb76ae623a379a6a70ef3', 'inheritance'), ('https://github.com/cpesch/RouteConverter', '43802e4004fcdceec415466bcbd5fbd283821789', 'coupling'), ('https://github.com/sakai-mirror/sections', '43824060c8470db804e1c62d9e5655e689a44825', 'inheritance'), ('https://github.com/hazelcast/hazelcast', '43cb8b8efaf66e08359e4ded78b14d16d125a797', 'abstraction\n'), ('https://github.com/structr/structr', '43df292495645f8de0b7cb72cfdf8999593de2c0', 'inheritance'), ('https://github.com/rhuss/jolokia', '43fe403e115406a206000c8eb001158689e97a4e', 'complexity\n'), ('https://github.com/deegree/deegree3', '44072bc478d4d31f28ccbdd35ae04f9a2adff7fd', 'complexity'), ('https://github.com/yubin154/lightflow', '442d96b8c99d289a16ead68c948b02760f7cbf10', 'abstraction\n'), ('https://github.com/OpenGamma/OG-Platform', '44a855c83345985e13a7d44a8589381fbaab8c2e', 'composition'), ('https://github.com/SonarSource/sonar', '44c499e6b2186b16ff1aa60ad4c9e22f7b0c64fa', 'complexity\n'), ('https://github.com/hibernate/hibernate-validator', '44c66d35cb1134a23b68a232be89773132cda7a0', 'composition'), ('https://github.com/droolsjbpm/drools-chance', '44d40077960a8e4dcdffaa12f06c031916972412', 'polymorphism '), ('https://github.com/charite/jannovar', '45009807675d108c14f2340ef145675a5234e830', 'inheritance'), ('https://github.com/mpi2/PhenotypeArchive', '451c35f9c2f5f9b485cdbbb34aba38a21fbefb01', 'inheritance'), ('https://github.com/cmader/qSKOS', '45446d54e43bb861d19e4f256ce55056bfe69fec', 'inheritance'), ('https://github.com/Emergya/GoFleetLSServer', '45764d6c340f391780d4382828ffa47802f54a2b', 'coupling'), ('https://github.com/Omertron/api-thetvdb', '4589aef640fc367919bea0db1da23991a5cf5a51', 'complexity'), ('https://github.com/adangel/pmd', '4593909dccd02f12f13172a60b0b2288fbde14f1', 'complexity'), ('https://github.com/BroadleafCommerce/BroadleafCommerce', '45c6f9f3507d36d5e3d473ab2a59cae51b725adf', 'abstraction'), ('https://github.com/apache/maven', '45d1e985aae8347f8a1dea9d6471f0558c7016c8', 'inheritance'), ('https://github.com/krosenvold/findbugs', '45da10f0c5e04b312914a66e42a34df9474a2279', 'inheritance'), ('https://github.com/42BV/jarb', '45dfb025391fabc6b93c291a18bb0e390815e37a', 'inheritance'), ('https://github.com/ceylon/ceylon-ide-eclipse', '466321986943bbf8a265848e13f004b069b68a5a', 'abstraction'), ('https://github.com/apache/incubator-drill', '4689468ef11a70c782f64af451807e1e10cdce65', 'abstraction'), ('https://github.com/SonarSource/sonar', '469ecd7eb9b89351fd10d7e8d033a5292a683f0e', 'coupling'), ('https://github.com/cpesch/RouteConverter', '4722bcc8994acaabc8fb43808bcd452fa13545af', 'abstraction'), ('https://github.com/weld/core', '476a2e7790c8ffd6dca76aedc4d8c127cb9192ad', 'inheritance'), ('https://github.com/allr/fastr', '47884f5a63a1534e8a9a9efa3c16fa75b0890980', 'inheritance'), ('https://github.com/vietj/chromattic', '47ba623e2f5664353e3fa9543ba4ffa091539602', 'inheritance'), ('https://github.com/LiveRamp/hank', '47c0d3ef99cc40789aad6d6052289c8f34ace025', 'abstraction'), ('https://github.com/resthub/resthub-spring-stack', '4889d4b3ec85dce5b09fc9a383afce1d7676a8c5', 'inheritance'), ('https://github.com/SpringSource/eclipse-integration-cloudfoundry', '48a6df8a9f391ee21cafd47e40652980ce87ea3a', 'abstraction'), ('https://github.com/resteasy/Resteasy', '48e5c1d2546d7293b67e3f6e928f6f5b46347ba7', 'inheritance'), ('https://github.com/BitResolution/xTest', '48faa009bdd05001601a4789b7ff955efcec014c', 'coupling'), ('https://github.com/deegree/deegree3', '49408696fd78816a0f526b0ee5f4c9b8cde658d3', 'complexity\n'), ('https://github.com/JavaMoney/javamoney', '49649025a128437f4fccb2c0aae679128547b922', 'abstraction'), ('https://github.com/SonarSource/sonar-java', '49cbaa68082cc3b2637d79dee0d7267d230ffe68', 'complexity'), ('https://github.com/jclouds/jclouds', '49f1d0760e06415143688bd7ac2ec2f2efcb2170', 'abstraction\n'), ('https://github.com/mpi2/PhenotypeArchive', '4a1f2df00d40f8ec61f7f844b01b74fec9fa508b', 'inheritance'), ('https://github.com/ops4j/org.ops4j.pax.construct', '4a55e1cffc13e13042899dfbdca36cf43c374210', 'complexity\n'), ('https://github.com/volodk/nicebean', '4aa8a65397472f651b37d27b29155de2adf5bfec', 'abstraction'), ('https://github.com/jmimo/netty-icap', '4bc6492bf7217da3786ba3649182b07d0c42f94e', 'complexity'), ('https://github.com/mysema/querydsl', '4bf76058d80e3024c64004f2fa46cf2c17cb35c7', 'inheritance'), ('https://github.com/kirkch/SandboxMosaic', '4c156c81ac6af17811a6160cdf1ed200170b02f1', 'abstraction'), ('https://github.com/bedatadriven/renjin', '4c1878f5f723232ca854b461e4372e884dc285a7', 'inheritance'), ('https://github.com/SonarSource/sonar-java', '4c1f56672c72c2a80583f7307a614eb99d4faf18', 'complexity'), ('https://github.com/ColoradoSchoolOfMines/kinect_exhibit', '4c264336592fea590a1b2f420c6efeeee21b4158', 'coupling'), ('https://github.com/openEHR/java-libs', '4c6ef95a09ef0c20c9c76431b9b7ce08c70faac7', 'inheritance'), ('https://github.com/kongchen/swagger-maven-plugin', '4c946f55af5b2b3735ed4c80ba3f36e8df9c9bf5', 'inheritance'), ('https://github.com/pcm32/LayoutPipeline', '4d11b053deeb75c8711dccbc72257d80e2711454', 'abstraction'), ('https://github.com/ceylon/ceylon-ide-eclipse', '4d40b529294ab9357d331258817a4488035c4f6d', 'abstraction'), ('https://github.com/SonarSource/sonar-java', '4d4390c65d68aab6e67e974525eecac86eb00e6d', 'complexity'), ('https://github.com/farin/JCloisterZone', '4d4b3e17b35e6a308167c1f847e4d5e9e173719a', 'coupling\n'), ('https://github.com/teiid/teiid', '4d88875e9376a9da4ebf5e9dd941faedd5035e41', 'abstraction'), ('https://github.com/mapstruct/mapstruct', '4d8bc29347e37bcf22d121829802e7f58603afbb', 'inheritance'), ('https://github.com/apache/cayenne', '4e10848fa234bf42a3155df7cc5742a09ffb5816', 'inheritance'), ('https://github.com/DataTorrent/Malhar', '4e120e30b849a30a96a95638814fb84ab5276e7c', 'abstraction\n'), ('https://github.com/SonarSource/sonar', '4e3996e3bdd48f3a3cd7bff1439f86c033a681c0', 'coupling'), ('https://github.com/jnorthrup/sphlib', '4e4cc17a17df14d24ff177ead3c7057ff9c090ac', 'inheritance\n'), ('https://github.com/mcenirm/cydep', '4e51393a61559e7de71b5d9eb4e66e3ae3bbfcfb', 'coupling\n'), ('https://github.com/airlift/airship', '4e807676dde0f4873bec771636711a9768ef2f12', 'inheritance'), ('https://github.com/Palatis/danbooru-gallery-android', '4e97f5e797d42f3237c6c8e3a2ee76496bad6e6f', 'abstraction'), ('https://github.com/hale/dungeon', '4ea26ead609260eb75bd9ce21975a7c4fede13b8', 'complexity'), ('https://github.com/AxonFramework/AxonFramework', '4ea9bcf71236461deecd2d65750ce6aab92331a8', 'coupling'), ('https://github.com/Sage-Bionetworks/Synapse-Repository-Services', '4ecc8120eeabfd49eb2865e956cfc688e1939231', 'coupling'), ('https://github.com/mzielinski/scjp', '4f75d696d7958f4fa42dc3917e76b75e0b7bf15f', 'inheritance'), ('https://github.com/eclipse/vert.x', '4f7a5c93cdbc5459ad6bf0cde5a2b001ff6aebfd', 'composition'), ('https://github.com/forcedotcom/phoenix', '4f951fff3bb620e0b8785ac878801c3e63aa158d', 'abstraction'), ('https://github.com/OpenNMS/opennms', '4fe287419ca710a5381706af7c94df7ece777d6d', 'inheritance'), ('https://github.com/jenkinsci/svnkit', '501090dc914b17912b082299d007402bb00eea1a', 'inheritance'), ('https://github.com/SpringSource/spring-ide', '50626286a7772a00da6bb5ccf46452649c99c394', 'abstraction'), ('https://github.com/sonatype/gshell', '50b92e271347e6118234c2d85333a2d515b46006', 'abstraction'), ('https://github.com/axtimwalde/mpicbg', '5106d87c6f463c2743131ed43073c65cf9f896a7', 'inheritance\n'), ('https://github.com/camunda/camunda-bpm-platform', '510c373bf805d58862b20e00ac019deef3ac7ba9', 'abstraction'), ('https://github.com/richfaces/cdk', '51105191e93c24505f59fdb53cd9ee4a9486e2ad', 'abstraction\n'), ('https://github.com/ebean-orm/avaje-ebeanorm', '5122ea4b4dcb2447fcec568a7b6b4672cc972671', 'inheritance'), ('https://github.com/rabbitmq/rabbitmq-java-client', '513e3c3b2f7c1a524dd8928ce053c07de18ec813', 'abstraction'), ('https://github.com/martinrist/java-sandbox', '51594d9151cc15f7ae845bdae928c3349beb3371', 'inheritance'), ('https://github.com/structr/structr', '51647e6d2ccb541b373d206bb0fefcc0c81a860d', 'inheritance'), ('https://github.com/bcdev/beam', '51686d4370c8c66d5e26234fff8bb1d2a0602197', 'abstraction\n'), ('https://github.com/apache/mina-sshd', '517163a4c51335d7422b782ac4f240729d460cde', 'abstraction'), ('https://github.com/molgenis/molgenis', '5191660808707108060c9d659a90d41aa8bf15a4', 'complexity\n'), ('https://github.com/conventions/core', '51aef28ba2632e61ef59ec346c9c9a93745b678f', 'inheritance & composition'), ('https://github.com/Xorlev/gatekeeper', '51cc7a0ee0a8e94657152e9bc32c8b6198a9d483', 'encapsulation'), ('https://github.com/irstv/orbisgis', '51cd6902c937be1099c5007e0cd4899a63b3c141', 'inheritance\n'), ('https://github.com/xXKeyleXx/MyPet', '52334080e6933970e99c4a23d4e473f21085a4a7', 'abstraction'), ('https://github.com/l2jserver2/l2jserver2', '52d4be0bf24fc124b1a8630bf07a3a63c169dd61', 'abstraction'), ('https://github.com/OpenGamma/OG-Platform', '537a39981d74b0fdb74ea4e69fb5c45ea3e05e02', 'composition'), ('https://github.com/dimalabs/ozone', '53bb5bda61b55b1a38806f0a60dd3ce0590c3fd7', 'abstraction'), ('https://github.com/jboss-reddeer/reddeer', '53bf11b2c15913c29e9c66468a68475dbe2051fd', 'abstraction'), ('https://github.com/pietermartin/umlg', '53da683099a935fea1e603cc95590f5747ef1e86', 'composition'), ('https://github.com/SonarSource/sonar', '53fdf23671b1ae1ebf1541705ab49d6c30f72bd4', 'inheritance'), ('https://github.com/johannbarbie/RestNucleus-Boilerplate', '540d7655a6906039e3a2bd6258a170ce634fbae1', 'inheritance\n'), ('https://github.com/droolsjbpm/drools', '543d81fc16696aaf43ea1bbb6befa8f9d776acc9', 'abstraction'), ('https://github.com/eclipse/eclipse.platform.ui', '5450ee45bfb63d1d3b26b514651e0516034e02db', 'inheritance\n'), ('https://github.com/semperos/screwdriver', '54a391e14b629d78e57155006dc849a165ca2d1c', 'abstraction'), ('https://github.com/apache/cayenne', '54a449fad25dc91e17ef5fc163378413a7a3c5fc', 'inheritance'), ('https://github.com/cismet/cids-custom-sudplan', '54cc530f7c671ebc04c5575e18dac232fafb579e', 'coupling'), ('https://github.com/herve-quiroz/tubular', '54f4d6059d2f2a66a1d2983caad174ff37c2944d', 'complexity\n'), ('https://github.com/karuana/STANly_Server', '54f6b25cbd1beb71e7bc5063d6b4e5ee60816585', 'composition \n'), ('https://github.com/pawelkaczor/jfxflow', '556322fa0a45ee49c6f8d32b7af70f746e6233dc', 'coupling'), ('https://github.com/jtalks-org/jcommune', '55920990e4e5a1d2d3f134bb396cbe271641055d', 'encapsulation'), ('https://github.com/movsim/movsim', '55a4a97110bc1597eea3a9aec7c4568f1d6a66fb', 'encapsulation\n'), ('https://github.com/mbosecke/Pebble', '55c1948a4214b711d878b4e386fe048f13536f42', 'inheritance\n'), ('https://github.com/haku/cmstoad', '55e4709bff2db485a43dfeea2bab9f399321a568', 'complexity'), ('https://github.com/datasalt/pangool', '5602d36a80e4518bf81d9342b4ddfeb0f91fe8fa', 'inheritance'), ('https://github.com/eclipse/cdt', '5688a0ac9f9482b9d70252275268ed6cd60b1ff5', 'composition'), ('https://github.com/JavaMoney/javamoney', '568b35b5c685f94191685d861e0c90d1695e1b23', 'inheritance'), ('https://github.com/molgenis/molgenis', '56ad18f5d4967b4dd359bff5e3104078daeb3af9', 'abstraction\n'), ('https://github.com/eclipse/cdt', '56f19f3711a45bf7d58c1eaa23a0094020946512', 'coupling'), ('https://github.com/masterthought/cucumber-reporting', '572c4c61c312c06798438c7cc98cda687c0d697e', 'encapsulation\n'), ('https://github.com/apache/cloudstack', '57d0931b4950d202994d1b6609329502a60a9edf', 'inheritance'), ('https://github.com/laforge49/JActor', '586e9ebc65ab013351ab27e9bce2b4be36946f3a', 'polymorphism\n'), ('https://github.com/kohsuke/hudson', '588f9edf4096974e530fb983fea9d831366caf05', 'abstraction'), ('https://github.com/apache/maven', '589db485fd3b0eb1993e6d09646dd153a07eb9ea', 'inheritance'), ('https://github.com/jOOQ/jOOQ', '58d3979bec6384fcefb3ce8811eb9215b3466d68', 'composition & coupling\n'), ('https://github.com/jbosstools/jbosstools-webservices', '58d7300a02fba5381b8009e47c8f385b1e021ff8', 'inheritance'), ('https://github.com/msbarnar/yingreduce', '5923811d94c77c4d2a6283eca53d3fe7cf01f55f', 'coupling'), ('https://github.com/marytts/marytts', '592dfdf7374d2f5746a9e6e3c3b627e82110ead6', 'coupling'), ('https://github.com/christophd/citrus', '595aef58ef511d3cddbe824cb9acdda434c9a5a0', 'complexity'), ('https://github.com/eclipse/eclipse.jdt.ui', '596bd83c48bcd779b8a55fae18d65a80bda01443', 'abstraction\n'), ('https://github.com/obiba/onyx', '59922665b60a5764dd854d178d96ecd0cc105255', 'coupling\n'), ('https://github.com/apache/shiro', '5a304ddb491f87ca2da45d96f0ac2a716955b68c', 'composition'), ('https://github.com/cloudsmith/geppetto', '5a371e85cb2c09cac7e49971a3323e80c406e9a5', 'inheritance'), ('https://github.com/isopov/checkstyle', '5a6be4c757437373caf8e7d675f5bc1aa6a9ae38', 'complexity'), ('https://github.com/apache/cayenne', '5a76895d01dda45568f564b0f254b637d7f5b239', 'inheritance'), ('https://github.com/scrutmydocs/scrutmydocs', '5a976ccf552a35a887e778786589ab911b3e3352', 'abstraction'), ('https://github.com/apache/cxf', '5a9a2a09887c69cdfeff5eac22996ab35fbfc0cf', 'abstraction'), ('https://github.com/mseaton/openmrs-contrib-databaseexporter', '5aa704e8511d14b776c77ba85430ad7f29b9ba2d', 'inheritance'), ('https://github.com/agilebirds/openflexo', '5ac30ae7131ebe17bfa8e011dbcb01b72e1eb690', 'abstraction\n'), ('https://github.com/OpenGamma/OG-Platform', '5accaa803e2c1e766a9b8d1ef875e3ccdf73c668', 'composition'), ('https://github.com/jboss-fuse/fuse', '5acf136572fc5d42419adc93ff6e4e7c81ec71cc', 'encapsulation\n'), ('https://github.com/SpringSource/spring-ide', '5b94d7919c227fe3271131ffc4efd89bc87fc5c4', 'abstraction\n'), ('https://github.com/JacORB/JacORB', '5bf5566f306002904619e6b6d6fc0070060170d8', 'encapsulation'), ('https://github.com/hazelcast/hazelcast', '5c126950860bd477c1313bd51994bd9369a3f905', 'complexity'), ('https://github.com/apache/isis', '5c56c8128049298a1ac1e9afd8171a561c2c919c', 'polymorphism\n'), ('https://github.com/trygvis/unix-maven-plugin', '5c87c4aae1df14b0c1b9cf67712285aa4d4c1e60', 'complexity'), ('https://github.com/nathanmarz/storm', '5cdfc047cc5d3fbf4797c56e4befb6f6e282d58d', 'abstraction'), ('https://github.com/UnquietCode/Flapi', '5d58923dadc62edfda668cd2fdd9a5e51f6deb5d', 'abstraction'), ('https://github.com/jboss-switchyard/components', '5d6ea9654decdee04e512f3a814e457b2c279939', 'composition'), ('https://github.com/adamfisk/LittleProxy', '5d7f778cc3da4e7839ebb861492eeaf2064f5093', 'composition'), ('https://github.com/SonarCommunity/sonar-javascript', '5d9b7b4486151999d30d2f3d311dd7c342f16eab', 'complexity'), ('https://github.com/apache/logging-log4j2', '5e48367f9075a5672cac247f74434295e58459f6', 'composition'); INSERT INTO `iqa` (`URL`, `CommitID`, `IQA`) VALUES ('https://github.com/SpoutDev/Spout', '5e50e6d8ccc518fc36b316f6dc39f17781ddbf31', 'abstraction'), ('https://github.com/jclouds/jclouds', '5e82bbfa462cf3a537fef4d6a42eba7bed87de55', 'inheritance'), ('https://github.com/pressgang-ccms/PressGangCCMSCSPClient', '5e8c6b2ebba44efa2544ec7b7fc076c70d4799e7', 'abstraction'), ('https://github.com/aoprisan/net.oauth', '5ebb943944d41f4f7811498af1323f980f4d6884', 'composition'), ('https://github.com/pmerienne/formation-mongodb', '5ec81af88293e29bdb00f020aec9479c04e5b5be', 'abstraction\n'), ('https://github.com/hazelcast/hazelcast', '5eda2222dbb2eb5a41b649eeb0e3293798b737aa', 'complexity'), ('https://github.com/eclipse/dltk.core', '5efb3e466bf764423caef81ac8569ad96525f17c', 'inheritance'), ('https://github.com/eclipse/vert.x', '5f0dabc9ea0761ddbac953f0df2943c230de6fe2', 'composition'), ('https://github.com/SonarSource/sonar', '5f79d13360162ec93cc3813915791baacb19d4f6', 'coupling'), ('https://github.com/SpringSource/spring-boot', '5f8fbfd73aa6c5fa3bb9e1c15a0cb381c93f8c44', 'abstraction\n'), ('https://github.com/ist-dsi/fenix', '5fa0509210abc3f8020f1614635dde2aa7ff0a0e', 'inheritance\n'), ('https://github.com/rorygibson/statik', '6015513183a9458b05570fdae24c318ed9c2a4c0', 'abstraction'), ('https://github.com/apache/camel', '605710dd26419c4f005bc64663591eaa92a3f151', 'abstraction\n'), ('https://github.com/SonarSource/sonar-java', '6096c238c2179029ae5e570db135d252919eaccd', 'complexity'), ('https://github.com/hazelcast/hazelcast-heartattacker', '609d68af3d3d7d742ce8f22485ea62c99b7958f0', 'complexity'), ('https://github.com/bcdev/beam', '610c13f628b9234fe068d52e7754e04893619a3d', 'polymorphism\n'), ('https://github.com/spheras/messic', '61490dc4e0eba9ffeb5e499a320cb9d1951d94d4', 'inheritance'), ('https://github.com/Cognifide/Slice', '6170aec042bdc5430dd9dc840d46487c93389b7a', 'inheritance'), ('https://github.com/OpenGamma/OG-Platform', '61e56f2f25e5a4d1e0e44171bbbfd2046c16eefc', 'coupling'), ('https://github.com/burris/dwr', '61fd881e394c174d9d25fa578ae1e1ba6d98bdc6', 'abstraction'), ('https://github.com/FasterXML/jackson-databind', '6231c4d1f2f30b6f40d89d78883f52b4206d731f', 'complexity'), ('https://github.com/eugenp/tutorials', '62f9269903ed5fdd2004082b7869bf87b191c2a9', 'inheritance'), ('https://github.com/ist-dsi/fenix', '63090c3efa962987011b0e20dfcbb621021c3ecc', 'abstraction\n'), ('https://github.com/SonarSource/sonar', '63e52abdc39b84f2f32281e4e2bc7ec791a86685', 'complexity'), ('https://github.com/eclipse/eclipse.platform.swt', '63f803a737d416603789d25d5eba7834fce0e4c9', 'encapsulation'), ('https://github.com/errai/errai', '641b6925449a8e52f624df841e506643a69a34f1', 'abstraction'), ('https://github.com/teiid/teiid', '646311de47b0ba6a2f1c8f83b6cfabe9b63c5020', 'complexity'), ('https://github.com/SonarSource/sonar-java', '64960986b5ef89443930450bd565181e6889143e', 'complexity'), ('https://github.com/christophd/citrus', '64ce5c64c50e34dda799eae680e134843826b9ae', 'complexity'), ('https://github.com/broadgsa/gatk', '653475ce128ff238f67211d5df9ccb2b49cdfd2d', 'inheritance'), ('https://github.com/VanillaDev/Vanilla', '6543cb1062a0aa0864e6512c3a3e163f48c3298b', 'abstraction'), ('https://github.com/droolsjbpm/jbpm', '6555165d4f78b30b8fd9c9becc66e96f607871a0', 'complexity'), ('https://github.com/ColoradoSchoolOfMines/interface_sdk', '6590406dfe245c514e8d9987de3c15603df41823', 'coupling'), ('https://github.com/xwiki/xwiki-platform', '65e4a70a9d5557151a31883b2c231da894f0dee3', 'complexity'), ('https://github.com/Minequest/Core-Bukkit', '65e67f799ef161bc688a384469606e992093cdb8', 'abstraction'), ('https://github.com/wolfses/pmd_STANly', '65f58b24e147c177773a04c77eb3aadf7123e345', 'cohesion'), ('https://github.com/hazelcast/hazelcast-heartattacker', '660fdc4db6cb393bf322cfa0abac379b03854703', 'inheritance'), ('https://github.com/apache/karaf-cellar', '662d5a468066602c1e25c42bd61c061db3464414', 'composition'), ('https://github.com/hazelcast/hazelcast-heartattacker', '6630cf43f5d586e4467af9db3dcf79d7708de261', 'complexity'), ('https://github.com/deegree/deegree3', '664f51ada0b54ba0787652bfe2f7dbae3a1426b3', 'complexity'), ('https://github.com/dhiller/jenkinsstatus', '66650102dacb22dc3ece4c29341de6157fb4466d', 'abstraction'), ('https://github.com/luizabrahao/ag-common', '6670d70893550df3f2a7aed67be636370601ebc0', 'composition\n'), ('https://github.com/apache/cayenne', '667e69b615edf9519322b8608c8f6172be40a868', 'inheritance'), ('https://github.com/workhabitinc/dandy', '668266095b1eef004096f431b703efcb20f98565', 'abstraction'), ('https://github.com/overturetool/overture', '66b9224fd0d34b2bd4847707dada80ed3a075d73', 'abstraction'), ('https://github.com/wolips/wolips', '670150381a3a67252108c308a25d637da2f7b468', 'complexity'), ('https://github.com/joelittlejohn/embedmongo-maven-plugin', '67055a051f85c4ae292407ab9eb9213d7e1c8847', 'inheritance'), ('https://github.com/Governance/s-ramp', '671b0d37c479d768fef3e2dee37e783775fdf92f', 'inheritance'), ('https://github.com/imagej/imagej', '67adca765f75bb1e1815369eba1ad050073725ae', 'composition'), ('https://github.com/JavaMoney/javamoney', '67bf5b0d99aa3ff00a19b777983415af440e184a', 'abstraction'), ('https://github.com/HUSACCT/HUSACCT', '6843e4d1fae059bd34d6a87608bcd6a0a4387c6f', 'abstraction'), ('https://github.com/kalecser/jpatchaca', '68559bfc97130c04e9ea940ca06bda9205d76085', 'coupling'), ('https://github.com/ecki/seeburger-vfs2', '686f10acda82f858b51fddffdc9cab09f43e8867', 'abstraction'), ('https://github.com/stoicflame/enunciate', '688433f2520d4f92a257be06c7dd0c4d7a05cbf0', 'encapsulation'), ('https://github.com/ekirkilevics/Magnolia', '688bde7590e4194f194407b62523ce274cc17617', 'coupling'), ('https://github.com/egonw/cdk', '689832d2319125457f3ed83077bda1b8ef7f9c0f', 'complexity'), ('https://github.com/SonarCommunity/sonar-dotnet', '68d707a040ec5be5186f89639f0640a5b204ec6c', 'complexity'), ('https://github.com/threerings/playn', '6952a972edf23ea6fbfab3ea9a33ece7bfef8a37', 'abstraction'), ('https://github.com/ncombat/ncombat', '69686d7f81780437039a948a6e6ec363b7f5be32', 'inheritance'), ('https://github.com/ops4j/org.ops4j.pax.construct', '698e74276d51b430fc5f9d9bfd50e5e593c39763', 'complexity'), ('https://github.com/diosmosis/drones', '69b82af9f4b529f35ad207025d25e4bacd37506b', 'coupling'), ('https://github.com/apache/commons-math', '6a14866cfcb0503b4f63819f05194e2cb83277a3', 'complexity'), ('https://github.com/softwaremill/softwaremill-common', '6a5e283c991a7f1bba10d27f6c2b0ed805f14e35', 'inheritance'), ('https://github.com/pressgang-ccms/PressGangCCMSCSPClient', '6b0d93f641e97a0d69265ba965eda57dcabe53d8', 'abstraction'), ('https://github.com/JChemPaint/jchempaint', '6b2242fe7b92ace47386eb513d5bb8a95b69272e', 'coupling'), ('https://github.com/openmrs/openmrs-module-reporting', '6b2cd4279a49378c3e47d98a2b51bb07f0067446', 'composition'), ('https://github.com/skyscreamer/nevado', '6b588cbca7336ff64ef6fdad9018791ddae75023', 'abstraction'), ('https://github.com/LiveRamp/jack', '6be61bb9c447b848ff02e35f9962bf3a5f87c644', 'polymorphism'), ('https://github.com/apache/tomee', '6c0c7183a21eed5f5f39be21a13c0c80b0b51d54', 'inheritance'), ('https://github.com/Ondrej-vojtisek/bbmri', '6c549bf116fe13483242b369ff9407b7f488aba4', 'complexity'), ('https://github.com/filip26/api-machine', '6dba3f27e0de8f3ad178b67afee2fbaa2ad2b12c', 'abstraction'), ('https://github.com/jboss-fuse/fuse', '6dda74381e4de5dcf37df60b9b7631a052d5f1da', 'abstraction'), ('https://github.com/eclipse/birt', '6df73d2772790c83053034cfd4678dd98f896e53', 'inheritance'), ('https://github.com/apache/geronimo-yoko', '6e0a2827b5dfdb8bcf03b7bc32bb751350477e2c', 'encapsulation\n'), ('https://github.com/bazaarvoice/jolt', '6e4811e84a12059ce52972ebac5b26721a85e709', 'polymorphism'), ('https://github.com/md-5/SpecialSource', '6ea97c26c88917de30a8499ee412e87a46ba37ef', 'inheritance'), ('https://github.com/odata4j/odata4j', '6ebe5a71cf5dc4ccee896853dce3e17af6badc8c', 'inheritance'), ('https://github.com/hazelcast/hazelcast', '6f1ac35ba333d31b9e92bd313ecbd228214096db', 'complexity\n'), ('https://github.com/jqno/equalsverifier', '6f245990b0c6cb1c1ef7b21af03e816b9173b329', 'inheritance'), ('https://github.com/arquillian/arquillian-graphene', '6f3da36ceab3e0adb8e2e50e7a7cb4457b85c0cf', 'inheritance'), ('https://github.com/SonarSource/sonar', '6f685db7b96840f7cc607ceb03f42dd9864275b0', 'inheritance'), ('https://github.com/carlspring/strongbox', '6f85587d3625ea6bdd338f1df180df2d0693cd54', 'abstraction'), ('https://github.com/sk89q/commandhelper', '6fb848e4e6c42827849a27ea6359abe005473f46', 'coupling'), ('https://github.com/crow-misia/fisshplate', '702de72a8b1bfd9c9655ef5f7abfcef3988e2d32', 'complexity'), ('https://github.com/constretto/constretto-core', '706dbe8af0107016e7996eadc8492f8aa27f55b5', 'abstraction'), ('https://github.com/ha-jdbc/ha-jdbc', '7073a7bbb1d910dab77d60fa536ebc8645a5f918', 'abstraction'), ('https://github.com/wspringer/spring-me', '707f43d9c17256908d60bc88e915609d09ed8019', 'abstraction'), ('https://github.com/apache/maven', '70f22200a03ed18545b27295c1469014f2616139', 'composition\n'), ('https://github.com/forcedotcom/phoenix', '710f18a6cd86e96e24b119dabb9637074d0f3dec', 'encapsulation'), ('https://github.com/OpenGamma/OG-Platform', '711aa6753ce0f912d9eaf94c1e088fc17319fb8e', 'composition'), ('https://github.com/mneedham/neo4j-fork', '71f3ec6de1a51ec613beab997a7323b0ae39141e', 'abstraction'), ('https://github.com/hazelcast/hazelcast-heartattacker', '72172fb6b92b622a47558aaff357d1da17bf70f8', 'complexity'), ('https://github.com/cdaller/security_taint_propagation', '72b6e805323afa5c7860ec4fab22546d9b2251f1', 'composition'), ('https://github.com/krasserm/ipf', '72bce2e169581e19dd529e260472ff95a674821c', 'encapsulation'), ('https://github.com/eclipse/cdt', '72be877f9b44acdbaae9314f6e47136031ee7719', 'inheritance'), ('https://github.com/ArcBees/GWTP', '730607ce750b9a0e9a950cfbbf11bc169528b54c', 'coupling'), ('https://github.com/kclemens/osm', '7317e9bab653ef2c936f269c600e77bab956702c', 'complexity'), ('https://github.com/codehaus/xsite-git', '73500e09c6bf6d926743d1580de9d9d72b4f7278', 'composition'), ('https://github.com/gwt-maven-plugin/gwt-maven-plugin', '735decc69e83028f61a80090354d7a71190d4456', 'composition'), ('https://github.com/overturetool/overture', '736848274ff7ccab6e2c16df43dd0813c92d6916', 'inheritance'), ('https://github.com/quintesse/java-websockets-rws', '736c7ad5a6b2c10b4e2a1d972056b7d86aed7269', 'inheritance'), ('https://github.com/rhuss/jolokia', '736fe43fd8c989eb3824d4e04c21bd0b8ffe52ba', 'complexity'), ('https://github.com/Sangraama/server_phase_I', '73bbf78b2f2449979d60c614c7956d6f9c07570f', 'polymorphism\n'), ('https://github.com/mindstream99/Cornerstone', '742e3473e9fe0096f625e358ec790379d237516d', 'abstraction'), ('https://github.com/DozerMapper/dozer', '74534a8f58f75495b07cc3482379e048f29192ed', 'inheritance'), ('https://github.com/pentaho/pentaho-reporting', '74a6b0a85748220dd1c77433ab5baba84f45245c', 'complexity'), ('https://github.com/reveal-technologies/sitewhere-client', '74b3696e136e32fe8ecdb376ad04c425982bf083', 'inheritance'), ('https://github.com/PocketsUnited/facebook-graph-api-wrapper', '7515e76fc5a739d8ec30b4f560efa4ee94cd6b0b', 'abstraction'), ('https://github.com/RegalOwl/HyperConomy', '758318d536fc0d3ddefe719864558810a6ede318', 'abstraction'), ('https://github.com/crow-misia/fisshplate', '75b4a747b290cddc3cd3c88b3b60d0202764cc01', 'complexity'), ('https://github.com/apache/roller', '765335c09a8f0497ee5a2092d8c535d008f58cf6', 'encapsulation'), ('https://github.com/apache/shiro', '766b9f1dd4a65759384cfd21f2e936ac2f486fa4', 'complexity\n'), ('https://github.com/joshsh/ripple', '76d2e6e527effd1133fcfa22c7965c53a535c1e6', 'coupling'), ('https://github.com/izhamoidsin/Diploma', '76ec9cfc1bd3571f16d856a0bbf418e7b553bde7', 'abstraction\n'), ('https://github.com/apache/maven', '76f692cc5ee9702722c1b788e03bca8f7a3646c0', 'inheritance'), ('https://github.com/sakai-mirror/entitybroker', '7721ac4401aa11339869b402dc5d70bca3d3ce20', 'abstraction'), ('https://github.com/vijaykbs/spring-core-example', '77249c320d86677fa5a70ac921a4798eaf981679', 'coupling\n'), ('https://github.com/eclipse/cdt', '7768ee8e9ea0d2e630df043a32f405eab678958a', 'complexity'), ('https://github.com/vietj/chromattic', '7775f780a70446aceb0a0351b008cf9c9f56d02d', 'inheritance'), ('https://github.com/jboss-fuse/fuse', '7784970cc75748a7f15c4569446f714759e8d8b8', 'abstraction'), ('https://github.com/42BV/jarb', '77ad75c031ddf86529bde94a698e7a5b636195b0', 'inheritance'), ('https://github.com/SpoutDev/Spout', '77ca2cb827b0a0b10f18d609fa5fd707c62376f7', 'abstraction\n'), ('https://github.com/droolsjbpm/drools-chance', '77e23656fa181198aace8fe414093d34b46f5156', 'inheritance'), ('https://github.com/joseteodoro/JDX', '77f738eb38ddc55e795186e405875b36ec9ce444', 'inheritance'), ('https://github.com/HUSACCT/HUSACCT', '787873c6f9121f1a2fe00ea391040a5e97490fe3', 'inheritance'), ('https://github.com/levkhomich/semargl', '789d296b72cfd4dc89fb77482e46fdf4546ddb87', 'complexity'), ('https://github.com/jtalks-org/jcommune', '78a7ecad808ff22b091ea9388bc8fed2056b4ee8', 'complexity'), ('https://github.com/dCache/dcache', '799ccf4965780c4bb36a52a67cdf8b43b499285f', 'coupling'), ('https://github.com/erdincyilmazel/Cambridge', '79a72030b67866aae979ae855c9c3034c1f4048f', 'inheritance\n'), ('https://github.com/chrisvest/stormpot', '79f1855129d0a03548291ad5076031a0313cab9e', 'complexity'), ('https://github.com/junit-team/junit', '7ae75535efbb7a95ac62cfa1d0ccb626cc23e8c7', 'inheritance\n'), ('https://github.com/jclouds/jclouds', '7af2fc2081304b5b13959491af2fac5454a126fb', 'complexity'), ('https://github.com/JodaOrg/joda-beans', '7b3bddc8d5c27ebfe1efbcb390ebdc4dec7b81bb', 'abstraction\n'), ('https://github.com/VanillaDev/Vanilla', '7beab43625201912c188bc67ea9e5dd6e7b2a164', 'inheritance'), ('https://github.com/SonarSource/sonar', '7c3da87ee6fe5cc4b26d049c0bb1e38e884d1b0b', 'complexity\n'), ('https://github.com/apache/cayenne', '7c808f10097987f2addc1bd1b20a2da6da88c69a', 'inheritance'), ('https://github.com/hibernate/hibernate-search', '7cbf0baaed7a78fdea51a14fa047deb0aa05571a', 'abstraction'), ('https://github.com/SpoutDev/Spout', '7cd2c9144d35913144fb49a88d84e62e79bad452', 'abstraction'), ('https://github.com/SonarSource/sonar', '7cf57c2495bd16c2e7056c0ff47fc962a8ff432f', 'coupling'), ('https://github.com/krinsdeath/Privileges', '7d07222f00c581dce91cc4a8753350608071597a', 'inheritance\n'), ('https://github.com/cloudera/cdk', '7d2c8aaf4ab7e67c6d035c58bf81ee92c92269a8', 'inheritance\n'), ('https://github.com/haraldk/TwelveMonkeys', '7d35400595f413f2428d2c3e7b6bba20d9752017', 'encapsulation'), ('https://github.com/mneedham/neo4j-fork', '7d558c7d93db588a7507571279652006467559a3', 'abstraction\n'), ('https://github.com/SonarSource/sonar', '7d5ec581146ace44efb85ef4cfd94296e0da03aa', 'inheritance'), ('https://github.com/irstv/orbisgis', '7d865b7eb378b9dbfa2a949696cc1ff2b1b1e8ef', 'inheritance'), ('https://github.com/dlhartveld/queryable', '7d90cd3f6f0ec2493589d91d3ff616fdf6287d49', 'inheritance'), ('https://github.com/scrutmydocs/scrutmydocs', '7d9f8e893cb26bcfa73e88d2fa40cb6d24eebef9', 'abstraction'), ('https://github.com/FasterXML/jackson-databind', '7e4e1158e7e2bf84e508cd1d76fccf933a97c2db', 'abstraction'), ('https://github.com/xXKeyleXx/MyPet', '7e4f4ead03c8e5295a446b2fed659edfd4a0f88c', 'inheritance'), ('https://github.com/hazelcast/hazelcast-heartattacker', '7e6155b5e6f5b992de216f97dd1be874ab6e1712', 'complexity'), ('https://github.com/ekirkilevics/Magnolia', '7f00d63aa8500a6732fe1467dc4e03b4d7348f13', 'abstraction'), ('https://github.com/Cognifide/Slice', '7f08a4925874da4b807aa0df4534c3bead58f7ef', 'inheritance\n'), ('https://github.com/imagej/imglib', '7f132d54e632d2eb1ee6671b110bcf3aa6f12623', 'coupling'), ('https://github.com/erikmohn/weatherfetcher', '7f32193cb83dbab432a33f409d31930558ad795c', 'coupling'), ('https://github.com/pentaho/mondrian', '7f417e87da144cbae990aeb3723923da429eca8b', 'inheritance'), ('https://github.com/graphhopper/graphhopper', '7f80425b6a0af9bdfef12c8a873676e39e0a04a6', 'composition'), ('https://github.com/SpringSource/spring-ide', '8017fd279ec12036c29fc52391a4b772d698149e', 'complexity'), ('https://github.com/SonarSource/sonar', '80554ac4be046afaac167a309e94c7c5f3cf3405', 'size'), ('https://github.com/killbill/killbill-commons', '80cb168a1d6b656edf03a94b716042dbe01cbbc4', 'abstraction\n'), ('https://github.com/overturetool/overture', '8108c000382a2a0dcc8a7fc2db4f3be62f0a45ba', 'composition'), ('https://github.com/ravendb/jvm-client', '811df72ee83244a1d4740a7a4cc40b46bff8dfc6', 'abstraction'), ('https://github.com/OpenNMS/opennms', '815fa2f59b24a304f2d2cf3342be86b413bb7582', 'abstraction\n'), ('https://github.com/xwiki/xwiki-platform', '81b9c371fc7cedcd5a59d24c71a074d34fd556fa', 'complexity'), ('https://github.com/eclipse/orion.server', '821815d926b1b681a2a2800e3bd3fc944ee082c1', 'inheritance'), ('https://github.com/eccentricdevotion/TARDIS', '82570f1f8eef78e291eae3e86388651607e3d568', 'abstraction'), ('https://github.com/apache/hbase', '826b9436fbba39ce78650680c71425bc8547cd39', 'inheritance & complexity'), ('https://github.com/riptano/hector-jpa', '82743612758ed18b4453ed4f58431aa7db34cb26', 'encapsulation'), ('https://github.com/SonarCommunity/sonar-php', '82d22b371b05250032b62d14a02e7e285cf4d6f1', 'complexity\n'), ('https://github.com/apache/cayenne', '83185f2558f764cf60b137a2e2eeda47d366a17f', 'coupling'), ('https://github.com/KittehOrg/TagAPI', '835b82274cd57fdc0728b9744803fe983f33f685', 'abstraction\n'), ('https://github.com/quintona/storm-pattern', '8457555378de83735c43d31d7a14b872bffbd4fe', 'polymorphism\n'), ('https://github.com/apache/cayenne', '84ce2f3f4ad35dcdcd82c568268213c578887358', 'inheritance'), ('https://github.com/srvance/QualityCode14', '850f149c172bfe07f453a2c259d49d52b7187c2f', 'abstraction'), ('https://github.com/ISA-tools/ISAcreator', '857d0c22ee784c9cfc9ef10cb49425832f55f86d', 'coupling'), ('https://github.com/laurentg/OpenTripPlanner-mecatran', '857d70496e63682902c2e6e0e32281001bbee1ac', 'encapsulation\n'), ('https://github.com/hazelcast/hazelcast-heartattacker', '868e9842700fba3c9ad1dff51d8c4851a3d0350d', 'complexity'), ('https://github.com/basho/riak-java-client', '86b1927c711b69982872e13db84503c822cdfc05', 'encapsulation'), ('https://github.com/apache/karaf', '86c5e3c4b28c2668dc227b7a7e13b2ea9dcff19c', 'coupling'), ('https://github.com/fusesource/hawtdispatch', '86d1dff2a75a1e9b4b30cf78e822d482caf838c2', 'abstraction'), ('https://github.com/estatio/estatio', '86d91930047e4d2af72fe83318c41fb3b0c8afb8', 'coupling'), ('https://github.com/RegalOwl/HyperConomy', '874886319180ef74f6cda7505729d82a057a31ee', 'abstraction\n'), ('https://github.com/geosdi/geo-platform', '87c300ca736a333ff0c9605a29abdaeb71ff63f0', 'encapsulation'), ('https://github.com/fenix-framework/fenix-framework', '87f0d120912ffbc4194a01f91d4703a0eb87ecb0', 'composition'), ('https://github.com/SonarSource/sonar', '880336975d9957008ebb774043430049cdd3a3df', 'coupling'), ('https://github.com/pelle/bitcoinj', '880b413b241152807ee098aaecff559d9d979cc4', 'abstraction'), ('https://github.com/droolsjbpm/uberfire', '8865a842c6990c8c63d580fc4289551bd12be171', 'abstraction'), ('https://github.com/Steveice10/mc-protocol-lib', '888ddb036dd60c074c2035aac6b4a38c78444484', 'abstraction\n'), ('https://github.com/mneedham/neo4j-fork', '88a64c1503c9a685b5ab6c58ade417f6d26301a0', 'abstraction'), ('https://github.com/SonarSource/sonar-java', '88bcd69afc02d36a0d02d941985f505c1bee062b', 'complexity'), ('https://github.com/nfrankel/vaadin7-workshop', '88decf8067e7bac16e1343d645bdeef478193c85', 'abstraction\n'), ('https://github.com/isopov/checkstyle', '88e89a138aa39f50f7642106cde6568f6e07783f', 'inheritance'), ('https://github.com/eclipse/recommenders', '88e97a9b8f92d4928ef5a437d3b9432514fe9db9', 'abstraction'), ('https://github.com/SpoutDev/Spout', '88eb0518ce86240e43d99b82343b7d65555505f2', 'inheritance'), ('https://github.com/neo4j-attic/graphdb', '88f12f574eb5d626de74b48ee9dfa2214d80e27b', 'abstraction'), ('https://github.com/UNC-Libraries/metadata-model-tools', '88f4364be160539e15df4978028e1c97db3defe3', 'abstraction'), ('https://github.com/jdcasey/cartographer', '88f8d34ffdde2f428714d263d01399365db1a7b1', 'composition'), ('https://github.com/SonarSource/sonar', '8918854ac8abc7fb5131309edeec26a879f7e789', 'inheritance'), ('https://github.com/weld/api', '8929a75f59cf45ac3d8a4e78129c2a9f883bd49f', 'abstraction'), ('https://github.com/structr/structr', '895a611631ee6550665291fb3d3f3383d8da4577', 'inheritance'), ('https://github.com/ha-jdbc/ha-jdbc', '89695848f67f0dbc45ebfaf950128ca449fc3761', 'encapsulation\n'), ('https://github.com/Xephi/AuthMeReloaded', '89bbfc48ee3b2363197ddafea31797e785eb8dfa', 'encapsulation'), ('https://github.com/jenkinsci/recipe-plugin', '8a6e3fc8fefd8a2b8e32d700e3ee5d2826e1600c', 'abstraction\n'), ('https://github.com/orapouso/easyj-orm', '8a6f6d4d4f1082631e72488b4a4fc18c62c6d0c6', 'inheritance'), ('https://github.com/apache/cayenne', '8a76ebab2314a46c11ee542abfc430dd8d086ada', 'inheritance\n'), ('https://github.com/weld/core', '8a9363e722baf0826d7f701ae7e9f7583c032f4f', 'inheritance'), ('https://github.com/rabbitmq/rabbitmq-java-client', '8acef237caaf5b98497b35d104f2ab2cc2cbcb31', 'abstraction'), ('https://github.com/resthub/resthub-spring-stack', '8ad2029e1c75c05120bbfafa3531b00d478331b1', 'inheritance'), ('https://github.com/BroadleafCommerce/BroadleafCommerce', '8ad5ba0c2609c82552399d9ee922a792a1214025', 'polymorphism'), ('https://github.com/weld/core', '8addb072a5192c7caf6b404b0c3015c48e83d0b1', 'encapsulation'), ('https://github.com/eclipse/cdt', '8bb266decfa2dedceeae10fa4dd2786388b60a6b', 'inheritance'), ('https://github.com/FluentLenium/FluentLenium', '8c14b4293b2edf428ed9de1584258055296869e4', 'composition'), ('https://github.com/estatio/estatio', '8c5928cddb1970726d81c6ed66a4c4baf498cf4e', 'coupling'), ('https://github.com/OpenGamma/OG-Platform', '8c95c1aba09b5cbbd7cac6561649fbe0eebf7659', 'abstraction'), ('https://github.com/jdbc-bare/spring-jdbc-bare', '8cb5c36512e6355d379f533d75d2bef63d0de6bd', 'inheritance\n'), ('https://github.com/pulse00/Composer-Eclipse-Plugin', '8cdc25e5bcfc415f30f435e93f664685716ea75d', 'abstraction\n'), ('https://github.com/cpesch/RouteConverter', '8d1a9647f52aba518c960931376988bc03b06845', 'abstraction\n'), ('https://github.com/trygvis/unix-maven-plugin', '8d3560cbd59490b0a7a712f67865b405a25ae012', 'complexity'), ('https://github.com/RegalOwl/HyperConomy', '8d46bb66622dea0fd0cc41ee84e7d3f7b5d6230f', 'abstraction\n'), ('https://github.com/crashub/crash', '8d6fc792ad37f275fe5b68684cc2e9d16c21cc17', 'complexity'), ('https://github.com/lfeuer/ClientServerG2', '8daf4f4217df8a886c152846c227cea19d8564f9', 'inheritance\n'), ('https://github.com/stickfigure/objectify', '8dd3e32882dff8a3e12eff654ff7c619656ee4d5', 'inheritance'), ('https://github.com/senseidb/bobo', '8deeb0fc9b1fdd5131f4e3188422989900c81039', 'abstraction'), ('https://github.com/orientechnologies/orientdb', '8e7d332ddea2f799b80d076eca88e6e1ed09f59e', 'abstraction'), ('https://github.com/j256/ormlite-core', '8eebcad388fe024e109e8dfe5d1cdf4e7f120e60', 'abstraction'), ('https://github.com/cismet/cids-custom-sudplan', '8f23ce734c678d9ab6c9cf05203ee36c5ef5fef2', 'coupling'), ('https://github.com/openfigis/vme', '8f43033e64134d4ae6539f53219db1a5fa0db869', 'composition'), ('https://github.com/xwiki/xwiki-commons', '8f43b4449b2d7cde2876bc06b1621c6330af0bc7', 'complexity'), ('https://github.com/PEXPlugins/PermissionsEx', '8f79e886c91b5f6e208826ec11d4b5baf2f7357f', 'inheritance'), ('https://github.com/SonarSource/sonar', '8fa017822aedda6928f7886a20832c9dc225d11e', 'complexity\n'), ('https://github.com/eclipse/linuxtools', '8fea1d2a9c8bb7f204e904fbcee809b4445eed85', 'complexity'), ('https://github.com/mikaelsvensson/ftpbackup', '909baee689b95fba8454645ee7cf0176481a481d', 'abstraction'), ('https://github.com/mifos/head', '90ed63e9e1ece750a308751ad7e8d3dfc99cdb9d', 'inheritance'), ('https://github.com/ist-dsi/fenix', '90fdc2aecacdd33cf762408a3668511d46d7d22f', 'abstraction'), ('https://github.com/SpringSource/spring-data-mongodb', '916b856e972f99be449802d106505234b90bebc1', 'abstraction'), ('https://github.com/mbits-os/jini-reflect', '918328d81670ffe33b1c8d336a8256c7b2f7a79a', 'coupling\n'), ('https://github.com/blootsvoets/jmml', '92079450f719c44f0e09c5389ddd70618d518f87', 'coupling'), ('https://github.com/jboss-reddeer/reddeer', '924dd1f0bd450ed7114ce4cca492170a2da59795', 'abstraction'), ('https://github.com/errai/errai', '928d29ff4af8642581c70e03ed91df5e99c51709', 'abstraction'), ('https://github.com/apache/isis', '93746873428ae649113d50b8b566aad91083ed5d', 'polymorphism '), ('https://github.com/BroadleafCommerce/BroadleafCommerce', '9379340234c146b8e7ebfafe1b03ff3e8fd06a2e', 'abstraction'), ('https://github.com/jbehave/jbehave-core', '942d12b1b22ad12a7c7fa2ced67a2fb430bca128', 'composition'), ('https://github.com/ldsimonassi/Storm-Search-Engine', '94435e708d2109c4af5c769fc891bf3eac55cda3', 'abstraction'), ('https://github.com/apache/archiva', '947d8180d80edc4d74f608ddc4b03d40a27dfd26', 'encapsulation\n'), ('https://github.com/hedtek/dspace-rest', '94e5fd5e30966005c4759ab0dcc0a843666a9773', 'complexity'), ('https://github.com/jclouds/jclouds', '9518a6722827c644db4477c8b130f68b8e07a122', 'abstraction'), ('https://github.com/fluxroot/pulse', '952372992d15548a3ad2cc80fe6a985b9d36d11f', 'complexity\n'), ('https://github.com/eclipse/vert.x', '9557a3917df0ae39d0fcd8ace8e4b5b8088764b7', 'composition\n'), ('https://github.com/wolfses/pmd_STANly', '95672d3cbe3a735e9cc5d6c326f71b5023266078', 'inheritance'), ('https://github.com/ops4j/org.ops4j.pax.construct', '95859f8b4df21da5f95b508178c8737dfd56033c', 'inheritance'), ('https://github.com/DSpace/DSpace', '958e4c64b374e0001e33fcd0f57f42783ab68222', 'abstraction'), ('https://github.com/wocommunity/wonder', '95ae05835366dd50fd643589d884b434657c914c', 'inheritance'), ('https://github.com/SonarSource/sonar-java', '969cfafa867d751b397f9f27178ac04f7fe63946', 'complexity'), ('https://github.com/SpringSource/eclipse-integration-cloudfoundry', '96a2915fb57f34e558c9a207960a1c6299b5ef18', 'abstraction'), ('https://github.com/DataTorrent/Malhar', '96c2af64c05182e71d72eeca9f2f6faa7004a3b6', 'abstraction'), ('https://github.com/apache/commons-math', '96d79054dc340add8f00380e6c8301c8f611fb3d', 'encapsulation'), ('https://github.com/aharin/inproctester', '977c08c6d0b3ecfa764a73926aa6dcda0caf0af7', 'coupling'), ('https://github.com/hibernate/hibernate-search', '97c703f0bde1213f028e4977959c3fad4d636a2c', 'inheritance'), ('https://github.com/neo4j/fast-http', '97d4cfb83a9b256a8d33c87cd5ca21a9aee04754', 'abstraction'), ('https://github.com/sk89q/commandhelper', '9816814a96486ad4c1b369dc08fc95b45988896d', 'abstraction'), ('https://github.com/SonarSource/sonar', '984e1ff8d3c2c788fb4bcc85b24dc3b08270aace', 'complexity\n'), ('https://github.com/apache/cloudstack', '9857f41d9a4e99df58c71ea01e20178d18e03eb1', 'inheritance'), ('https://github.com/JakeWharton/ActionBarSherlock', '9875b165babf6f2adfe9a99553407a42c05f823e', 'abstraction'), ('https://github.com/jmimo/netty-icap', '98a3bd11c780f338f12c66e1d9cd2b3556d3d8ee', 'encapsulation'), ('https://github.com/apache/tomee', '98c9175c18daf1bed6b2d21a3712cc146c9b8917', 'inheritance'), ('https://github.com/stickfigure/objectify', '997ad1dd4b6f144509671fb268a13257cab440aa', 'inheritance'), ('https://github.com/molgenis/molgenis-legacy', '99969d9050a95da8fabaf9fa238adf1250372702', 'inheritance'), ('https://github.com/OpenNMS/opennms', '999de82ca603f2c706e7351daf37d9a8829d3ecb', 'abstraction'), ('https://github.com/SpringSource/spring-data-mongodb', '9a078b743f57238f791146de4efe732f46a67425', 'inheritance'), ('https://github.com/DataTorrent/Malhar', '9a3b5361962bf01b0930ad8e56a6567d9af329f0', 'abstraction\n'), ('https://github.com/Berico-Technologies/CLAVIN', '9a7bc486f932b11d04c52ef708a9740b1939c632', 'abstraction'), ('https://github.com/rhuss/jolokia', '9aa147f18dc7bec4a8c90138c71dadc65d9cdb1f', 'complexity\n'), ('https://github.com/RegalOwl/HyperConomy', '9b6ed5e6a336c08e46a0c3202eae5248a145054f', 'abstraction\n'), ('https://github.com/qmx/uniform', '9b94242308830e9d5d2f94399358d1531d722315', 'coupling'), ('https://github.com/eclipse/cdt', '9c3fe1002886701744ee1f65aa26e7d0ce83862d', 'inheritance'), ('https://github.com/Cognifide/CQ-Actions', '9c57c04dbd229c21547dcbff0c43ad75dc51f018', 'abstraction'), ('https://github.com/Igalia/libreplan', '9c5a913d84b5801fccc9268424fc5c7f53d65aac', 'abstraction'), ('https://github.com/ecki/seeburger-vfs2', '9c6523ec556a6b80b7d144987e1ff766770a29cf', 'inheritance'), ('https://github.com/apache/incubator-drill', '9ca9eb9b3d88e86e28d1b688d9cd943e6a7f08df', 'inheritance'), ('https://github.com/mifos/head', '9ce72f10aa88d79f541cec797905ef39b69fce02', 'inheritance\n'), ('https://github.com/apache/httpclient', '9d3171f15e457bc6ccf7f30497bc97eb86c82b30', 'composition'), ('https://github.com/ops4j/org.ops4j.pax.construct', '9dde020be1c89577fbeae748a23347d00b8ca474', 'complexity'), ('https://github.com/openpnp/openpnp', '9e0074e5f39b3200e612fb908412bf4de7bff55c', 'complexity'), ('https://github.com/wolips/wolips', '9e0e34975006e9e2ca1550d7000b4a53a2fc80ac', 'complexity'), ('https://github.com/EBIBioSamples/sampletab_converters', '9e99570a18295fe235fadd870f56fcacf650811a', 'abstraction'), ('https://github.com/junit-team/junit', '9eab1418bf073556414f8654a8b66d65d784ed71', 'inheritance'), ('https://github.com/istlab/Alitheia-Core', '9eb2575d1b024eb34bc58607db962bd3f0307137', 'complexity\n'), ('https://github.com/SonarSource/sonar', '9ed90faaa5871f3a582595e07c5ef0272db3c57f', 'coupling'), ('https://github.com/lisaglendenning/zookeeper-lite', '9ee7e0dc819d6a3b7fbc4d3eaa23f75c13be5cc4', 'coupling'), ('https://github.com/droolsjbpm/drools', '9f0498ecaa118cf78a9760ab84056d4435b42d8b', 'inheritance'), ('https://github.com/kohsuke/hudson', '9f620f125b809eedbe51d557b766da7376860ad0', 'abstraction'), ('https://github.com/SonarSource/sonar', '9f8394b46a01f7ddac672afddd546ed6e82ccd7e', 'complexity'), ('https://github.com/intangir/ShopKeepers', '9f8566156371db2528fa40168e65e83ddfb419db', 'abstraction'), ('https://github.com/kohsuke/msv', '9fb00fb502dddb63245b56e9d1fc47e64f652bac', 'inheritance'), ('https://github.com/wocommunity/wonder', '9fc2d76fd979f6fc5e4389039968be7eb8118b86', 'inheritance'), ('https://github.com/SaschaRodekamp/SocialConnect', '9fc33fbff8f1f5bdf205dc58dbf5213f448fec86', 'abstraction'), ('https://github.com/lestard/tmpmail', '9fc5669f569cb34494dbbad830daa876453c0b7c', 'inheritance'), ('https://github.com/jbosstools/jbosstools-jst', '9fe3ea9b79307a8cf2c35b108491e22a534dff0b', 'inheritance'), ('https://github.com/wocommunity/wonder', '9feed29edaf075dd42e619d4fa83ec0c10ab2099', 'inheritance'), ('https://github.com/Mobicents/mediaserver', '9ff6e8a026db2608878b07d0dc0399cf661c6c9c', 'coupling'), ('https://github.com/StuartMacKay/transform-swf', 'a00343bb6c18273c84fdef045166568118804bf5', 'complexity'), ('https://github.com/laurentpetit/ccw', 'a02b8c9c2d628aaed8664e23081256962529c802', 'inheritance'), ('https://github.com/forcedotcom/wsc', 'a04d8acf0cb1dddff34485cc6eec7e2ad93893db', 'abstraction'), ('https://github.com/matttproud/friesian', 'a04f1c1454352a9a6037632643ad33b424872066', 'coupling'), ('https://github.com/GibbsFrance/DACv2-temp', 'a05a36b859b3ce2420dafa9ddf468d5419832f42', 'abstraction\n'), ('https://github.com/SonarSource/sonar', 'a0b9f5612d661375fc6fa8e8c97a9b0a5dcd7ff7', 'complexity\n'), ('https://github.com/apache/maven', 'a175bd170d4ec6dc1a8f13f4264995977a7f86e8', 'inheritance'), ('https://github.com/jflygare/ctci', 'a1dfc326020bb96a6cac3a0ed536dd6e9d71d097', 'complexity'), ('https://github.com/eatnumber1/google-gson', 'a1ff0387f952ec9bff51a3e62e4753072baa6504', 'polymorphism'), ('https://github.com/sk89q/commandhelper', 'a256808c83cd24ba524d97a91aa6af4b08433af9', 'inheritance\n'), ('https://github.com/kohsuke/msv', 'a2751a296b90b73a8afc4fa0cce9f009bc93431a', 'inheritance'), ('https://github.com/JacORB/JacORB', 'a39cf54025059f2e799280184e8e9f55ce18ff6f', 'inheritance'), ('https://github.com/infinispan/infinispan', 'a440d62928172496eb39a6b360ec0d6b55f86e91', 'inheritance'), ('https://github.com/christophd/citrus', 'a482a1eceaa47445d802d706b997808eb778a2ad', 'complexity'), ('https://github.com/RiverGlide/screenplay-jvm', 'a4a13e875cb665cd5869295807aee2611a9fb8f4', 'abstraction'), ('https://github.com/openpnp/openpnp', 'a4ab0f9681998510ac7d4e05ece1fd868425bf8d', 'complexity'), ('https://github.com/eclipse/jetty.project', 'a4c63caf26715bf7881224e4332f7cd8405b7c06', 'abstraction'), ('https://github.com/eatnumber1/google-gson', 'a51e9101d3a0c44ed947b320299a1cee366981af', 'inheritance'), ('https://github.com/kunyang1987/mahout', 'a530a9c000947ebba8c97058e3ea1bd112cc944e', 'abstraction'), ('https://github.com/softwaremill/softwaremill-common', 'a532253d27553014ba1d4dff57d4e2f309b5ed28', 'inheritance'), ('https://github.com/ops4j/org.ops4j.pax.construct', 'a54efb4dfefefcf49e40a6149dc91c90a330f072', 'inheritance'), ('https://github.com/fenix-framework/fenix-framework', 'a57019dfdf478b3e15824a9e548b42ed88b12b31', 'abstraction'), ('https://github.com/jbehave/jbehave-tutorial', 'a57d2cf68c5ea02f1ad78758c0dba9c46bc1d64f', 'composition'), ('https://github.com/dain/leveldb', 'a5d387a8c22465be051efba6c0e7ef39db010c13', 'abstraction'), ('https://github.com/qos-ch/logback', 'a5faeaac8618c52a21688a1e90957837d16cf86a', 'abstraction'), ('https://github.com/cdi-spec/cdi-tck', 'a619cd5dd4fd1b240a39266cdd8cbbd685db5c2c', 'inheritance\n'), ('https://github.com/dooApp/FXForm2', 'a675686e825227254dcdf8f35ac1b9b6634983cc', 'coupling'), ('https://github.com/joshhansen/EDAValidation', 'a6917bfb09ba466d936630c6f52d6ac1a23f0c2d', 'inheritance'), ('https://github.com/apache/mahout', 'a69d7b38727078309a3d630def4ee2f87337a19e', 'abstraction'), ('https://github.com/JacORB/JacORB', 'a6a1e55f893b07177c4c90e9477dce1f6487e1d6', 'inheritance'), ('https://github.com/mifos/head', 'a6a90215e907058c0ef7f239433018030bb15e8e', 'coupling'), ('https://github.com/adangel/pmd', 'a6daac07777376f45f99a7143e398128f0a9b423', 'coupling'), ('https://github.com/apache/geronimo-yoko', 'a6f9c980c6ca90648866e204899335d1bd0202b6', 'encapsulation'), ('https://github.com/dwdyer/watchmaker', 'a72db23d6a4aa68da27da72917e140ae8e157093', 'inheritance'), ('https://github.com/ha-jdbc/ha-jdbc', 'a747f4c3dc2c6e831882622dbf34d317b9cf3a44', 'abstraction'), ('https://github.com/st-js/st-js', 'a76faaf474416d0e57f97380a72592fb75b10896', 'inheritance\n'), ('https://github.com/mneedham/neo4j-fork', 'a86c36c1b8c916ef4882a127eb42d936913803a0', 'abstraction'), ('https://github.com/nyver/filecombiner', 'a884982f82d8f9399b95a98eef1ca3caf018c78c', 'abstraction'), ('https://github.com/eclipse/cdt', 'a89f4371450412341e983355a1ddb10f852cebde', 'inheritance\n'), ('https://github.com/elight/the_grinder', 'a8abacbce0339b27df4a452c08722041abc65585', 'abstraction'), ('https://github.com/collectionspace/application', 'a8d2facd06230cd5ce0bb884863561f7b282a8d0', 'abstraction\n'), ('https://github.com/burris/dwr', 'a9261ce81db45302409c03886f266c503ecc6de6', 'inheritance'), ('https://github.com/krosenvold/findbugs', 'a93571be50a7eeb1ce394cc76f75a535e410ac56', 'inheritance'), ('https://github.com/metispro/metispro-common', 'a973a00652d77cdcf85b1b6b228e82acc72f2425', 'abstraction\n'), ('https://github.com/arenger/hilas', 'a988740f0afe1b1ed8d78b9d6808bcf815467ed9', 'abstraction'), ('https://github.com/timmolter/XChart', 'a9d81718d22251632d6c25b16b05125cf1febf22', 'abstraction'), ('https://github.com/weld/core', 'aa2a494e2288040cd562d8f414812b59927645e6', 'inheritance'), ('https://github.com/mikaelsvensson/backup', 'aa2b9f8923e956a8bc6a7cb790ca1905dc4dbc42', 'abstraction'), ('https://github.com/jclouds/jclouds', 'aa80bfbff1464881899f0f797f5ee2fb6bd77d58', 'inheritance'), ('https://github.com/irstv/orbisgis', 'aaa2233c6af2c2083cad300705df15e5221f9baf', 'abstraction'), ('https://github.com/dlhartveld/queryable', 'aae55add4e0cceafb8bb7cf9fb80d2c4cd888471', 'inheritance'), ('https://github.com/ebean-orm/avaje-ebeanorm', 'aaefaa5dcde176189029cbaa3937eba10896fb48', 'inheritance'), ('https://github.com/immutables/org.immutables', 'ab28b838818e349290a7769c8aa78b8135335519', 'inheritance\n'), ('https://github.com/zinic/atom-nuke', 'ab5643e9271f8b02c2685365d542599277cce15c', 'inheritance'), ('https://github.com/hazelcast/hazelcast-heartattacker', 'ab65655fcd8bd37305481720372ec4fcdc2a5a80', 'complexity'), ('https://github.com/SonarSource/sonar-java', 'aba9bc7896b58d6330133f8d6674b745dc278143', 'abstraction'), ('https://github.com/ModeShape/modeshape', 'abac784a829855b4bd008eff0663bcd521707f6b', 'abstraction'), ('https://github.com/hedtek/dspace-rest', 'abf75d79ca7cb08e1b8bf47da98493539fcae566', 'encapsulation'), ('https://github.com/BitResolution/xTest', 'ac2a77b0bf74bb1e62694b6b01bbf7584dd5c9bb', 'coupling'), ('https://github.com/pressgang-ccms/PressGangCCMSCSPClient', 'acb3b7f87763d2b808a9465ee15faf825fd0d364', 'abstraction'), ('https://github.com/hibernate/hibernate-validator', 'acd4155415a927ce6bb86745e5dcf312241f1f34', 'inheritance'), ('https://github.com/pluto-atom-4/testng', 'acff4d0df99822f580ff03b532cfba59ab4c1a9f', 'inheritance'), ('https://github.com/SonarCommunity/sonar-php', 'ad0dce31f42c6bff72310787599f4f82a7ac7d09', 'complexity'), ('https://github.com/apache/maven', 'ad35b458bf9da9e79e610f124844b3332e2dd2e7', 'inheritance'), ('https://github.com/Benoker/DockingFrames', 'adf605a6e07fd932a9fbae9c70971673b182081f', 'abstraction'), ('https://github.com/xwiki/xwiki-commons', 'ae84cd30c5c0ba3e365a61e7699c9b89631ff8e8', 'complexity'), ('https://github.com/NoCheatPlus/NoCheatPlus', 'ae8cacb97bee2c5730da9a0fce632a67fe6b828c', 'inheritance'), ('https://github.com/obiba/onyx', 'ae9a4d3d44c9eda74a3e8ac5ab6d349afebadefd', 'inheritance'), ('https://github.com/MLCL/Byblo', 'af18911c381a359227bb8a6cd96d31643bb01873', 'abstraction'), ('https://github.com/nurkiewicz/async-retry', 'af5a760cba70095aed883c2b650d38982b742f6f', 'abstraction'), ('https://github.com/orientechnologies/orientdb', 'af5d32a649da3819b344f4db9a229958875f3942', 'inheritance'), ('https://github.com/johncarl81/transfuse', 'afddf253aa6ef84d99c00f05a6096fd4c42277af', 'inheritance'), ('https://github.com/MassiveCraft/mcore', 'b0558d310f1c8a576efc1c90dc315c18dee7dcb0', 'inheritance'), ('https://github.com/egonw/cdk', 'b07e9ad52536619d800a60224a1c79693a56ac79', 'complexity'), ('https://github.com/AtulVijay/WebUsers', 'b09fa6c12f7a24bb285e1694207c3a67e1192a34', 'polymorphism\n'), ('https://github.com/sangupta/consoles', 'b0e4afada24142883af4f668b420cb31c1570878', 'abstraction'), ('https://github.com/hazelcast/hazelcast-heartattacker', 'b1093e82cc49ae3cc7a3ab61598550bb20512299', 'complexity'), ('https://github.com/isopov/checkstyle', 'b1123e96e452b41c5fb22de20bb7a99d376d0380', 'complexity'), ('https://github.com/teiid/teiid', 'b135dfd5678f8c0e958267e834fcbc82911255b0', 'complexity'), ('https://github.com/seam/social', 'b1714b32fb4d64ed8289604d75b1039796f8b281', 'coupling'), ('https://github.com/jitsi/libjitsi', 'b181ad5d90fc8ce22e42440830464ca7d512e20b', 'abstraction'), ('https://github.com/mindstream99/Cornerstone', 'b1d26fd6073ed55cac9c7788018f64fb5b6bf195', 'inheritance'), ('https://github.com/jDTOBinder/jDTO-Binder', 'b2f29464c99836767f39e542f77c1ff7bdef4f25', 'cohesion'), ('https://github.com/SpringSource/spring-roo', 'b30b19119bfc54b9ae19ca93ea9e6bf7521ee4ed', 'inheritance'), ('https://github.com/hibernate/hibernate-search', 'b31e5b0946a689e24e6588879078a25e87447181', 'abstraction'), ('https://github.com/Netflix/curator', 'b34a9621f36eb74e94db3ea34d5d80c15ed3c7e9', 'complexity'), ('https://github.com/SpoutDev/Spout', 'b3716fe3f547cf24c17d44433ca2e897e5b8a9a2', 'abstraction'), ('https://github.com/fabianonunes/reserva', 'b381c97b7a6460e80406d261ad43dd65baa4e3db', 'coupling\n'), ('https://github.com/adangel/pmd', 'b3ae8d05cfcafd0fc9dbffa4310a27766ad91174', 'complexity'), ('https://github.com/jandrewthompson/planit', 'b41e970015df99ec0935963be27c955e8d79626b', 'inheritance'), ('https://github.com/ning/atlas', 'b43cc3dc10930a5a37959326b99f99c2ba0f18c5', 'abstraction\n'), ('https://github.com/sschaef/checkstyle-teaching', 'b4c0a59725d08cba0680596420eff708b9f2bc10', 'complexity'), ('https://github.com/allanbank/morphia-async', 'b4db43bce7a46a8eff77b095f8d8ef5897aa9057', 'inheritance'), ('https://github.com/scrutmydocs/scrutmydocs', 'b530bad0b581d817f92b8a60d164fde1e9745074', 'abstraction'), ('https://github.com/apache/incubator-drill', 'b53933f225e21b890a9cc25545be7ce4223ba0ce', 'abstraction'), ('https://github.com/LiveRamp/hank', 'b5b3c63afcc632c36852e6e277ece902cad1f58e', 'abstraction\n'), ('https://github.com/SonarSource/sonar-java', 'b5b496d2c001fba49239de03d315d387f6bba14c', 'complexity'), ('https://github.com/jdbc-bare/spring-jdbc-bare', 'b5d21108da24f8344be3bc708c7afdfca9a1d089', 'abstraction'), ('https://github.com/aaberg/sql2o', 'b5d5304313a9a78e284f3bfcde539c50347a62f8', 'abstraction'), ('https://github.com/apache/commons-math', 'b65cad05b955257891412f8da930ab9a4ce29258', 'encapsulation'), ('https://github.com/lintool/Ivory', 'b681e905c3bbd44760183512f7553497c1a720ab', 'abstraction'), ('https://github.com/OpenNMS/opennms', 'b6e633e45d754b326d067f00f60cd3ccc9d93c5d', 'abstraction'), ('https://github.com/teiid/teiid', 'b6e8326b7db39ddaa48624814621602642dbb515', 'coupling'), ('https://github.com/pietermartin/umlg', 'b75201f97dda3a2cd20e805ea30402677bc04a9a', 'inheritance\n'), ('https://github.com/SmartITEngineering/smart-cms', 'b7ff8fa16627a52f019aca4e7796061c3766f42a', 'composition'), ('https://github.com/structr/structr', 'b80d52a437c3db8f616e37d4792110bcc35542a7', 'inheritance\n'), ('https://github.com/christophd/citrus', 'b8d266fbd8422c51cc6fee2450329ec48f7a9fa4', 'complexity'), ('https://github.com/weld/core', 'b9715e34d997ccfc369ba074abee650ce557aa67', 'inheritance\n'), ('https://github.com/SonarSource/sonar', 'b9b53575e822c1219161bae1644443840a54f6ca', 'complexity'), ('https://github.com/hazelcast/hazelcast', 'b9be32cf55c5b710665193a6778de5c0d4e6cd6a', 'inheritance'), ('https://github.com/square/retrofit', 'b9fe6f99398843d84cb967cea29a53996019e4ba', 'abstraction\n'), ('https://github.com/apache/hive', 'ba0417b84f2f970f1e2b59a0cf7a06cbd37a7f2d', 'inheritance'), ('https://github.com/StuartMacKay/transform-swf', 'ba3f0de654d64cc8a5fe3a6c188cd857601fa71a', 'size'), ('https://github.com/LiveRamp/hank', 'bacca2593b24ec1f1855169dd212d07e9ec08278', 'abstraction'), ('https://github.com/eccentricdevotion/TARDIS', 'bb274df3f5119b0b96bb757c039e7f963fd503c9', 'inheritance'), ('https://github.com/cometd/cometd', 'bb97fd37007bd96f3edab8bd3dad6b7043116165', 'encapsulation'), ('https://github.com/fumandito/recruiting', 'bbd4a5097460af9a82edf8ec80b72d2b4b41416a', 'abstraction\n'), ('https://github.com/christophd/citrus', 'bc47cd654abf4b0826b9737bd6e9cd6389f80c1c', 'size & complexity'), ('https://github.com/ekirkilevics/Magnolia', 'bc8d3b71e73a0fe71b4c7c4ce9307bf17fd76f6e', 'inheritance'), ('https://github.com/Damianofds/DownloadProcess', 'bc9cdfc71ce519e034d2fbdfe25a55c5d5c6469d', 'composition'), ('https://github.com/brandonwillard/open-tracking-tools', 'bcf4d4edaa91c971e606cddf7e987ffd8fe0ea61', 'abstraction'), ('https://github.com/kirkch/SandboxMosaic', 'bd1bdbe217eb8e8de60ed37139f48c03d8c10fc0', 'abstraction'), ('https://github.com/raGan262/Quester', 'bd9a569e549499f37dea303bd71f685682575458', 'abstraction'), ('https://github.com/nuxeo/nuxeo-core', 'bddcd0866ffafb773b8f603fb498e5932cae8f5c', 'abstraction'), ('https://github.com/teozfrank/DuelMe', 'be6561edd0f65026d9546a1362988ea61b175d3f', 'abstraction'), ('https://github.com/kohsuke/hudson', 'be6cd4008b251880e1e6bc53b3acb4e16a174049', 'inheritance'), ('https://github.com/stapler/stapler', 'be73665c1cc6155bbd64efe467878616a9546f76', 'abstraction'), ('https://github.com/tfredrich/morphia', 'bf1200c8704d1a3e55e28580ef437fe33c4f4121', 'inheritance'), ('https://github.com/SonarSource/sonar', 'bf510af3e8eb5b518dbfcc216a40907dd8d7cd47', 'inheritance'), ('https://github.com/mikaelsvensson/backup', 'bfb8837d7e95d4ba35d51a30cfd8a324c58efd93', 'inheritance'), ('https://github.com/isopov/checkstyle', 'c044038c3b932586c0d384b614254cc2d1838838', 'complexity'), ('https://github.com/jenkinsci/clearcase-plugin', 'c0538de2eab2dfc82c4a2c5655ef585a49dbee34', 'abstraction'), ('https://github.com/bazaarvoice/jolt', 'c0c8fc52acc9785bacc1292a241e0e949afcda17', 'polymorphism\n'), ('https://github.com/imagej/imglib', 'c0d1c28856b420fbef923f01baf7f21a049d0530', 'inheritance'), ('https://github.com/ekirkilevics/Magnolia', 'c10746ba33cecb1aa3924d19f88fb7b7f8e8dfcf', 'inheritance'), ('https://github.com/germanescobar/jogger', 'c177e1c256dcae305b2721bd489a732cfe0fd977', 'abstraction'), ('https://github.com/eclipse/eclipse.platform.swt', 'c1d0126fc6c64fd6e2473353b2a4a680639a6fba', 'encapsulation\n'), ('https://github.com/mneedham/neo4j-fork', 'c20bd6621594b3ab1939b62a41f57414b833bbce', 'abstraction'), ('https://github.com/infinispan/infinispan', 'c2dfe5d527baa509a8eb0f9d9ba434b96a3bdc50', 'abstraction'), ('https://github.com/teamblueridge/gerrit', 'c2f373fb796f128e7596c9cbc1b4f4e253b994a1', 'inheritance'), ('https://github.com/mysema/querydsl', 'c37be07e4c8a8c89fbb7c873dbc7e7f4df82dd84', 'inheritance'), ('https://github.com/stormpath/stormpath-sdk-java', 'c4da4c3c2f4dfe54dc22304ae022d403958ebc96', 'coupling'), ('https://github.com/naotawool/auto-evernote-plugin', 'c50a9e589f71096a03676df4740b7581e4830aa8', 'composition\n'), ('https://github.com/RegalOwl/HyperConomy', 'c6a9c1a8f53e7c699a6e431d41bd157e841a44bf', 'abstraction'), ('https://github.com/tesla/m2eclipse-tycho', 'c6c3218cb769bacd26cc8a094e553f3e8c5679d1', 'coupling'), ('https://github.com/OpenNMS/opennms', 'c7238bd4c792bef1d10dd78c50ada76bb45f255d', 'abstraction'), ('https://github.com/mifos/head', 'c747394e97c41b3266d4501b9c1f7c22cde4470c', 'composition'), ('https://github.com/infinispan/infinispan', 'c757690c4fe8e7e25ee2b6bf40e7dc2e4aeed23a', 'abstraction'), ('https://github.com/mneedham/neo4j-fork', 'c784907540bcde41aa641e6a06174a6be6dfd830', 'abstraction'), ('https://github.com/adennie/fb-android', 'c7b0f12e169b773780762b13aba709d5f6dd1325', 'inheritance\n'), ('https://github.com/apache/maven', 'c7c6b5d7c78b22a10f043073402d5f13890ca416', 'inheritance'), ('https://github.com/weld/core', 'c7cb3b1d6d6a4ba87865c05d4ac3f3e3f20c266b', 'inheritance\n'), ('https://github.com/apache/cxf', 'c7f4ce23ac7454dc383eb5f0c5d3f6f55aee95e8', 'inheritance'), ('https://github.com/eclipse/ecf', 'c830b5d2c96b636437c1a423439aed42b2759b6c', 'abstraction '), ('https://github.com/amplab/tachyon', 'c855fbb323d256049a869bb6a7c24cbeef28f0b7', 'abstraction'), ('https://github.com/hdiv/hdiv', 'c8b39b0bea9dad21a8942c617c77713e3fbe5e7c', 'composition\n'), ('https://github.com/hueller/spring-activiti', 'c92c2d65b6f3cf13002909fa3032201af7ea0dfe', 'complexity'), ('https://github.com/apache/shiro', 'c9613a0a881bc449b68f69ea56aed4532c5286d0', 'composition'), ('https://github.com/rkapsi/ardverk-dht', 'c9ed90978afb6e7e26177ac97469608afe3516af', 'composition'), ('https://github.com/eclipse/vert.x', 'c9ef8191b06bd7abc090ec45be2dd5aabbeee4e3', 'composition'), ('https://github.com/NoCheatPlus/NoCheatPlus', 'ca2da0d6b4a6aa4efe5e5b1efe107af6f25b3d9b', 'complexity'), ('https://github.com/hazelcast/hazelcast', 'ca303af4cdd16ac368b7059532aa288af084fa31', 'encapsulation'), ('https://github.com/jlewallen/git-teamcity', 'cb8f85e8f26c8e60e37c29504c1ae2fdd85338a2', 'cohesion'), ('https://github.com/kongchen/swagger-maven-plugin', 'cba427e12e2aeefb202a32504772607d5db7c057', 'inheritance'), ('https://github.com/SpringSource/spring-data-commons', 'cc1561d92cec6271f6edb8be679429099166e94e', 'abstraction'), ('https://github.com/EBIBioSamples/sampletab_converters', 'cc25cddc9600f58f9410ab49f2676da376e2cdf9', 'encapsulation'), ('https://github.com/eclipse/ecf', 'cc32b37764e59e69d4436eab94d1c6afd9883e3a', 'inheritance'), ('https://github.com/dstywho/rhsc-shell-auto', 'cc40fb86a739ff738f96d608ff631760ec25bc1b', 'abstraction'), ('https://github.com/jbosstools/jbosstools-integration-tests', 'cc4d4839c4a62665757e6e61fcf9af8fb747cc6d', 'abstraction'), ('https://github.com/USGS-CIDA/coastal-hazards', 'cc7f94c45cb3c35e7647f196355e092b8b0c69a2', 'polymorphism \n'), ('https://github.com/JacORB/JacORB', 'cc9663de1768f38b1ffdad902269f0c11ab02817', 'inheritance'), ('https://github.com/jboss-fuse/fuse', 'ccbd692af257eb540a8beb82b7d7e2a2df0e1cd0', 'abstraction'), ('https://github.com/hazelcast/hazelcast-heartattacker', 'ccbdb0d2f2b8a32cfcc5dfea91df700701555007', 'complexity'), ('https://github.com/apache/hive', 'ccc96b47ee764172021edd34342708ef6c47d812', 'inheritance'), ('https://github.com/hazelcast/hazelcast', 'cd35fc8c917fecde13fedd6c6cf6a43699625bc7', 'coupling'), ('https://github.com/dcm4che/dcm4che', 'cd44361d8c363827f38fd1d0ccc3bc7729b3270d', 'composition'), ('https://github.com/apache/cayenne', 'cd83358e738c96db6f40b257efd339229950f6e1', 'inheritance'), ('https://github.com/eclipse/eclipse.platform.swt', 'cd943fc299c453b7ffe73a3be87c800d8bc59090', 'encapsulation'), ('https://github.com/m1kah/gerrit-contributions', 'cddd84b60cc65aaa21a88b9092035f0bf58139f3', 'inheritance'), ('https://github.com/deegree/deegree3', 'cdee61e155e6271e0f93a37d4f25ad7f79d4e62b', 'complexity\n'), ('https://github.com/SpringSource/spring-data-mongodb', 'ce5046c35f519b6f51a180a013c250cd05e92e72', 'abstraction'), ('https://github.com/wolfses/pmd_STANly', 'ceed6b89d31312545c1f35bf163a0ae12808c792', 'coupling'), ('https://github.com/apache/maven', 'cf12c1ad52092f4b388b020d11bfbb5f82e27be9', 'inheritance'), ('https://github.com/adangel/pmd', 'cf1e6143cc19d4e08a386673d5e0487d01005ca3', 'coupling'), ('https://github.com/geosolutions-it/imageio-ext', 'cf2ffdbe371819a146e00bbc4ca3a288e6a84f2c', 'composition'), ('https://github.com/kunyang1987/mahout', 'cf363e1bf95917f78092be27032defae8140c585', 'abstraction'), ('https://github.com/JamesIry/jADT', 'cf7d4e108e3112b379017737a3dd6fe78ee09ef2', 'abstraction'), ('https://github.com/estatio/estatio', 'cf90374088ebe9acc55b28a8fa1e0089f2eba871', 'coupling'), ('https://github.com/spullara/havrobase', 'cf9afafd4f4235d79769143c11a67cbeadaf155c', 'composition'), ('https://github.com/davidmoten/predict4java', 'd05090fb2c2bb7c9c9960bfd52067d292d34b47f', 'coupling'), ('https://github.com/molgenis/molgenis', 'd11ddc02a9131083f5bbd4223170da9b068ac039', 'cohesion\n'), ('https://github.com/adangel/pmd', 'd11f0a1f172aadb7c47c746d69805575de845bdf', 'coupling'), ('https://github.com/zml2008/libcomponents', 'd1498abeb8a8d499124e00bffa1088b763ffc457', 'abstraction\n'), ('https://github.com/forcedotcom/aura', 'd1d713f4f9e5bacf8de5f228a04f7f783325ff1a', 'abstraction'); INSERT INTO `iqa` (`URL`, `CommitID`, `IQA`) VALUES ('https://github.com/SpringSource/spring-roo', 'd2614f3752ee1f788cb460e8dcd9fee0edac19a7', 'inheritance'), ('https://github.com/eclipse/pdt', 'd2b808767fa3d5559be127bce003d6cfa32f919b', 'inheritance'), ('https://github.com/PhiCode/philib', 'd2bb41a4642359e092cc055229126db4b4b3ef67', 'abstraction'), ('https://github.com/crawljax/crawljax', 'd2c8a5422a60bceff1b672b63b562115c9485536', 'coupling'), ('https://github.com/mscheper/onebusaway-ms-application-modules', 'd3780c352d8899d3b2bf0887e0416894bda30389', 'abstraction\n'), ('https://github.com/caelum/vraptor-test', 'd3f6efffc859e48e9b226911f94dc430a8bae002', 'inheritance'), ('https://github.com/deegree/deegree3', 'd402daf08289e3145e9999f65e0226fd41ff9e09', 'complexity'), ('https://github.com/openstack-atlas/atlas-lb', 'd4235c5d67efae3b85380b70afb2cad9c680983e', 'inheritance'), ('https://github.com/somners/FiveStarTownsRecode', 'd4626c8bb8ff57d2bde4552ec48795e0a3860e9d', 'abstraction'), ('https://github.com/wicketstuff/core', 'd4a3b83628523d8722f4a9da966b4583181d0550', 'abstraction'), ('https://github.com/mysema/querydsl', 'd4b7225bd14109d62e9459d34464a277f336a406', 'encapsulation'), ('https://github.com/Weltraumschaf/commons', 'd4be5559cd45788e0eb385915fbcd7004a3a6e4e', 'coupling'), ('https://github.com/jclouds/jclouds', 'd4c7c838e875636c2deb44c5b3e670b21e1ee00b', 'abstraction'), ('https://github.com/ArcBees/GWTP', 'd4f38e228cf0cfacfb41803da641adf1e16df9ab', 'composition'), ('https://github.com/OpenGamma/OG-Platform', 'd563eb6478b6237765b24bd36ef2257cddc8f608', 'composition'), ('https://github.com/robbert/closure-compiler', 'd5840c64711992eabcafd6de2707b42601407671', 'inheritance'), ('https://github.com/jboss-logging/jboss-logging-tools', 'd5910ac0e6f45dae74a589f863fb584160559041', 'inheritance'), ('https://github.com/AxonFramework/AxonFramework', 'd5a13ad3e517746217cb8d62b97fed8b420ccc02', 'abstraction'), ('https://github.com/imagej/imagej', 'd5ca2f607863b5b74d3cc0faa0747d55fba79958', 'inheritance'), ('https://github.com/mysema/querydsl', 'd606f8e58a809b42e1f6483fd4bb5b246d2d7142', 'inheritance'), ('https://github.com/donnior/RTL', 'd647c9b7d5a8aa739e46a92b342c76037cc81b09', 'abstraction\n'), ('https://github.com/xjodoin/torpedoquery', 'd6a85f6ee0b8e94604f0ed3065165167a4b5ad7b', 'coupling'), ('https://github.com/apache/shiro', 'd6eeca8ca0a34bdad279368e793f227612e47f59', 'composition'), ('https://github.com/dana-i2cat/opennaas', 'd76d31aa19610d587898948fdc934870ab22494a', 'encapsulation\n'), ('https://github.com/teiid/teiid', 'd7d93dc374ba95a5b985076d737273457590a182', 'abstraction'), ('https://github.com/apache/mahout', 'd86c96740b02cb7651991984d6a3b4d80f7fbb2b', 'abstraction'), ('https://github.com/kohsuke/hudson', 'd876beffbe58c6dba1cfba4ee2403d943ccb27ba', 'inheritance'), ('https://github.com/EmiteGWT/emite', 'd8e441aed6163dbfc490e66f47a8b4786877ae1e', 'abstraction'), ('https://github.com/SpringSource/spring-roo', 'd91623b7e3fe0bcf379860b2e120f2ca52ae08b4', 'composition'), ('https://github.com/SoftwareEngineeringKn12/BombGameSE', 'd98ac815fd842bd4664f3240f5340e9444e48fb4', 'complexity'), ('https://github.com/johncarl81/transfuse', 'd98ba71a847bbdfdb0a35307bb484102b8f089a7', 'inheritance'), ('https://github.com/SonarCommunity/sonar-php', 'da503a54c360e8206cd655500d11aa375dd4c5b9', 'coupling'), ('https://github.com/cloudbees/diff4j', 'dad964254ab39407b369f66c4afd53fdef9022c5', 'abstraction'), ('https://github.com/windup/windup', 'db1d3d5d4c410b672c3559d58cbdab97206663df', 'abstraction'), ('https://github.com/HUSACCT/HUSACCT', 'dbb08d1873cae0dd6d336f9f3b0dff24c1bcd8d6', 'abstraction'), ('https://github.com/jankotek/JDBM3', 'dbc35d67dec51fe50bcc90ffe5661ea0926fda2a', 'inheritance'), ('https://github.com/Omertron/api-thetvdb', 'dbea1809aaf7ba82bd71bd6297cfbc5f3810e8ac', 'complexity'), ('https://github.com/apache/shiro', 'dbf54d6e3d7f9a097e14766f5bafd02097b174a3', 'abstraction\n'), ('https://github.com/eclipse/jetty.project', 'dc29d73d0bed6de59a26b1a099139f4b0e8f8c23', 'abstraction\n'), ('https://github.com/mifos/head', 'dc34fbdbdc348874f9d7dcbe579a03ad773b69b9', 'coupling'), ('https://github.com/42BV/jarb', 'dc61b7f22beb4753ed1386b3925c491e672afcf2', 'encapsulation'), ('https://github.com/ocpsoft/rewrite', 'dc9dd5e2b9a20c5c141058600ad67d909618e4d1', 'inheritance'), ('https://github.com/kirkch/SandboxMosaic', 'dccd52aa21ba4f960c58da21abdd29d1b085848b', 'abstraction'), ('https://github.com/ZerothAngel/zPermissions', 'ddd4d731fd19590465129a9ec3dec04aebee25cf', 'inheritance'), ('https://github.com/hibernate/hibernate-validator', 'ddf41168cf4e11664e39d47617d3560e8ac448b3', 'inheritance\n'), ('https://github.com/apache/tomee', 'de24cc1a0e7795b24b6328bf6f12032b7049ed27', 'inheritance\n'), ('https://github.com/SpoutDev/Spout', 'de327b97f6f6d9c738241b6f114cbd0114c8d36b', 'inheritance'), ('https://github.com/jmimo/netty-icap', 'de663d43190d86ad164d6f9571dae290b7cfb74f', 'complexity'), ('https://github.com/flyway/flyway', 'de8c56ade4ced994c2bede34b073736b73453b34', 'abstraction\n'), ('https://github.com/ops4j/org.ops4j.pax.web', 'de9a0450113810153a23d81c583c619faa8a6b7d', 'coupling'), ('https://github.com/sk89q/commandhelper', 'deaa467aedc3f6d7fcb14b4208e5b44c24a50e84', 'abstraction'), ('https://github.com/shevek/spring-rich-client', 'dedeb5fd6de6e51175629e4e2e32e55e585d8479', 'abstraction'), ('https://github.com/apache/logging-log4j2', 'dfab9c1ac5434f7d4f8a5d6d16a611222856e553', 'encapsulation'), ('https://github.com/mtedone/podam', 'e04c42ec6e72af93ba4519be2bf83908aaae895d', 'inheritance'), ('https://github.com/jclouds/jclouds-labs', 'e067fdabf5ad3840abd58ad0e12c06a9553f84ad', 'inheritance'), ('https://github.com/ist-dsi/fenix', 'e0d30084d88b503fa1ee06bbd43c9b039dc7d433', 'inheritance'), ('https://github.com/movsim/movsim', 'e0e072081697939ce8f35617e16dc9cf2033eb3c', 'encapsulation'), ('https://github.com/leocrawford/friendsquared', 'e0f0cb0c68e7acd17535fa6ef8dbf961f3cf6851', 'abstraction'), ('https://github.com/42BV/jarb', 'e11955fed26c4997d5a600f9336f3b58a7dfe5a6', 'complexity'), ('https://github.com/geotools/geotools', 'e202a00576030856ee9518bdf30db1275901041f', 'cohesion'), ('https://github.com/digital-preservation/droid', 'e20f52c7d97f4cc60c5703b6be9b4403612a624e', 'abstraction'), ('https://github.com/PEXPlugins/PermissionsEx', 'e24e442e8cc0f8862aad585de5a82e4aab40dce6', 'inheritance'), ('https://github.com/rorygibson/statik', 'e25606ee48cbfe4b61ef3e3c4d75c96d620e06d7', 'abstraction'), ('https://github.com/projectodd/jboss-polyglot', 'e28b4b6b75e74560dd13f8e621b97500ad86a198', 'abstraction'), ('https://github.com/nbronson/snaptree', 'e28c23a4f0e3b5deb47c321a1f3506ac1fa171b1', 'abstraction & size'), ('https://github.com/hector-client/hector', 'e2d5b4339850ef66b15352a064106568f72a74c1', 'coupling'), ('https://github.com/apache/roller', 'e34bf5d97d967f4726e98df6eb309a8b772f6124', 'abstraction'), ('https://github.com/internetarchive/archive-commons', 'e38be3476d2a1a4c975b84aae7d283e1197f13b0', 'abstraction'), ('https://github.com/ccare/stretch', 'e3a264a6f978c4b1041dc30e88a020b131b8baa5', 'complexity'), ('https://github.com/SonarSource/sonar-java', 'e3a3e0203dfde1e368f2289060ede5ecb1147633', 'complexity'), ('https://github.com/itm/wsn-device-drivers', 'e3dc4baf2e98ceba758aacd83953b23a92126566', 'abstraction'), ('https://github.com/SonarSource/sonar', 'e410437db4ad779e779619ac3bea979c079b4e00', 'complexity'), ('https://github.com/eclipse/eclipse.platform.ui', 'e440213d6327c79080b4938910a4050909a30f77', 'inheritance'), ('https://github.com/smparkes/zxing', 'e45d2cc9c473aa6afdf28ace16fa626b0d67c16f', 'abstraction'), ('https://github.com/SpringSource/eclipse-integration-cloudfoundry', 'e496f1df7b84e734a62a70f9e1d910c09df5401b', 'abstraction'), ('https://github.com/dcm4che/dcm4che', 'e49ecf9d5686264cb8ca3cfd737a783dee0ba06f', 'composition'), ('https://github.com/xwiki/xwiki-platform', 'e4b49d81e415613f0a4e59c7e65277cb3a597cea', 'inheritance'), ('https://github.com/droolsjbpm/drools', 'e4b8d95404f432ab6e09d315e7d29cba450269de', 'inheritance'), ('https://github.com/mpi2/PhenotypeArchive', 'e4f8d44db26ee1b600fece4ac710b80cc9c0bf97', 'inheritance'), ('https://github.com/uudashr/jsmpp', 'e50ddc6521447583ce979842ca03038008028788', 'complexity\n'), ('https://github.com/orientechnologies/orientdb', 'e5ec324c1500b99ccb8745b4b36240da809be31d', 'polymorphism'), ('https://github.com/cdaller/security_taint_propagation', 'e64ae00c47700ce8e4bb4a3a54387a8a421d8c8b', 'composition'), ('https://github.com/jbossas/console', 'e66585cebd04665c5c787be8f10c9b5ae3c8733a', 'composition'), ('https://github.com/heroku/heroku.jar', 'e6e5df7a7bd5539cc97af06dfd1c104b4febf3fa', 'coupling'), ('https://github.com/sakai-mirror/evaluation', 'e70fc59f57099fd183dc9b55626e5e9db2aa848b', 'complexity'), ('https://github.com/eclipse/jetty.project', 'e761ede1eee4f9d1773b73b8cdfe515b2aa6e06a', 'inheritance'), ('https://github.com/HUSACCT/HUSACCT', 'e7b66ad2a5dedfe9563f4e66aab58c6f72df307b', 'inheritance'), ('https://github.com/PEXPlugins/PermissionsEx', 'e7be97889d90e59e23ab1ac9487273030e211e86', 'inheritance\n'), ('https://github.com/droolsjbpm/uberfire', 'e7cb0087e1b13060e1f5dfac0ce6a4eed92d3f91', 'composition'), ('https://github.com/apache/rave', 'e7ddbfba53c2475f73a3b8e62e09633e8a5f966e', 'complexity\n'), ('https://github.com/broadgsa/gatk', 'e7f5c93fe5c0760cba808223b365f455917e8e17', 'inheritance'), ('https://github.com/seam/social', 'e883a820ef6a276a224a68e0f657c27514f5c501', 'coupling'), ('https://github.com/Mobicents/mediaserver', 'e906e02cc78c8933685868b3229bd245e9624bdf', 'complexity\n'), ('https://github.com/tcurdt/jdeb', 'e927f7a3371b4501e3323bcf75589a64e00f6edb', 'abstraction'), ('https://github.com/forge/core', 'e9390e516e107436f91228d2338e6e2baf6aa310', 'abstraction'), ('https://github.com/ebean-orm/avaje-ebeanorm', 'e95d3304bf4615c1018607894914317bf1185dc8', 'inheritance\n'), ('https://github.com/SpringSource/spring-ide', 'ea02d09ce90e1e65dd5055b93bd1f1a43238bc53', 'abstraction\n'), ('https://github.com/crosswire/jsword', 'ea1cef6b9dd70118b87f885ca17c9ba30c618d22', 'inheritance'), ('https://github.com/amplab/tachyon', 'ea4be925ab49ff1984ff6e7652f581a4b79bce5a', 'composition\n'), ('https://github.com/rhuss/jolokia', 'ea7cffc2f42df0a581d5172d85f4f0ce28c3ed62', 'complexity\n'), ('https://github.com/thinkaurelius/titan', 'eab917b78fa300d8e6d81a543d4f1738f945b5b2', 'abstraction'), ('https://github.com/SpringSource/spring-data-commons', 'eac6fcaa8efb004e73b911e9d94583fabb9bd912', 'abstraction'), ('https://github.com/pressgang-ccms/PressGangCCMSCSPClient', 'eaff06f28eccfeef52503a1b4b06366e2efd53d4', 'abstraction'), ('https://github.com/lisaglendenning/zookeeper-lite', 'eb06973896e78883a4471f0ff618f429dadb3d49', 'abstraction\n'), ('https://github.com/ceylon/ceylon-ide-eclipse', 'eb6c5b76de94ff00a37ecc61ca7fcaa3a9864339', 'abstraction\n'), ('https://github.com/msbarnar/yingreduce', 'eb6d7989925c2802ee5645a2f3f5af7b45a4a2c4', 'coupling'), ('https://github.com/rolisv/odata4j-fork', 'ec26760f6c220e36d51ffa02f112f39e9d87bd49', 'coupling'), ('https://github.com/jbossas/jboss-msc', 'ec45d7419683688ff2afba555cb802bee5b00699', 'inheritance\n'), ('https://github.com/droolsjbpm/drools', 'ec476ff58a8ea6c79982e455650ccaabccf49859', 'abstraction'), ('https://github.com/antoniomaria/gazpachosurvey', 'ec4accb8eb35a10b5ca45957214ec2d980a52efa', 'abstraction\n'), ('https://github.com/carrotsearch/randomizedtesting', 'ec6eb38ab832faf5429fc65ee7f84301d94b8b3c', 'complexity'), ('https://github.com/MLCL/Byblo', 'ec8ea0d0085f7df2535883bc68a61c84ce4bdcb8', 'abstraction'), ('https://github.com/mlvtito/maven-asciidoc-plugin', 'ecb91adf026fd8ba00975f08412f2b274cdffb13', 'complexity'), ('https://github.com/futures/fcrepo4', 'ecdfb5f37ce9bc1c901a28954aff5953c451868a', 'abstraction'), ('https://github.com/eclipse/aether-core', 'ece827a6ec5da8b36865d1ed3e4e6de1e2a7665a', 'coupling'), ('https://github.com/CoreMedia/jangaroo-tools', 'ed2ef8124a850d14aa31459e410cf87662e7834a', 'abstraction'), ('https://github.com/cucumber/cucumber-jvm', 'ed57fe5fb7393a1fe87a0d47aea1e925eb2a275e', 'abstraction'), ('https://github.com/Mag-neto/hypercab', 'edb8f9a6efb262ae7fcc42f1bca1677bd23d4430', 'abstraction'), ('https://github.com/mtedone/podam', 'ee08e3c47af65e09efaa773e9254573c9d3df2bc', 'inheritance'), ('https://github.com/richfaces4/components', 'eeac058794e5ba198ff1d5da57210d692fb86d51', 'coupling'), ('https://github.com/PEXPlugins/PermissionsEx', 'eed543dabfba366dd9f5e3bda2dd9285e30ddbc9', 'inheritance'), ('https://github.com/jacoco/jacoco', 'ef0204ede88b3e18350208e9afd2381533dfe518', 'complexity'), ('https://github.com/apache/tika', 'ef0e28d513f08ef0c1c84dbc1eeb9ebca773fb32', 'inheritance'), ('https://github.com/egonw/cdk', 'efbbaa9c3dd689dfbaac9a3f5660780a3f8c7fbe', 'complexity'), ('https://github.com/multicall/aggregators', 'f068d39e270baf4d42094987c2b0cf488a068808', 'abstraction\n'), ('https://github.com/cloudera/search', 'f0ff429f9f65f2d2920f45a93895fd00d7483386', 'abstraction'), ('https://github.com/PEXPlugins/PermissionsEx', 'f1390e1bdd130b110df8375576e471742b08384f', 'inheritance'), ('https://github.com/estatio/estatio', 'f13e25920f4d901c7ff36e4f5a7a1752f1a40bb3', 'coupling'), ('https://github.com/elight/the_grinder', 'f1b32f3a6e2b79312dd1c7b800e3dffb5b7f777b', 'coupling\n'), ('https://github.com/dmlloyd/jboss-logmanager', 'f1ca8a8b06867087175a358fb0dc014ec9289bf8', 'coupling'), ('https://github.com/SpoutDev/Spout', 'f1f4aef0d9f8d2ec770bd8b1a4558d3489575c84', 'abstraction'), ('https://github.com/ops4j/org.ops4j.pax.construct', 'f22deef53a401c927f2e635ee3d6f20ab4e88977', 'complexity'), ('https://github.com/SonarCommunity/sonar-php', 'f253ff631c60c76c6827aa61c8254896775bb665', 'complexity'), ('https://github.com/bitstorm/Wicket-tutorial-examples', 'f2936607f01c3b84a122feab139091b333cd6d6c', 'inheritance'), ('https://github.com/eccentricdevotion/TARDIS', 'f30229571b693a102078df3f287ec661b6d9a812', 'inheritance'), ('https://github.com/xXKeyleXx/MyPet', 'f31ea8a63454d0d71ada94b922d4515da3f1b7c8', 'inheritance'), ('https://github.com/mneedham/neo4j-fork', 'f33aa2d69f3125cf4569806a7bc52532f7537519', 'abstraction'), ('https://github.com/orientechnologies/orientdb', 'f35c7cd4bb525badfb1e8d19f6ab7200ba414a17', 'abstraction'), ('https://github.com/pietermartin/umlg', 'f3655edf772b05d6460b037c15b78c97cbd3e191', 'composition'), ('https://github.com/openforis/collect', 'f38644ae62e084f6db5ccdaf209617849972724c', 'polymorphism '), ('https://github.com/searls/jasmine-maven-plugin', 'f3997401246693ce211df55a3a95e00fdfca91f4', 'coupling'), ('https://github.com/eclipse/jetty.project', 'f3b393aa5d3752524d8ff82a67b51b4b4935a44e', 'complexity'), ('https://github.com/eclipse/cdt', 'f405ef755994c2ea020c7d17ab1dd6cdf897746e', 'inheritance'), ('https://github.com/ceylon/ceylon-ide-eclipse', 'f41a54fef7c420fca64b6ec065e6315a8a1d69d9', 'abstraction\n'), ('https://github.com/swoop-inc/jlib', 'f42415bf8c37788dde87ba381af235055cc526cc', 'complexity'), ('https://github.com/PEXPlugins/PermissionsEx', 'f4390cdb4ab535f276764c478a34c59ede6e90a6', 'inheritance'), ('https://github.com/dukeboard/kevoree', 'f4495f64a1844dd61195a0fb413244652951e416', 'inheritance'), ('https://github.com/nathanmarz/storm-contrib', 'f45dd2db3903cb6955f102f04847d5a15ff9f726', 'abstraction\n'), ('https://github.com/aerogear/aerogear-unified-push-server', 'f4b187deef7363a175df8a1d0aa0b25bbda019a5', 'abstraction'), ('https://github.com/veithen/visualwas', 'f4bae91a0a163317aa157fff2718d3e837191fb4', 'coupling'), ('https://github.com/smartcampuslab/platform-SyncStorageWeb', 'f4f434b313b89dda521e76df96269160bc84c7b4', 'inheritance'), ('https://github.com/estatio/estatio', 'f560d65beaf593aa3ccf63d501dd01ee55be390e', 'coupling'), ('https://github.com/metamx/druid', 'f56d026d7d37fdb5c5a93a9b21004cc20b75e121', 'abstraction\n'), ('https://github.com/SonarCommunity/sonar-javascript', 'f5718d0b65f98aca8612bc4740e8fa532fc4b39e', 'complexity'), ('https://github.com/hedtek/dspace-rest', 'f5a94ce0169da35e737c8a0a3453b89fe71ef749', 'inheritance\n'), ('https://github.com/SmartITEngineering/smart-cms', 'f5de8af809a304980838c6b30f95d1122312c5b2', 'composition'), ('https://github.com/wolips/wolips', 'f5eac5df39e6f73e4b032c6616fb44331210aa8d', 'inheritance'), ('https://github.com/modcluster/mod_cluster', 'f6a10c0ba2bc654f68aba7bce8fb052356172a3f', 'abstraction'), ('https://github.com/SpringSource/eclipse-integration-cloudfoundry', 'f6b159cd6cdf6dfa16cb966337eaacc36259c952', 'abstraction'), ('https://github.com/openfigis/vme', 'f7342365dedcf60fead5700bfc90f0008acac9af', 'complexity\n'), ('https://github.com/jclouds/jclouds-labs', 'f749c88ec6b761a9c03cd654869d8500cf669884', 'abstraction\n'), ('https://github.com/carlspring/strongbox', 'f74d48ab23e95b09466e29eb767cc9b4efbe5522', 'abstraction'), ('https://github.com/broadgsa/gatk', 'f76865abbca11bf9177377038e17f874b4178349', 'polymorphism'), ('https://github.com/adangel/pmd', 'f798fc6eccb753c7d47236a1b6718073f26ed05a', 'complexity'), ('https://github.com/hibernate/hibernate-search', 'f7b4e276eb754193a72fa98a8972b66da837664e', 'coupling'), ('https://github.com/russgold/httpunit', 'f8607df88a9f72e2ee33001b264acbbeb12060ab', 'abstraction'), ('https://github.com/droolsjbpm/optaplanner', 'f86f96d1a4fff11303c94ce8494647bec12bb32c', 'inheritance'), ('https://github.com/adangel/pmd', 'f88bcf144abe0c3b06a6bd01f51761db420b3c38', 'complexity \n'), ('https://github.com/wix/fjarr', 'f890477627daa4687b7735447cc8847f61a3299d', 'inheritance'), ('https://github.com/SonarSource/sonar', 'f8c03e642a0f450d26b019138f6e7e04de5ac671', 'complexity'), ('https://github.com/nelt/codingmatters', 'f8d3e130f5ca1771a43f485b257799db79ac4b4c', 'inheritance'), ('https://github.com/resthub/resthub-spring-stack', 'f90bd6f541ed44e14e25d1ed2510d3a1feb46b14', 'inheritance'), ('https://github.com/nodebox/nodebox', 'f9243a10b2ff0dd5ad4c8c479e53ae50b0d18758', 'inheritance\n'), ('https://github.com/kalecser/jpatchaca', 'f96dbb0e1d05e4cab3a6543ed7f9c5367e8ff0e9', 'coupling'), ('https://github.com/apache/maven-integration-testing', 'f98a9f0172680b8095b239621687996a6af955f7', 'inheritance'), ('https://github.com/eclipse/birt', 'fa03c279934335184f4343d4769d3af6a239e74f', 'inheritance'), ('https://github.com/dCache/dcache', 'fa3d4eb0f78c998e736e069cff3041f866eb0bb6', 'abstraction'), ('https://github.com/droolsjbpm/optaplanner', 'fa99b1bb0753cb5675d834b66bac6cd2695feb5f', 'inheritance'), ('https://github.com/apache/maven', 'faa5cf27cb1d03c6ffab1429f64cb759362c3df8', 'inheritance'), ('https://github.com/SonarSource/sonar-runner', 'fae90f2a020e9dd9cff5d8faffbdc17185c70f92', 'coupling'), ('https://github.com/SonarSource/sonar', 'faf1ca82a2c8c852b44fc350d0af575243a1462e', 'inheritance\n'), ('https://github.com/geosdi/geo-platform', 'fb01be75c288fec20bd98c3cc1d87e0b386e5ab5', 'abstraction '), ('https://github.com/arquillian/arquillian-extension-drone', 'fb36d41afe9c6de289e5a709a6917c5f7e2ba8a3', 'abstraction'), ('https://github.com/gxa/gxa', 'fb6909bd2a8062e4469d9ffcd8ac2d55d0dcf722', 'composition'), ('https://github.com/jschneider/com.cedarsoft.codegen', 'fb6e24885dd42f5c170f0dc828bf2cf6c97b1627', 'inheritance'), ('https://github.com/droolsjbpm/jbpm-form-builder', 'fb77fe189fe5f2fba26402ef7fa929e0fdfbd970', 'coupling'), ('https://github.com/apache/hadoop', 'fb892d8f847b6fd3a2cfa56d6750e5d39eef4667', 'abstraction'), ('https://github.com/md-5/SpecialSource', 'fbd2b64a61a1bda6f4e33421aca4585f397b4557', 'inheritance'), ('https://github.com/jclouds/jclouds-labs', 'fbdeeb02a9b9b1673dd5bcfceecff2d45d553510', 'inheritance'), ('https://github.com/apache/hive', 'fc2cda6cc5fcdc3b69c44665117598dd20d48802', 'abstraction'), ('https://github.com/eclipse/cdt', 'fc37d2f92c355411212be672f03040cbf8fc16bb', 'abstraction'), ('https://github.com/amplab/tachyon', 'fc556f2f83f2c6b83372a4e6cb12f5f666f1edee', 'abstraction\n\n'), ('https://github.com/dcm4che/dcm4che', 'fc5ba4530e65077403a91e6ad650b5757487dcd0', 'composition'), ('https://github.com/vaadin/cdi', 'fc794593ad542eb6f289ab5a7002725d9456922f', 'inheritance'), ('https://github.com/md-5/SpecialSource', 'fc8bae3e043c3e852637e269e9f8548438ba6544', 'inheritance'), ('https://github.com/candlepin/candlepin', 'fc8f10ae421b76b0e2efaf8184e113f94469fce7', 'encapsulation\n'), ('https://github.com/mneedham/neo4j-fork', 'fcafa9dd066b10cb0f5370e1ebd0813050147cf8', 'abstraction'), ('https://github.com/deegree/deegree3', 'fce58173e02d4d3f754f2c07e1d00d0d6ffeb020', 'complexity\n'), ('https://github.com/kashifrazzaqui/sslfacade', 'fd022c0afce85a0171033dc5ac7d3ced70d152b9', 'abstraction'), ('https://github.com/hibernate/hibernate-search', 'fd034eaceed1d283e2085c8cea182857b05bfad8', 'inheritance'), ('https://github.com/pcm32/FASTLipid', 'fd0415cccb57c95908f92295961f97cb4701fc68', 'composition'), ('https://github.com/codecop/ugly-trivia-kata', 'fd43aba765ffd34b773770eb35602ae8345cf9b1', 'coupling\n'), ('https://github.com/jbossas/jboss-msc', 'fd539be52c2e5722925ab17b0ab82900dfd4b7d3', 'inheritance'), ('https://github.com/ModeShape/modeshape', 'fdd9fe58b8bea47870ac2eaf6b8e2fb388ff36e1', 'abstraction'), ('https://github.com/swoop-inc/jlib', 'fe09e7997b335bf3ac3938e823eb3b5009871bf3', 'complexity'), ('https://github.com/SpringSource/spring-security-oauth', 'fe2c082f0bb81a452be3a68e0bd8c2fa28615e55', 'inheritance'), ('https://github.com/droolsjbpm/drools', 'fe5b24220ed975c457cfc4e23962c029b4250656', 'inheritance'), ('https://github.com/orientechnologies/orientdb', 'fe891ec38f480b991fb605ee21cc0b23d9f4a2d0', 'abstraction'), ('https://github.com/apache/maven', 'febce07c90a4630ecccfa9ef35803a5a249c1270', 'inheritance'), ('https://github.com/StuartMacKay/transform-swf', 'fffc91df99c2d10822fe4a34f00b819b45909a20', 'complexity\n'), ('https://github.com/broadgsa/gatk-protected', '00c06e9e52f416599bb9b906c32857848a9abd39', 'size'), ('https://github.com/RovoMe/JDrum', '0303792b0d568db58dd8934466a6802b1037846c', 'size'), ('https://github.com/briandwyer/cas-hudson', '03be522a8dd579d670d87d81ee5e7a8075164b57', 'size'), ('https://github.com/eclipse/birt', '03c84e218ab1fb9cc0b63a594df59587b9bbd775', 'size'), ('https://github.com/perfectsense/dari', '0ae0771ce402b7992acd6433728205f9aadb1dd6', 'size'), ('https://github.com/orientechnologies/orientdb', '17afdfe142225fb49dcee0631bb40f419cebc823', 'size'), ('https://github.com/OpenGamma/OG-Platform', '1acd393490015d10207966f7cc06a72026bba62b', 'size'), ('https://github.com/apache/hbase', '1c81734163c0a510796ea780c6b7cf2ac82e4210', 'size'), ('https://github.com/antlr/antlrworks', '21f189efd0dc560976d5ee501836c5849800a38c', 'size'), ('https://github.com/raulcf/Seep', '231c8fc004bbc473ba13def410d69d5862e7b297', 'size'), ('https://github.com/jmxtrans/jmxtrans', '2362bcce568b53addbfd4bddc80253d29f380058', 'size'), ('https://github.com/robbert/closure-compiler', '252e67ec089d68be7af71ece59c87848a6179826', 'size'), ('https://github.com/eclipse/eclipse.platform.ui', '27a0b33bc311f95dbf221a6ff17f50aa537c6a6c', 'size'), ('https://github.com/m1kah/gerrit-contributions', '28a950b75fc5369c312980354cf09786e47c314a', 'size'), ('https://github.com/dCache/dcache', '2909ddebb8cc467c5c1107d286f6044d465e9e05', 'size'), ('https://github.com/apache/camel', '2f8b019062652a1f94728dac7ef9dc70d53c21fb', 'size'), ('https://github.com/openmicroscopy/bioformats', '30236750fe1db7e94ba6342fdaafc57db92515f7', 'size'), ('https://github.com/robovm/robovm', '321aceee26973fb755c2210749792c44ee5c70bc', 'size'), ('https://github.com/Dempsy/Dempsy', '33cf35247e5d2671d1e1e3a93de8e7722027f618', 'size'), ('https://github.com/eclipse/eclipse.platform.ui', '36593d1d3bc324fc8a427b4c10892348d5e9d847', 'size'), ('https://github.com/hazelcast/hazelcast', '37f6b8a24139714a606b4a359db8d43c0fed4150', 'size'), ('https://github.com/kunyang1987/mahout', '381701526ca207bd690793b277efba43d6f93db1', 'size'), ('https://github.com/eskatos/sked', '3a7a6fb92b8d9ed86fa04fed8531bdb48f3eb042', 'size'), ('https://github.com/hazelcast/hazelcast', '3d32c88f2d3ebef1480a8e28c9b4abbbb65b9e49', 'size'), ('https://github.com/apache/commons-io', '4147a50bae4e937d0bd41c397b13009b56a8cf2a', 'size'), ('https://github.com/warneke/compression-hdfs', '43cc8af0c8c60cfc5d858f6cc8ab4d18c299036b', 'size'), ('https://github.com/jitsi/jitsi-videobridge', '4bd2b8b0ea7a4a886a483bdd3b6157c5eced224b', 'size'), ('https://github.com/cloudera/flume', '545596911f3702778dca8591e65839e833414f60', 'size'), ('https://github.com/krosenvold/findbugs', '5493552bbe7a5017f963c27c98352a59ae9636fe', 'size'), ('https://github.com/floodlight/floodlight', '5afa4723dfe0b7db4265d8fd2eae75e487f4540f', 'size'), ('https://github.com/psibre/javacpp', '5c5a58a12a6535b84d9c3fb8fe5f3226324e65de', 'size'), ('https://github.com/codice/ddf', '5f9d2980ae4cb24b79cb17f24fb19e5deabebeb5', 'size'), ('https://github.com/joseteodoro/JDX', '672130416209762306c0f90409f0a2146d8f8931', 'size'), ('https://github.com/eclipse/birt', '6b917ebe5978389e052d5c9b1a610f00cf9ff1b4', 'size'), ('https://github.com/Silverpeas/Silverpeas-Components', '7ba4c2c0bf5cbcad3177e8306b95b651473ceac3', 'size'), ('https://github.com/SonarSource/sonar', '85877295a7db169742f56bc6c44b883267923cf7', 'size'), ('https://github.com/krosenvold/findbugs', '9306077dc09579e77e8cae1eb99ffad12836d9b1', 'size'), ('https://github.com/errai/errai', '97771cac412944ce96affdf6bad53b11bde2adcb', 'size'), ('https://github.com/EBIBioSamples/biosd_ui', '9d7cd7c9d6f37bca5ccd649f9cc589572cd7091b', 'size'), ('https://github.com/wocommunity/wonder', 'a2408ac6e3f195842bd68b5a0f96098bc0c6241d', 'size'), ('https://github.com/wadahiro/openicf', 'a63bd2ae9489d325a2936a5d7851cdde89abe5c7', 'size'), ('https://github.com/apache/incubator-drill', 'b1d91c8187d197991306b4d054db135121ceca85', 'size'), ('https://github.com/codice/ddf', 'b28b9ae2ec2175a16cf978d7a4e2a1f715bdc9dd', 'size'), ('https://github.com/eclipse/jgit', 'b6d0586befb3417a72730443770abb223b9cae83', 'size'), ('https://github.com/StuartMacKay/transform-swf', 'ba3f0de654d64cc8a5fe3a6c188cd857601fa71a', 'size'), ('https://github.com/sakai-mirror/sam', 'c0659849ff93b722255ab22a8ac9b043d36f27a6', 'size'), ('https://github.com/brianm/jdbi', 'cc9b981087757a0fcfc712609da635e436e7871e', 'size'), ('https://github.com/infinispan/infinispan', 'd0f9be56100e00e5f2c887001d64166655eba68e', 'size'), ('https://github.com/eclipse/birt', 'd169d6f1734db412451dd2a50f053c32ddb539f4', 'size'); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
ALTER TABLE workflow_report ADD ( formId Integer NULL, isbill CHAR(1) NULL ) / ALTER TABLE WorkFlow_Report ADD ( reportWFIDTemp VARCHAR(200) ) / UPDATE WorkFlow_Report SET reportWFIDTemp = reportWFID, reportWFID = NULL / ALTER TABLE workflow_report MODIFY ( reportWFID VARCHAR(200) ) / UPDATE WorkFlow_Report SET reportWFID = reportWFIDTemp / ALTER TABLE WorkFlow_Report DROP ( reportWFIDTemp ) / UPDATE workflow_report SET formId = ( SELECT formid FROM workflow_base WHERE id = reportwfid ), isbill = ( SELECT isbill FROM workflow_base WHERE id = reportwfid ) / INSERT INTO HtmlLabelIndex values(19514,'相关表单或单据名称') / INSERT INTO HtmlLabelInfo VALUES(19514,'相关表单或单据名称',7) / INSERT INTO HtmlLabelInfo VALUES(19514,'The Relative Name of Form or Bill',8) / INSERT INTO HtmlLabelIndex values(19532,'表单') / INSERT INTO HtmlLabelInfo VALUES(19532,'表单',7) / INSERT INTO HtmlLabelInfo VALUES(19532,'Form',8) / INSERT INTO HtmlLabelIndex values(19533,'表单或单据') / INSERT INTO HtmlLabelInfo VALUES(19533,'表单或单据',7) / INSERT INTO HtmlLabelInfo VALUES(19533,'Form or Bill',8) / INSERT INTO HtmlLabelIndex values(17736,'排序类型') / INSERT INTO HtmlLabelInfo VALUES(17736,'排序类型',7) / INSERT INTO HtmlLabelInfo VALUES(17736,'type of compositor',8) /
SELECT deletePackage(pkghead_id) FROM pkghead WHERE pkghead_name = 'shipfreight'; SELECT deletePackage(pkghead_id) FROM pkghead WHERE pkghead_name = 'rtrnfreight'; SELECT deletePackage(pkghead_id) FROM pkghead WHERE pkghead_name = 'updpricing';
DROP PROCEDURE CPI.INSERT_INTO_GICP; CREATE OR REPLACE PROCEDURE CPI.INSERT_INTO_GICP (p_advice_id IN GIAC_DIRECT_CLAIM_PAYTS.advice_id%TYPE, p_tran_id IN GIAC_DIRECT_CLAIM_PAYTS.gacc_tran_id%TYPE, p_user_id IN GIIS_USERS.user_id%TYPE, p_msg_alert OUT VARCHAR2) IS /* ** Created by : Veronica V. Raymundo ** Date Created : 12.21.2011 ** Reference By : (GICLS043 - Batch Claim Settlement Request) ** Description : Executes INSERT_INTO_GICP program unit in GICLS043 ** */ v_foreign_curr_amt GIAC_DIRECT_CLAIM_PAYTS.foreign_curr_amt%TYPE; switch VARCHAR2(1); tax_amt NUMBER(16,2) DEFAULT 0; v_whold_tax NUMBER(16,2) DEFAULT 0; v_input_vat NUMBER(16,2) DEFAULT 0; v_other_tax NUMBER(16,2) DEFAULT 0; BEGIN FOR d IN (SELECT a.advice_id, a.claim_id, b.clm_loss_id, b.payee_class_cd, b.payee_cd, b.payee_type, b.net_amt, b.paid_amt, a.convert_rate, a.currency_cd , DECODE(b.currency_cd, giacp.n('CURRENCY_CD'), 1, NVL(a.orig_curr_rate, a.convert_rate)) conv_rt_b,--roset, 7/9/09, added nvl part DECODE(a.currency_cd, giacp.n('CURRENCY_CD'), 1, NVL(a.orig_curr_rate, a.convert_rate)) conv_rt_a --roset, 7/9/09, added nvl part FROM GICL_ADVICE a, GICL_CLM_LOSS_EXP b WHERE b.claim_id = a.claim_id AND b.advice_id = a.advice_id AND a.advice_id = p_advice_id) LOOP -- get tax of type 'W' BEGIN SELECT SUM(tax_amt * d.conv_rt_b) INTO v_whold_tax FROM GICL_LOSS_EXP_TAX WHERE claim_id = d.claim_id AND clm_loss_id = d.clm_loss_id AND tax_type = 'W'; EXCEPTION WHEN NO_DATA_FOUND THEN NULL; END; -- get tax of type 'O' BEGIN SELECT SUM(tax_amt * d.conv_rt_b) INTO v_other_tax FROM GICL_LOSS_EXP_TAX WHERE claim_id = d.claim_id AND clm_loss_id = d.clm_loss_id AND tax_type = 'O'; EXCEPTION WHEN NO_DATA_FOUND THEN NULL; END; -- get tax of type 'I' BEGIN SELECT SUM(tax_amt * d.conv_rt_b) INTO v_input_vat FROM GICL_LOSS_EXP_TAX WHERE claim_id = d.claim_id AND clm_loss_id = d.clm_loss_id AND tax_type = 'I'; EXCEPTION WHEN NO_DATA_FOUND THEN NULL; END; INSERT INTO GIAC_INW_CLAIM_PAYTS (gacc_tran_id, transaction_type, claim_id, clm_loss_id, advice_id, payee_cd, payee_class_cd, payee_type, disbursement_amt, currency_cd, convert_rate, foreign_curr_amt, last_update, user_id, input_vat_amt, wholding_tax_amt, net_disb_amt) VALUES (p_tran_id, 1, d.claim_id, d.clm_loss_id, d.advice_id, d.payee_cd, d.payee_class_cd, d.payee_type, (d.net_amt * d.conv_rt_b), d.currency_cd, d.conv_rt_a, --d.convert_rate, ((d.net_amt * d.conv_rt_b) / d.conv_rt_a), SYSDATE, p_user_id, v_input_vat, v_whold_tax, (d.paid_amt * d.conv_rt_b)); IF SQL%NOTFOUND THEN p_msg_alert := 'Cannot insert into GIAC_INW_CLAIM_PAYTS table.' || 'Please contact your system administrator.'; END IF; END LOOP; END; /
INSERT INTO UserType ([Name]) VALUES ('Inactive');
CREATE TABLE `pb_command` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `channel_id` INT(10) UNSIGNED NOT NULL, `triggers` VARCHAR(512) NOT NULL COMMENT 'Each trigger is divided by a pipe character "|". No !\'s allowed in command names. Example: testman|testman1|anotheralias', `response` VARCHAR(1024) NOT NULL, `response_type` ENUM('say','whisper','reply') NOT NULL DEFAULT 'say', `level` INT(11) NOT NULL DEFAULT '100' COMMENT 'User level required to use the command', `cooldown_all` INT(11) NOT NULL DEFAULT '4', `cooldown_user` INT(11) NOT NULL DEFAULT '10', `enabled` ENUM('yes','no','online_only','offline_only') NOT NULL DEFAULT 'yes', `cost_points` INT(10) UNSIGNED NOT NULL DEFAULT '0', `filters` SET('banphrases','linkchecker') NOT NULL DEFAULT '', PRIMARY KEY (`id`), INDEX `channel_id` (`channel_id`), CONSTRAINT `FK_pb_command_pb_channel` FOREIGN KEY (`channel_id`) REFERENCES `pb_channel` (`id`) ) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB ;
PRAGMA foreign_keys = on; --STAFF INSERT INTO Staff VALUES (9462023645904, 'Maria Idalina Gomes Silva', 916935316, '1967-2-17', 'Rua Jardim', 977652890); INSERT INTO Staff VALUES (8082264321231, 'Marisa Isabel Magalhaes Brandao Silva', 929164879, '1962-3-6', 'Rua Armazens', 761120614); INSERT INTO Staff VALUES (6570567309853, 'Pedro Miguel Carvalho da Silva', 926345531, '1965-5-27', 'Rua Oliveirinhas', 726208985); INSERT INTO Staff VALUES (2348543573001, 'Sandra Maria Moura Pinto Pires', 961949255, '1968-4-14', 'Rua Tapada Marinha', 313631376); --GABINETE INSERT INTO Gabinete VALUES ('I137'); INSERT INTO Gabinete VALUES ('I134'); INSERT INTO Gabinete VALUES ('I022'); INSERT INTO Gabinete VALUES ('I318'); INSERT INTO Gabinete VALUES ('I120'); INSERT INTO Gabinete VALUES ('I126'); INSERT INTO Gabinete VALUES ('I237'); INSERT INTO Gabinete VALUES ('I314'); INSERT INTO Gabinete VALUES ('I135'); INSERT INTO Gabinete VALUES ('I236'); INSERT INTO Gabinete VALUES ('I130'); INSERT INTO Gabinete VALUES ('I138'); INSERT INTO Gabinete VALUES ('I215'); INSERT INTO Gabinete VALUES ('I128'); INSERT INTO Gabinete VALUES ('H317'); INSERT INTO Gabinete VALUES ('I218'); --PROF INSERT INTO Prof VALUES (4122079773734, 'Joao Manuel Paiva Cardoso', 937914785, '1969-12-6', 'Rua Rampa Alta', 147088301, 'I137'); INSERT INTO Prof VALUES (9792306443952, 'Carlos Manuel Milheiro de Oliveira Pinto Soares', 938467512, '1954-5-17', 'Rua Caminho Cruz', 191964361, 'I022'); INSERT INTO Prof VALUES (1854839674382, 'Ademar Manuel Teixeira de Aguiar', 961870305, '1956-2-5', 'Rua Comercio', 907066761, 'I134'); INSERT INTO Prof VALUES (3693044364286, 'Jorge Alves da Silva', 961597572, '1957-7-18', 'Travessa Choupelo', 976336082, 'I318'); INSERT INTO Prof VALUES (9051287268061, 'Rosaldo José Fernandes Rossetti', 963134238, '1969-3-17', 'Rua Patrao Caramelho', 671655628, 'I120'); INSERT INTO Prof VALUES (2463208297382, 'João Carlos Pascoal Faria', 937103434, '1957-12-18', 'Rua Parque Gondarim', 926557523, 'I126'); INSERT INTO Prof VALUES (2088756924768, 'João Paulo de Castro Canas Ferreira', 932489153, '1958-12-19', 'Rua Pescador Bacalhoeiro', 829890030, 'I237'); INSERT INTO Prof VALUES (2982648918603, 'Jorge Manuel Gomes Barbosa', 917311713, '1958-7-28', 'Rua Cortinhas Fonte', 307642101, 'I314'); INSERT INTO Prof VALUES (1442620151390, 'Luís Paulo Gonçalves dos Reis', 919333788, '1951-11-23', 'Avenida Doutor Fernando Gomes', 258076315, null); INSERT INTO Prof VALUES (3165960962473, 'Maria Cristina de Carvalho Alves Ribeiro', 932705279, '1952-1-4', 'Rua Nogueiras', 340916084, 'I135'); INSERT INTO Prof VALUES (2765917753630, 'António José Duarte Araújo', 965933643, '1952-3-8', 'Rua Padua Correia', 372595882, 'I236'); INSERT INTO Prof VALUES (2805166462479, 'José Manuel de Araújo Baptista Mendonça', 924963360, '1952-6-14', 'Rua Parque Gondarim', 605037937, null); INSERT INTO Prof VALUES (2801764625581, 'Antonio Augusto de Sousa', 932597764, '1968-8-5', 'Rua Dom Antonio Ferreira Gomes', 756152302, 'I130'); INSERT INTO Prof VALUES (8704231737884, 'Eugenio da Costa Oliveira', 913636255, '1965-12-17', 'Rua Castelo de Guimaraes', 575913788, 'I138'); INSERT INTO Prof VALUES (9848484636632, 'Gil Manuel Magalhaes de Andrade Goncalves', 918734999, '1963-6-24', 'Rua Almirante Leote do Rego', 533591837, 'I215'); INSERT INTO Prof VALUES (7751787559647, 'Henrique Daniel de Avelar Lopes Cardoso', 933107587, '1960-3-5', 'Rua de Monte Alegre', 874026111, 'I128'); INSERT INTO Prof VALUES (7402047179596, 'Alvaro Alberto de Matos Ferreira da Cunha', 961366249, '1962-7-29', 'Rua Goncalo Cristovao', 786955174, 'H317'); INSERT INTO Prof VALUES (8751366620428, 'Fernando Lobo Pereira', 921099617, '1964-6-20', 'Rua do Bonjardim', 810628447, 'I218'); INSERT INTO Prof VALUES (3364353703902, 'Fernando Nunes Ferreira', 914782094, '1955-2-18', 'Rua Camara Pestana', 445193437, 'I137'); INSERT INTO Prof VALUES (9305967835528, 'Ana Paula Rocha', 965154258, '1953-10-8', 'Rua Linhas de Torres', 170655353, 'I134'); INSERT INTO Prof VALUES (1575504875038, 'Joao Tiago Pinheiro Neto Jacob', 968509431, '1952-8-9', 'Rua Goncalo Sampaio', 639816483, 'I120'); --CURSO INSERT INTO Curso VALUES (2683216217156, 'Mestrado Integrado em Engenharia Informatica e Computacao', 2463208297382); INSERT INTO Curso VALUES (2395766848890, 'Programa Doutoral em Engenharia Informatica', 2801764625581); --LECIONA INSERT INTO Leciona VALUES (4122079773734, 2683216217156); INSERT INTO Leciona VALUES (9792306443952, 2683216217156); INSERT INTO Leciona VALUES (3693044364286, 2683216217156); INSERT INTO Leciona VALUES (9051287268061, 2683216217156); INSERT INTO Leciona VALUES (2463208297382, 2683216217156); INSERT INTO Leciona VALUES (2088756924768, 2683216217156); INSERT INTO Leciona VALUES (2982648918603, 2683216217156); INSERT INTO Leciona VALUES (1442620151390, 2683216217156); INSERT INTO Leciona VALUES (3165960962473, 2683216217156); INSERT INTO Leciona VALUES (2765917753630, 2683216217156); INSERT INTO Leciona VALUES (2801764625581, 2683216217156); INSERT INTO Leciona VALUES (9848484636632, 2683216217156); INSERT INTO Leciona VALUES (7751787559647, 2683216217156); INSERT INTO Leciona VALUES (9305967835528, 2683216217156); INSERT INTO Leciona VALUES (4122079773734, 2395766848890); INSERT INTO Leciona VALUES (9792306443952, 2395766848890); INSERT INTO Leciona VALUES (9051287268061, 2395766848890); INSERT INTO Leciona VALUES (2463208297382, 2395766848890); INSERT INTO Leciona VALUES (1442620151390, 2395766848890); INSERT INTO Leciona VALUES (3165960962473, 2395766848890); INSERT INTO Leciona VALUES (2801764625581, 2395766848890); INSERT INTO Leciona VALUES (7751787559647, 2395766848890); INSERT INTO Leciona VALUES (9305967835528, 2395766848890); --STAFF_DO_CURSO INSERT INTO StaffDoCurso VALUES (9462023645904, 2683216217156); INSERT INTO StaffDoCurso VALUES (8082264321231, 2395766848890); --ESTUDANTE INSERT INTO Estudante VALUES (7365406276967, 'Simao Pereira Oliveira', 961416657, '1996-7-2', 'Rua Cimo Vila', 2683216217156); INSERT INTO Estudante VALUES (7124663645254, 'Carlos Eduardo da Nova Duarte', 933922750, '1996-11-26', 'Rua Patrao Caramelho', 2683216217156); INSERT INTO Estudante VALUES (7525050515978, 'Pedro Maria Passos Ribeiro do Carmo Pereira', 921245357, '1999-2-23', 'Rua Cimo Vila', 2683216217156); INSERT INTO Estudante VALUES (3899888362470, 'Afonso Soares Mendonça', 937400821, '1998-12-31', 'Rua Luis Sardoeira', 2683216217156); INSERT INTO Estudante VALUES (1509116503139, 'Moises Pimenta Rocha', 921989322, '1997-10-19', 'Rua Costa', 2683216217156); INSERT INTO Estudante VALUES (8075088819118, 'Paulo Daniel da Silva Araujo', 928841889, '2000-5-16', 'Rua Cimo Vila', 2683216217156); INSERT INTO Estudante VALUES (2208155312945, 'Ana Teresa Silva', 925058531, '1998-2-4', 'Rua Nogueiras', 2683216217156); INSERT INTO Estudante VALUES (7932627529234, 'Andre Miguel Soares', 924131438, '1997-2-17', 'Rua Oliveirinhas', 2683216217156); INSERT INTO Estudante VALUES (3673534698650, 'Pedro Miguel Braga Lopes Moas', 926087693, '1997-9-31', 'Rua Nogueiras', 2683216217156); INSERT INTO Estudante VALUES (2773600182473, 'Diogo Peixoto Pereira', 918556673, '1997-3-14', 'Rua Ancora', 2683216217156); INSERT INTO Estudante VALUES (3940420465683, 'João Paulo Madureira Damas', 932984259, '1998-11-10', 'Rua Muro Bacalhoeiros', 2683216217156); INSERT INTO Estudante VALUES (1720286804801, 'Joao Pedro Correia', 964484816, '1999-2-7', 'Rua Dordio Gomes', 2395766848890); INSERT INTO Estudante VALUES (2211778999212, 'Tiago Luis Pacheco', 928612212, '1998-10-3', 'Rua Direita de Francos', 2395766848890); INSERT INTO Estudante VALUES (6270866517184, 'Maria Gomes Pedroto', 961615194, '1996-5-8', 'Rua Azevedo Coutinho', 2395766848890); INSERT INTO Estudante VALUES (6294818581325, 'Carlos Correia da Costa', 961997191, '1998-5-20', 'Rua Central de Francos', 2395766848890); INSERT INTO Estudante VALUES (4362597829517, 'Pedro Manuel Correia', 912301495, '1999-9-9', 'Rua de Cedofeita', 2395766848890); INSERT INTO Estudante VALUES (4485929332892, 'Carla Filipa Abreu', 933506938, '1997-4-30', 'Rua Adolgo Casais Monteiro', 2395766848890); INSERT INTO Estudante VALUES (1909761548060, 'Leonardo Ferreira', 927857665, '1998-1-8', 'Rua Guerra Junqueiro', 2395766848890); INSERT INTO Estudante VALUES (8387267559682, 'Joao Francisco Neto', 912406495, '1997-2-28', 'Rua Dom Agostinho de Jesus e Sousa', 2395766848890); INSERT INTO Estudante VALUES (4316005989619, 'Antonio Borges dos Santos Ferreira', 913952874, '1999-1-10', 'Rua de Camoes', 2395766848890); INSERT INTO Estudante VALUES (8355382237951, 'Miguel da Costa Simoes', 921909562, '1998-2-7', 'Rua do Fojo', 2683216217156); INSERT INTO Estudante VALUES (9203169095046, 'Daniel Pereira', 939463041, '1998-3-3', 'Rua Almada', 2683216217156); INSERT INTO Estudante VALUES (6283147100666, 'Jose Nuno Branco Lima e Silva', 931090439, '1997-3-27', 'Rua Antonio Enes', 2683216217156); --FREQUENCIA INSERT INTO Frequencia VALUES (7365406276967, 2683216217156, 12.96, 0); INSERT INTO Frequencia VALUES (7124663645254, 2683216217156, 10.43, 1); INSERT INTO Frequencia VALUES (7525050515978, 2683216217156, 17.55, 0); INSERT INTO Frequencia VALUES (3899888362470, 2683216217156, 13.84, 1); INSERT INTO Frequencia VALUES (1509116503139, 2683216217156, 14.35, 0); INSERT INTO Frequencia VALUES (8075088819118, 2683216217156, 17.09, 1); INSERT INTO Frequencia VALUES (2208155312945, 2683216217156, 19.42, 0); INSERT INTO Frequencia VALUES (7932627529234, 2683216217156, 19.81, 1); INSERT INTO Frequencia VALUES (3673534698650, 2683216217156, 11.04, 0); INSERT INTO Frequencia VALUES (2773600182473, 2683216217156, 18.54, 1); INSERT INTO Frequencia VALUES (3940420465683, 2683216217156, 19.39, 0); INSERT INTO Frequencia VALUES (8355382237951, 2683216217156, 11.22, 0); INSERT INTO Frequencia VALUES (9203169095046, 2683216217156, 10.77, 0); INSERT INTO Frequencia VALUES (6283147100666, 2683216217156, 14.43, 0); INSERT INTO Frequencia VALUES (1720286804801, 2395766848890, 16.1, 0); INSERT INTO Frequencia VALUES (2211778999212, 2395766848890, 11.22, 1); INSERT INTO Frequencia VALUES (6270866517184, 2395766848890, 19.14, 1); INSERT INTO Frequencia VALUES (6294818581325, 2395766848890, 10.6, 1); INSERT INTO Frequencia VALUES (4362597829517, 2395766848890, 15.27, 1); INSERT INTO Frequencia VALUES (4485929332892, 2395766848890, 19.08, 0); INSERT INTO Frequencia VALUES (1909761548060, 2395766848890, 18.02, 0); INSERT INTO Frequencia VALUES (8387267559682, 2395766848890, 13.61, 1); INSERT INTO Frequencia VALUES (4316005989619, 2395766848890, 13.92, 0); --LAB INSERT INTO Lab VALUES (3017849642713, 'Instituto de Engenharia de Sistemas e Computadores, Tecnologia e Ciencia', 2805166462479); INSERT INTO Lab VALUES (6887944258493, 'Laboratorio de Inteligencia Artificial e Ciencia de Computadores', 1442620151390); INSERT INTO Lab VALUES (7142662747516, 'Instituto de I&D em Estruturas e Construcao', 7402047179596); INSERT INTO Lab VALUES (7768631240888, 'Centro de Investigacao em Sistemas e Tecnologias', 8751366620428); --PROF_ASSOC_LAB INSERT INTO ProfAssocLab VALUES (4122079773734, 3017849642713); INSERT INTO ProfAssocLab VALUES (9792306443952, 3017849642713); INSERT INTO ProfAssocLab VALUES (1854839674382, 3017849642713); INSERT INTO ProfAssocLab VALUES (3693044364286, 3017849642713); INSERT INTO ProfAssocLab VALUES (9051287268061, 3017849642713); INSERT INTO ProfAssocLab VALUES (2463208297382, 3017849642713); INSERT INTO ProfAssocLab VALUES (2088756924768, 3017849642713); INSERT INTO ProfAssocLab VALUES (3165960962473, 3017849642713); INSERT INTO ProfAssocLab VALUES (2765917753630, 3017849642713); INSERT INTO ProfAssocLab VALUES (2801764625581, 3017849642713); INSERT INTO ProfAssocLab VALUES (9051287268061, 6887944258493); INSERT INTO ProfAssocLab VALUES (8704231737884, 6887944258493); INSERT INTO ProfAssocLab VALUES (7751787559647, 6887944258493); INSERT INTO ProfAssocLab VALUES (9305967835528, 6887944258493); INSERT INTO ProfAssocLab VALUES (1575504875038, 6887944258493); INSERT INTO ProfAssocLab VALUES (9051287268061, 7142662747516); INSERT INTO ProfAssocLab VALUES (9848484636632, 7768631240888); --COMISSAO_EXECUTIVA INSERT INTO ComissaoExecutiva VALUES (4122079773734); INSERT INTO ComissaoExecutiva VALUES (9792306443952); INSERT INTO ComissaoExecutiva VALUES (1854839674382); INSERT INTO ComissaoExecutiva VALUES (3693044364286); INSERT INTO ComissaoExecutiva VALUES (9051287268061); --COMISSAO_CIENTIFICA INSERT INTO ComissaoCientifica VALUES (2683216217156, 2463208297382); INSERT INTO ComissaoCientifica VALUES (2683216217156, 2088756924768); INSERT INTO ComissaoCientifica VALUES (2683216217156, 2982648918603); INSERT INTO ComissaoCientifica VALUES (2683216217156, 1442620151390); INSERT INTO ComissaoCientifica VALUES (2683216217156, 3165960962473); INSERT INTO ComissaoCientifica VALUES (2683216217156, 2801764625581); INSERT INTO ComissaoCientifica VALUES (2395766848890, 2801764625581); INSERT INTO ComissaoCientifica VALUES (2395766848890, 8704231737884); INSERT INTO ComissaoCientifica VALUES (2395766848890, 9848484636632); INSERT INTO ComissaoCientifica VALUES (2395766848890, 7751787559647); INSERT INTO ComissaoCientifica VALUES (2395766848890, 4122079773734); --COMISSAO_ACOMPANHAMENTO INSERT INTO ComissaoAcompanhamento (curso, prof) VALUES (2683216217156, 2765917753630); INSERT INTO ComissaoAcompanhamento (curso, prof) VALUES (2683216217156, 2463208297382); INSERT INTO ComissaoAcompanhamento (curso, prof) VALUES (2683216217156, 3693044364286); INSERT INTO ComissaoAcompanhamento (curso, estudante) VALUES (2683216217156, 2773600182473); INSERT INTO ComissaoAcompanhamento (curso, estudante) VALUES (2683216217156, 3940420465683); INSERT INTO ComissaoAcompanhamento (curso, prof) VALUES (2395766848890, 2801764625581); INSERT INTO ComissaoAcompanhamento (curso, prof) VALUES (2395766848890, 8704231737884); INSERT INTO ComissaoAcompanhamento (curso, estudante) VALUES (2395766848890, 1720286804801); INSERT INTO ComissaoAcompanhamento (curso, estudante) VALUES (2395766848890, 2211778999212); --NUCLEO INSERT INTO Nucleo VALUES(1474059517614, 'Nucleo de Informatica da AEFEUP', 'B315'); INSERT INTO Nucleo VALUES(3066549995381, 'Nucleo Universitario IEEE', 'J201'); --ESTUDANTE_NUCLEO INSERT INTO EstudanteNucleo VALUES(7124663645254, 1474059517614); INSERT INTO EstudanteNucleo VALUES(3899888362470, 1474059517614); INSERT INTO EstudanteNucleo VALUES(6283147100666, 1474059517614); INSERT INTO EstudanteNucleo VALUES(6283147100666, 3066549995381); INSERT INTO EstudanteNucleo VALUES(8355382237951, 3066549995381); INSERT INTO EstudanteNucleo VALUES(9203169095046, 3066549995381);
CREATE OR REPLACE VIEW wycieczki_miejsca AS SELECT w.kraj, w.data, w.nazwa AS nazwa_wycieczki, w.liczba_miejsc, (w.liczba_miejsc - COUNT(r.nr_rezerwacji)) AS liczba_wolnych_miejsc FROM wycieczki w JOIN rezerwacje r ON w.id_wycieczki = r.id_wycieczki AND r.status != 'A' GROUP BY w.id_wycieczki, w.kraj, w.data, w.nazwa, w.liczba_miejsc;
CREATE MATERIALIZED VIEW CMDS_M_MED_PRA parallel 96 nologging AS select distinct SEIREKI, SEIREKI_NAME, WAREKI, WAREKI_NAME from TNDS_T_TRANS_JC_YEAR INNER JOIN TNDS_T_RCP_MED_MN ON TNDS_T_TRANS_JC_YEAR.WAREKI = TNDS_T_RCP_MED_MN.PRAC_YM order by SEIREKI DESC ;
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server Version: 10.4.8-MariaDB - mariadb.org binary distribution -- Server Betriebssystem: Win64 -- HeidiSQL Version: 11.0.0.5919 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Exportiere Datenbank Struktur für kapazitätsplanungstool CREATE DATABASE IF NOT EXISTS `kapazitätsplanungstool` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `kapazitätsplanungstool`; -- Exportiere Struktur von Tabelle kapazitätsplanungstool.kt_aufgaben CREATE TABLE IF NOT EXISTS `kt_aufgaben` ( `AufgabenID` int(11) NOT NULL AUTO_INCREMENT, `AufgabenTitel` varchar(50) DEFAULT NULL, `AufgabenKapazität` int(11) DEFAULT NULL, `AufgabenEndtermin` date DEFAULT NULL, `AufgabenMitarbeiterID` int(11) DEFAULT NULL, PRIMARY KEY (`AufgabenID`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- Exportiere Struktur von Tabelle kapazitätsplanungstool.kt_mitarbeiter CREATE TABLE IF NOT EXISTS `kt_mitarbeiter` ( `MitarbeiterID` int(11) NOT NULL AUTO_INCREMENT, `MitarbeiterName` varchar(50) DEFAULT NULL, `MitarbeiterArbeitszeit` int(11) DEFAULT NULL, `MitarbeiterGrundauslastung` int(11) DEFAULT NULL, PRIMARY KEY (`MitarbeiterID`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; -- Exportiere Struktur von Tabelle kapazitätsplanungstool.kt_subaufgaben CREATE TABLE IF NOT EXISTS `kt_subaufgaben` ( `subaufgabenTitel` varchar(50) DEFAULT NULL, `subaufgabenKapazität` int(11) DEFAULT NULL, `subaufgabenBearbeitungstermin` date DEFAULT NULL, `subaufgabenMitarbeiterID` int(11) DEFAULT NULL, `subaufgabenStammaufgabe` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
需要给用户授权 grant select any dictionary to xjsi_p_cz; --COMMAND_TYPE 代码值 SELECT * FROM v$sqlcommand; --exesqltext 将绑定变量赋值在sql脚本中 select sql_text, sql_fulltext, sql_id, --sql_arg, fun_sql_BindArg(sql_arg,sql_fulltext) as exesqltext, "执行时间'S'", "执行次数", "COST", SORTS, MODULE, "物理读", "物理写", "返回行数", "磁盘读", "直接路径写", PARSING_SCHEMA_NAME, COMMAND_TYPE, LAST_ACTIVE_TIME from ( SELECT S.SQL_TEXT, S.SQL_FULLTEXT, S.SQL_ID, (SELECT listagg(NAME||'#'||value_string||ANYDATA.accesstimestamp(value_anydata),';') within group (order by SQL_ID) --ANYDATA.accesstimestamp(value_anydata) From gV$sql_Bind_Capture A where a.sql_id = s.sql_id and rownum <30) as sql_arg, ROUND(ELAPSED_TIME / 1000000 / (CASE WHEN (EXECUTIONS = 0 OR NVL(EXECUTIONS, 1 ) = 1) THEN 1 ELSE EXECUTIONS END), 2) "执行时间'S'", S.EXECUTIONS "执行次数", S.OPTIMIZER_COST "COST", S.SORTS, S.MODULE, --连接模式(JDBC THIN CLIENT:程序) -- S.LOCKED_TOTAL, S.PHYSICAL_READ_BYTES "物理读", -- S.PHYSICAL_READ_REQUESTS "物理读请求", S.PHYSICAL_WRITE_REQUESTS "物理写", -- S.PHYSICAL_WRITE_BYTES "物理写请求", S.ROWS_PROCESSED "返回行数", S.DISK_READS "磁盘读", S.DIRECT_WRITES "直接路径写", S.PARSING_SCHEMA_NAME, S.COMMAND_TYPE, S.LAST_ACTIVE_TIME FROM GV$SQLAREA S WHERE ROUND(ELAPSED_TIME / 1000000 / (CASE WHEN (EXECUTIONS = 0 OR NVL(EXECUTIONS, 1 ) = 1) THEN 1 ELSE EXECUTIONS END), 2) > 2 --100 0000微秒=1S AND S.PARSING_SCHEMA_NAME = USER AND S.MODULE='JDBC Thin Client' AND TO_CHAR(S.LAST_ACTIVE_TIME, 'YYYY-MM-DD') = TO_CHAR( SYSDATE, 'YYYY-MM-DD' ) AND S.COMMAND_TYPE IN (2 , 3, 5, 6 ,7 , 189) ) ORDER BY "执行时间'S'" DESC; SELECT S.SQL_TEXT, S.SQL_FULLTEXT, S.SQL_ID, (SELECT listagg(NAME||','||'-->'||value_string||' '||ANYDATA.accesstimestamp(value_anydata),',') within group (order by SQL_ID) --ANYDATA.accesstimestamp(value_anydata) From gV$sql_Bind_Capture A where a.sql_id = s.sql_id) as arg, ROUND(ELAPSED_TIME / 1000000 / (CASE WHEN (EXECUTIONS = 0 OR NVL(EXECUTIONS, 1 ) = 1) THEN 1 ELSE EXECUTIONS END), 2) "执行时间'S'", S.EXECUTIONS "执行次数", S.OPTIMIZER_COST "COST", S.SORTS, S.MODULE, --连接模式(JDBC THIN CLIENT:程序) -- S.LOCKED_TOTAL, S.PHYSICAL_READ_BYTES "物理读", -- S.PHYSICAL_READ_REQUESTS "物理读请求", S.PHYSICAL_WRITE_REQUESTS "物理写", -- S.PHYSICAL_WRITE_BYTES "物理写请求", S.ROWS_PROCESSED "返回行数", S.DISK_READS "磁盘读", S.DIRECT_WRITES "直接路径写", S.PARSING_SCHEMA_NAME, S.LAST_LOAD_TIME, S.LAST_ACTIVE_TIME FROM GV$SQLAREA S WHERE ROUND(ELAPSED_TIME / 1000000 / (CASE WHEN (EXECUTIONS = 0 OR NVL(EXECUTIONS, 1 ) = 1) THEN 1 ELSE EXECUTIONS END), 2) > 2 --100 0000微秒=1S AND S.PARSING_SCHEMA_NAME = USER AND TO_CHAR(S.LAST_LOAD_TIME, 'YYYY-MM-DD') = TO_CHAR( SYSDATE, 'YYYY-MM-DD' ) --AND S.COMMAND_TYPE IN (2 , 3, 5, 6 ,7, 189) ORDER BY "执行时间'S'" DESC; --可以获取到sql_id的执行主机 select * from dba_hist_active_sess_history where sql_id ='dd13sr39vjzm3'; --获取历史信息 select * from v$active_session_history; ORACLE 获取绑定变量值 --- 查看进程正在执行的SQL select p.SPID,sql.SQL_TEXT,sql.SQL_FULLTEXT,sql.sql_id,s.* from gv$process p , gv$session s,gv$sqlarea sql where p.ADDR=s.PADDR and p.INST_ID=s.INST_ID and sql.INST_ID=s.INST_ID and sql.ADDRESS=s.SQL_ADDRESS -- ORACLE 获取绑定变量值: SELECT SQL_ID,NAME, POSITION, value_string, ANYDATA.accesstimestamp(value_anydata) From gV$sql_Bind_Capture A Where sql_id='aqfcs7drzzcfw'; 时间变量通过 ANYDATA.accesstimestamp(value_anydata)显示。 create or replace function fun_sql_BindArg(in_str in varchar2,in_clob in clob) return clob is i Number(10); str_arg varchar2(4000); out_clob clob:=' '; begin i:=0; out_clob:= in_clob; if trim(in_str) is not null then Loop i:=i+1; str_arg:= fun_split_str(in_str,';',i); if trim(str_arg) is null then exit ; end if; out_clob := regexp_replace(out_clob,fun_split_str(str_arg,'#',1)||'[^0-9]',''''||fun_split_str(str_arg,'#',2)||''''); end loop; end if; RETURN out_clob; end fun_sql_BindArg; CREATE OR REPLACE FUNCTION fun_split_str(p_input IN VARCHAR2,s_split IN VARCHAR2,n_count IN NUMBER) RETURN VARCHAR2 AS v_return VARCHAR2(4000); BEGIN IF (n_count=1) THEN SELECT SUBSTR(REGEXP_REPLACE(TRIM(p_input),'['||s_split||']+',s_split)||s_split, 1, INSTR(REGEXP_REPLACE(TRIM(p_input),'['||s_split||']+',s_split)||s_split,s_split,1,n_count)-1) INTO v_return FROM DUAL; ELSE SELECT SUBSTR(REGEXP_REPLACE(TRIM(p_input),'['||s_split||']+',s_split)||s_split, INSTR(REGEXP_REPLACE(TRIM(p_input),'['||s_split||']+',s_split)||s_split,s_split,1,DECODE(n_count-1,'0','1',n_count-1))+1, INSTR(REGEXP_REPLACE(TRIM(p_input),'['||s_split||']+',s_split)||s_split,s_split,1,n_count)-INSTR(REGEXP_REPLACE(TRIM(p_input),'['||s_split||']+',s_split)||s_split,s_split,1,n_count-1)-1) INTO v_return FROM DUAL; END IF; RETURN v_return; END; select sql_text, sql_fulltext, sql_id, --sql_arg, --fun_sql_BindArg(sql_arg,sql_fulltext) as exesqltext, "执行时间'S'", "执行次数", "COST", SORTS, MODULE, "物理读", "物理写", "返回行数", "磁盘读", "直接路径写", PARSING_SCHEMA_NAME, LAST_ACTIVE_TIME from ( SELECT S.SQL_TEXT, S.SQL_FULLTEXT, S.SQL_ID, /*(SELECT listagg(NAME||'#'||value_string||ANYDATA.accesstimestamp(value_anydata),';') within group (order by SQL_ID) --ANYDATA.accesstimestamp(value_anydata) From gV$sql_Bind_Capture A where a.sql_id = s.sql_id and rownum <30) as sql_arg,*/ ROUND(ELAPSED_TIME / 1000000 / (CASE WHEN (EXECUTIONS = 0 OR NVL(EXECUTIONS, 1 ) = 1) THEN 1 ELSE EXECUTIONS END), 2) "执行时间'S'", S.EXECUTIONS "执行次数", S.OPTIMIZER_COST "COST", S.SORTS, S.MODULE, --连接模式(JDBC THIN CLIENT:程序) -- S.LOCKED_TOTAL, S.PHYSICAL_READ_BYTES "物理读", -- S.PHYSICAL_READ_REQUESTS "物理读请求", S.PHYSICAL_WRITE_REQUESTS "物理写", -- S.PHYSICAL_WRITE_BYTES "物理写请求", S.ROWS_PROCESSED "返回行数", S.DISK_READS "磁盘读", S.DIRECT_WRITES "直接路径写", S.PARSING_SCHEMA_NAME, S.LAST_ACTIVE_TIME FROM GV$SQLAREA S WHERE ROUND(ELAPSED_TIME / 1000000 / (CASE WHEN (EXECUTIONS = 0 OR NVL(EXECUTIONS, 1 ) = 1) THEN 1 ELSE EXECUTIONS END), 2) >=0 --100 0000微秒=1S AND S.PARSING_SCHEMA_NAME = USER --AND S.MODULE='JDBC Thin Client' AND TO_CHAR(S.LAST_ACTIVE_TIME, 'YYYY-MM-DD') = TO_CHAR( SYSDATE, 'YYYY-MM-DD' ) and S.SQL_TEXT like 'select aa10a1po0_.AAA100 as col_0_0_%' AND S.COMMAND_TYPE IN (2 , 3, 5, 6 , 189) ) ORDER BY LAST_ACTIVE_TIME DESC; select * from v$active_session_history select count(1),to_char(sample_time,'yyyymmdd hh24:mi:ss') from dba_hist_active_sess_history group by to_char(sample_time,'yyyymmdd hh24:mi:ss'); v$sql command_type各数字所代表的含义 1 CREATE TABLE 2 INSERT 3 SELECT 4 CREATE CLUSTER 5 ALTER CLUSTER 6 UPDATE 7 DELETE 8 DROP CLUSTER 9 CREATE INDEX 10 DROP INDEX 11 ALTER INDEX 12 DROP TABLE 13 CREATE SEQUENCE 14 ALTER SEQUENCE 15 ALTER TABLE 16 DROP SEQUENCE 17 GRANT OBJECT 18 REVOKE OBJECT 19 CREATE SYNONYM 20 DROP SYNONYM 21 CREATE VIEW 22 DROP VIEW 23 VALIDATE INDEX 24 CREATE PROCEDURE 25 ALTER PROCEDURE 26 LOCK 27 NO-OP 28 RENAME 29 COMMENT 30 AUDIT OBJECT 31 NOAUDIT OBJECT 32 CREATE DATABASE LINK 33 DROP DATABASE LINK 34 CREATE DATABASE 35 ALTER DATABASE 36 CREATE ROLLBACK SEG 37 ALTER ROLLBACK SEG 38 DROP ROLLBACK SEG 39 CREATE TABLESPACE 40 ALTER TABLESPACE 41 DROP TABLESPACE 42 ALTER SESSION 43 ALTER USER 44 COMMIT 45 ROLLBACK 46 SAVEPOINT 47 PL/SQL EXECUTE 48 SET TRANSACTION 49 ALTER SYSTEM 50 EXPLAIN 51 CREATE USER 52 CREATE ROLE 53 DROP USER 54 DROP ROLE 55 SET ROLE 56 CREATE SCHEMA 57 CREATE CONTROL FILE 59 CREATE TRIGGER 60 ALTER TRIGGER 61 DROP TRIGGER 62 ANALYZE TABLE 63 ANALYZE INDEX 64 ANALYZE CLUSTER 65 CREATE PROFILE 66 DROP PROFILE 67 ALTER PROFILE 68 DROP PROCEDURE 70 ALTER RESOURCE COST 71 CREATE SNAPSHOT LOG 72 ALTER SNAPSHOT LOG 73 DROP SNAPSHOT LOG 74 CREATE SNAPSHOT 75 ALTER SNAPSHOT 76 DROP SNAPSHOT 77 CREATE TYPE 78 DROP TYPE 79 ALTER ROLE 80 ALTER TYPE 81 CREATE TYPE BODY 82 ALTER TYPE BODY 83 DROP TYPE BODY 84 DROP LIBRARY 85 TRUNCATE TABLE 86 TRUNCATE CLUSTER 91 CREATE FUNCTION 92 ALTER FUNCTION 93 DROP FUNCTION 94 CREATE PACKAGE 95 ALTER PACKAGE 96 DROP PACKAGE 97 CREATE PACKAGE BODY 98 ALTER PACKAGE BODY 99 DROP PACKAGE BODY 100 LOGON 101 LOGOFF 102 LOGOFF BY CLEANUP 103 SESSION REC 104 SYSTEM AUDIT 105 SYSTEM NOAUDIT 106 AUDIT DEFAULT 107 NOAUDIT DEFAULT 108 SYSTEM GRANT 109 SYSTEM REVOKE 110 CREATE PUBLIC SYNONYM 111 DROP PUBLIC SYNONYM 112 CREATE PUBLIC DATABASE LINK 113 DROP PUBLIC DATABASE LINK 114 GRANT ROLE 115 REVOKE ROLE 116 EXECUTE PROCEDURE 117 USER COMMENT 118 ENABLE TRIGGER 119 DISABLE TRIGGER 120 ENABLE ALL TRIGGERS 121 DISABLE ALL TRIGGERS 122 NETWORK ERROR 123 EXECUTE TYPE 157 CREATE DIRECTORY 158 DROP DIRECTORY 159 CREATE LIBRARY 160 CREATE JAVA 161 ALTER JAVA 162 DROP JAVA 163 CREATE OPERATOR 164 CREATE INDEXTYPE 165 DROP INDEXTYPE 167 DROP OPERATOR 168 ASSOCIATE STATISTICS 169 DISASSOCIATE STATISTICS 170 CALL METHOD 171 CREATE SUMMARY 172 ALTER SUMMARY 173 DROP SUMMARY 174 CREATE DIMENSION 175 ALTER DIMENSION 176 DROP DIMENSION 177 CREATE CONTEXT 178 DROP CONTEXT 179 ALTER OUTLINE 180 CREATE OUTLINE 181 DROP OUTLINE 182 UPDATE INDEXES 183 ALTER OPERATOR
/* Navicat MySQL Data Transfer Source Server : hehe Source Server Version : 50716 Source Host : localhost:3306 Source Database : video Target Server Type : MYSQL Target Server Version : 50716 File Encoding : 65001 Date: 2017-08-24 11:42:26 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for admin -- ---------------------------- DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int(5) NOT NULL AUTO_INCREMENT, `name` varchar(20) DEFAULT NULL, `pwd` varchar(50) DEFAULT NULL, `roles` varchar(20) DEFAULT NULL COMMENT '角色', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of admin -- ---------------------------- INSERT INTO `admin` VALUES ('1', 'admin', '21232f297a57a5a743894a0e4a801fc3', 'administrator'); INSERT INTO `admin` VALUES ('2', '111', '698d51a19d8a121ce581499d7b701668', '111'); INSERT INTO `admin` VALUES ('3', 'admin', '123456', 'administrator'); INSERT INTO `admin` VALUES ('4', null, null, null);
select top 50 temp.description, temp.code, (select count(p.patient_id) from patient_discharge_nl_view as pdv inner join patient_visit_diagnosis_view as pv on pv.patient_visit_id = pdv.patient_visit_id inner join patient as p on p.patient_id = pv.patient_id inner join person_formatted_name_iview as pfn on pfn.person_id = p.patient_id inner join coding_system_element_description as cse on cse.code = pv.code where month(pdv.discharge_date_time) = 10 and year(pdv.discharge_date_time) = (2017 -1) and pv.diagnosis_type_rcd = 'dis' and pv.coding_type_rcd = 'pri' and pv.code = temp.code) as mycount_2017, temp.mycount_2018 from ( select code, [description], main_pv.coding_system_rcd, (select count(p.patient_id) from patient_discharge_nl_view as pdv inner join patient_visit_diagnosis_view as pv on pv.patient_visit_id = pdv.patient_visit_id inner join patient as p on p.patient_id = pv.patient_id inner join person_formatted_name_iview as pfn on pfn.person_id = p.patient_id inner join coding_system_element_description as cse on cse.code = pv.code where month(pdv.discharge_date_time) = 10 and year(pdv.discharge_date_time) = 2017 and pv.diagnosis_type_rcd = 'dis' and pv.coding_type_rcd = 'pri' and pv.code = main_pv.code) as mycount_2018 from coding_system_element_description as main_pv where coding_system_rcd = 'ICD10' ) as temp order by temp.mycount_2018 DESC
drop table if exists predict_suspicious_activity_lr; create table predict_suspicious_activity_lr ( features varchar(10000), rawprediction varchar(50), probability varchar(50), prediction decimal(10,3) );
CREATE DATABASE IF NOT EXISTS `gastos`; USE `gastos`; CREATE TABLE `t_gastos`( `id_gastos` INT NOT NULL AUTO_INCREMENT, `fecha` TEXT NOT NULL, `nombre` TEXT NOT NULL, `descripcion` TEXT NOT NULL, `monto` FLOAT NOT NULL, PRIMARY KEY (`id_gastos`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8mb4;
insert into CMDS_M_ORI_SND_DIV values('1','支払基金'); insert into CMDS_M_ORI_SND_DIV values('2','国保連合会'); insert into CMDS_M_ORI_SND_DIV values('3','直審分保険者'); commit;
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 21, 2018 at 12:22 PM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `bni_eoffice` -- -- -------------------------------------------------------- -- -- Table structure for table `comment_feed` -- CREATE TABLE `comment_feed` ( `no` int(10) NOT NULL, `no_feed` int(10) NOT NULL, `text` text NOT NULL, `username` varchar(50) NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `comment_feed` -- INSERT INTO `comment_feed` (`no`, `no_feed`, `text`, `username`, `date`) VALUES (1, 2, '0', 'k055292', '2018-09-13 02:32:15'), (2, 2, '123123', 'k055292', '2018-09-13 03:32:52'), (3, 2, '1123123', 'k055292', '2018-09-13 03:34:10'), (4, 2, '123123', 'k055292', '2018-09-13 03:35:57'), (5, 2, '0', 'k055292', '2018-09-13 03:36:12'), (6, 1, 'AING GANTENG', 'k055292', '2018-09-13 03:37:35'), (7, 1, 'ANJING BAGONG SETAN', 'k055292', '2018-09-13 03:39:04'), (8, 1, 'TAI BAGONG', 'k055292', '2018-09-13 03:39:08'), (9, 3, 'AING GANTENG', 'k055292', '2018-09-13 04:02:49'), (10, 3, 'haseum', 'k055292', '2018-09-13 04:02:57'), (11, 3, 'koaskoakso', 'k055292', '2018-09-13 04:03:21'), (12, 8, 'tai ah', 'k055292', '2018-09-13 04:03:49'), (13, 9, 'tai anjing', 'k055292', '2018-09-13 04:06:15'), (14, 9, 'jancuk', 'k055292', '2018-09-13 04:06:21'), (15, 9, 'AING GANTENG', 'k055292', '2018-09-13 04:10:37'), (16, 11, 'AING GANTENG', 'k055292', '2018-09-16 20:38:50'), (17, 1, '123123', 'k055292', '2018-09-17 21:52:38'), (18, 1, 'ANJING', 'k055292', '2018-09-17 21:52:54'), (19, 1, '123', 'k055292', '2018-09-17 21:53:15'), (20, 1, '12312312312', 'k055292', '2018-09-17 21:56:35'), (21, 12, 'tai', 'k055292', '2018-09-18 21:06:00'), (22, 16, '', 'k055292', '2018-09-19 04:51:11'), (23, 16, '', 'k055292', '2018-09-19 04:51:42'), (24, 16, '', 'k055292', '2018-09-19 05:08:18'), (25, 16, '', 'k055292', '2018-09-19 05:08:51'), (26, 16, '', 'k055292', '2018-09-19 05:09:04'), (27, 16, '', 'k055292', '2018-09-19 05:57:38'), (28, 15, '', 'k055292', '2018-09-19 06:05:25'), (29, 16, '', 'lucky', '2018-09-19 07:00:39'), (30, 16, '', 'lucky', '2018-09-19 07:01:20'), (31, 16, '16=123123', 'lucky', '2018-09-19 07:12:09'), (32, 16, '16=123123', 'lucky', '2018-09-19 07:13:01'), (33, 16, '16=ah+cau', 'lucky', '2018-09-19 07:13:32'), (34, 15, '15=123123', 'lucky', '2018-09-19 07:14:04'), (35, 15, '15=edan+bagong', 'lucky', '2018-09-19 07:14:09'), (36, 14, '14=cau+lu', 'lucky', '2018-09-19 07:14:12'), (37, 16, '', 'lucky', '2018-09-19 07:14:50'), (38, 12, '', 'k055292', '2018-09-19 21:44:57'); -- -------------------------------------------------------- -- -- Table structure for table `nama_unit` -- CREATE TABLE `nama_unit` ( `kd_unit` int(10) NOT NULL, `nama` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `nama_unit` -- INSERT INTO `nama_unit` (`kd_unit`, `nama`) VALUES (2, 'PNC'), (3, 'UMC'), (4, 'PMC FUNDING'), (5, 'PMC CR'), (6, 'PMC BB'), (7, 'PMC KUR TANI'), (8, 'PMC ABB'), (9, 'ADC'), (10, 'KCP CIKAJANG'), (11, 'KCP PAMEUNGPEK'), (12, 'KCP LIMBANGAN'), (13, 'KK KADUNGORA'), (14, 'KK CILEDUG'), (15, 'OUTSOURCE'); -- -------------------------------------------------------- -- -- Table structure for table `postfeed` -- CREATE TABLE `postfeed` ( `no` int(11) NOT NULL, `username` varchar(50) NOT NULL, `text` text NOT NULL, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `status_delete` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `postfeed` -- INSERT INTO `postfeed` (`no`, `username`, `text`, `date`, `status_delete`) VALUES (1, 'k055292', '123123123', '2018-09-18 01:31:28', 0), (2, 'k055292', '213123', '2018-09-19 03:10:42', 0), (3, 'k055292', 'KAPAN BISA KAYA', '2018-09-19 03:10:45', 0), (4, 'k055292', 'KAPAN BISA KAYA', '2018-09-13 08:56:58', 1), (5, 'k055292', 'HAYANG KAWIN', '2018-09-13 08:57:56', 1), (6, 'k055292', 'haem', '2018-09-19 03:12:35', 0), (7, 'k055292', 'haem', '2018-09-19 03:10:49', 0), (8, 'k055292', 'haem', '2018-09-19 03:12:32', 0), (9, 'k055292', 'hapeuk', '2018-09-19 03:12:29', 0), (10, 'lucky', 'ah tai anjing \r\nedan haeums half \r\nlanhaj hsjjsjsb njaiissbb bahjajabbd bajuaisbbbs \r\nhahuaiabbbs \r\nbahusjsja', '2018-09-18 04:40:20', 1), (11, 'k055292', 'AH CAU', '2018-09-17 02:34:26', 1), (12, 'k055292', '1<br />\r\n', '2018-09-17 23:44:24', 0), (13, 'k055292', 'test 1', '2018-09-17 23:44:37', 0), (14, 'k055292', 'Pengen Pulang Cepet', '2018-09-20 02:33:30', 0), (15, 'k055292', 'asdasd', '2018-09-20 02:32:57', 1), (16, 'lucky', 'asdasdasd', '2018-09-18 21:04:28', 0), (17, 'k055292', 'HAPEUK', '2018-09-20 05:14:50', 0); -- -------------------------------------------------------- -- -- Table structure for table `resume_kunjungan` -- CREATE TABLE `resume_kunjungan` ( `no` int(11) NOT NULL, `tanggal` date NOT NULL, `nama_instansi` varchar(255) NOT NULL, `pic` varchar(255) NOT NULL, `no_hp` int(15) NOT NULL, `resume` text NOT NULL, `username` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `resume_kunjungan` -- INSERT INTO `resume_kunjungan` (`no`, `tanggal`, `nama_instansi`, `pic`, `no_hp`, `resume`, `username`) VALUES (1, '2018-09-10', 'PENGGADAIAN', 'DENI', 2147483647, 'Dari Hasil kunjungan didapati bahwa PENGGADAIAN memiliki PAYROLL yang dibayarkan di BNI dan BRI', 'K055292'), (2, '2018-09-10', '1233333', '122', 2147483647, 'Dari Hasil kunjungan didapati bahwa PENGGADAIAN memiliki PAYROLL yang dibayarkan di BNI dan BRI\r\n\r\n\r\n\r\nasdasdasd\r\nadsasdasdas\r\nASDasdasdas', 'K055292'), (3, '2018-09-10', '12222222', '1233', 3333, 'AA', 'K055292'), (4, '1970-01-01', '', '', 0, 'AA', 'K055292'), (5, '2018-09-10', '13', 'ASDASD', 123123, '21312312', 'K055292'); -- -------------------------------------------------------- -- -- Table structure for table `surat_keluar` -- CREATE TABLE `surat_keluar` ( `no_surat` int(11) NOT NULL, `tanggal` date NOT NULL, `kd_unit` int(10) NOT NULL, `tujuan` varchar(255) NOT NULL, `hal` text NOT NULL, `output` text NOT NULL, `username` varchar(50) NOT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `lampiran` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `surat_keluar` -- INSERT INTO `surat_keluar` (`no_surat`, `tanggal`, `kd_unit`, `tujuan`, `hal`, `output`, `username`, `timestamp`, `lampiran`) VALUES (1, '2018-09-05', 3, 'PCR', 'PENGANTAR REIMBURSE JAL', 'GRT/3/1/2018', 'k055292', '2018-09-06 10:32:45', ''), (2, '2018-09-06', 3, 'PCR', 'Pengantar Surat Reimburse HUT RI ke 25', 'GRT/3/2/2018', 'k055292', '2018-09-07 09:22:41', '1.pdf'), (3, '2018-09-07', 2, 'WBN', 'DATA BUREKOL', 'GRT/2/3/2018', 'k055292', '2018-09-07 04:00:55', ''), (4, '2018-09-06', 7, 'WBN', 'ASDASDASDASDAS', 'GRT/7/4/2018', 'k055292', '2018-09-07 04:03:06', ''), (5, '2018-09-06', 5, 'WBN', 'ASDASDASDASDAS', 'GRT/5/5/2018', 'k055292', '2018-09-07 04:06:48', ''), (6, '2018-09-08', 3, 'QWA', '11111111111111111123', 'GRT/3/6/2018', 'k055292', '2018-09-07 04:08:32', ''), (7, '2018-09-08', 3, 'QWA', '11111111111111111123', 'GRT/3/7/2018', 'k055292', '2018-09-07 04:09:02', ''), (8, '2018-09-08', 3, 'QWA', '11111111111111111123', 'GRT/3/8/2018', 'k055292', '2018-09-21 08:05:05', 'GRT-3-8-2018.jpg'), (9, '2018-09-08', 3, 'QWA', '11111111111111111123', 'GRT/3/9/2018', 'k055292', '2018-09-21 08:08:03', 'GRT-3-9-2018.zip'), (10, '2018-09-13', 3, 'asdasd', '123123', 'GRT/3/10/2018', 'k055292', '2018-09-21 08:07:57', 'GRT-3-10-2018.zip'), (11, '2018-09-17', 4, 'ASDASD', '123123', 'GRT/4/11/2018', 'k055292', '2018-09-21 08:05:47', 'GRT-4-11-2018.jpg'), (12, '2018-09-17', 4, 'ASDASD', '123123', 'GRT/4/12/2018', 'k055292', '2018-09-21 07:56:20', 'GRT-4-12-2018.pdf'), (13, '2018-09-17', 2, 'ASDASDASDAS', '12312312312', 'GRT/2/13/2018', 'k055292', '2018-09-21 08:03:27', 'GRT-2-13-2018.pdf'), (14, '2018-09-17', 9, '123123123', 'ASDASDASDASDASDASDASDASDASD', 'GRT/9/14/2018', 'k055292', '2018-09-21 08:01:41', 'GRT-9-14-2018.pdf'), (15, '2018-09-18', 8, 'DINSOS', 'DATA AGEN', 'GRT/8/15/2018', 'lucky', '2018-09-21 07:59:18', 'GRT-8-15-2018.pdf'), (16, '2018-09-20', 2, 'UNIT UMC', 'PERMINTAAN PEGAWAI BARU', 'GRT/2/16/2018', 'k055292', '2018-09-21 08:09:44', 'GRT-2-16-2018-PERMINTAAN PEGAWAI BARU-xls'), (17, '2018-09-20', 3, '213', '12', 'GRT/3/17/2018', 'k055292', '2018-09-21 08:09:22', 'GRT-3-17-2018-12-xls'); -- -------------------------------------------------------- -- -- Table structure for table `surat_keluar_rahasia` -- CREATE TABLE `surat_keluar_rahasia` ( `no` int(11) NOT NULL, `tanggal` date NOT NULL, `kd_unit` int(10) NOT NULL, `tujuan` varchar(255) NOT NULL, `hal` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `surat_keluar_rahasia` -- INSERT INTO `surat_keluar_rahasia` (`no`, `tanggal`, `kd_unit`, `tujuan`, `hal`) VALUES (1, '2018-08-16', 2, 'sdasdas', '12312312'); -- -------------------------------------------------------- -- -- Table structure for table `task` -- CREATE TABLE `task` ( `no` int(10) NOT NULL, `no_task` int(10) NOT NULL, `username` varchar(50) NOT NULL, `judul` varchar(255) NOT NULL, `deskripsi` varchar(255) NOT NULL, `status_task` tinyint(1) NOT NULL, `deadline` date NOT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `last_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `task` -- INSERT INTO `task` (`no`, `no_task`, `username`, `judul`, `deskripsi`, `status_task`, `deadline`, `created`, `last_update`) VALUES (1, 1, 'k055292', 'A', 'A', 1, '2018-09-17', '2018-09-18 06:41:56', '2018-09-18 01:41:56'), (2, 2, 'k055292', 'A', 'A', 1, '2018-09-17', '2018-09-18 06:44:40', '2018-09-18 01:44:40'), (4, 4, 'k055292', 'INPUT ELO', 'INPUT ELO AN DASLDLASLDL', 1, '2018-09-22', '2018-09-18 06:24:22', '2018-09-18 01:24:22'), (5, 5, 'k055292', 'ASDASD', '123123', 1, '2018-09-18', '2018-09-20 02:33:57', '2018-09-19 21:33:57'), (6, 6, 'k055292', '213123', 'asdasd', 1, '2018-09-18', '2018-09-19 02:32:29', '2018-09-18 21:32:29'), (8, 8, 'k055292', '123123', '123123', 0, '2018-09-18', '2018-09-18 06:21:37', '2018-09-18 00:42:55'), (9, 1, 'lucky', 'Buat Notin Aktivitas', 'ASDJLAKSJDLJASLDJALSJDLKJASDLK', 1, '2018-09-18', '2018-09-18 06:41:56', '2018-09-18 01:41:56'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `username` varchar(50) NOT NULL, `password` varchar(255) NOT NULL, `nama` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `status` tinyint(1) NOT NULL, `last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`username`, `password`, `nama`, `email`, `status`, `last_login`) VALUES ('k055292', '$2y$10$M2UMKLM0OkFwQ7t75MEYSO5LqJtCq5hq2H/xBF0zic.WF7JIy4udi', 'Lucky Anggara', 'anggara.lucky1992@Gmail.com', 0, '2018-09-21 10:21:50'), ('lucky', '$2y$10$Izbv9ygA9NRTF3fubjd0b.WcQpIBg44x3qjvT1znvxR21.SF0RbZi', 'Desi Evilia Agustikarina', 'anggara.lucky1992@Gmail.com', 1, '2018-09-20 06:01:11'); -- -- Indexes for dumped tables -- -- -- Indexes for table `comment_feed` -- ALTER TABLE `comment_feed` ADD PRIMARY KEY (`no`), ADD KEY `no_feed` (`no_feed`,`username`), ADD KEY `username` (`username`); -- -- Indexes for table `nama_unit` -- ALTER TABLE `nama_unit` ADD PRIMARY KEY (`kd_unit`); -- -- Indexes for table `postfeed` -- ALTER TABLE `postfeed` ADD PRIMARY KEY (`no`), ADD KEY `username` (`username`); -- -- Indexes for table `resume_kunjungan` -- ALTER TABLE `resume_kunjungan` ADD PRIMARY KEY (`no`); -- -- Indexes for table `surat_keluar` -- ALTER TABLE `surat_keluar` ADD PRIMARY KEY (`no_surat`), ADD KEY `unit` (`kd_unit`), ADD KEY `username` (`username`); -- -- Indexes for table `surat_keluar_rahasia` -- ALTER TABLE `surat_keluar_rahasia` ADD PRIMARY KEY (`no`), ADD UNIQUE KEY `kd_unit` (`kd_unit`), ADD UNIQUE KEY `kd_unit_2` (`kd_unit`), ADD KEY `kd_unit_3` (`kd_unit`); -- -- Indexes for table `task` -- ALTER TABLE `task` ADD PRIMARY KEY (`no`), ADD KEY `username` (`username`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`username`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `nama_unit` -- ALTER TABLE `nama_unit` MODIFY `kd_unit` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `surat_keluar_rahasia` -- ALTER TABLE `surat_keluar_rahasia` MODIFY `no` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Constraints for table `comment_feed` -- ALTER TABLE `comment_feed` ADD CONSTRAINT `comment_feed_ibfk_1` FOREIGN KEY (`username`) REFERENCES `users` (`username`), ADD CONSTRAINT `comment_feed_ibfk_2` FOREIGN KEY (`no_feed`) REFERENCES `postfeed` (`no`); -- -- Constraints for table `postfeed` -- ALTER TABLE `postfeed` ADD CONSTRAINT `postfeed_ibfk_1` FOREIGN KEY (`username`) REFERENCES `users` (`username`); -- -- Constraints for table `surat_keluar` -- ALTER TABLE `surat_keluar` ADD CONSTRAINT `surat_keluar_ibfk_1` FOREIGN KEY (`kd_unit`) REFERENCES `nama_unit` (`kd_unit`), ADD CONSTRAINT `surat_keluar_ibfk_2` FOREIGN KEY (`username`) REFERENCES `users` (`username`); -- -- Constraints for table `surat_keluar_rahasia` -- ALTER TABLE `surat_keluar_rahasia` ADD CONSTRAINT `surat_keluar_rahasia_ibfk_1` FOREIGN KEY (`kd_unit`) REFERENCES `nama_unit` (`kd_unit`); -- -- Constraints for table `task` -- ALTER TABLE `task` ADD CONSTRAINT `task_ibfk_1` FOREIGN KEY (`username`) REFERENCES `users` (`username`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
INSERT INTO `sales_order_status_label` (`status`, `store_id`, `label`) VALUES ('canceled', 3, 'Annulé'), ('closed', 3, 'Terminé'), ('complete', 3, 'Compléter'), ('fraud', 3, 'Fraude suspectée'), ('holded', 3, 'En attente'), ('pending', 3, 'En cours'), ('pending_payment', 3, 'En attente du paiement'), ('pending_paypal', 3, 'Paiement Paypal en cours'), ('processing', 3, 'En cours de traitement');
select sum(lo_revenue), d_year, p_brand1 from lineorder, ddate, part, supplier where lo_orderdate = d_datekey and lo_partkey = p_partkey and lo_suppkey = s_suppkey and p_brand1 = 'MFGR#2221' and s_region = 'EUROPE' group by d_year, p_brand1 order by d_year, p_brand1
-- -- 删除数据表 `qs_members_route` -- DROP TABLE IF EXISTS `qs_members_route`; -- -- 删除数据表 `qs_members_route_group` -- DROP TABLE IF EXISTS `qs_members_route_group`;
SELECT [ArtifactID], [ArtifactGuid] FROM [EDDSDBO].[ArtifactGuid] (NOLOCK) WHERE [ArtifactID] IN (%%ArtifactIDs%%)
CALL MMConfig_U_ByInfoInsert (11,8) / CALL MMInfo_Insert (546,19772,'日程设置','','mainFrame',11,1,8,0,'',0,'',0,'','',0,'','',9) / CALL MMConfig_U_ByInfoInsert (546,1) / CALL MMInfo_Insert (547,19773,'日程类型设置','/workplan/config/global/WorkPlanTypeSet.jsp','mainFrame',546,2,1,0,'',0,'',0,'','',0,'','',9) / CALL MMConfig_U_ByInfoInsert (3,15) / CALL MMInfo_Insert (548,19792,'日程监控','/system/systemmonitor/workplan/WorkPlanMonitor.jsp','mainFrame',3,1,15,0,'',0,'',0,'','',0,'','',2) / CALL MMConfig_U_ByInfoInsert (3,16) / CALL MMInfo_Insert (549,19793,'日程监控设置','/system/systemmonitor/workplan/WorkPlanMonitorStatic.jsp','mainFrame',3,1,16,0,'',0,'',0,'','',0,'','',2) / UPDATE LeftMenuInfo SET linkAddress = '/hrm/performance/targetPlan/PlanModulList.jsp?target=workplan' WHERE id = 209 /
DROP TABLE IF EXISTS products; CREATE TABLE products ( _id SERIAL PRIMARY KEY, productId INT, name VARCHAR(100), description VARCHAR(100), tag VARCHAR(100), price INT, images VARCHAR(500) ); -- INSERT INTO products(_id,productId,name,description,tag,price,images) VALUES(1, 100,'Soul Flare', 'Palo santo mixtape occaecat sartorial. Cloud bread YOLO swag','throwing',499,'https://s3.us-east-2.amazonaws.com/axes/battle+axe/1.+battle-axe.jpg'); \COPY products FROM './db/outputpg.csv' DELIMITER ',' CSV -- $ psql -d navbar -U jayk <db/schema.sql -- for ubuntu -- $ sudo -u jayk psql -d navbar <schema.sql
USE analytics; -- USER INSERTS -- INSERT INTO user (uid, username, password, created, email, role) VALUES ('73383590-4ea4-43aa-9d19-2193a6ca2b53', 'bart', 'testPass1', '2019-01-01', 'bart.dev@mail.com', 'developer'); INSERT INTO user (uid, username, password, created, email, role) VALUES ('d2061265-ddbb-47f9-933f-1329190206b0', 'joshua', 'testPass2', '2019-10-02', 'joshua.dev@mail.com', 'developer'); INSERT INTO user (uid, username, password, created, email, role) VALUES ('6cfe737b-6147-4962-9e3c-9d6d52af8f45', 'alex', 'testPass3', '2014-01-03', 'alex.dev@mail.com', 'developer'); INSERT INTO user (uid, username, password, created, email, role) VALUES ('a2cb4e77-dea0-45b0-9091-662eefad669c', 'vitalik', 'testPass4', '2019-05-02', 'vitalik.buterin@mail.com', 'developer'); INSERT INTO user (uid, username, password, created, email, role) VALUES ('4db8dfc5-6bd7-4a61-987c-ad62cbe8c5ad', 'casey', 'testPass5', '2012-01-01', 'casey.something@mail.com', 'manager'); -- APP INSERTS -- INSERT INTO app (name, url, description, created) VALUES ('TestReactApp', 'reactapp.com', 'Test client UI application made with Reactjs', '2019-01-04'); INSERT INTO app (name, url, description, created) VALUES ('CryptoExchange', 'bestcryptoexchange.com', 'Best crypto exchange of course', '2019-01-05'); INSERT INTO app (name, url, description, created) VALUES ('SocialMediaApp', 'nextbigsocialmediaapp.com', 'Next generation of facebook #beatfb', '2018-01-06'); -- OWNERSHIP INSERTS -- INSERT INTO ownership (user, app, added) VALUES ('73383590-4ea4-43aa-9d19-2193a6ca2b53', 'TestReactApp', '2019-01-02'); INSERT INTO ownership (user, app, added) VALUES ('73383590-4ea4-43aa-9d19-2193a6ca2b53', 'CryptoExchange', '2019-01-03'); INSERT INTO ownership (user, app, added) VALUES ('a2cb4e77-dea0-45b0-9091-662eefad669c', 'CryptoExchange', '2019-02-02'); INSERT INTO ownership (user, app, added) VALUES ('d2061265-ddbb-47f9-933f-1329190206b0', 'CryptoExchange', '2019-01-02'); INSERT INTO ownership (user, app, added) VALUES ('6cfe737b-6147-4962-9e3c-9d6d52af8f45', 'CryptoExchange', '2019-01-02'); INSERT INTO ownership (user, app, added) VALUES ('d2061265-ddbb-47f9-933f-1329190206b0', 'SocialMediaApp', '2019-01-02'); -- NODE INSERTS -- INSERT INTO node (uid, url, created, app) VALUES ('402665f2-489f-4434-b3e4-1a163702a944', 'api.bestcryptoexchange.com/admin', '2018-01-01', 'CryptoExchange'); INSERT INTO node (uid, url, created, app) VALUES ('f4a51be0-2504-48ea-993d-554d8e9077b2', 'api.bestcryptoexchange.com/platform', '2018-01-02', 'CryptoExchange'); INSERT INTO node (uid, url, created, app) VALUES ('1a3c5403-1f2d-49a3-b9ae-90062c3290ba', 'bestcryptoexchange.com', '2018-01-03', 'CryptoExchange'); INSERT INTO node (uid, url, created, app) VALUES ('9063bc21-848a-4ee5-a657-4e9045659901', 'api.reactapp.com', '2018-01-03', 'TestReactApp'); INSERT INTO node (uid, url, created, app) VALUES ('8b5bc1ea-a109-41a1-ad1a-72c2f558501f', 'api.nextbigsocialmediaapp.com', '2018-01-03', 'SocialMediaApp'); INSERT INTO node (uid, url, created, app) VALUES ('31d1e46d-34ad-462c-a091-a6df40a66809', 'nextbigsocialmediaapp.com', '2018-01-03', 'SocialMediaApp'); -- GRAPH INSERTS -- INSERT INTO graph (from_node, to_node, created) VALUES ('402665f2-489f-4434-b3e4-1a163702a944', 'f4a51be0-2504-48ea-993d-554d8e9077b2', '2019-01-01'); INSERT INTO graph (from_node, to_node, created) VALUES ('1a3c5403-1f2d-49a3-b9ae-90062c3290ba', 'f4a51be0-2504-48ea-993d-554d8e9077b2', '2019-01-03'); INSERT INTO graph (from_node, to_node, created) VALUES ('31d1e46d-34ad-462c-a091-a6df40a66809', '8b5bc1ea-a109-41a1-ad1a-72c2f558501f', '2019-01-02'); -- LOG INSERTS -- INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:11:01', 'Request from 12.124.412', 'GET /admin/login', '402665f2-489f-4434-b3e4-1a163702a944'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-01 11:11:42', 'Admin with username superSuperAdmin doesnt exist', 'POST /admin/login', '402665f2-489f-4434-b3e4-1a163702a944'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 12:12:32', 'Request from 12.124.41.32', 'GET /admin/login', '402665f2-489f-4434-b3e4-1a163702a944'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 13:10:01', 'Request from 12.124.21', 'GET /admin/login', '402665f2-489f-4434-b3e4-1a163702a944'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-01 14:10:42', 'Password incorrect', 'POST /admin/login', '402665f2-489f-4434-b3e4-1a163702a944'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 15:10:32', 'Request from 192.124.41.32', 'GET /admin/login', '402665f2-489f-4434-b3e4-1a163702a944'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:11:01', 'Request from 12.124.412', 'GET /login', 'f4a51be0-2504-48ea-993d-554d8e9077b2'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-02 10:11:42', 'User with username bartolomej doesnt exist', 'POST /login', 'f4a51be0-2504-48ea-993d-554d8e9077b2'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-03 10:12:32', 'Request from 12.124.41.32', 'POST /login', 'f4a51be0-2504-48ea-993d-554d8e9077b2'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-04 10:10:01', 'Request from 12.124.21', 'GET /dashboard', 'f4a51be0-2504-48ea-993d-554d8e9077b2'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-05 10:10:42', 'Order cannot be fullfilled', 'POST /order', 'f4a51be0-2504-48ea-993d-554d8e9077b2'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-06 10:10:32', 'Request from 192.124.41.32', 'GET /dashboard', 'f4a51be0-2504-48ea-993d-554d8e9077b2'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:10:01', 'Request from 12.124.21', 'GET /profile', '8b5bc1ea-a109-41a1-ad1a-72c2f558501f'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-01 10:11:42', 'Cannot update password', 'POST /profile', '8b5bc1ea-a109-41a1-ad1a-72c2f558501f'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:12:32', 'Request from 192.124.41.32', 'GET /profile', '8b5bc1ea-a109-41a1-ad1a-72c2f558501f'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:13:32', 'Request from 192.124.41.32', 'GET /test', '9063bc21-848a-4ee5-a657-4e9045659901'); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:14:32', 'Request from 192.124.41.32', 'GET /test', '9063bc21-848a-4ee5-a657-4e9045659901'); -- INTERNAL LOGS -- INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:11:01', 'Request from 12.124.412', 'GET /admin/login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-01 11:11:42', 'Admin with username superSuperAdmin doesnt exist', 'POST /admin/login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 12:12:32', 'Request from 12.124.41.32', 'GET /admin/login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 13:10:01', 'Request from 12.124.21', 'GET /admin/login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-01 14:10:42', 'Password incorrect', 'POST /admin/login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 15:10:32', 'Request from 192.124.41.32', 'GET /admin/login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:11:01', 'Request from 12.124.412', 'GET /login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-02 10:11:42', 'User with username bartolomej doesnt exist', 'POST /login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-03 10:12:32', 'Request from 12.124.41.32', 'POST /login', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-04 10:10:01', 'Request from 12.124.21', 'GET /dashboard', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-05 10:10:42', 'Order cannot be fullfilled', 'POST /order', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-06 10:10:32', 'Request from 192.124.41.32', 'GET /dashboard', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:10:01', 'Request from 12.124.21', 'GET /profile', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('ERROR', '2019-01-01 10:11:42', 'Cannot update password', 'POST /profile', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:12:32', 'Request from 192.124.41.32', 'GET /profile', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:13:32', 'Request from 192.124.41.32', 'GET /test', null); INSERT INTO log (type, datetime, message, extra, node) VALUES ('APP', '2019-01-01 10:14:32', 'Request from 192.124.41.32', 'GET /test', null); -- ADMIN INSERTS -- INSERT INTO admin (uid, username, password, created) VALUES ('ed715a73-4f35-4be2-b9ed-3b922850cbf6', 'superadmin', 'superAdminPass', '2019-01-02'); INSERT INTO admin (uid, username, password, created) VALUES ('6aaf0de5-3a45-4e7c-9ff0-931d9dbf873a', 'admin', 'adminPass', '2019-01-03');
SELECT HomeTeam, COUNT(*) AS draws FROM EPL WHERE FTHG = FTAG GROUP BY HomeTeam ORDER BY draws DESC ;
declare v_TaskId Integer; v_NextTaskId Integer; v_count Integer; v_result number; v_affectedRows Integer; begin v_TaskId := :TaskId; begin --FIND ALL DEPENDENT TASKS FROM CURRENT TASK --SELECT TASKS THAT ARE NOT STARTED (DATE ASSIGNED IS NULL) for rec in (select col_id from tbl_task where col_id in (select td.col_tskdpndchldtskstateinit from tbl_taskdependency td inner join tbl_map_taskstateinitiation tsi on td.col_tskdpndchldtskstateinit = tsi.col_id inner join tbl_map_taskstateinitiation tsi2 on td.col_tskdpndprnttskstateinit = tsi2.col_id inner join tbl_task tsk on tsi.col_map_taskstateinittask = tsk.col_id inner join tbl_task tsk2 on tsi2.col_map_taskstateinittask = tsk2.col_id where tsk2.col_id = v_TaskId and tsk2.col_dateclosed is not null) and col_id not in (select td.col_tskdpndchldtskstateinit from tbl_taskdependency td inner join tbl_map_taskstateinitiation tsi on td.col_tskdpndchldtskstateinit = tsi.col_id inner join tbl_map_taskstateinitiation tsi2 on td.col_tskdpndprnttskstateinit = tsi2.col_id inner join tbl_task tsk on tsi.col_map_taskstateinittask = tsk.col_id inner join tbl_task tsk2 on tsi2.col_map_taskstateinittask = tsk2.col_id where tsk2.col_id = v_TaskId and tsk2.col_dateclosed is null) and col_enabled = 0 and col_dateassigned is null) loop --FIND PARENT TASKS FOR CURRENT CHILD TASK THAT IS NOT CLOSED YET --IF NOT CLOSED PARENT TASK EXISTS, CHILD TASK CANNOT BE ENABLED select count(*) into v_count from tbl_task where col_id = rec.col_id and col_id in (select td.col_tskdpndchldtskstateinit from tbl_taskdependency td inner join tbl_map_taskstateinitiation tsi on td.col_tskdpndchldtskstateinit = tsi.col_id inner join tbl_task tsk on tsi.col_map_taskstateinittask = tsk.col_id where td.col_tskdpndprnttskstateinit in (select col_id from tbl_map_taskstateinitiation where col_map_taskstateinittask <> v_TaskId) and tsk.col_dateclosed is null); --IF PARENT TASKS NOT FOUND, ENABLE CURRENT CHILD TASK if (v_count is null) or (v_count = 0) then v_NextTaskId := rec.col_id; --INVOKE NEXT TASK INITIATION FUNCTION --FUNCTION CALL WILL BE PLACED HERE WHEN FUNCTION IS READY ---------------------------------------------------------- v_result := f_DCM_initNextTask(NextTaskId => v_NextTaskId); ---------------------------------------------------------- end if; end loop; end; end;
CREATE TABLE assets ( isin VARCHAR PRIMARY KEY, asset_name VARCHAR(1000) NOT NULL ); CREATE TABLE investors ( investor_id INT PRIMARY KEY, title VARCHAR NOT NULL, surname VARCHAR NOT NULL ); CREATE TABLE portfolio ( investor_id INT NOT NULL REFERENCES investors(investor_id), isin VARCHAR NOT NULL REFERENCES assets(isin), units DECIMAL NOT NULL, constraint units_nonnegative check (units >= 0) ); CREATE TABLE instructions ( instruction_id SERIAL PRIMARY KEY, investor_id INT NOT NULL REFERENCES investors(investor_id), isin VARCHAR NOT NULL REFERENCES assets(isin), asset_price NUMERIC(10,2) NOT NULL, instruction VARCHAR NOT NULL, currency_code VARCHAR(3), amount NUMERIC(10,2), units DECIMAL ); INSERT INTO assets VALUES ('IE00B52L4369', 'BlackRock Institutional Cash Series Sterling Liquidity Agency Inc'); INSERT INTO assets VALUES ('GB00BQ1YHQ70', 'Threadneedle UK Property Authorised Investment Net GBP 1 Acc'); INSERT INTO assets VALUES ('GB00B3X7QG63', 'Vanguard FTSE U.K. All Share Index Unit Trust Accumulation'); INSERT INTO assets VALUES ('GB00BG0QP828', 'Legal & General Japan Index Trust C Class Accumulation'); INSERT INTO assets VALUES ('GB00BPN5P238', 'Vanguard US Equity Index Institutional Plus GBP Accumulation'); INSERT INTO assets VALUES ('IE00B1S74Q32', 'Vanguard U.K. Investment Grade Bond Index Fund GBP Accumulation'); INSERT INTO investors VALUES (1, 'Mr', 'Investor'); INSERT INTO investors VALUES (2, 'Mr', 'Test'); INSERT INTO investors VALUES (3, 'Mr', 'Tester'); INSERT INTO investors VALUES (4, 'Mr', 'Testy'); INSERT INTO investors VALUES (5, 'Mrs', 'Testy'); INSERT INTO investors VALUES (6, 'Mrs', 'Tester'); INSERT INTO investors VALUES (7, 'Mrs', 'Investor'); INSERT INTO portfolio VALUES (1, 'IE00B52L4369', 44000); INSERT INTO portfolio VALUES (1, 'GB00BQ1YHQ70', 37931.03448275862069); INSERT INTO portfolio VALUES (1, 'GB00B3X7QG63', 117.377154137544683); INSERT INTO portfolio VALUES (1, 'GB00BG0QP828', 179.416082205186756); INSERT INTO portfolio VALUES (1, 'GB00BPN5P238', 187.862916998747581); INSERT INTO portfolio VALUES (1, 'IE00B1S74Q32', 695.982284087314141); INSERT INTO portfolio VALUES (2, 'IE00B52L4369', 0); INSERT INTO portfolio VALUES (2, 'GB00BQ1YHQ70', 0); INSERT INTO portfolio VALUES (2, 'GB00B3X7QG63', 0); INSERT INTO portfolio VALUES (2, 'GB00BG0QP828', 0); INSERT INTO portfolio VALUES (2, 'GB00BPN5P238', 0); INSERT INTO portfolio VALUES (2, 'IE00B1S74Q32', 0); INSERT INTO portfolio VALUES (3, 'IE00B52L4369', 5); INSERT INTO portfolio VALUES (3, 'GB00BQ1YHQ70', 5); INSERT INTO portfolio VALUES (3, 'GB00B3X7QG63', 5); INSERT INTO portfolio VALUES (3, 'GB00BG0QP828', 5); INSERT INTO portfolio VALUES (3, 'GB00BPN5P238', 5); INSERT INTO portfolio VALUES (3, 'IE00B1S74Q32', 5); INSERT INTO portfolio VALUES (4, 'IE00B52L4369', 50); INSERT INTO portfolio VALUES (4, 'GB00BQ1YHQ70', 50); INSERT INTO portfolio VALUES (4, 'GB00B3X7QG63', 50); INSERT INTO portfolio VALUES (4, 'GB00BG0QP828', 50); INSERT INTO portfolio VALUES (4, 'GB00BPN5P238', 50); INSERT INTO portfolio VALUES (4, 'IE00B1S74Q32', 50); INSERT INTO portfolio VALUES (7, 'IE00B52L4369', 50); INSERT INTO portfolio VALUES (7, 'GB00BQ1YHQ70', 50); INSERT INTO portfolio VALUES (7, 'GB00B3X7QG63', 50); INSERT INTO portfolio VALUES (7, 'GB00BG0QP828', 50); INSERT INTO portfolio VALUES (7, 'GB00BPN5P238', 50); INSERT INTO portfolio VALUES (7, 'IE00B1S74Q32', 50); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 1, 'IE00B52L4369', 100, 'BUY', 'GBP', 500, 5); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 1, 'IE00B52L4369', 100, 'SELL', 'GBP', 200, 2); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 1, 'IE00B52L4369', 100, 'INVEST', 'GBP', 10.50, 0); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 1, 'IE00B52L4369', 100, 'RAISE', 'GBP', 10.99, 0); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 2, 'GB00BG0QP828', 100, 'BUY', 'GBP', 500, 5); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 2, 'GB00BG0QP828', 100, 'RAISE', 'GBP', 10.99, 0); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 3, 'GB00BG0QP828', 100, 'BUY', 'GBP', 500, 5); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 3, 'GB00BG0QP828', 100, 'RAISE', 'GBP', 10.99, 0); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 6, 'GB00BG0QP828', 100, 'BUY', 'GBP', 500, 5); INSERT INTO instructions VALUES (nextval('instructions_instruction_id_seq'), 6, 'GB00BG0QP828', 100, 'RAISE', 'GBP', 10.99, 0);
-- Fix bug 123 -- ran on aws 1/18 alter table CLUBS modify BODY_TEXT varchar(750); --fix bug 122 -- ran on aws 1/18 alter table CLUB_SUB_AMENITIES modify BODY_TEXT varchar(750);
-- MySQL Script generated by MySQL Workbench -- Fri Jan 15 14:33:53 2021 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; -- ----------------------------------------------------- -- Schema quizmaster -- ----------------------------------------------------- DROP SCHEMA IF EXISTS `quizmaster` ; -- ----------------------------------------------------- -- Schema quizmaster -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `quizmaster` DEFAULT CHARACTER SET utf8 ; -- ----------------------------------------------------- -- Schema quizmaster -- ----------------------------------------------------- USE `quizmaster` ; CREATE TABLE `role` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; CREATE TABLE `user` ( `user_id` int NOT NULL AUTO_INCREMENT, `firstname` varchar(45) DEFAULT NULL, `lastname` varchar(45) DEFAULT NULL, `studierichting` varchar(45) DEFAULT NULL, `creationDate` date DEFAULT NULL, `deletionDate` date DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10051 DEFAULT CHARSET=utf8; CREATE TABLE `user_role` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int NOT NULL, `role_id` int NOT NULL, `startDate` date DEFAULT NULL, `endDate` date DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `fk_user_role_user1_idx` (`user_id`), KEY `fk_user_role_role1_idx` (`role_id`), CONSTRAINT `fk_user_role_role1` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_user_role_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8; CREATE TABLE `credentials` ( `user_id` int NOT NULL, `password` varchar(45) NOT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`user_id`), KEY `fk_credentials_user_idx` (`user_id`), CONSTRAINT `fk_credentials_user` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `course` ( `id` int NOT NULL AUTO_INCREMENT, `coordinator_user_id` int DEFAULT NULL, `name` varchar(45) DEFAULT NULL, `startDate` date DEFAULT NULL, `endDate` date DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `archive` tinyint DEFAULT '0', PRIMARY KEY (`id`), KEY `fk_course_user1_idx` (`coordinator_user_id`), CONSTRAINT `fk_course_user1` FOREIGN KEY (`coordinator_user_id`) REFERENCES `user` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8; CREATE TABLE `group` ( `id` int NOT NULL AUTO_INCREMENT, `course_id` int NOT NULL, `name` varchar(45) DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `docent` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_group_course1_idx` (`course_id`), KEY `fk_coordinator_idx` (`docent`), CONSTRAINT `fk_docent` FOREIGN KEY (`docent`) REFERENCES `user` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `fk_group_course1` FOREIGN KEY (`course_id`) REFERENCES `course` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8; CREATE TABLE `quiz` ( `id` int NOT NULL AUTO_INCREMENT, `course_id` int NOT NULL, `name` varchar(45) DEFAULT NULL, `successDefinition` double DEFAULT NULL, `timelimit` int DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `archive` tinyint DEFAULT '0', PRIMARY KEY (`id`), KEY `fk_quiz_course1_idx` (`course_id`), CONSTRAINT `fk_quiz_course1` FOREIGN KEY (`course_id`) REFERENCES `course` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8; CREATE TABLE `question` ( `id` int NOT NULL AUTO_INCREMENT, `quiz_id` int NOT NULL, `question` varchar(500) DEFAULT NULL, `attachedFile` varchar(500) DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `file` blob, PRIMARY KEY (`id`), KEY `fk_question_quiz1_idx` (`quiz_id`), CONSTRAINT `fk_question_quiz1` FOREIGN KEY (`quiz_id`) REFERENCES `quiz` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8; CREATE TABLE `answer` ( `id` int NOT NULL AUTO_INCREMENT, `question_id` int NOT NULL, `isCorrect` tinyint(1) DEFAULT NULL, `answer` varchar(500) DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `correct_answer` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fk_answer_question1_idx` (`question_id`), CONSTRAINT `fk_answer_question1` FOREIGN KEY (`question_id`) REFERENCES `question` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8; CREATE TABLE `student_has_course` ( `id` int NOT NULL AUTO_INCREMENT, `student_user_id` int NOT NULL, `course_id` int NOT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `fk_user_has_class_class1_idx` (`course_id`), KEY `fk_user_has_class_user1_idx` (`student_user_id`), CONSTRAINT `fk_course_id` FOREIGN KEY (`course_id`) REFERENCES `course` (`id`), CONSTRAINT `fk_user_has_class_user1` FOREIGN KEY (`student_user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8; CREATE TABLE `student_has_group` ( `id` int NOT NULL AUTO_INCREMENT, `student_user_id` int NOT NULL, `group_id` int NOT NULL, `startDate` date DEFAULT NULL, `endDate` date DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `fk_user_has_group_group1_idx` (`group_id`), KEY `fk_user_has_group_user1_idx` (`student_user_id`), CONSTRAINT `fk_user_has_group_group1` FOREIGN KEY (`group_id`) REFERENCES `group` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_user_has_group_user1` FOREIGN KEY (`student_user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; CREATE TABLE `user_quiz_log` ( `id` int NOT NULL AUTO_INCREMENT, `student_user_id` int NOT NULL, `quiz_id` int NOT NULL, `grade` double DEFAULT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `fk_grade_user1_idx` (`student_user_id`), KEY `fk_grade_quiz1_idx` (`quiz_id`), CONSTRAINT `fk_grade_quiz1` FOREIGN KEY (`quiz_id`) REFERENCES `quiz` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_grade_user1` FOREIGN KEY (`student_user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `user_answer_log` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int NOT NULL, `answer_id` int NOT NULL, user_quiz_log_id int NOT NULL, `stamp_created` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `stamp_updated` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `fk_user_answer_log_user1_idx` (`user_id`), KEY `fk_user_answer_log_answer1_idx` (`answer_id`), KEY `fk_grade_id_idx` (`user_quiz_log_id`), CONSTRAINT `fk_grade_id` FOREIGN KEY (user_quiz_log_id) REFERENCES `user_quiz_log` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `fk_user_answer_log_answer1` FOREIGN KEY (`answer_id`) REFERENCES `answer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_user_answer_log_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; CREATE USER 'quizmasteruser'@'localhost' IDENTIFIED BY 'pwQuizMaster'; GRANT ALL PRIVILEGES ON quizmaster.* TO 'quizmasteruser'@'localhost';
-- view triggers select * from user_objects where object_name = 'creation_alert'; -- empty? select * from user_triggers where trigger_name = 'creation_alert'; -- empty? select * from user_source where name = 'creation_alert'; -- empty?
CREATE TABLE project_features( project_feature_id INT IDENTITY(1,1) NOT NULL ,project_id INT NOT NULL ,feature_id INT NOT NULL ,img_filename VARCHAR(500) NULL ,created_by INT NULL ,created_date DATETIMEOFFSET NULL ,updated_by INT NULL ,updated_date DATETIMEOFFSET NULL)
alter table day_zero add column day_offset integer;
# Write your MySQL query statement below SELECT * FROM cinema WHERE (id % 2 = 1) AND description != 'boring' ORDER BY rating DESC
select BL.Nome, COUNT(LV.Id) as 'QuantLivros', US.Nome as 'UserName' from biblioteca BL inner join Livro LV on BL.Id = LV.biblioteca inner join Usuario US on LV.UserInc = US.Id group by BL.Nome,US.Nome
SELECT * FROM MAIL_HOOK_ADD_KNOWLEDGE_TARGETS ORDER BY INSERT_DATETIME DESC;
CREATE TABLE clave( id INT PRIMARY KEY AUTO_INCREMENT, clave VARCHAR(5) NOT NULL, materia VARCHAR(100) NOT NULL ); CREATE TABLE seccion( id INT PRIMARY KEY AUTO_INCREMENT, seccion VARCHAR(3) NOT NULL ); CREATE TABLE profesor( id INT PRIMARY KEY AUTO_INCREMENT, nombre VARCHAR(100) NOT NULL ); CREATE TABLE hora( id INT PRIMARY KEY AUTO_INCREMENT, hora VARCHAR(5) NOT NULL ); CREATE TABLE dia( id INT PRIMARY KEY AUTO_INCREMENT, dia VARCHAR(10) NOT NULL, identificador CHAR NOT NULL ); CREATE TABLE edificio( id INT PRIMARY KEY AUTO_INCREMENT, edificio VARCHAR(50) NOT NULL ); CREATE TABLE periodo( id INT PRIMARY KEY AUTO_INCREMENT, periodo VARCHAR(50) NOT NULL ); CREATE TABLE aula( id INT PRIMARY KEY AUTO_INCREMENT, aula VARCHAR(10) NOT NULL, edificio INT, FOREIGN KEY(edificio) REFERENCES edificio(id) ); CREATE TABLE horario( id INT PRIMARY KEY AUTO_INCREMENT, hora_inicial INT, hora_final INT, periodo INT, FOREIGN KEY(hora_inicial) REFERENCES hora(id), FOREIGN KEY(hora_final) REFERENCES hora(id), FOREIGN KEY(periodo) REFERENCES periodo(id) ); CREATE TABLE detalle( id INT PRIMARY KEY AUTO_INCREMENT, nrc INT, creditos INT, cupos_totales INT, cupos_disponibles INT ); CREATE TABLE oferta( nrc INT PRIMARY KEY, carrera VARCHAR(100) NOT NULL, id_clave INT, id_seccion INT, id_detalle INT, id_profesor INT FOREIGN KEY(id_clave) REFERENCES clave(id), FOREIGN KEY(id_seccion) REFERENCES seccion(id), FOREIGN KEY(id_detalle) REFERENCES detalle(id), FOREIGN KEY(id_profesor) REFERENCES profesor(id) ); CREATE TABLE horarios( nrc INT, id_horario INT, FOREIGN KEY(nrc) REFERENCES oferta(nrc), FOREIGN KEY(id_horario) REFERENCES horario(id) ); CREATE TABLE dias( nrc INT, id_dia INT, FOREIGN KEY(nrc) REFERENCES oferta(nrc), FOREIGN KEY(id_dia) REFERENCES dia(id) ); CREATE TABLE aulas( nrc INT, id_aula INT, FOREIGN KEY(nrc) REFERENCES oferta(nrc), FOREIGN KEY(id_aula) REFERENCES aula(id) ); CREATE TABLE edificios( nrc INT, id_edificio INT, FOREIGN KEY(nrc) REFERENCES oferta(nrc), FOREIGN KEY(id_edificio) REFERENCES edificio(id) ); INSERT INTO dia(dia, identificador) VALUES ('Lunes', 'L'); INSERT INTO dia(dia, identificador) VALUES ('Martes', 'M'); INSERT INTO dia(dia, identificador) VALUES ('Miercoles', 'I'); INSERT INTO dia(dia, identificador) VALUES ('Jueves', 'J'); INSERT INTO dia(dia, identificador) VALUES ('Viernes', 'V'); INSERT INTO dia(dia, identificador) VALUES ('Sabado', 'S'); INSERT INTO dia(dia, identificador) VALUES('Domingo', 'D'); create database materias; grant all privileges on materias.* to 'miguel'@'localhost'; SET collation_connection = 'utf8_spanish_ci'; ALTER materias your_database_name CHARACTER SET utf8 COLLATE utf8_spanish_ci; ALTER TABLE profesor CONVERT TO CHARACTER SET utf8 COLLATE utf8_spanish_ci; ALTER TABLE clave CONVERT TO CHARACTER SET utf8 COLLATE utf8_spanish_ci;
CREATE TABLE Users( ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY, login_id decimal(4) NOT NULL, login_password VARCHAR(MAX) NOT NULL, access_level INT NOT NULL, full_name VARCHAR(100) NOT NULL, user_status INT DEFAULT 1 FOREIGN KEY (access_level) REFERENCES AccessLevel(ID) );
-- SELECT s1.sub_id as post_id IFNULL(COUNT(DISTINCT s2.sub_id),0) AS number_of_comments FROM submissions s1 LEFT JOIN session s2 on s1.sub_id = s2.parent_id WHERE s1.parent_id is null GROUP BY s1.sub_id ORDER BY s1.sub_id
CREATE PARTITION SCHEME [FactHistoryPSC] AS PARTITION [FactPartitionFunctionLeft] TO ([FactPartition2005], [FactPartition2006], [FactPartition2007], [FactPartition2008], [FactPartition2009], [FactPartition2010], [FactPartition2011], [FactPartition2012], [FactPartitionDefault]);
-- create database Yalla search engine DROP SCHEMA IF EXISTS `yalla-prod`; CREATE SCHEMA `yalla-prod`; -- select the database USE `yalla-prod` ; -- create category table tbl_category CREATE TABLE IF NOT EXISTS `yalla-prod`.`yalla_suggestions` ( suggestion VARCHAR(255) NOT NULL PRIMARY KEY ); INSERT INTO yalla_suggestions ( suggestion ) VALUES ( 'Facebook' ); INSERT INTO yalla_suggestions ( suggestion ) VALUES ( 'Twitter' ); INSERT INTO yalla_suggestions ( suggestion ) VALUES ( 'Linkedin' ); INSERT INTO yalla_suggestions ( suggestion ) VALUES ( 'Github' ); INSERT INTO yalla_suggestions ( suggestion ) VALUES ( 'Faculty Of Engineering' ); INSERT INTO yalla_suggestions ( suggestion ) VALUES ( 'Java' );
--liquibase formatted sql --changeset kmschoep:UpdMERGE_STG_TO_PROD splitStatements:false CREATE OR REPLACE PACKAGE MERGE_STG_TO_PROD AS /****************************************************************************** NAME: MERGE_STG_TO_PROD PURPOSE: REVISIONS: Ver Date Author Description --------- ---------- --------------- ------------------------------------ 1.0 3/31/2008 1. Created this package. ******************************************************************************/ PROCEDURE RefreshOnlineMethods(p_method_id in number); PROCEDURE RefreshStgMethods(p_method_id in number); PROCEDURE MergeOnlineMethods(p_method_id in number); PROCEDURE MergeStgMethods(p_method_id in number); PROCEDURE MergeOnlineAnalytes(p_method_id in number); PROCEDURE MergeStgAnalytes(p_method_id in number); PROCEDURE MergeOnlineRevisions(p_method_id in number); PROCEDURE MergeStgRevisions(p_method_id in number); PROCEDURE MergeProtStgRevisions(p_source_citation_id in number); PROCEDURE MergeProtStgMethods(p_source_citation_id in number); END MERGE_STG_TO_PROD; / CREATE OR REPLACE PACKAGE BODY MERGE_STG_TO_PROD AS /****************************************************************************** NAME: MergeMethods PURPOSE: REVISIONS: Ver Date Author Description --------- ---------- --------------- ------------------------------------ 1.0 3/31/2008 1. Created this package body. ******************************************************************************/ PROCEDURE RefreshStgMethods(p_method_id in number) is begin MergeStgMethods(p_method_id); MergeStgAnalytes(p_method_id); MergeStgRevisions(p_method_id); end; PROCEDURE RefreshOnlineMethods(p_method_id in number) is begin MergeOnlineMethods(p_method_id); MergeOnlineAnalytes(p_method_id); MergeOnlineRevisions(p_method_id); end; PROCEDURE MergeStgMethods(p_method_id in number) IS BEGIN MERGE INTO method B USING ( SELECT * FROM method_stg where approved = 'Y' and method_id = p_method_id) E ON (B.method_id = E.method_id) WHEN MATCHED THEN UPDATE SET b.METHOD_SUBCATEGORY_ID = e.METHOD_SUBCATEGORY_ID, b.METHOD_SOURCE_ID = e.METHOD_SOURCE_ID, b.SOURCE_CITATION_ID = e.SOURCE_CITATION_ID, b.SOURCE_METHOD_IDENTIFIER = e.SOURCE_METHOD_IDENTIFIER, b.METHOD_DESCRIPTIVE_NAME = e.METHOD_DESCRIPTIVE_NAME, b.METHOD_OFFICIAL_NAME = e.METHOD_OFFICIAL_NAME, b.MEDIA_NAME = e.MEDIA_NAME, b.BRIEF_METHOD_SUMMARY = e.BRIEF_METHOD_SUMMARY, b.SCOPE_AND_APPLICATION = e.SCOPE_AND_APPLICATION, b.DL_TYPE_ID = e.DL_TYPE_ID, b.DL_NOTE = e.DL_NOTE, b.APPLICABLE_CONC_RANGE = e.APPLICABLE_CONC_RANGE, b.CONC_RANGE_UNITS = e.CONC_RANGE_UNITS, b.INTERFERENCES = e.INTERFERENCES, b.QC_REQUIREMENTS = e.QC_REQUIREMENTS, b.SAMPLE_HANDLING = e.SAMPLE_HANDLING, b.MAX_HOLDING_TIME = e.MAX_HOLDING_TIME, b.SAMPLE_PREP_METHODS = e.SAMPLE_PREP_METHODS, b.RELATIVE_COST_ID = e.RELATIVE_COST_ID, b.LINK_TO_FULL_METHOD = e.LINK_TO_FULL_METHOD, b.INSERT_DATE = e.INSERT_DATE, b.INSERT_PERSON_NAME = e.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE = e.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME = e.LAST_UPDATE_PERSON_NAME, b.APPROVED = e.APPROVED, b.APPROVED_DATE = e.APPROVED_DATE, b.INSTRUMENTATION_ID = e.INSTRUMENTATION_ID, b.PRECISION_DESCRIPTOR_NOTES = e.PRECISION_DESCRIPTOR_NOTES, b.RAPIDITY = e.RAPIDITY, b.CBR_ONLY = e.CBR_ONLY, b.WATERBODY_TYPE = e.WATERBODY_TYPE, b.MATRIX = e.MATRIX, b.TECHNIQUE = e.TECHNIQUE, b.SCREENING = e.SCREENING, b.ETV_LINK = e.ETV_LINK, b.DATE_LOADED = sysdate, b.REVIEWER_NAME = e.REVIEWER_NAME, b.REGS_ONLY = e.REGS_ONLY, b.METHOD_TYPE_ID = e.METHOD_TYPE_ID, b.ANALYSIS_AMT_ML = e.ANALYSIS_AMT_ML, b.CORROSIVE = e.CORROSIVE, b.COLLECTED_SAMPLE_AMT_G = e.COLLECTED_SAMPLE_AMT_G, b.PBT = e.PBT, b.TOXIC = e.TOXIC, b.COLLECTED_SAMPLE_AMT_ML = e.COLLECTED_SAMPLE_AMT_ML, b.PH_OF_ANALYTICAL_SAMPLE = e.PH_OF_ANALYTICAL_SAMPLE, b.QUALITY_REVIEW_ID = e.QUALITY_REVIEW_ID, b.LIQUID_SAMPLE_FLAG = e.LIQUID_SAMPLE_FLAG, b.ANALYSIS_AMT_G = e.ANALYSIS_AMT_G, b.WASTE = e.WASTE, b.ASSUMPTIONS_COMMENTS = e.ASSUMPTIONS_COMMENTS, b.CALC_WASTE_AMT = e.CALC_WASTE_AMT, b.NOTES = e.NOTES, b.MEDIA_SUBCATEGORY = e.MEDIA_SUBCATEGORY, b.LEVEL_OF_TRAINING = e.LEVEL_OF_TRAINING, b.MEDIA_EMPHASIZED_NOTE = e.MEDIA_EMPHASIZED_NOTE, b.SAM_COMPLEXITY = e.SAM_COMPLEXITY WHEN NOT MATCHED THEN INSERT ( b.METHOD_ID, b.METHOD_SUBCATEGORY_ID, b.METHOD_SOURCE_ID, b.SOURCE_CITATION_ID, b.SOURCE_METHOD_IDENTIFIER, b.METHOD_DESCRIPTIVE_NAME, b.METHOD_OFFICIAL_NAME, b.MEDIA_NAME, b.BRIEF_METHOD_SUMMARY, b.SCOPE_AND_APPLICATION, b.DL_TYPE_ID, b.DL_NOTE, b.APPLICABLE_CONC_RANGE, b.CONC_RANGE_UNITS, b.INTERFERENCES, b.QC_REQUIREMENTS, b.SAMPLE_HANDLING, b.MAX_HOLDING_TIME, b.SAMPLE_PREP_METHODS, b.RELATIVE_COST_ID, b.LINK_TO_FULL_METHOD, b.INSERT_DATE, b.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME, b.APPROVED, b.APPROVED_DATE, b.INSTRUMENTATION_ID, b.PRECISION_DESCRIPTOR_NOTES, b.RAPIDITY, b.CBR_ONLY, b.WATERBODY_TYPE, b.MATRIX, b.TECHNIQUE, b.SCREENING, b.ETV_LINK, b.DATE_LOADED, b.REVIEWER_NAME, b.REGS_ONLY, b.METHOD_TYPE_ID, b.ANALYSIS_AMT_ML, b.CORROSIVE, b.COLLECTED_SAMPLE_AMT_G, b.PBT, b.TOXIC, b.COLLECTED_SAMPLE_AMT_ML, b.PH_OF_ANALYTICAL_SAMPLE, b.QUALITY_REVIEW_ID, b.LIQUID_SAMPLE_FLAG, b.ANALYSIS_AMT_G, b.WASTE, b.ASSUMPTIONS_COMMENTS, b.CALC_WASTE_AMT, b.NOTES, b.MEDIA_SUBCATEGORY, b.LEVEL_OF_TRAINING, b.MEDIA_EMPHASIZED_NOTE, b.SAM_COMPLEXITY) VALUES ( e.METHOD_ID, e.METHOD_SUBCATEGORY_ID, e.METHOD_SOURCE_ID, e.SOURCE_CITATION_ID, e.SOURCE_METHOD_IDENTIFIER, e.METHOD_DESCRIPTIVE_NAME, e.METHOD_OFFICIAL_NAME, e.MEDIA_NAME, e.BRIEF_METHOD_SUMMARY, e.SCOPE_AND_APPLICATION, e.DL_TYPE_ID, e.DL_NOTE, e.APPLICABLE_CONC_RANGE, e.CONC_RANGE_UNITS, e.INTERFERENCES, e.QC_REQUIREMENTS, e.SAMPLE_HANDLING, e.MAX_HOLDING_TIME, e.SAMPLE_PREP_METHODS, e.RELATIVE_COST_ID, e.LINK_TO_FULL_METHOD, e.INSERT_DATE, e.INSERT_PERSON_NAME, e.LAST_UPDATE_DATE, e.LAST_UPDATE_PERSON_NAME, e.APPROVED, e.APPROVED_DATE, e.INSTRUMENTATION_ID, e.PRECISION_DESCRIPTOR_NOTES, e.RAPIDITY, e.CBR_ONLY, e.WATERBODY_TYPE, e.MATRIX, e.TECHNIQUE, e.SCREENING, e.ETV_LINK, sysdate, e.REVIEWER_NAME, e.REGS_ONLY, e.METHOD_TYPE_ID, e.ANALYSIS_AMT_ML, e.CORROSIVE, e.COLLECTED_SAMPLE_AMT_G, e.PBT, e.TOXIC, e.COLLECTED_SAMPLE_AMT_ML, e.PH_OF_ANALYTICAL_SAMPLE, e.QUALITY_REVIEW_ID, e.LIQUID_SAMPLE_FLAG, e.ANALYSIS_AMT_G, e.WASTE, e.ASSUMPTIONS_COMMENTS, e.CALC_WASTE_AMT, e.NOTES, e.MEDIA_SUBCATEGORY, e.LEVEL_OF_TRAINING, e.MEDIA_EMPHASIZED_NOTE, e.SAM_COMPLEXITY ); END; procedure MergeOnlineMethods(p_method_id in number) is begin MERGE INTO method_stg B USING ( SELECT * FROM method_online where approved = 'Y' and method_id = p_method_id) E ON (B.method_id = E.method_id) WHEN MATCHED THEN UPDATE SET b.METHOD_SUBCATEGORY_ID = e.METHOD_SUBCATEGORY_ID, b.METHOD_SOURCE_ID = e.METHOD_SOURCE_ID, b.SOURCE_CITATION_ID = e.SOURCE_CITATION_ID, b.SOURCE_METHOD_IDENTIFIER = e.SOURCE_METHOD_IDENTIFIER, b.METHOD_DESCRIPTIVE_NAME = e.METHOD_DESCRIPTIVE_NAME, b.METHOD_OFFICIAL_NAME = e.METHOD_OFFICIAL_NAME, b.MEDIA_NAME = e.MEDIA_NAME, b.BRIEF_METHOD_SUMMARY = e.BRIEF_METHOD_SUMMARY, b.SCOPE_AND_APPLICATION = e.SCOPE_AND_APPLICATION, b.DL_TYPE_ID = e.DL_TYPE_ID, b.DL_NOTE = e.DL_NOTE, b.APPLICABLE_CONC_RANGE = e.APPLICABLE_CONC_RANGE, b.CONC_RANGE_UNITS = e.CONC_RANGE_UNITS, b.INTERFERENCES = e.INTERFERENCES, b.QC_REQUIREMENTS = e.QC_REQUIREMENTS, b.SAMPLE_HANDLING = e.SAMPLE_HANDLING, b.MAX_HOLDING_TIME = e.MAX_HOLDING_TIME, b.SAMPLE_PREP_METHODS = e.SAMPLE_PREP_METHODS, b.RELATIVE_COST_ID = e.RELATIVE_COST_ID, b.LINK_TO_FULL_METHOD = e.LINK_TO_FULL_METHOD, b.INSERT_DATE = e.INSERT_DATE, b.INSERT_PERSON_NAME = e.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE = e.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME = e.LAST_UPDATE_PERSON_NAME, b.APPROVED = 'N', b.APPROVED_DATE = e.APPROVED_DATE, b.INSTRUMENTATION_ID = e.INSTRUMENTATION_ID, b.PRECISION_DESCRIPTOR_NOTES = e.PRECISION_DESCRIPTOR_NOTES, b.RAPIDITY = e.RAPIDITY, b.CBR_ONLY = e.CBR_ONLY, b.WATERBODY_TYPE = e.WATERBODY_TYPE, b.MATRIX = e.MATRIX, b.TECHNIQUE = e.TECHNIQUE, b.SCREENING = e.SCREENING, b.ETV_LINK = e.ETV_LINK, b.DATE_LOADED = sysdate, b.REVIEWER_NAME = e.REVIEWER_NAME, b.REGS_ONLY = e.REGS_ONLY, b.METHOD_TYPE_ID = e.METHOD_TYPE_ID, b.ANALYSIS_AMT_ML = e.ANALYSIS_AMT_ML, b.CORROSIVE = e.CORROSIVE, b.COLLECTED_SAMPLE_AMT_G = e.COLLECTED_SAMPLE_AMT_G, b.PBT = e.PBT, b.TOXIC = e.TOXIC, b.COLLECTED_SAMPLE_AMT_ML = e.COLLECTED_SAMPLE_AMT_ML, b.NO_ANALYTE_FLAG = e.NO_ANALYTE_FLAG, b.COMMENTS = e.COMMENTS, b.PH_OF_ANALYTICAL_SAMPLE = e.PH_OF_ANALYTICAL_SAMPLE, b.QUALITY_REVIEW_ID = e.QUALITY_REVIEW_ID, b.LIQUID_SAMPLE_FLAG = e.LIQUID_SAMPLE_FLAG, b.ANALYSIS_AMT_G = e.ANALYSIS_AMT_G, b.WASTE = e.WASTE, b.ASSUMPTIONS_COMMENTS = e.ASSUMPTIONS_COMMENTS, b.CALC_WASTE_AMT = e.CALC_WASTE_AMT, b.READY_FOR_REVIEW = e.READY_FOR_REVIEW, b.NOTES = e.NOTES, b.MEDIA_SUBCATEGORY = e.MEDIA_SUBCATEGORY, b.LEVEL_OF_TRAINING = e.LEVEL_OF_TRAINING, b.MEDIA_EMPHASIZED_NOTE = e.MEDIA_EMPHASIZED_NOTE, b.SAM_COMPLEXITY = e.SAM_COMPLEXITY WHEN NOT MATCHED THEN INSERT ( b.METHOD_ID, b.METHOD_SUBCATEGORY_ID, b.METHOD_SOURCE_ID, b.SOURCE_CITATION_ID, b.SOURCE_METHOD_IDENTIFIER, b.METHOD_DESCRIPTIVE_NAME, b.METHOD_OFFICIAL_NAME, b.MEDIA_NAME, b.BRIEF_METHOD_SUMMARY, b.SCOPE_AND_APPLICATION, b.DL_TYPE_ID, b.DL_NOTE, b.APPLICABLE_CONC_RANGE, b.CONC_RANGE_UNITS, b.INTERFERENCES, b.QC_REQUIREMENTS, b.SAMPLE_HANDLING, b.MAX_HOLDING_TIME, b.SAMPLE_PREP_METHODS, b.RELATIVE_COST_ID, b.LINK_TO_FULL_METHOD, b.INSERT_DATE, b.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME, b.APPROVED, b.APPROVED_DATE, b.INSTRUMENTATION_ID, b.PRECISION_DESCRIPTOR_NOTES, b.RAPIDITY, b.CBR_ONLY, b.WATERBODY_TYPE, b.MATRIX, b.TECHNIQUE, b.SCREENING, b.ETV_LINK, b.DATE_LOADED, b.REVIEWER_NAME, b.REGS_ONLY, b.METHOD_TYPE_ID, b.ANALYSIS_AMT_ML, b.CORROSIVE, b.COLLECTED_SAMPLE_AMT_G, b.PBT, b.TOXIC, b.COLLECTED_SAMPLE_AMT_ML, b.NO_ANALYTE_FLAG, b.COMMENTS, b.PH_OF_ANALYTICAL_SAMPLE, b.QUALITY_REVIEW_ID, b.LIQUID_SAMPLE_FLAG, b.ANALYSIS_AMT_G, b.WASTE, b.ASSUMPTIONS_COMMENTS, b.CALC_WASTE_AMT, b.READY_FOR_REVIEW, b.NOTES, b.MEDIA_SUBCATEGORY, b.LEVEL_OF_TRAINING, b.MEDIA_EMPHASIZED_NOTE, b.SAM_COMPLEXITY) VALUES ( e.METHOD_ID, e.METHOD_SUBCATEGORY_ID, e.METHOD_SOURCE_ID, e.SOURCE_CITATION_ID, e.SOURCE_METHOD_IDENTIFIER, e.METHOD_DESCRIPTIVE_NAME, e.METHOD_OFFICIAL_NAME, e.MEDIA_NAME, e.BRIEF_METHOD_SUMMARY, e.SCOPE_AND_APPLICATION, e.DL_TYPE_ID, e.DL_NOTE, e.APPLICABLE_CONC_RANGE, e.CONC_RANGE_UNITS, e.INTERFERENCES, e.QC_REQUIREMENTS, e.SAMPLE_HANDLING, e.MAX_HOLDING_TIME, e.SAMPLE_PREP_METHODS, e.RELATIVE_COST_ID, e.LINK_TO_FULL_METHOD, e.INSERT_DATE, e.INSERT_PERSON_NAME, e.LAST_UPDATE_DATE, e.LAST_UPDATE_PERSON_NAME, 'N', sysdate, e.INSTRUMENTATION_ID, e.PRECISION_DESCRIPTOR_NOTES, e.RAPIDITY, e.CBR_ONLY, e.WATERBODY_TYPE, e.MATRIX, e.TECHNIQUE, e.SCREENING, e.ETV_LINK, sysdate, e.REVIEWER_NAME, e.REGS_ONLY, e.METHOD_TYPE_ID, e.ANALYSIS_AMT_ML, e.CORROSIVE, e.COLLECTED_SAMPLE_AMT_G, e.PBT, e.TOXIC, e.COLLECTED_SAMPLE_AMT_ML, e.NO_ANALYTE_FLAG, e.COMMENTS, e.PH_OF_ANALYTICAL_SAMPLE, e.QUALITY_REVIEW_ID, e.LIQUID_SAMPLE_FLAG, e.ANALYSIS_AMT_G, e.WASTE, e.ASSUMPTIONS_COMMENTS, e.CALC_WASTE_AMT, e.READY_FOR_REVIEW, e.NOTES, e.MEDIA_SUBCATEGORY, e.LEVEL_OF_TRAINING, e.MEDIA_EMPHASIZED_NOTE, e.SAM_COMPLEXITY ); exception when others then raise; end; PROCEDURE MergeStgAnalytes(p_method_id in number) IS BEGIN MERGE INTO analyte_method_jn B USING ( SELECT * FROM analyte_method_jn_stg amj where amj.method_id = p_method_id ) E ON (B.analyte_method_id = E.analyte_method_id) WHEN MATCHED THEN UPDATE SET b.METHOD_ID = e.METHOD_ID, b.ANALYTE_ID = e.ANALYTE_ID, b.DL_VALUE = e.DL_VALUE, b.DL_UNITS = e.DL_UNITS, b.ACCURACY = e.ACCURACY, b.ACCURACY_UNITS = e.ACCURACY_UNITS, b.FALSE_POSITIVE_VALUE = e.FALSE_POSITIVE_VALUE, b.FALSE_NEGATIVE_VALUE = e.FALSE_NEGATIVE_VALUE, b.PRECISION = e.PRECISION, b.PRECISION_UNITS = e.PRECISION_UNITS, b.PREC_ACC_CONC_USED = e.PREC_ACC_CONC_USED, b.INSERT_DATE = e.INSERT_DATE, b.INSERT_PERSON_NAME = e.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE = e.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME = e.LAST_UPDATE_PERSON_NAME, b.GREEN_FLAG = e.GREEN_FLAG, b.YELLOW_FLAG = e.YELLOW_FLAG, b.CONFIRMATORY = e.CONFIRMATORY, b.DATE_LOADED = SYSDATE WHEN NOT MATCHED THEN INSERT ( b.ANALYTE_METHOD_ID, b.METHOD_ID, b.ANALYTE_ID, b.DL_VALUE, b.DL_UNITS, b.ACCURACY, b.ACCURACY_UNITS, b.FALSE_POSITIVE_VALUE, b.FALSE_NEGATIVE_VALUE, b.PRECISION, b.PRECISION_UNITS, b.PREC_ACC_CONC_USED, b.INSERT_DATE, b.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME, b.GREEN_FLAG, b.YELLOW_FLAG, b.CONFIRMATORY, b.DATE_LOADED) values ( e.ANALYTE_METHOD_ID, e.METHOD_ID, e.ANALYTE_ID, e.DL_VALUE, e.DL_UNITS, e.ACCURACY, e.ACCURACY_UNITS, e.FALSE_POSITIVE_VALUE, e.FALSE_NEGATIVE_VALUE, e.PRECISION, e.PRECISION_UNITS, e.PREC_ACC_CONC_USED, e.INSERT_DATE, e.INSERT_PERSON_NAME, e.LAST_UPDATE_DATE, e.LAST_UPDATE_PERSON_NAME, e.GREEN_FLAG, e.YELLOW_FLAG, e.CONFIRMATORY, sysdate ); delete from analyte_method_jn where analyte_method_id in ( select analyte_method_id from analyte_method_jn where METHOD_ID = p_method_id minus select analyte_method_id from analyte_method_jn_stg where METHOD_ID = p_method_id) and method_id = p_method_id; end; procedure MergeOnlineAnalytes(p_method_id in number) is begin MERGE INTO analyte_method_jn_stg B USING ( SELECT * FROM analyte_method_jn_online amj where amj.method_id = p_method_id ) E ON (B.analyte_method_id = E.analyte_method_id) WHEN MATCHED THEN UPDATE SET b.METHOD_ID = e.METHOD_ID, b.ANALYTE_ID = e.ANALYTE_ID, b.DL_VALUE = e.DL_VALUE, b.DL_UNITS = e.DL_UNITS, b.ACCURACY = e.ACCURACY, b.ACCURACY_UNITS = e.ACCURACY_UNITS, b.FALSE_POSITIVE_VALUE = e.FALSE_POSITIVE_VALUE, b.FALSE_NEGATIVE_VALUE = e.FALSE_NEGATIVE_VALUE, b.PRECISION = e.PRECISION, b.PRECISION_UNITS = e.PRECISION_UNITS, b.PREC_ACC_CONC_USED = e.PREC_ACC_CONC_USED, b.INSERT_DATE = e.INSERT_DATE, b.INSERT_PERSON_NAME = e.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE = e.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME = e.LAST_UPDATE_PERSON_NAME, b.GREEN_FLAG = e.GREEN_FLAG, b.YELLOW_FLAG = e.YELLOW_FLAG, b.CONFIRMATORY = e.CONFIRMATORY, b.DATE_LOADED = SYSDATE WHEN NOT MATCHED THEN INSERT ( b.ANALYTE_METHOD_ID, b.METHOD_ID, b.ANALYTE_ID, b.DL_VALUE, b.DL_UNITS, b.ACCURACY, b.ACCURACY_UNITS, b.FALSE_POSITIVE_VALUE, b.FALSE_NEGATIVE_VALUE, b.PRECISION, b.PRECISION_UNITS, b.PREC_ACC_CONC_USED, b.INSERT_DATE, b.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME, b.GREEN_FLAG, b.YELLOW_FLAG, b.CONFIRMATORY, b.DATE_LOADED) values ( e.ANALYTE_METHOD_ID, e.METHOD_ID, e.ANALYTE_ID, e.DL_VALUE, e.DL_UNITS, e.ACCURACY, e.ACCURACY_UNITS, e.FALSE_POSITIVE_VALUE, e.FALSE_NEGATIVE_VALUE, e.PRECISION, e.PRECISION_UNITS, e.PREC_ACC_CONC_USED, e.INSERT_DATE, e.INSERT_PERSON_NAME, e.LAST_UPDATE_DATE, e.LAST_UPDATE_PERSON_NAME, e.GREEN_FLAG, e.YELLOW_FLAG, e.CONFIRMATORY, sysdate ); end; PROCEDURE MergeStgRevisions(p_method_id in number) IS BEGIN -- execute immediate 'DROP INDEX method_pdf_ctx_idx'; MERGE INTO revision_join B USING ( SELECT * FROM revision_join_stg amj where amj.method_id = p_method_id) E ON (B.revision_id = E.revision_id) WHEN MATCHED THEN UPDATE SET b.METHOD_ID = e.METHOD_ID, b.REVISION_INFORMATION = e.REVISION_INFORMATION, b.METHOD_PDF = e.METHOD_PDF, b.INSERT_DATE = e.INSERT_DATE, b.INSERT_PERSON_NAME = e.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE = e.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME = e.LAST_UPDATE_PERSON_NAME, b.MIMETYPE = e.MIMETYPE, b.PDF_INSERT_PERSON = e.PDF_INSERT_PERSON, b.PDF_INSERT_DATE = e.PDF_INSERT_DATE, b.REVISION_FLAG = e.REVISION_FLAG, b.DATE_LOADED = sysdate WHEN NOT MATCHED THEN INSERT ( b.REVISION_ID, b.METHOD_ID, b.REVISION_INFORMATION, b.METHOD_PDF, b.INSERT_DATE, b.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME, b.MIMETYPE, b.PDF_INSERT_PERSON, b.PDF_INSERT_DATE, b.REVISION_FLAG, b.DATE_LOADED) values (e.REVISION_ID, e.METHOD_ID, e.REVISION_INFORMATION, e.METHOD_PDF, e.INSERT_DATE, e.INSERT_PERSON_NAME, e.LAST_UPDATE_DATE, e.LAST_UPDATE_PERSON_NAME, e.MIMETYPE, e.PDF_INSERT_PERSON, e.PDF_INSERT_DATE, e.REVISION_FLAG, sysdate); --execute immediate 'CREATE INDEX method_pdf_ctx_idx ON revision_join(method_pdf) INDEXTYPE IS ctxsys.context -- PARAMETERS(''DATASTORE multi_method_pdf LEXER mylex filter ctxsys.auto_filter WORDLIST STEM_FUZZY_PREF'')'; end; PROCEDURE MergeProtStgRevisions(p_source_citation_id in number) IS BEGIN -- execute immediate 'DROP INDEX method_pdf_ctx_idx'; MERGE INTO revision_join B USING ( SELECT * FROM revision_join_stg amj where amj.source_citation_id = p_source_citation_id) E ON (B.revision_id = E.revision_id) WHEN MATCHED THEN UPDATE SET b.source_citation_id = e.source_citation_id, b.REVISION_INFORMATION = e.REVISION_INFORMATION, b.METHOD_PDF = e.METHOD_PDF, b.INSERT_DATE = e.INSERT_DATE, b.INSERT_PERSON_NAME = e.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE = e.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME = e.LAST_UPDATE_PERSON_NAME, b.MIMETYPE = e.MIMETYPE, b.PDF_INSERT_PERSON = e.PDF_INSERT_PERSON, b.PDF_INSERT_DATE = e.PDF_INSERT_DATE, b.REVISION_FLAG = e.REVISION_FLAG, b.DATE_LOADED = sysdate WHEN NOT MATCHED THEN INSERT ( b.REVISION_ID, b.source_citation_id, b.REVISION_INFORMATION, b.METHOD_PDF, b.INSERT_DATE, b.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME, b.MIMETYPE, b.PDF_INSERT_PERSON, b.PDF_INSERT_DATE, b.REVISION_FLAG, b.DATE_LOADED) values (e.REVISION_ID, e.source_citation_id, e.REVISION_INFORMATION, e.METHOD_PDF, e.INSERT_DATE, e.INSERT_PERSON_NAME, e.LAST_UPDATE_DATE, e.LAST_UPDATE_PERSON_NAME, e.MIMETYPE, e.PDF_INSERT_PERSON, e.PDF_INSERT_DATE, e.REVISION_FLAG, sysdate); --execute immediate 'CREATE INDEX method_pdf_ctx_idx ON revision_join(method_pdf) INDEXTYPE IS ctxsys.context -- PARAMETERS(''DATASTORE multi_method_pdf LEXER mylex filter ctxsys.auto_filter WORDLIST STEM_FUZZY_PREF'')'; end; PROCEDURE MergeProtStgMethods(p_source_citation_id in number) IS BEGIN -- execute immediate 'DROP INDEX method_pdf_ctx_idx'; delete from protocol_method_rel where source_citation_id = p_source_citation_id; insert into protocol_method_rel (protocol_method_id, source_citation_id, method_id) select protocol_method_id, source_citation_id, method_id from protocol_method_stg_rel where source_citation_id = p_source_citation_id; --execute immediate 'CREATE INDEX method_pdf_ctx_idx ON revision_join(method_pdf) INDEXTYPE IS ctxsys.context -- PARAMETERS(''DATASTORE multi_method_pdf LEXER mylex filter ctxsys.auto_filter WORDLIST STEM_FUZZY_PREF'')'; end; procedure MergeOnlineRevisions(p_method_id in number) is begin MERGE INTO revision_join_stg B USING ( SELECT * FROM revision_join_online amj where amj.method_id = p_method_id) E ON (B.revision_id = E.revision_id) WHEN MATCHED THEN UPDATE SET b.METHOD_ID = e.METHOD_ID, b.REVISION_INFORMATION = e.REVISION_INFORMATION, b.METHOD_PDF = e.METHOD_PDF, b.INSERT_DATE = e.INSERT_DATE, b.INSERT_PERSON_NAME = e.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE = e.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME = e.LAST_UPDATE_PERSON_NAME, b.MIMETYPE = e.MIMETYPE, b.PDF_INSERT_PERSON = e.PDF_INSERT_PERSON, b.PDF_INSERT_DATE = e.PDF_INSERT_DATE, b.REVISION_FLAG = e.REVISION_FLAG, b.DATE_LOADED = SYSDATE WHEN NOT MATCHED THEN INSERT ( b.REVISION_ID, b.METHOD_ID, b.REVISION_INFORMATION, b.METHOD_PDF, b.INSERT_DATE, b.INSERT_PERSON_NAME, b.LAST_UPDATE_DATE, b.LAST_UPDATE_PERSON_NAME, b.MIMETYPE, b.PDF_INSERT_PERSON, b.PDF_INSERT_DATE, b.REVISION_FLAG, b.DATE_LOADED) values (e.REVISION_ID, e.METHOD_ID, e.REVISION_INFORMATION, e.METHOD_PDF, e.INSERT_DATE, e.INSERT_PERSON_NAME, e.LAST_UPDATE_DATE, e.LAST_UPDATE_PERSON_NAME, e.MIMETYPE, e.PDF_INSERT_PERSON, e.PDF_INSERT_DATE, e.REVISION_FLAG, sysdate); end; END MERGE_STG_TO_PROD;
<?php /** * @file EditExerciseType.sql * updates an specified possible type from %ExerciseType table * @author Till Uhlig * @param int \$etid a %ExerciseType identifier * @param string $values the input data, e.g. 'a=1, b=2' * @result - */ ?> UPDATE ExerciseType SET <?php echo $values; ?> WHERE ET_id = '<?php echo $etid; ?>'
ALTER TABLE `game_player` ADD COLUMN `partner_soul` LONGBLOB NOT NULL COMMENT '½«»ê' AFTER `furnace`;
-- -- Indexes for dumped tables -- -- -- Indexes for table `account` -- ALTER TABLE `account` ADD PRIMARY KEY (`uid`), ADD KEY `clan_id` (`clan_id`); -- -- Indexes for table `clan` -- ALTER TABLE `clan` ADD PRIMARY KEY (`id`), ADD KEY `leader_uid` (`leader_uid`); -- -- Indexes for table `construction` -- ALTER TABLE `construction` ADD PRIMARY KEY (`id`), ADD KEY `account_uid` (`account_uid`), ADD KEY `territory_id` (`territory_id`); -- -- Indexes for table `container` -- ALTER TABLE `container` ADD PRIMARY KEY (`id`), ADD KEY `account_uid` (`account_uid`), ADD KEY `territory_id` (`territory_id`); -- -- Indexes for table `player` -- ALTER TABLE `player` ADD PRIMARY KEY (`id`), ADD KEY `player_uid` (`account_uid`); -- -- Indexes for table `player_history` -- ALTER TABLE `player_history` ADD PRIMARY KEY (`id`); -- -- Indexes for table `territory` -- ALTER TABLE `territory` ADD PRIMARY KEY (`id`), ADD KEY `owner_uid` (`owner_uid`), ADD KEY `flag_stolen_by_uid` (`flag_stolen_by_uid`); -- -- Indexes for table `vehicle` -- ALTER TABLE `vehicle` ADD PRIMARY KEY (`id`), ADD KEY `account_uid` (`account_uid`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `clan` -- ALTER TABLE `clan` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `construction` -- ALTER TABLE `construction` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `container` -- ALTER TABLE `container` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `player` -- ALTER TABLE `player` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34; -- -- AUTO_INCREMENT for table `player_history` -- ALTER TABLE `player_history` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `territory` -- ALTER TABLE `territory` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `vehicle` -- ALTER TABLE `vehicle` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables --
-- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) -- -- Host: localhost Database: makeCoop -- ------------------------------------------------------ -- Server version 8.0.18 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table "customer" -- DROP TABLE IF EXISTS "customer"; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE "customer" ( "MemberId" smallint(3) NOT NULL AUTO_INCREMENT, "Name" char(25) DEFAULT NULL, "Address" varchar(100) DEFAULT NULL, "Phone" varchar(10) DEFAULT NULL, "CreditNum" int(16) DEFAULT NULL, PRIMARY KEY ("MemberId") ); /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table "customer" -- LOCK TABLES "customer" WRITE; /*!40000 ALTER TABLE "customer" DISABLE KEYS */; /*!40000 ALTER TABLE "customer" ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table "item" -- DROP TABLE IF EXISTS "item"; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE "item" ( "ItemId" int(4) NOT NULL AUTO_INCREMENT, "Name" varchar(100) NOT NULL, "Dept" varchar(15) DEFAULT NULL, "Price" decimal(6,2) DEFAULT NULL, PRIMARY KEY ("ItemId") ); /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table "item" -- LOCK TABLES "item" WRITE; /*!40000 ALTER TABLE "item" DISABLE KEYS */; /*!40000 ALTER TABLE "item" ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table "purchase" -- DROP TABLE IF EXISTS "purchase"; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE "purchase" ( "ReceiptId" int(6) NOT NULL, "ItemId" int(4) NOT NULL, "Quantity" smallint(6) NOT NULL, PRIMARY KEY ("ReceiptId","ItemId"), KEY "itemid" ("ItemId") ); /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table "purchase" -- LOCK TABLES "purchase" WRITE; /*!40000 ALTER TABLE "purchase" DISABLE KEYS */; /*!40000 ALTER TABLE "purchase" ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table "receipt" -- DROP TABLE IF EXISTS "receipt"; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE "receipt" ( "ReceiptId" int(6) NOT NULL AUTO_INCREMENT, "MemberId" smallint(3) NOT NULL, "Date" datetime NOT NULL, PRIMARY KEY ("ReceiptId"), KEY "memberid" ("MemberId") ); /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table "receipt" -- LOCK TABLES "receipt" WRITE; /*!40000 ALTER TABLE "receipt" DISABLE KEYS */; /*!40000 ALTER TABLE "receipt" ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2020-04-03 13:09:17
/* SELECT ds_uf_nome, ds_uf_sigla FROM uf ORDER BY ds_uf_sigla ASC; */ SELECT COUNT(cd_cidade) AS qtd_cidades, ds_uf_sigla FROM cidades, uf WHERE uf_cd_uf = cd_uf GROUP BY ds_uf_sigla ORDER BY qtd_cidades DESC LIMIT 5; # Limit serve para delimitar a quantidade máxima de dados na consulta
create table Calendar ( id bigint not null auto_increment, description varchar(255), name varchar(255), saturdayIsWorkingDay boolean default true, sundayIsWorkingDay boolean default true, primary key (id) ) ENGINE=InnoDB; create table Holiday ( id bigint not null auto_increment, date date, description varchar(255), calendar_id bigint, primary key (id) ) ENGINE=InnoDB; alter table Holiday add constraint FK7kdv5n17b934jeh9bksktf1ph foreign key (calendar_id) references Calendar (id); -- TaskEscalationDefinition alter table TaskEscalationDefinition add column howManyDaysToEscalation integer; -- TaskDefinition alter table TaskDefinition add column calendar_id bigint; alter table TaskDefinition add column cancelIfSlaReached boolean default false; -- com.blazon.humantasks.tasks.jobs.FindTasksReadyToCancelationJob UPDATE JobInstance set name = 'Find Tasks Ready To Cancelation Job', description = 'Find Tasks Ready To Cancelation Job.', externalJobDetailId = 'Find Tasks Ready To Cancelation Job' where job_id in ( select id from Job where className like '%FindTasksReadyToCancelationJob'); update Job set className = 'com.blazon.humantasks.tasks.jobs.FindTasksReadyToCancelationJob', description = 'Find Tasks Ready To Cancelation Job.', displayName = 'Find Tasks Ready To Cancelation Job' where className like '%FindTasksReadyToCancelationJob'; -- delete Job TaskEscalationPeriodicJob delete from JobExecution where instance_id IN ( select instance.id from JobInstance instance join Job job on job.id = instance.job_id where job.className like '%TaskEscalationPeriodicJob' ); delete from JobInstance where job_id IN ( select id from Job where className like '%TaskEscalationPeriodicJob' ); delete from Job where className like '%TaskEscalationPeriodicJob'; -- Task alter table Task add column lockDate datetime; alter table Task add column lockNumber bigint; alter table Task add column lastAutoEscalationCheckDate datetime; alter table Task add column lastPolicyEscalationCheckDate datetime; -- TaskEscalation alter table TaskEscalation add column queueTo_id bigint; -- CertificationEntry alter table CertificationEntry add column revokeIfDeadlineReached boolean default false; -- Task alter table Task add column cancelIfSlaReached boolean default false;
 -- phpMyAdmin SQL Dump -- version 3.1.3.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 31, 2016 at 02:31 PM -- Server version: 5.1.33 -- PHP Version: 5.2.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `enaija` -- -- -------------------------------------------------------- -- -- Table structure for table `chat` -- CREATE TABLE IF NOT EXISTS `chat` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `from` varchar(255) NOT NULL DEFAULT '', `to` varchar(255) NOT NULL DEFAULT '', `message` text NOT NULL, `sent` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `recd` int(10) unsigned NOT NULL DEFAULT '0', `from_name` varchar(100) NOT NULL, `to_name` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `chat` -- -- -------------------------------------------------------- -- -- Table structure for table `ci_sessions` -- CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(40) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) unsigned NOT NULL DEFAULT '0', `data` blob NOT NULL, PRIMARY KEY (`id`), KEY `ci_sessions_timestamp` (`timestamp`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `ci_sessions` -- -- -------------------------------------------------------- -- -- Table structure for table `ena_biz` -- CREATE TABLE IF NOT EXISTS `ena_biz` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(225) NOT NULL, `rcnumber` varchar(45) NOT NULL, `industry` varchar(45) NOT NULL, `password` varchar(45) NOT NULL, `created_on` varchar(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `ena_biz` -- -- -------------------------------------------------------- -- -- Table structure for table `ena_budget` -- CREATE TABLE IF NOT EXISTS `ena_budget` ( `id` int(11) NOT NULL AUTO_INCREMENT, `allocation` varchar(240) NOT NULL, `amount` varchar(45) NOT NULL, `status` int(11) NOT NULL DEFAULT '1', `created_on` varchar(255) NOT NULL, `created_by` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `ena_budget` -- INSERT INTO `ena_budget` (`id`, `allocation`, `amount`, `status`, `created_on`, `created_by`) VALUES (1, 'State Ministry of works', '2147483647', 1, '', ''), (2, 'Government of adamawa state', '2000000000', 1, '1459422418', 'Adamawa State'); -- -------------------------------------------------------- -- -- Table structure for table `ena_forums` -- CREATE TABLE IF NOT EXISTS `ena_forums` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL DEFAULT '', `slug` varchar(255) NOT NULL DEFAULT '', `description` varchar(255) DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- Dumping data for table `ena_forums` -- INSERT INTO `ena_forums` (`id`, `title`, `slug`, `description`, `created_at`, `updated_at`) VALUES (1, 'Public Harrasment', 'public-harrasment', 'Hi people I want help', '2016-03-28 07:24:00', NULL); -- -------------------------------------------------------- -- -- Table structure for table `ena_gov` -- CREATE TABLE IF NOT EXISTS `ena_gov` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(125) NOT NULL, `code` varchar(9) NOT NULL, `gov_lvl` int(11) NOT NULL, `parent` int(11) NOT NULL, `password` varchar(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Dumping data for table `ena_gov` -- INSERT INTO `ena_gov` (`id`, `name`, `code`, `gov_lvl`, `parent`, `password`) VALUES (1, 'Federal Government', 'FG0000001', 5, 0, '123456'), (2, 'Anambra ', 'ANA000002', 2, 1, '123456'), (3, 'NNPC', 'NNP000003', 3, 0, '123456'), (4, 'Ministry Of Works', 'MOW000004', 4, 0, '123456'), (5, 'AMAC', 'AMA000005', 1, 0, '123456'); -- -------------------------------------------------------- -- -- Table structure for table `ena_loggedin_users` -- CREATE TABLE IF NOT EXISTS `ena_loggedin_users` ( `ena_loggedin_users_id` int(11) NOT NULL AUTO_INCREMENT, `loggedusername` varchar(45) NOT NULL, `ip` varchar(45) DEFAULT NULL, `useragent` text NOT NULL, `lastactivity` int(20) DEFAULT NULL, `online` varchar(45) DEFAULT NULL, PRIMARY KEY (`ena_loggedin_users_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `ena_loggedin_users` -- -- -------------------------------------------------------- -- -- Table structure for table `ena_messages` -- CREATE TABLE IF NOT EXISTS `ena_messages` ( `ena_messages_id` int(11) NOT NULL AUTO_INCREMENT, `senderid` int(11) NOT NULL, `receiverid` int(11) NOT NULL, `message` text, `subject` varchar(45) DEFAULT NULL, `date` varchar(45) DEFAULT NULL, `read` int(11) DEFAULT '0', PRIMARY KEY (`ena_messages_id`), KEY `senderid` (`senderid`), KEY `receiverid` (`receiverid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ; -- -- Dumping data for table `ena_messages` -- INSERT INTO `ena_messages` (`ena_messages_id`, `senderid`, `receiverid`, `message`, `subject`, `date`, `read`) VALUES (1, 1, 2, 'How are you ', 'hi', NULL, 0), (2, 2, 1, 'How are you too', 'fill me', NULL, 0), (4, 1, 2, 'HAters gonna hate', 'Heters', NULL, 0), (6, 2, 1, 'rtry', 'hi', '1459192906', 0), (7, 2, 1, 'rtry', 'hi', '1459193005', 0); -- -------------------------------------------------------- -- -- Table structure for table `ena_news` -- CREATE TABLE IF NOT EXISTS `ena_news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(120) NOT NULL, `description` text NOT NULL, `posted_by` varchar(45) NOT NULL DEFAULT 'Government', `created_on` varchar(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `ena_news` -- INSERT INTO `ena_news` (`id`, `title`, `description`, `posted_by`, `created_on`) VALUES (1, 'The Government is all about change', 'The Government of the federation has reaffirmed its stand on change and is willing to go the distance with this', 'Government', '1458946149'), (2, 'Here', 'here we are', ' FG', '1459420514'), (3, 'hey', 'hi', 'Adamawa State', '1459420718'); -- -------------------------------------------------------- -- -- Table structure for table `ena_options` -- CREATE TABLE IF NOT EXISTS `ena_options` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `value` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `ena_options` -- -- -------------------------------------------------------- -- -- Table structure for table `ena_petition` -- CREATE TABLE IF NOT EXISTS `ena_petition` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(150) NOT NULL, `description` text NOT NULL, `created_on` int(11) NOT NULL, `expired_on` int(11) NOT NULL, `user_id` int(11) NOT NULL, `response` text NOT NULL, `closed` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `ena_petition` -- INSERT INTO `ena_petition` (`id`, `title`, `description`, `created_on`, `expired_on`, `user_id`, `response`, `closed`) VALUES (1, '0', '0', 1458946149, 1474498149, 2, 'we have seen all of these', 0), (2, 'Change', 'there is no change in the sociut', 1458946275, 1474498275, 2, '', 0), (3, 'Here we are', 'We are herre', 1459419998, 1474971998, 3, '', 0); -- -------------------------------------------------------- -- -- Table structure for table `ena_pictures` -- CREATE TABLE IF NOT EXISTS `ena_pictures` ( `ena_pictures_id` int(11) NOT NULL AUTO_INCREMENT, `picid` int(11) NOT NULL, `title` varchar(45) DEFAULT NULL, `description` text, `ownerid` int(11) NOT NULL, `privacy` int(11) DEFAULT NULL, `date` varchar(45) DEFAULT NULL, `views` int(11) DEFAULT NULL, `likes` int(11) DEFAULT NULL, `dislikes` int(11) DEFAULT NULL, PRIMARY KEY (`ena_pictures_id`), KEY `fk_ena_pictures_ena_picture_comments` (`picid`), KEY `ownerid` (`ownerid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `ena_pictures` -- -- -------------------------------------------------------- -- -- Table structure for table `ena_picture_comments` -- CREATE TABLE IF NOT EXISTS `ena_picture_comments` ( `ena_picture_comments_id` int(11) NOT NULL AUTO_INCREMENT, `pictureid` int(11) NOT NULL, `commentbody` varchar(45) DEFAULT NULL, `type` int(11) DEFAULT NULL, `ip` varchar(45) DEFAULT NULL, `ownerid` int(11) NOT NULL, `name` varchar(45) DEFAULT NULL, `web` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `published` int(11) DEFAULT NULL, `date` varchar(45) DEFAULT NULL, `like` int(11) DEFAULT NULL, `dislike` int(11) DEFAULT NULL, PRIMARY KEY (`ena_picture_comments_id`), KEY `pictureid` (`pictureid`), KEY `ownerid` (`ownerid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -- Dumping data for table `ena_picture_comments` -- -- -------------------------------------------------------- -- -- Table structure for table `ena_posts` -- CREATE TABLE IF NOT EXISTS `ena_posts` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `content` longtext NOT NULL, `user_id` int(11) unsigned NOT NULL, `topic_id` int(11) unsigned NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- Dumping data for table `ena_posts` -- INSERT INTO `ena_posts` (`id`, `content`, `user_id`, `topic_id`, `created_at`, `updated_at`) VALUES (1, 'Here is a new topic\r\n', 2, 0, '2016-03-28 07:26:28', NULL), (2, 'hello', 2, 0, '2016-03-28 07:26:37', NULL); -- -------------------------------------------------------- -- -- Table structure for table `ena_proposal` -- CREATE TABLE IF NOT EXISTS `ena_proposal` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(120) NOT NULL, `description` text NOT NULL, `biz_id` int(11) NOT NULL, `gov_id` int(11) NOT NULL DEFAULT '0', `approved` int(11) NOT NULL, `amount` varchar(45) NOT NULL, `created_on` varchar(45) NOT NULL, `file` varchar(2000) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Dumping data for table `ena_proposal` -- INSERT INTO `ena_proposal` (`id`, `title`, `description`, `biz_id`, `gov_id`, `approved`, `amount`, `created_on`, `file`) VALUES (1, 'michael', 'chukwu', 2, 1, 2, '3444444', '1459361789', 'C:/xampp/htdocs/enaija/proposal/Hacking_-_Bas'), (2, 'Here', 'wer are here', 2, 1, 1, '233333', '1459362511', 'C:/xampp/htdocs/enaija/proposal/Hacking_-_Basic_Security,_Penetration_Testing_and_How_to_Hack_(2015)1.pdf'); -- -------------------------------------------------------- -- -- Table structure for table `ena_sign_petition` -- CREATE TABLE IF NOT EXISTS `ena_sign_petition` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `petition_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `ena_sign_petition` -- INSERT INTO `ena_sign_petition` (`id`, `user_id`, `petition_id`) VALUES (1, 2, 2); -- -------------------------------------------------------- -- -- Table structure for table `ena_topics` -- CREATE TABLE IF NOT EXISTS `ena_topics` ( `id` int(11) unsigned NOT NULL, `title` varchar(255) NOT NULL DEFAULT '', `slug` varchar(255) NOT NULL DEFAULT '', `created_at` datetime NOT NULL, `updated_at` datetime DEFAULT NULL, `user_id` int(11) unsigned NOT NULL, `forum_id` int(11) unsigned NOT NULL, `is_sticky` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `ena_topics` -- INSERT INTO `ena_topics` (`id`, `title`, `slug`, `created_at`, `updated_at`, `user_id`, `forum_id`, `is_sticky`) VALUES (0, 'About Public Harrasment', 'about-public-harrasment', '2016-03-28 07:26:28', '2016-03-28 07:26:37', 2, 1, 0); -- -------------------------------------------------------- -- -- Table structure for table `ena_users` -- CREATE TABLE IF NOT EXISTS `ena_users` ( `ena_users_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `salt` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `activationkey` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `firstname` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `secondname` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `lastname` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `dateofbirth` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `address` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `LGA` varchar(120) COLLATE utf8_unicode_ci NOT NULL, `occupation` varchar(120) COLLATE utf8_unicode_ci NOT NULL, `sex` varchar(6) COLLATE utf8_unicode_ci NOT NULL, `interests` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `profileprivacy` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `accountactive` int(11) DEFAULT NULL, `accountblocked` int(11) DEFAULT NULL, `registereddate` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `lastloggenindate` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `appearonline` int(11) DEFAULT NULL, `userlvl` int(1) NOT NULL, `avatar` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'default.jpg', `created_at` datetime NOT NULL, `updated_at` datetime DEFAULT NULL, `is_admin` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_moderator` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_confirmed` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_deleted` tinyint(1) unsigned NOT NULL DEFAULT '0', `updated_by` int(11) unsigned NOT NULL, PRIMARY KEY (`ena_users_id`), KEY `fk_ena_users_ena_pictures1` (`ena_users_id`), KEY `fk_ena_users_ena_loggedin_users1` (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `ena_users` -- INSERT INTO `ena_users` (`ena_users_id`, `username`, `password`, `salt`, `activationkey`, `email`, `firstname`, `secondname`, `lastname`, `dateofbirth`, `address`, `country`, `state`, `LGA`, `occupation`, `sex`, `interests`, `profileprivacy`, `accountactive`, `accountblocked`, `registereddate`, `lastloggenindate`, `appearonline`, `userlvl`, `avatar`, `created_at`, `updated_at`, `is_admin`, `is_moderator`, `is_confirmed`, `is_deleted`, `updated_by`) VALUES (1, '123456', 'Debby123', NULL, NULL, 'debbyandconig@gmail.co', 'Debby and Co', '', 'Debby Igwe', '1/3/2016', 'Elephant House Lagos', 'Nigeria', 'Lagos', 'Lagos Island', 'Finance', 'male', '', NULL, 1, 0, NULL, '1459418865', NULL, 1, 'default.jpg', '2016-03-28 17:34:38', NULL, 0, 0, 0, 0, 0), (2, '10987654321', 'Debby123', 'vdoOTp9DJhzABjBMRm71mdaiZNoT5n2riXuIgdYpIxSCg', 'eb363366bbf00b6834133de4317aea75', 'debby@gmail.com', 'Debby', 'M', 'Igwe', '12/2/1985', 'Abuja', 'Nigeria', 'Imo', 'Owerri', 'Software Engineer', 'Female', '', 'public', 1, 0, '1458945756', '1459413875', 1, 0, '503391088dfc3559993dd1badd0410b9.jpg', '2016-03-27 22:23:06', '2016-03-28 06:36:42', 0, 0, 0, 0, 1), (3, 'ada000002', 'Debby123', NULL, NULL, 'ada@nig.gov', 'Adamawa', 'Governor', 'Bindo Jibrila Mobi', '2/1/1980', 'Government house road Yola', 'Nigeria', 'Adamawa', 'Yola', 'State', 'male', NULL, NULL, 1, 0, NULL, '1459419901', NULL, 2, 'default.jpg', '2016-03-30 12:27:33', NULL, 1, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `messages` -- CREATE TABLE IF NOT EXISTS `messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `message` text NOT NULL, `nickname` varchar(50) NOT NULL, `guid` varchar(100) NOT NULL, `timestamp` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `messages` -- -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL DEFAULT '', `email` varchar(255) NOT NULL DEFAULT '', `password` varchar(255) NOT NULL DEFAULT '', `avatar` varchar(255) DEFAULT 'default.jpg', `created_at` datetime NOT NULL, `updated_at` datetime DEFAULT NULL, `updated_by` int(11) unsigned NOT NULL, `is_admin` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_moderator` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_confirmed` tinyint(1) unsigned NOT NULL DEFAULT '0', `is_deleted` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `email`, `password`, `avatar`, `created_at`, `updated_at`, `updated_by`, `is_admin`, `is_moderator`, `is_confirmed`, `is_deleted`) VALUES (1, 'remnuke', 'admin@localhost', '123456', 'default.jpg', '2016-03-27 22:23:06', NULL, 0, 1, 0, 1, 0), (2, 'remnuke', 'rem.nuke@yandex.com', '123456', 'default.jpg', '2016-03-28 00:34:54', NULL, 0, 1, 0, 1, 0), (3, 'remnuke', 'rem.nuke@yandex.com', '123456', 'default.jpg', '2016-03-28 00:58:09', NULL, 0, 1, 0, 1, 0), (4, 'remnuke', 'rem.nuke@yandex.com', '123456', 'default.jpg', '2016-03-28 00:00:20', NULL, 0, 1, 0, 1, 0); -- -- Constraints for dumped tables -- -- -- Constraints for table `ena_pictures` -- ALTER TABLE `ena_pictures` ADD CONSTRAINT `ena_pictures_ibfk_1` FOREIGN KEY (`ownerid`) REFERENCES `ena_users` (`ena_users_id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `ena_picture_comments` -- ALTER TABLE `ena_picture_comments` ADD CONSTRAINT `ena_picture_comments_ibfk_1` FOREIGN KEY (`pictureid`) REFERENCES `ena_pictures` (`ena_pictures_id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `ena_picture_comments_ibfk_2` FOREIGN KEY (`ownerid`) REFERENCES `ena_users` (`ena_users_id`) ON DELETE CASCADE ON UPDATE CASCADE;
select * from Production.Product where ProductNumber LIKE '%1' select * from Production.Product where ProductNumber LIKE 'A%' select * from Production.Product where ProductNumber LIKE '%12%' select * from Production.Product where ProductNumber LIKE '__-3%' ----------------------------------------ÖDEV---------------------------------------- SELECT * FROM HumanResources.Employee WHERE NationalIDNumber LIKE '%96%' AND JobTitle LIKE 'Research%' AND Gender = 'M' SELECT * FROM Sales.SalesOrderDetail WHERE ProductID > 100 AND ProductID < 1000 AND CarrierTrackingNumber LIKE '%AE' SELECT * FROM Sales.SalesOrderDetail WHERE ProductID BETWEEN 100 AND 1000 AND CarrierTrackingNumber LIKE '%AE' ----------------------------------------IN NOT IN KULLANIMI---------------------------------------- select * from Production.Product where ProductNumber NOT IN ( 'AR-5381', 'BA-8327', 'BE-2349', 'BE-2908', 'BL-2036', 'CA-5965', 'CA-6738', 'CA-7457', 'CB-2903', 'CN-6137', 'CR-7833', 'CR-9981', 'CS-2812', 'DC-8732', 'DC-9824', 'DT-2377', 'EC-M092', 'EC-R098', 'EC-T209', 'FE-3760', 'FH-2981', 'FW-1000' ) ----------------------------------------ORDER BY---------------------------------------- SELECT * FROM Production.Product WHERE ProductNumber LIKE '%20%' ORDER BY ProductID DESC --ASC DEFAULT ----------------------------------------GROUP BY-----VE GROUP BY HAVING----------------------------------- SELECT * FROM Production.Product WHERE Color IS NOT NULL SELECT Color, SUM(SafetyStockLevel) AS STOK, AVG(ListPrice) AS PRICE FROM Production.Product WHERE COLOR IS NOT NULL GROUP BY Color SELECT Color, SUM(SafetyStockLevel), AVG(ListPrice) FROM Production.Product GROUP BY Color HAVING Color IN ('RED', 'BLUE') --IS NOT NULL DA GELEBİLİR. WHERE YERİNE DE KULLANILIYOR YADA ÇİFT ARAMA YAPILABİLİRYOR FAKAT WHERE DEN SONRA AND İLE İKİNCİ KOSUL DAN FARKI NEY ? ----------------------------------------DISTINCT----------------------------------- SELECT DISTINCT Color FROM Production.Product SELECT ProductID, ProductNumber,Name,Color FROM Production.Product WHERE ProductID IN (SELECT DISTINCT ProductID from Sales.SalesOrderDetail) SELECT Color, COUNT(ProductID) AS ADET FROM Production.Product Group BY Color ORDER BY ADET DESC SELECT * FROM Sales.SalesOrderDetail ----------------------------------------BETWEEN----------------------------------- SELECT * FROM Production.Product WHERE ProductID BETWEEN 1 AND 500
CREATE TABLE `z_defter` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `ad_soyad` VARCHAR(255) NOT NULL, `email` VARCHAR(255) NOT NULL, `tel` VARCHAR(255) NOT NULL, `z_notu` VARCHAR(100)NOT NULL, PRIMARY KEY (`id`) ) COLLATE='utf8_turkish_ci' ENGINE=MyISAM AUTO_INCREMENT=0 ;
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 22, 2020 at 08:00 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; CREATE SCHEMA IF NOT EXISTS restfulapi DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_turkish_ci; USE restfulapi; -- -------------------------------------------------------- -- -- Table structure for table `groups` -- CREATE TABLE IF NOT EXISTS `user_groups` ( `id` int NOT NULL, `title` varchar(45) NOT NULL, CONSTRAINT PK_user_groups__id PRIMARY KEY (id), CONSTRAINT UK_user_groups__group UNIQUE(title) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `rights` -- CREATE TABLE IF NOT EXISTS `rights` ( `id` int NOT NULL, `title` varchar(45) NOT NULL, CONSTRAINT PK_rights__id PRIMARY KEY (id), CONSTRAINT UK_rights__right UNIQUE (title) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `classes` -- CREATE TABLE IF NOT EXISTS `classes` ( `id` int NOT NULL AUTO_INCREMENT, `class` int NOT NULL, CONSTRAINT PK_classes__id PRIMARY KEY (id), CONSTRAINT UK_classes__class UNIQUE (class) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `class_branches` -- CREATE TABLE IF NOT EXISTS `class_branches` ( `id` int NOT NULL AUTO_INCREMENT, `class_branch` varchar(1) NOT NULL, CONSTRAINT PK_class_branches__id PRIMARY KEY (id), CONSTRAINT UK_class_branches__class UNIQUE (class) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `students_bind_classes` -- CREATE TABLE IF NOT EXISTS `students_bind_classes` ( `student_id` int NOT NULL, `class` int NOT NULL, `class_branch` int NOT NULL, CONSTRAINT PK_class_branches__id PRIMARY KEY (id), CONSTRAINT FK_students_bind_classes__student_id FOREIGN KEY (student_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT FK_students_bind_classes__class FOREIGN KEY (class) REFERENCES classes(id) ON DELETE CASCADE, CONSTRAINT FK_students_bind_classes__class_branch FOREIGN KEY (class_branch) REFERENCES class_branches(id) ON DELETE CASCADE, ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `group_rights` -- CREATE TABLE IF NOT EXISTS `group_rights` ( `id` int NOT NULL AUTO_INCREMENT, `group_id` int NOT NULL, `right_id` int NOT NULL, CONSTRAINT PK_group_rights__id PRIMARY KEY (id), CONSTRAINT FK_group_rights__group_id FOREIGN KEY (group_id) REFERENCES user_groups(id) ON DELETE CASCADE, CONSTRAINT FK_group_rights__right_id FOREIGN KEY (right_id) REFERENCES rights(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int NOT NULL AUTO_INCREMENT, `group_id` int NOT NULL DEFAULT 1, `user_uuid` varchar(255) NOT NULL, `user_fullname` varchar(25) NOT NULL, `email` varchar(50) NOT NULL, `password` varchar(150) NOT NULL, `user_status` tinyint(1) NOT NULL DEFAULT 0, `created_date` datetime NOT NULL DEFAULT current_timestamp(), CONSTRAINT UK_users__user_uuid UNIQUE (user_uuid), CONSTRAINT UK_users__email UNIQUE (email), CONSTRAINT PK_users__id PRIMARY KEY (id), CONSTRAINT FK_users__group_id FOREIGN KEY (group_id) REFERENCES user_groups(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- LOAD XML LOCAL INFILE 'test.xml' INTO TABLE institutions ROWS IDENTIFIED BY '<Table>'; -- -------------------------------------------------------- -- -- Table structure for table `institutions` -- CREATE TABLE IF NOT EXISTS `institutions` ( `id` int AUTO_INCREMENT, `city` varchar(50), `county` varchar(60), `institution_type` varchar(60), `institution_name` varchar(255), `web_address` varchar(150) DEFAULT NULL, CONSTRAINT PK_institutions__id PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `users_bind_institutions` -- CREATE TABLE IF NOT EXISTS `users_bind_institutions` ( `user_id` int NOT NULL, `institution_id` int, CONSTRAINT PK_users_bind_institutions__id PRIMARY KEY (user_id), CONSTRAINT FK_users_bind_institutions__user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT FK_users_bind_institutions__institution_id FOREIGN KEY (institution_id) REFERENCES institutions(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `students_bind_teachers` -- CREATE TABLE IF NOT EXISTS `students_bind_teachers` ( `student_id` int NOT NULL, `teacher_id` int, CONSTRAINT PK_students_bind_teachers__student_id PRIMARY KEY (student_id), CONSTRAINT FK_students_bind_teachers__student_id FOREIGN KEY (student_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT FK_students_bind_teachers__teacher_id FOREIGN KEY (teacher_id) REFERENCES users(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `info_systems` -- CREATE TABLE IF NOT EXISTS `info_systems` ( `id` int NOT NULL AUTO_INCREMENT, `mac_address` varchar(50) NOT NULL, `network_name` varchar(255) NOT NULL, `os_name` varchar(50) NOT NULL, `os_version` varchar(100) NOT NULL, `created_date` datetime NOT NULL DEFAULT current_timestamp(), CONSTRAINT PK_info_systems__id PRIMARY KEY (id), CONSTRAINT UK_info_systems__mac_address UNIQUE (mac_address) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `log_files` -- CREATE TABLE IF NOT EXISTS `log_files` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int NOT NULL, `file_name` varchar(60) NOT NULL, `log_file_name` varchar(150) DEFAULT NULL, `mac_address` varchar(50) NOT NULL, `file_status` tinyint(1) NOT NULL DEFAULT 1, `deleted_date` datetime DEFAULT NULL, `created_date` datetime NOT NULL DEFAULT current_timestamp(), CONSTRAINT PK_log_files__id PRIMARY KEY (id), CONSTRAINT FK_log_files__user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT FK_log_files__mac_address FOREIGN KEY (mac_address) REFERENCES info_systems(mac_address) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `log_files` -- CREATE TABLE IF NOT EXISTS `log_files` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int NOT NULL, `file_name` varchar(60) NOT NULL, `mac_address` varchar(50) NOT NULL, `file_status` tinyint(1) NOT NULL DEFAULT 1, `upload_type` varchar(50) DEFAULT NULL, `deleted_date` datetime DEFAULT NULL, `created_date` datetime NOT NULL DEFAULT current_timestamp(), CONSTRAINT PK_log_files__id PRIMARY KEY (id), CONSTRAINT FK_log_files__user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT FK_log_files__mac_address FOREIGN KEY (mac_address) REFERENCES info_systems(mac_address) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `log_users` -- CREATE TABLE IF NOT EXISTS `log_users` ( `id` int NOT NULL AUTO_INCREMENT, `user_id` int NOT NULL, `mac_address` varchar(50) NOT NULL, `process_name` varchar(25) NOT NULL, `created_date` datetime NOT NULL DEFAULT current_timestamp(), CONSTRAINT PK_log_users__id PRIMARY KEY (id), CONSTRAINT FK_log_users__user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT FK_log_users__mac_address FOREIGN KEY (mac_address) REFERENCES info_systems(mac_address) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; -- -------------------------------------------------------- -- -- Table structure for table `assignments` -- CREATE TABLE IF NOT EXISTS `assignments` ( `id` int NOT NULL AUTO_INCREMENT, `student_id` int NOT NULL, `teacher_id` varchar(50) NOT NULL, `file_log_id` varchar(25) NOT NULL, `created_date` datetime NOT NULL DEFAULT current_timestamp(), `updated_date` datetime NOT NULL DEFAULT current_timestamp(), CONSTRAINT PK_assignments__id PRIMARY KEY (id), CONSTRAINT FK_assignments__student_id FOREIGN KEY (student_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT FK_assignments__teacher_id FOREIGN KEY (teacher_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT FK_assignments__file_log_id FOREIGN KEY (file_log_id) REFERENCES log_files(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_turkish_ci; COMMIT; -- -------------------------------------------------------- -- -- Insert samples to `groups` Table -- INSERT IGNORE INTO user_groups (id, title) VALUES (1, 'Ogrenci'); INSERT IGNORE INTO user_groups (id, title) VALUES (2, 'Ogretmen'); INSERT IGNORE INTO user_groups (id, title) VALUES (4, 'Mudur'); INSERT IGNORE INTO user_groups (id, title) VALUES (6, 'Ogretmen&Mudur'); INSERT IGNORE INTO user_groups (id, title) VALUES (8, 'Admin'); -- -------------------------------------------------------- -- -- Insert samples to `rights` Table -- INSERT IGNORE INTO rights (id, title) VALUES (1, 'Ogrenci-hakları'); INSERT IGNORE INTO rights (id, title) VALUES (2, 'Ogretmen-hakları'); INSERT IGNORE INTO rights (id, title) VALUES (4, 'Mudur-hakları'); INSERT IGNORE INTO rights (id, title) VALUES (8, 'Admin-hakları'); -- -------------------------------------------------------- -- -- Insert samples to `group_rights` Table -- INSERT IGNORE INTO group_rights (group_id, right_id) VALUES (1, 1); INSERT IGNORE INTO group_rights (group_id, right_id) VALUES (2, 2); INSERT IGNORE INTO group_rights (group_id, right_id) VALUES (4, 4); INSERT IGNORE INTO group_rights (group_id, right_id) VALUES (6, 2); INSERT IGNORE INTO group_rights (group_id, right_id) VALUES (6, 4); INSERT IGNORE INTO group_rights (group_id, right_id) VALUES (8, 8); -- -------------------------------------------------------- -- -- Insert samples to `classes` Table -- INSERT IGNORE INTO classes (class) VALUES (1); INSERT IGNORE INTO classes (class) VALUES (2); INSERT IGNORE INTO classes (class) VALUES (3); INSERT IGNORE INTO classes (class) VALUES (4); INSERT IGNORE INTO classes (class) VALUES (5); INSERT IGNORE INTO classes (class) VALUES (6); INSERT IGNORE INTO classes (class) VALUES (7); INSERT IGNORE INTO classes (class) VALUES (8); INSERT IGNORE INTO classes (class) VALUES (9); INSERT IGNORE INTO classes (class) VALUES (10); INSERT IGNORE INTO classes (class) VALUES (11); INSERT IGNORE INTO classes (class) VALUES (12); -- -------------------------------------------------------- -- -- Insert samples to `class_branches` Table -- INSERT IGNORE INTO class_branches (class_branch) VALUES ('A'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('B'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('C'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('Ç'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('D'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('E'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('F'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('G'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('Ğ'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('H'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('I'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('İ'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('J'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('K'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('L'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('M'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('N'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('O'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('Ö'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('P'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('R'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('S'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('Ş'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('T'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('U'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('Ü'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('V'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('Y'); INSERT IGNORE INTO class_branches (class_branch) VALUES ('Z'); -- -------------------------------------------------------- -- -- View `all_users` -- CREATE OR REPLACE VIEW all_users AS SELECT * FROM users; -- -------------------------------------------------------- -- -- View `all_students` -- CREATE OR REPLACE VIEW all_students AS SELECT * FROM users WHERE users.group_id = 1; -- -------------------------------------------------------- -- -- View `all_teachers` -- CREATE OR REPLACE VIEW all_teachers AS SELECT * FROM users WHERE users.group_id = 2 or users.group_id = 6; -- -------------------------------------------------------- -- -- View `all_managers_admins` -- CREATE OR REPLACE VIEW all_managers_admins AS SELECT * FROM users WHERE users.group_id = 4 or users.group_id = 6 or users.group_id = 8; -- -------------------------------------------------------- -- -- View `all_passive_users` -- CREATE OR REPLACE VIEW all_passive_users AS SELECT * FROM users WHERE users.user_status = 0; -- -------------------------------------------------------- -- -- View `all_active_users` -- CREATE OR REPLACE VIEW all_active_users AS SELECT * FROM users WHERE users.user_status = 1; -- -------------------------------------------------------- -- -- View `active_students` -- CREATE OR REPLACE VIEW active_students AS SELECT * FROM users WHERE users.group_id = 1 and users.user_status = 1; -- -------------------------------------------------------- -- -- View `active_teachers` -- CREATE OR REPLACE VIEW active_teachers AS SELECT * FROM users WHERE (users.group_id = 2 or users.group_id = 6) and users.user_status = 1; -- -------------------------------------------------------- -- -- View `active_managers_admins` -- CREATE OR REPLACE VIEW active_managers_admins AS SELECT * FROM users WHERE (users.group_id = 4 or users.group_id = 6 or users.group_id = 8) and users.user_status = 1; -- -------------------------------------------------------- -- -- View `passive_students` -- CREATE OR REPLACE VIEW passive_students AS SELECT * FROM users WHERE users.group_id = 1 and users.user_status = 0; -- -------------------------------------------------------- -- -- View `passive_teachers` -- CREATE OR REPLACE VIEW passive_teachers AS SELECT * FROM users WHERE (users.group_id = 2 or users.group_id = 6) and users.user_status = 0; -- -------------------------------------------------------- -- -- View `passive_managers_admins` -- CREATE OR REPLACE VIEW passive_managers_admins AS SELECT * FROM users WHERE (users.group_id = 4 or users.group_id = 6 or users.group_id = 8) and users.user_status = 0; -- -------------------------------------------------------- -- -- Stored Procedure for `log_users` and `info_systems` -- DELIMITER // CREATE PROCEDURE USER_LOGS__LOGIN(IN USER_ID int, IN MAC_ADDRESS varchar(50), IN NETWORK_NAME varchar(255), IN OS_NAME varchar(50), IN OS_VERSION varchar(100), IN PROCESS_NAME varchar(25)) BEGIN INSERT INTO info_systems (mac_address, network_name, os_name, os_version) VALUES (MAC_ADDRESS, NETWORK_NAME, OS_NAME, OS_VERSION) ON DUPLICATE KEY UPDATE network_name = NETWORK_NAME, os_name = OS_NAME, os_version = OS_VERSION; INSERT INTO log_users (user_id, mac_address, process_name) VALUES (USER_ID, MAC_ADDRESS, PROCESS_NAME); END // DELIMITER ; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
declare v_id nvarchar2(255); v_url nvarchar2(255); v_name nvarchar2(255); begin v_id := :DocumentId; v_url := :NewUrl; v_name := :NewName; update tbl_doc_document set col_url = v_url, col_name = v_name where col_id = v_id; end;
SELECT * FROM dbo.WebChartTitle where LinkChartCode = 'c120' SELECT * FROM dbo.OUTPUT select c.*,p.chartIdx,p.IsShow,wp.Code as SectionTitle from webpagechart p inner join WebChart c on p.LinkChartCode=c.Code left join WebPage wp on p.SectionId=wp.Id where p.LinkPageId=11 and p.IsShow='y' and p.LinkChartCode in (select distinct LinkChartCode from WebChartTitle where LinkProductId=11 and LinkGeoId=445) order by chartIdx SELECT * FROM WebChart SELECT * FROM WebChartTitle where LinkProductId=11 select * from dbo.WebPage where ParentID =( select ID from WebPage where Code= 'Dashboard') select B.ID, a.* from output A inner join Db4.BMSChinaCIA_IMS.dbo.Outputgeo B on A.Geo=B.Geo and A.ParentGeo=B.ParentGeo and A.Product=B.Product where linkproductID = 11 and A.LinkGeoId = 445 SELECT * FROM Db4.BMSChinaCIA_IMS.dbo.Outputgeo SELECT distinct LinkChartCode FROM output select distinct g.* from WebPrivilege p inner join WebOutputGeo g on p.LinkGeoId=g.Id inner join WebUserPermit u on p.Id=u.LinkPrivilegeId where u.LinkUserId=5 and p.LinkPageId=11 order by g.Lev,g.Idx SELECT * FROM WebUserPermit --SELECT * into WebOutputGeo FROM BMSChina_staging.dbo.WebOutputGeo -- SELECT * into WebOutputGeo_2016 FROM WebOutputGeo -- SELECT * into WebPrivilege_201703 FROM WebPrivilege SELECT * FROM WebOutputGeo SELECT * FROM WebOutputGeo_2016 SELECT * FROM WebPrivilege where LinkPageId = 11 SELECT * FROM WebPrivilege where LinkGeoId = 445 update dbo.WebPrivilege set LinkGeoId = 1 where LinkGeoId = 445 select distinct * from WebPrivilege p inner join WebOutputGeo_2016 g on p.LinkGeoId=g.Id SELECT * from weboutputgeo_2016 as a inner join dbo.webOutputgeo as b on a.geoname = b.geoname and a.product = b.product SELECT * FROM dbo.WebPage SELECT * FROM tblCondition where Code=@Code and VersionCode=@VersionCode select distinct LinkChartCode,LinkProductId,LinkGeoId,Category,TimeFrame,CategoryIdx,TimeFrameIdx from WebChartTitle where LinkChartCode='C020' and LinkProductId='11' and LinkGeoId='1' select * FROM WebOutputGeo select distinct *  from WebPrivilege p  inner join WebOutputGeo g on p.LinkGeoId=g.Id  inner join WebUserPermit u on p.Id=u.LinkPrivilegeId  where u.LinkUserId=5 and p.LinkPageId=12  order by g.Lev,g.Idx ----SELECT * into webOutputgeo_20170314 FROM dbo.webOutputgeo --truncate table dbo.WebOutputGeo --go --insert into dbo.weboutputgeo -- (ID,geo,geoname,lev,idx,Parentid,ParentGeo,linkproductid,Product) --select id,geo,geoname,lev,geoIDx,Parentid,ParentGeo,productid ,Product --from db4.BMSChinaCIA_IMS.dbo.outputgeo SELECT * from WebPrivilege as a inner join dbo.WebPage as b on a.LinkPageId = b.ID and b.Lev = 2 order by a.LinkPageId asc --SELECT * into WebUserPermit_20170314 from WebUserPermit SELECT * from WebUserPermit SELECT * FROM dbo.WebPage select * from dbo.WebPage where Lev = 2 SELECT * from WebPrivilege where LinkPageId = 12 SELECT * FROM dbo.webOutputgeo SELECT * into WebPrivilege_20170314 from dbo.WebPrivilege --truncate table dbo.WebPrivilege --insert into dbo.WebPrivilege ( LinkPageId, LinkGeoId, LinkChartCode, Permit ) --select LinkPageId, LinkGeoId, LinkChartCode, Permit from WebPrivilege_20170314 where LinkGeoId is null --go --insert into dbo.WebPrivilege ( LinkPageId, LinkGeoId, LinkChartCode, Permit ) --SELECT LinkPageId, LinkGeoId, LinkChartCode, Permit FROM WebPrivilege_20170314 where LinkPageId = 11 --go --insert into dbo.WebPrivilege ( LinkPageId, LinkGeoId, LinkChartCode, Permit ) --SELECT 12, a.Id, null, null --from dbo.WebOutputGeo as a --go --insert into dbo.WebPrivilege ( LinkPageId, LinkGeoId, LinkChartCode, Permit ) --SELECT a.ID, 1, null, null --from dbo.WebPage as a --where Lev = 2 and a.ID not in (12, 11) --go --truncate table dbo.WebUserPermit --go --insert into dbo.WebUserPermit ( LinkUserId, LinkPrivilegeId ) --select a.Id, b.Id --from dbo.WebUserInfo as a -- , dbo.WebPrivilege as b SELECT * FROM dbo.OUTPUT where LinkChartCode = 'c130' and Product = 'monopril' delete OUTPUT where LinkChartCode = 'c120' and y is null SELECT * FROM TempOutput.dbo.MTHCITY_CMPS select distinct LinkChartCode,LinkProductId,LinkGeoId,Category,TimeFrame,CategoryIdx,TimeFrameIdx  from WebChartTitle  WHERE linkchartcode ='D091'  AND LinkProductId= 12  and LinkGeoId = 9 SELECT * FROM WebChartTitle SELECT * FROM dbo.output where LinkChartCode = 'c020' delete dbo.OUTPUT where LinkChartCode = 'c020' insert into dbo.output ( DataSource, LinkGeoID, LinkProductID, [LinkChartCode], [LinkSeriesCode], [Series], [SeriesIdx], [Category], [Product], [Lev], [ParentGeo], [Geo], [Currency], [TimeFrame], [X], [XIdx], [Y], [LinkedY], [Size], [OtherParameters], [Color], [R], [G], [B], [IsShow] ) select DataSource, GeoID, ProductID, [LinkChartCode], [LinkSeriesCode], [Series], [SeriesIdx], [Category], [Product], [Lev], [ParentGeo], [Geo], [Currency], [TimeFrame], [X], [XIdx], cast(cast([Y] as decimal(25, 12)) as varchar), [LinkedY], [Size], [OtherParameters], [Color], [R], [G], [B], [IsShow] from db4.BMSChinaCIA_IMS.dbo.output_stage where linkchartcode = 'c020' select * from WebChartTitle where linkchartcode ='c201' AND LinkProductId= 1 and LinkGeoId = 1 --SELECT * FROM WebChartSeries as a --SELECT * FROM dbo.WebChart as b --go --alter table WebChartSeries --add HighChartSeriesType varchar(50) --go ----SELECT a.* --update a --set a.HighChartSeriesType = -- case when a.series like '%growth%' or a.series like '%G R%' or a.series like '%share%' then 'line' -- else 'StackedColumn' end --from WebChartSeries as a --inner join dbo.WebChart as b on a.LinkChartCode = b.Code --where b.highChartType = 'StackedColumnLineDY' SELECT * FROM WebChartSeries select * from dbo.WebChart --SELECT a.* select * from output where  LinkProductId=11  and LinkGeoId=1  and LinkChartCode='C030' and Currency = 'USD' and TimeFrame = 'MAT' and Category = 'Value' and IsShow='Y' order by XIdx select * FROM dbo.WebChartTitle SELECT * FROM BMSChina_bk.dbo.WebChartSeries_201609 where LinkChartCode = 'c130' and Color is null SELECT * FROM dbo.WebChartSeries where LinkChartCode = 'd050' and Color is null select * from dbo.WebChartTitle where LinkChartCode = 'd050' SELECT * FROM dbo.WebChart where Code = 'd050' SELECT * FROM dbo.WebChartSeries where LinkChartCode = 'd050' SELECT * FROM dbo.WebChartSeries where Series like '%growth%' SELECT * FROM webchart SELECT * from dbo.WebChartSeries as a inner join BMSChina_bk.dbo.WebChartSeries_201610 as b on a.LinkChartCode = b.LinkChartCode and a.Series = b.Series and a.Geo = b.Geo and a.DataSource = b.DataSource where a.Color is null and b.color is not null and a.LinkChartCode = 'd050' select * FROM BMSChina_ppt.dbo.tblColorDef WHERE name = 'viread' select DataSource,DataSource_CN,Explain,Explain_CN from WebChartExplain where Code='C020' and TimeFrame='MQT' and ProductID=11 insert into WebChartExplain select Code, replace(TimeFrame, 'MAT', 'YTD'), ProductID, Product, DataSource, DataSource_CN, Explain, Explain_CN from WebChartExplain where code = 'c020' and TimeFrame = 'MAT' SELECT * FROM dbo.WebChartExplain select * from output where LinkChartCode = 'c020' and Product = 'baraclude' select * from output where linkchartcode = 'd094' and TimeFrame = 'MAT' and currency = 'USD' and geo = 'shanghai' SELECT * FROM dbo.WebChartSeries where LinkChartCode = 'd050' select * from webchart where Code = 'd050' SELECT distinct Series FROM output where LinkChartCode = 'd021' update dbo.tblcitymax set Audi_Cod = 'DNY_' where City_CN = N'东营' SELECT * FROM dbo.output where LinkChartCode = 'c120' update output set Y = null where LinkChartCode = 'c120' and convert(float, Y) = 0.0 SELECT * FROM dbo.WebChartSeries SELECT * FROM dbo.WebChartTitle WHERE SubCaption LIKE '%HKAPI%' SELECT * FROM dbo.WebChart UPDATE webchart SET HighChartType = 'ColumnLineDY' WHERE HighChartType = 'StackedColumnLineDY' UPDATE webchart SET HighChartType = 'StackedColumnLineDY' WHERE Code IN ('c201', 'c202') SELECT * FROM dbo.WebChartSeries WHERE LinkChartCode = 'c201' SELECT * FROM dbo.WebChartSeries WHERE LinkChartCode = 'c202' SELECT * FROM webchart WHERE Code = 'c201' SELECT * FROM tblColorDef select distinct LinkChartCode,LinkProductId,LinkGeoId,Category,TimeFrame,CategoryIdx,TimeFrameIdx  from WebChartTitle  WHERE LinkChartCode = 'c130' SELECT * FROM dbo.WebChartSeries WHERE LinkChartCode = 'c210' SELECT * FROM dbo.WebChart WHERE code = 'c210' select top 1250 GEO,Market_Name,VU_YTD_3,VU_YTD_2,VU_YTD_1 from tblOutput_MAX_TA_YTD_Inline where 1=1 and MktType='In-line Market' and Mkt in ('ARV') and geo in ('CHINA','anhui','DANDONG') and Prod_Lvl='MK' order by Geo_Lvl, Geo, Market_Name, Class_Name, Prod_Lvl desc, CMPS_Name, Product_Name, Package_Name SELECT * FROM tblOutput_MAX_TA_YTD_Inline SELECT * FROM tblOutput_MAX_TA_Master_Inline SELECT * FROM tblOutput_MAX_TA_Master SELECT * FROM tblcitymax SELECT * FROM dbo.tblCityListForMAX SELECT * FROM tblcitymax --UPDATE dbo.tblCityMAX --SET city = UPPER(LEFT(City, 1)) + LOWER(RIGHT(city, LEN(City) - 1)) SELECT DISTINCT Audi_Cod FROM dbo.MTHCITY_MAX SELECT * FROM dbo.tblCityListForMAX SELECT * FROM tblCityListForhospital SELECT * FROM dbo.WebChartSeries WHERE LinkChartCode = 'd021' SELECT * FROM dbo.WebChartTitle WHERE LinkChartCode = 'd021' SELECT * FROM dbo.WebChartExplain WHERE Code = 'd021' SELECT * FROM dbo.tblCityListForHospital SELECT * FROM tblcitymax WHERE city_CN = N'六安' SELECT * FROM dbo.tblCityListForMAX SELECT * FROM dbo.tblCityListForHospital WHERE province_CN = N'陕西' UPDATE dbo.tblCityListForHospital SET province_en = 'SHAANXI' WHERE province_CN = N'陕西' SELECT * FROM tblHospitalList ALTER TABLE dbo.tblHospitalList add province_EN VARCHAR(50)
DROP TABLE IF EXISTS tabulka3 CASCADE; DROP TABLE IF EXISTS tabulka4 CASCADE; -- tabulky s trivialni strukturou CREATE TABLE tabulka3 (id INT); CREATE TABLE tabulka4 (id INT); -- naplneni 1M radek do kazde tabulky INSERT INTO tabulka3 SELECT i FROM generate_series(1,1000000) s(i); INSERT INTO tabulka4 SELECT i FROM generate_series(1,1000000) s(i); ANALYZE tabulka3; ANALYZE tabulka4; -- pouze explain (bez instrumentace) EXPLAIN SELECT * FROM tabulka3 JOIN tabulka4 ON (tabulka3.id = tabulka4.id); -- zakladni analyze dotazu EXPLAIN ANALYZE SELECT * FROM tabulka3 JOIN tabulka4 ON (tabulka3.id = tabulka4.id); -- bez casovani (nejvetsi overhead) EXPLAIN (ANALYZE, TIMING OFF) SELECT * FROM tabulka3 JOIN tabulka4 ON (tabulka3.id = tabulka4.id); -- nebo naopak s dalsimi dodatecnymi informacemi EXPLAIN (ANALYZE, VERBOSE, COSTS, BUFFERS, FORMAT JSON) SELECT * FROM tabulka3 JOIN tabulka4 ON (tabulka3.id = tabulka4.id);
DROP PROCEDURE CPI.COPY_POL_DIST_TAB_2; CREATE OR REPLACE PROCEDURE CPI.copy_pol_dist_tab_2( p_old_pol_id giuw_pol_dist.policy_id%TYPE, p_new_par_id giuw_pol_dist.par_id%TYPE, p_new_policy_id giuw_pol_dist.policy_id%TYPE, p_dist_no_new OUT giuw_pol_dist.dist_no%TYPE, p_dist_no_old OUT giuw_pol_dist.dist_no%TYPE ) IS CURSOR pol_dist IS SELECT dist_flag, redist_flag, post_flag, endt_type, tsi_amt, prem_amt, ann_tsi_amt, dist_type, item_posted_sw, ex_loss_sw, batch_id, auto_dist, old_dist_no, iss_cd, prem_seq_no, item_grp, takeup_seq_no, user_id, last_upd_date FROM giuw_pol_dist WHERE policy_id = p_old_pol_id; BEGIN /* ** Created by : Robert Virrey ** Date Created : 10-13-2011 ** Reference By : (GIEXS004 - TAG EXPIRED POLICIES FOR RENEWAL) ** Description : copy_pol_dist_tab program unit */ SELECT pol_dist_dist_no_s.NEXTVAL INTO p_dist_no_new FROM DUAL; SELECT dist_no INTO p_dist_no_old FROM giuw_pol_dist WHERE policy_id = p_old_pol_id; FOR a IN pol_dist LOOP INSERT INTO giuw_pol_dist (dist_no, par_id, dist_flag, redist_flag, eff_date, expiry_date, create_date, post_flag, policy_id, endt_type, tsi_amt, prem_amt, ann_tsi_amt, dist_type, item_posted_sw, ex_loss_sw, batch_id, auto_dist, old_dist_no, iss_cd, prem_seq_no, item_grp, takeup_seq_no, user_id, last_upd_date ) VALUES (p_dist_no_new, p_new_par_id, a.dist_flag, a.redist_flag, SYSDATE, ADD_MONTHS (SYSDATE, 12), SYSDATE, a.post_flag, p_new_policy_id, a.endt_type, a.tsi_amt, a.prem_amt, a.ann_tsi_amt, a.dist_type, a.item_posted_sw, a.ex_loss_sw, a.batch_id, a.auto_dist, a.old_dist_no, a.iss_cd, a.prem_seq_no, a.item_grp, a.takeup_seq_no, a.user_id, a.last_upd_date ); END LOOP; --CLEAR_MESSAGE; --MESSAGE('Copying policy distribution ...',NO_ACKNOWLEDGE); --SYNCHRONIZE; END; /
DECLARE v_Id TBL_FOM_UIELEMENT.COL_ID%TYPE; v_DashboardId TBL_FOM_DASHBOARD.COL_ID%TYPE; v_WidgetId TBL_FOM_WIDGET.COL_ID%TYPE; v_JsonData TBL_FOM_UIELEMENT.COL_JSONDATA%TYPE; v_Description TBL_FOM_UIELEMENT.COL_DESCRIPTION%TYPE; v_AoType TBL_AC_ACCESSOBJECT.COL_ACCESSOBJACCESSOBJTYPE%TYPE; v_RuleVisibility TBL_FOM_UIELEMENT.COL_RULEVISIBILITY%TYPE; v_CodedPageID TBL_FOM_CODEDPAGE.COL_ID%TYPE; v_ElementType NVARCHAR2(255); v_ElementValue TBL_FOM_CODEDPAGE.COL_CODE%TYPE; v_isId NUMBER; v_ErrorCode NUMBER; v_ErrorMessage NVARCHAR2(255); BEGIN v_Id := :Id; v_DashboardId := :DashboardId; v_WidgetId := :WidgetId; v_JsonData := :JsonData; v_Description := :Description; v_RuleVisibility := :RuleVisibility; v_CodedPageID := NULL; :affectedRows := 0; v_ErrorCode := 0; v_ErrorMessage := ''; -- check on require parameters IF (v_DashboardId IS NULL) THEN v_ErrorMessage := 'Dashboard_Id can not be empty'; v_ErrorCode := 101; GOTO cleanup; END IF; -- validation on Id is Exist IF (NVL(v_Id, 0) > 0) THEN v_isId := f_UTIL_getId(errorCode => v_ErrorCode, errorMessage => v_ErrorMessage, Id => v_Id, TableName => 'TBL_FOM_UIELEMENT'); IF v_ErrorCode > 0 THEN GOTO cleanup; END IF; END IF; IF NVL(v_DashboardId, 0) > 0 THEN v_isId := f_UTIL_getId(errorCode => v_ErrorCode, errorMessage => v_ErrorMessage, Id => v_DashboardId, TableName => 'TBL_FOM_DASHBOARD'); IF (v_ErrorCode > 0) THEN GOTO cleanup; END IF; END IF; IF (NVL(v_WidgetId, 0) > 0) THEN v_isId := f_UTIL_getId(errorCode => v_ErrorCode, errorMessage => v_ErrorMessage, Id => v_WidgetId, TableName => 'TBL_FOM_WIDGET'); IF v_ErrorCode > 0 THEN GOTO cleanup; END IF; END IF; --set success message IF v_Id IS NOT NULL THEN :SuccessResponse := 'Updated widget'; ELSE :SuccessResponse := 'Created widget'; END IF; BEGIN --custom decode a JSON data IF (v_JsonData IS NOT NULL) AND (v_JsonData <> '{}') THEN --define a type of element v_ElementType := REGEXP_SUBSTR(v_JsonData, '\"CODEDPAGE_CODE\"', 1, 1); --type is coded page IF (UPPER(v_ElementType) = '"CODEDPAGE_CODE"') THEN v_ElementValue := REGEXP_SUBSTR(v_JsonData, '"CODEDPAGE_CODE\":\"[^\"]+\"', 1, 1); v_ElementValue := REGEXP_SUBSTR(v_ElementValue, '\":\"[^\"]+\"', 1, 1); v_ElementValue := REPLACE(REPLACE(v_ElementValue, '"', ''), ':', ''); v_ElementValue := NVL(v_ElementValue, ''); BEGIN SELECT COL_ID INTO v_CodedPageID FROM TBL_FOM_CODEDPAGE WHERE COL_CODE = v_ElementValue; EXCEPTION WHEN NO_DATA_FOUND THEN v_CodedPageID := NULL; END; END IF; --eof UPPER(v_ElementType) ='"CODEDPAGE_CODE"' END IF; --v_JsonData IS NOT NULL --add new record or update existing one IF (v_Id IS NULL) THEN INSERT INTO TBL_FOM_UIELEMENT (COL_DESCRIPTION, COL_JSONDATA, COL_UIELEMENTDASHBOARD, COL_UIELEMENTWIDGET, COL_ISEDITABLE, COL_RULEVISIBILITY, COL_CODE, COL_CODEDPAGEIDLIST) VALUES (v_Description, v_JsonData, v_DashboardId, v_WidgetId, 1, v_RuleVisibility, sys_guid(), TO_CHAR(v_CodedPageID)) RETURNING COL_ID INTO :recordId; -- create a record in the AC_AccessObject table of type AC_AccessObjectType.col_code = "PAGE_ELEMENT" v_AoType := f_util_getidbycode(code => 'DASHBOARD_ELEMENT', tablename => 'tbl_ac_accessobjecttype'); INSERT INTO TBL_AC_ACCESSOBJECT (COL_NAME, COL_CODE, COL_ACCESSOBJACCESSOBJTYPE, COL_ACCESSOBJECTUIELEMENT) VALUES ('Dashboard element ' || to_char(:recordId), f_UTIL_calcUniqueCode('DASHBOARD_ELEMENT_' || to_char(:recordId), 'tbl_ac_accessobject'), v_AoType, :recordId) RETURNING COL_ID INTO :accessobjectId; :affectedRows := 1; ELSE UPDATE TBL_FOM_UIELEMENT SET COL_DESCRIPTION = v_Description, COL_JSONDATA = v_JsonData, COL_UIELEMENTDASHBOARD = v_DashboardId, COL_UIELEMENTWIDGET = v_WidgetId, COL_RULEVISIBILITY = v_RuleVisibility, COL_CODEDPAGEIDLIST = TO_CHAR(v_CodedPageID) WHERE col_id = v_Id; :affectedRows := 1; :recordId := v_Id; END IF; -- get UIElement Code select col_code into :uielementCode from tbl_fom_uielement where col_id = :recordId; -- get permissions :isViewable := f_fom_isuielementallowed(accessobjectid => :accessobjectId, accesstype => 'VIEW', accessobjecttype => 'DASHBOARD_ELEMENT'); :isEnable := f_fom_isuielementallowed(accessobjectid => :accessobjectId, accesstype => 'ENABLE', accessobjecttype => 'DASHBOARD_ELEMENT'); EXCEPTION WHEN OTHERS THEN :affectedRows := 0; v_ErrorCode := 102; v_ErrorMessage := '$t(Exception:) ' || SUBSTR(SQLERRM, 1, 200); :SuccessResponse := ''; END; <<cleanup>> :errorCode := v_ErrorCode; :errorMessage := v_ErrorMessage; END;
CREATE TABLE Departments ( dept_no varchar(4) NOT NULL , dept_name varchar(30) NOT NULL , PRIMARY KEY ( dept_no ) ); CREATE TABLE titles ( title_id varchar(5) NOT NULL , title varchar(30) NOT NULL , PRIMARY KEY ( title_id ) ); CREATE TABLE employees ( emp_no int NOT NULL , emp_title_id varchar(10) NOT NULL , birth_date date NOT NULL , first_name varchar(20) NOT NULL , last_name varchar(20) NOT NULL , sex varchar(10) NOT NULL , hire_date date NOT NULL , PRIMARY KEY ( emp_no ) ); CREATE TABLE salaries ( emp_no int NOT NULL , salary int NOT NULL ); CREATE TABLE dept_emp ( emp_no int NOT NULL , dept_no varchar(30) NOT NULL ); CREATE TABLE dept_manager ( dept_no varchar(30) NOT NULL , emp_no int NOT NULL ); --1 List the following details of each employee: employee number, last name, first name, sex, and salary.-- SELECT employees.emp_no, employees.last_name, employees.first_name, employees.sex, salaries.salary FROM employees JOIN salaries ON employees.emp_no = salaries.emp_no; --2 List first name, last name, and hire date for employees who were hired in 1986.-- SELECT employees.first_name, employees.last_name, employees.hire_date From employees where hire_date between '01/01/1986' and '12/31/1986'; --3 List the manager of each department with the following information: department number, department name, the manager's employee number, last name, first name.-- SELECT dept_emp.dept_no, departments.dept_name, employees.emp_no, employees.last_name, employees.first_name, titles.title_id, titles.title FROM employees JOIN dept_emp ON dept_emp.emp_no = employees.emp_no left JOIN DEPARTMENTS on departments.dept_no =dept_emp.dept_no left join titles on titles.title_id = employees.emp_title_id where title ='Manager' --4 List the department of each employee with the following information: employee number, last name, first name, and department name.-- Select employees.emp_no, employees.last_name, employees.first_name, departments.dept_name from employees join dept_emp on dept_emp.emp_no = employees.emp_no left join departments on departments.dept_no= dept_emp.dept_no; --5 List first name, last name, and sex for employees whose first name is "Hercules" and last names begin with "B."-- select employees.first_name, employees.last_name, employees.sex from employees where employees.first_name= 'Hercules' and employees.last_name like 'B%' --6 List all employees in the Sales department, including their employee number, last name, first name, and department name.-- SELECT dept_emp.emp_no, employees.last_name, employees.first_name, departments.dept_name FROM dept_emp JOIN employees ON dept_emp.emp_no = employees.emp_no JOIN departments ON dept_emp.dept_no = departments.dept_no WHERE departments.dept_name = 'Sales'; --7 List all employees in the Sales and Development departments, including their employee number, last name, first name, and department name.-- SELECT dept_emp.emp_no, employees.last_name, employees.first_name, departments.dept_name FROM dept_emp JOIN employees ON dept_emp.emp_no = employees.emp_no JOIN departments ON dept_emp.dept_no = departments.dept_no WHERE departments.dept_name = 'Sales' OR departments.dept_name = 'Development'; --8 In descending order, list the frequency count of employee last names, i.e., how many employees share each last name.-- SELECT last_name, COUNT(last_name) AS "frequency" FROM employees GROUP BY last_name ORDER BY COUNT(last_name) DESC;
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: materialinfodb -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `order_form` -- DROP TABLE IF EXISTS `order_form`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `order_form` ( `id` int(11) NOT NULL AUTO_INCREMENT, `quote_id` int(11) DEFAULT NULL, `bid_id` int(11) DEFAULT NULL, `customer_id` int(11) DEFAULT NULL, `bid_total_price` double DEFAULT NULL, `order_status` int(11) DEFAULT NULL, `time_deliver` datetime DEFAULT NULL, `create_by` int(11) DEFAULT NULL, `create_date` datetime DEFAULT NULL, `modify_by` int(11) DEFAULT NULL, `modify_date` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `order_form` -- LOCK TABLES `order_form` WRITE; /*!40000 ALTER TABLE `order_form` DISABLE KEYS */; INSERT INTO `order_form` VALUES (1,1,1,1,2342423,1,'2019-03-22 00:00:00',1,'2019-03-22 00:00:00',NULL,NULL),(4,3,7,1,1111,88,'2019-03-21 00:00:00',1,'2019-05-ss.txt 00:00:00',NULL,NULL),(5,2,3,1,4535345,88,'2019-03-19 00:00:00',1,'2019-05-13 00:00:00',NULL,NULL),(6,4,10,1,666666,1,'2019-05-ss.txt 00:00:00',1,'2019-05-13 00:00:00',NULL,NULL); /*!40000 ALTER TABLE `order_form` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2019-05-21 22:48:59
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2016-07-01 04:42:48 -- 服务器版本: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `gongdan` -- -- -------------------------------------------------------- -- -- 表的结构 `company` -- CREATE TABLE IF NOT EXISTS `company` ( `c_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '公司ID', `c_name` varchar(255) NOT NULL COMMENT '公司名称', `c_desciption` varchar(255) NOT NULL COMMENT '公司描述', `c_starttime` date NOT NULL COMMENT '公司创建时间', PRIMARY KEY (`c_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- 转存表中的数据 `company` -- INSERT INTO `company` (`c_id`, `c_name`, `c_desciption`, `c_starttime`) VALUES (1, '成都多享', '专注于科技研发', '2016-05-01'), (2, '成都潘朵拉', '专注于科技研发', '2016-05-01'); -- -------------------------------------------------------- -- -- 表的结构 `customer` -- CREATE TABLE IF NOT EXISTS `customer` ( `cu_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '客户ID', `cu_name` varchar(50) NOT NULL COMMENT '客户姓名', `cu_email` varchar(255) NOT NULL COMMENT '客户邮箱', `cu_phone` varchar(50) NOT NULL COMMENT '客户电话', `cu_date` date NOT NULL COMMENT '客户创建时间', `cu_description` varchar(255) NOT NULL COMMENT '客户描述', `cu_wx` varchar(50) NOT NULL COMMENT '客户微信', `cu_twitter` varchar(50) NOT NULL COMMENT '客户微博', `cu_qq` varchar(50) NOT NULL COMMENT '客户QQ', `c_id` int(11) NOT NULL COMMENT '所属公司', `s_id` int(11) DEFAULT NULL COMMENT '所属员工', PRIMARY KEY (`cu_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; -- -- 转存表中的数据 `customer` -- INSERT INTO `customer` (`cu_id`, `cu_name`, `cu_email`, `cu_phone`, `cu_date`, `cu_description`, `cu_wx`, `cu_twitter`, `cu_qq`, `c_id`, `s_id`) VALUES (1, '柳敏', 'liumin@126.com', '13558844521', '2016-04-03', '.........................', 'wxwxwx', 'blogblogblogblog', '123456789', 1, NULL), (2, '黄丹', 'huangdan@126.com', '13584529541', '2016-04-03', ',,,,,,,,,,,,,,,,,,,,,,,,,,,,,', 'wxwxwx', 'blogblogblogblog', '123456789', 1, NULL), (3, '杨雪晴', 'yangxueqing@126.com', '17259485463', '2016-04-03', '******************************', 'wxwxwx', 'blogblogblogblog', '123456789', 1, NULL), (4, '刘凤敏', 'liufeng@126.com', '15875856325', '2016-04-03', '..........................', 'wxwxwx', 'blogblogblogblog', '123456789', 2, NULL); -- -------------------------------------------------------- -- -- 表的结构 `orders` -- CREATE TABLE IF NOT EXISTS `orders` ( `o_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '工单ID', `o_title` varchar(200) NOT NULL COMMENT '工单标题', `o_description` varchar(255) NOT NULL COMMENT '工单描述', `o_status` int(11) NOT NULL COMMENT '工单状态', `o_level` int(11) NOT NULL COMMENT '工单优先级', `o_tags` varchar(250) DEFAULT NULL COMMENT '工单标签', `o_starttime` date NOT NULL COMMENT '工单创建时间', `o_follower` varchar(50) NOT NULL COMMENT '工单关注者', `o_remark` varchar(50) DEFAULT NULL COMMENT '工单备注', `o_qudao` int(50) NOT NULL COMMENT '工单渠道', `o_upload` varchar(255) DEFAULT NULL COMMENT '工单上传附件', `cu_id` int(11) NOT NULL COMMENT '所属客户ID', `s_id` int(11) NOT NULL COMMENT '所属客服ID', `cr_id` int(11) NOT NULL COMMENT '创建人', PRIMARY KEY (`o_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ; -- -- 转存表中的数据 `orders` -- INSERT INTO `orders` (`o_id`, `o_title`, `o_description`, `o_status`, `o_level`, `o_tags`, `o_starttime`, `o_follower`, `o_remark`, `o_qudao`, `o_upload`, `cu_id`, `s_id`, `cr_id`) VALUES (2, '服务器崩溃了', '<p>sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场生成商场sc市场', 2, 3, '', '2016-05-01', 'sds', '淡淡的', 1, 'images', 1, 2, 1), (5, '这是主题2', '<p>这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;这是主题内容2&nbsp;</p>', 1, 1, '', '2016-05-19', '5', '', 1, 'images', 4, 2, 1), (6, '主题在这儿', '<p>内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿</p>', 1, 1, '主题,内容', '2016-05-19', '1,5', '事实上', 1, 'images', 1, 4, 1), (7, '主题在这儿2', '<p>内容在这儿在哪儿内容在这儿在哪儿内容在这儿在哪儿内容222222在哪儿</p>', 1, 1, '主题2,内容2', '2016-05-19', '1,5', '2222', 1, 'images', 2, 1, 2); -- -------------------------------------------------------- -- -- 表的结构 `serve` -- CREATE TABLE IF NOT EXISTS `serve` ( `s_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '员工ID', `s_name` varchar(50) NOT NULL COMMENT '员工用户名', `s_user` varchar(50) NOT NULL COMMENT ' 员工姓名', `s_pwd` varchar(50) NOT NULL COMMENT '员工密码', `sg_id` int(11) NOT NULL COMMENT '所属员工组', `s_part` int(11) NOT NULL COMMENT '员工角色', `s_phone` varchar(50) NOT NULL COMMENT '员工电话', `s_nickname` varchar(50) NOT NULL COMMENT '员工昵称', `s_email` varchar(50) NOT NULL COMMENT '员工邮箱', `s_headPic` varchar(255) NOT NULL COMMENT '员工头像', PRIMARY KEY (`s_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; -- -- 转存表中的数据 `serve` -- INSERT INTO `serve` (`s_id`, `s_name`, `s_user`, `s_pwd`, `sg_id`, `s_part`, `s_phone`, `s_nickname`, `s_email`, `s_headPic`) VALUES (1, '001', '张三', '123456', 1, 0, '15864854855', '筱君涵2', '15864854855@126.com', ''), (2, '002', '李四', '123456', 2, 0, '13426854885', '清月2', '13426854885@126.com', ''), (4, '003', '王武', '123456', 1, 1, '15803559441', '清月2', '15803559441@126.com', 'images/defaultPic.png'), (5, '013', '赵茜', '123456', 1, 1, '15803559441', '清月13', '15803559441@126.com', 'images/defaultPic.png'); -- -------------------------------------------------------- -- -- 表的结构 `servegroup` -- CREATE TABLE IF NOT EXISTS `servegroup` ( `sg_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '员工组ID', `sg_name` varchar(50) NOT NULL COMMENT '员工组名称', `sg_serves` varchar(255) NOT NULL COMMENT '成员', `sg_startdate` date NOT NULL COMMENT '员工组创建时间', PRIMARY KEY (`sg_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- 转存表中的数据 `servegroup` -- INSERT INTO `servegroup` (`sg_id`, `sg_name`, `sg_serves`, `sg_startdate`) VALUES (1, '客服一组', '1,4,5', '2016-04-24'), (2, '客服二组', '2', '2016-04-24'); -- -------------------------------------------------------- -- -- 表的结构 `user` -- CREATE TABLE IF NOT EXISTS `user` ( `u_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID', `u_name` varchar(50) NOT NULL COMMENT '用户名称', `u_pwd` varchar(50) NOT NULL COMMENT '用户密码', `u_part` int(50) NOT NULL COMMENT '用户角色', PRIMARY KEY (`u_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; -- -- 转存表中的数据 `user` -- INSERT INTO `user` (`u_id`, `u_name`, `u_pwd`, `u_part`) VALUES (1, 'tammy', '802374', 1), (2, 'jason', '123456', 0); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE Endereco ( Cod_end int PRIMARY KEY AUTO_INCREMENT NOT NULL, logradouro varchar(40) NOT NULL, Bairro varchar(40) NOT NULL, Cidade varchar(40) NOT NULL, Numero int NOT NULL, Estado varchar(40) NOT NULL ); CREATE TABLE Login ( Cod_login int PRIMARY KEY AUTO_INCREMENT NOT NULL, Usuario varchar(40) NOT NULL, Senha varchar(40) NOT NULL ); CREATE TABLE TIpo_equipamento ( Cod_tipo int PRIMARY KEY AUTO_INCREMENT NOT NULL, Nome_tipo_equip varchar(40) NOT NULL, Descricao varchar(40) NOT NULL ); CREATE TABLE Fabricante ( Cod_fabricante int PRIMARY KEY AUTO_INCREMENT NOT NULL, Nome varchar(40) NOT NULL ); CREATE TABLE Manutencao ( Cod_manut int PRIMARY KEY AUTO_INCREMENT NOT NULL, Descricao_problema varchar(40) NOT NULL, Data_m date NOT NULL, Solucao varchar(40) NOT NULL ); CREATE TABLE Executa ( Cod_func int, Cod_manut int, FOREIGN KEY(Cod_func) REFERENCES Funcionario_Departamento (Cod_func,Cod_departamento), FOREIGN KEY(Cod_manut) REFERENCES Manutencao (Cod_manut) ); CREATE TABLE Necessita ( Cod_manut int, Cod_equip int, FOREIGN KEY(Cod_manut) REFERENCES Manutencao (Cod_manut), FOREIGN KEY(Cod_equip) REFERENCES Equipamento (Cod_equip) ); CREATE TABLE Possui ( Cod_tipo int, Cod_equip int, FOREIGN KEY(Cod_tipo) REFERENCES TIpo_equipamento (Cod_tipo), FOREIGN KEY(Cod_equip) REFERENCES Equipamento (Cod_equip) ); CREATE TABLE Possuem ( Cod_fabricante int, Cod_equip int, FOREIGN KEY(Cod_fabricante) REFERENCES Fabricante (Cod_fabricante) ); CREATE TABLE Funcionario_Departamento ( Cod_func int, Nome_func varchar(40) NOT NULL, Matricula int NOT NULL, CPF int NOT NULL, E-mail varchar(40), Celular int, Cargo varchar(40) NOT NULL, Cod_end int, Cod_departamento int, Nome_departamento varchar(40) NOT NULL, Chefe varchar(40) NOT NULL, PRIMARY KEY(Cod_func,Cod_departamento), FOREIGN KEY(Cod_end) REFERENCES Endereco (Cod_end) ); CREATE TABLE Equipamento ( Cod_equip int PRIMARY KEY AUTO_INCREMENT, Nome_equip varchar(40) NOT NULL, Numero_patrimonio varchar(40) NOT NULL, data_ultim_manut date, Status varchar(40) NOT NULL, Cod_func int, Cod_departamento int, FOREIGN KEY(Cod_departamento) REFERENCES Funcionario_Departamento (Cod_func,Cod_departamento) );
DO $$ DECLARE patch_exists int := _v.register_patch('create_table_measurements', ''); BEGIN IF patch_exists THEN RETURN; END IF; /*** BEGIN CODE FOR CHANGES ***/ create table t_measurements( ts timestamptz not null default now(), device_id macaddr not null, -- TODO: change to device_mac, because in other tables we have device_id as int sid smallint, type text not null, -- TODO: change to smallint val real not null, description text, version smallint ); alter table t_measurements add column installation_id int references t_installations(id) default null on delete cascade; -- timescale hypertable; we are not using space partioning at the moment; see -- http://docs.timescale.com/v0.9/api#create_hypertable-best-practices PERFORM create_hypertable('t_measurements', 'ts'); /*** END CODE FOR CHANGES ***/ END; $$;
CREATE TABLE viajante( id bigserial NOT NULL, nome character varying(255) NOT NULL, sobrenome character varying(255) NOT NULL, cpf character varying(255) NOT NULL, destino character varying(255) NOT NULL, origem character varying(255) NOT NULL, idade integer NOT NULL, bagagem integer NOT NULL, acompanhantes integer NOT NULL, PRIMARY KEY (id) );
delete from HtmlLabelIndex where id=23714 / delete from HtmlLabelInfo where indexid=23714 / INSERT INTO HtmlLabelIndex values(23714,'此系统由泛微软件授权于') / INSERT INTO HtmlLabelInfo VALUES(23714,'此系统由泛微软件授权于',7) / INSERT INTO HtmlLabelInfo VALUES(23714,'This system consists of software licenses in the weaver',8) / INSERT INTO HtmlLabelInfo VALUES(23714,'此系統由泛微軟件授權於',9) / delete from HtmlLabelIndex where id=23715 / delete from HtmlLabelInfo where indexid=23715 / INSERT INTO HtmlLabelIndex values(23715,'客服电话:86-21-50942228') / INSERT INTO HtmlLabelInfo VALUES(23715,'客服电话:86-21-50942228',7) / INSERT INTO HtmlLabelInfo VALUES(23715,'Customer Telephone :86-21-50942228',8) / INSERT INTO HtmlLabelInfo VALUES(23715,'客服電話:86-21-50942228',9) /
--Checklist 22 Quantos equipamentos tem cada medico select medico_crm, count(codigo) from equipamento group by medico_crm having count (codigo) in (select codigo from equipamento)
alter table exames alter column id_hospital type text; alter table pacientes alter column id_hospital type text; alter table desfechos alter column id_hospital type text; update desfechos set id_hospital = 'HCFMUSP' where id_hospital = '0'; UPDATE desfechos set id_hospital = 'HSL' where id_hospital = '1'; update pacientes set id_hospital = 'HCFMUSP' where id_hospital = '0'; update pacientes set id_hospital = 'HSL' where id_hospital = '1'; update exames set id_hospital = 'HCFMUSP' where id_hospital = '0'; update exames set id_hospital = 'HSL' where id_hospital = '1';
delete from HtmlLabelIndex where id=24669 / delete from HtmlLabelInfo where indexid=24669 / INSERT INTO HtmlLabelIndex values(24669,'同步考勤数据') / INSERT INTO HtmlLabelInfo VALUES(24669,'同步考勤数据',7) / INSERT INTO HtmlLabelInfo VALUES(24669,'Attendance data synchronization',8) / INSERT INTO HtmlLabelInfo VALUES(24669,'同步考勤數據',9) /
-------------------------------------------------------- -- File created - Thursday-June-21-2018 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Package FLTTYPES -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE PACKAGE "DADCORPDS"."FLTTYPES" AS TYPE "CANALRS" IS REF CURSOR RETURN FLTCANALVIEW%ROWTYPE; TYPE "RANGOHORASERVICIOCCRS" IS REF CURSOR RETURN FLTCCSERVICIOSHORAVIEW%ROWTYPE; TYPE "RANGOHORACCRS" IS REF CURSOR RETURN FLTRANGOHORARIOCCVIEW%ROWTYPE; TYPE "RANGOHORARIORS" IS REF CURSOR RETURN FLTRANGOHORARIOVIEW%ROWTYPE; TYPE "RANGOKILOSCCZONARS" IS REF CURSOR RETURN FLTRANGOKILOSCCZONAVIEW%ROWTYPE; TYPE "RANGOKILOSRS" IS REF CURSOR RETURN FLTRANGOKILOSVIEW%ROWTYPE; TYPE "SERVICIOCCRS" IS REF CURSOR RETURN FLTSERVICIOCCVIEW%ROWTYPE; TYPE "SERVICIORS" IS REF CURSOR RETURN FLTSERVICIOVIEW%ROWTYPE; TYPE "TRONCALRS" IS REF CURSOR RETURN FLTTRONCALESVIEW%ROWTYPE; END; /
-- SQL Script for MySQL -- -- Table structure for table `curse` -- DROP TABLE IF EXISTS `curse`; CREATE TABLE `curse` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nume` varchar(45) NOT NULL, `vreme` varchar(45) NOT NULL, `data` datetime NOT NULL, PRIMARY KEY (`id`) ); -- -- Table structure for table `detalii_cursa` -- DROP TABLE IF EXISTS `detalii_cursa`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `detalii_cursa` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_cursa` int(11) NOT NULL, `nume_jocheu` varchar(45) NOT NULL, `nume_cal` varchar(45) NOT NULL, `cota` decimal(10,0) NOT NULL, PRIMARY KEY (`id`) ); -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(128) NOT NULL, `password` varchar(128) NOT NULL, `email` varchar(128) NOT NULL, `nume` varchar(128) NOT NULL, `prenume` varchar(128) NOT NULL, `adresa` varchar(128) NOT NULL, `balanta` decimal(10,0) NOT NULL, `rol` varchar(10) NOT NULL, `data_nastere` varchar(45) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`,`email`) );
UPDATE groups SET rules=CONCAT(rules, ',Apps:Edit') WHERE name='Staff' OR name='Senior App Reviewers';
select TZ_APPPRO_ID, TZ_SORT_NUM, TZ_APPPRO_NAME from PS_TZ_APPPRO_STP_T where TZ_APPPRO_TMP_ID=? order by TZ_SORT_NUM asc limit ?,?
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 28, 2019 at 01:00 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `dppl` -- -- -------------------------------------------------------- -- -- Table structure for table `stok barang` -- CREATE TABLE `stok barang` ( `id_barang` int(11) NOT NULL, `nama_barang` varchar(100) NOT NULL, `jml_barang` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `stok barang` -- INSERT INTO `stok barang` (`id_barang`, `nama_barang`, `jml_barang`) VALUES (1, 'Anggur', 100), (2, 'Anggur Merah', 100), (3, 'Anggur Putih', 100), (4, 'Strawberry', 100), (5, 'Apel', 100); -- -- Indexes for dumped tables -- -- -- Indexes for table `stok barang` -- ALTER TABLE `stok barang` ADD PRIMARY KEY (`id_barang`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `stok barang` -- ALTER TABLE `stok barang` MODIFY `id_barang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- MySQL Script generated by MySQL Workbench -- Mon Sep 16 21:27:02 2019 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; -- ----------------------------------------------------- -- Schema bancofeelsmusic -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema bancofeelsmusic -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `bancofeelsmusic` DEFAULT CHARACTER SET utf8 ; USE `bancofeelsmusic` ; -- ----------------------------------------------------- -- Table `bancofeelsmusic`.`sentimento` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `bancofeelsmusic`.`sentimento` ( `idsentimento` INT AUTO_INCREMENT NOT NULL, `nome` VARCHAR(45) NOT NULL, PRIMARY KEY (`idsentimento`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `bancofeelsmusic`.`genero` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `bancofeelsmusic`.`genero` ( `idgenero` INT AUTO_INCREMENT NOT NULL, `nome` VARCHAR(45) NOT NULL, `sentimento_idsentimento` INT NOT NULL, PRIMARY KEY (`idgenero`), INDEX `fk_genero_sentimento1_idx` (`sentimento_idsentimento` ASC), CONSTRAINT `fk_genero_sentimento1` FOREIGN KEY (`sentimento_idsentimento`) REFERENCES `bancofeelsmusic`.`sentimento` (`idsentimento`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `bancofeelsmusic`.`tipo_usuario` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `bancofeelsmusic`.`tipo_usuario` ( `idtipo_usuario` INT NOT NULL, `descricao_usuario` VARCHAR(45) NULL, PRIMARY KEY (`idtipo_usuario`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `bancofeelsmusic`.`usuario` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `bancofeelsmusic`.`usuario` ( `idusuario` INT AUTO_INCREMENT NOT NULL, `nome` VARCHAR(45) NOT NULL, `data_nascimento` DATE NOT NULL, `email` VARCHAR(80) NOT NULL, `senha` VARCHAR(50) NOT NULL, `nickname` VARCHAR(80) NOT NULL, `tipo_usuario_idtipo_usuario1` INT NOT NULL, `sentimento_idsentimento` INT NOT NULL, PRIMARY KEY (`idusuario`), INDEX `fk_usuario_tipo_usuario1_idx` (`tipo_usuario_idtipo_usuario1` ASC), INDEX `fk_usuario_sentimento1_idx` (`sentimento_idsentimento` ASC), CONSTRAINT `fk_usuario_tipo_usuario1` FOREIGN KEY (`tipo_usuario_idtipo_usuario1`) REFERENCES `bancofeelsmusic`.`tipo_usuario` (`idtipo_usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_usuario_sentimento1` FOREIGN KEY (`sentimento_idsentimento`) REFERENCES `bancofeelsmusic`.`sentimento` (`idsentimento`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `bancofeelsmusic`.`artista` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `bancofeelsmusic`.`artista` ( `idartista` INT AUTO_INCREMENT NOT NULL, `nome` VARCHAR(45) NOT NULL, PRIMARY KEY (`idartista`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `bancofeelsmusic`.`album` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `bancofeelsmusic`.`album` ( `idalbum` INT AUTO_INCREMENT NOT NULL, `ano_lancamento` DATE NOT NULL, `nome` VARCHAR(45) NOT NULL, `artista_idartista` INT NOT NULL, PRIMARY KEY (`idalbum`), INDEX `fk_album_artista1_idx` (`artista_idartista` ASC), CONSTRAINT `fk_album_artista1` FOREIGN KEY (`artista_idartista`) REFERENCES `bancofeelsmusic`.`artista` (`idartista`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `bancofeelsmusic`.`musica` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `bancofeelsmusic`.`musica` ( `idmusica` INT AUTO_INCREMENT NOT NULL, `titulo` VARCHAR(45) NOT NULL, `musica_idgenero` INT NOT NULL, `album_idalbum` INT NOT NULL, PRIMARY KEY (`idmusica`), INDEX `fk_musica_musica1_idx` (`musica_idgenero` ASC), INDEX `fk_musica_album1_idx` (`album_idalbum` ASC) , CONSTRAINT `fk_musica_musica1` FOREIGN KEY (`musica_idgenero`) REFERENCES `bancofeelsmusic`.`genero` (`idgenero`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_musica_album1` FOREIGN KEY (`album_idalbum`) REFERENCES `bancofeelsmusic`.`album` (`idalbum`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; INSERT INTO `bancofeelsmusic`.`tipo_usuario` (`idtipo_usuario`, `descricao_usuario`) VALUES ('1', 'Usuario'); INSERT INTO `bancofeelsmusic`.`tipo_usuario` (`idtipo_usuario`, `descricao_usuario`) VALUES ('2', 'Adm'); INSERT INTO `bancofeelsmusic`.`sentimento` (`idsentimento`, `nome`) VALUES ('1', 'Apaixonado '); INSERT INTO `bancofeelsmusic`.`sentimento` (`idsentimento`, `nome`) VALUES ('2', 'Com vontade de cantar '); INSERT INTO `bancofeelsmusic`.`sentimento` (`idsentimento`, `nome`) VALUES ('3', 'Feliz '); INSERT INTO `bancofeelsmusic`.`sentimento` (`idsentimento`, `nome`) VALUES ('4', 'Inspirado '); INSERT INTO `bancofeelsmusic`.`sentimento` (`idsentimento`, `nome`) VALUES ('5', 'Querendo Nostalgia '); INSERT INTO `bancofeelsmusic`.`sentimento` (`idsentimento`, `nome`) VALUES ('6', 'Momento com Deus '); INSERT INTO `bancofeelsmusic`.`sentimento` (`idsentimento`, `nome`) VALUES ('7', 'Triste '); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('1', 'Funk', '1'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('2', 'Hip Hop/Rap', '1'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('3', 'Música eletrônica', '1'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('4', 'Pagode/Samba', '1'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('5', 'Rock/Pop/Mpb', '1'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('6', 'Sertanejo', '1'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('7', 'Funk', '2'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('8', 'Hip Hop/Rap', '2'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('9', 'Música eletrônica', '2'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('10', 'Pagode/Samba', '2'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('11', 'Rock/Pop/Mpb', '2'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('12', 'Sertanejo', '2'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('13', 'Funk', '3'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('14', 'Hip Hop/Rap', '3'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('15', 'Música eletrônica', '3'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('16', 'Pagode/Samba', '3'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('17', 'Rock/Pop/Mpb', '3'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('18', 'Sertanejo', '3'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('19', 'Funk', '4'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('20', 'Hip Hop/Rap', '4'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('21', 'Música eletrônica', '4'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('22', 'Pagode/Samba', '4'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('23', 'Rock/Pop/Mpb', '4'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('24', 'Sertanejo', '4'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('25', 'Funk', '5'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('26', 'Hip Hop/Rap', '5'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('27', 'Música eletrônica', '5'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('28', 'Pagode/Samba', '5'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('29', 'Rock/Pop/Mpb', '5'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('30', 'Sertanejo', '5'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('31', 'Funk', '6'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('32', 'Hip Hop/Rap', '6'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('33', 'Música eletrônica', '6'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('34', 'Pagode/Samba', '6'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('35', 'Rock/Pop/Mpb', '6'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('36', 'Sertanejo', '6'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('37', 'Funk', '7'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('38', 'Hip Hop/Rap', '7'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('39', 'Música eletrônica', '7'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('40', 'Pagode/Samba', '7'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('41', 'Rock/Pop/Mpb', '7'); INSERT INTO `bancofeelsmusic`.`genero` (`idgenero`, `nome`, `sentimento_idsentimento`) VALUES ('42', 'Sertanejo', '7'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('1', 'Annita'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('2', 'Lexa'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('3', 'Kevinho'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('4', 'Marilia Mendonça'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('5', 'Henrique e Juliano'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('6', 'Gusttavo Lima'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('7', 'Turma do Pagode'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('8', 'Dilsinho'); INSERT INTO `bancofeelsmusic`.`artista` (`idartista`, `nome`) VALUES ('9', 'Thiaguinho'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('1', '2019-01-01', 'Kisses', '1'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('2', '2019-01-01', 'Só depois do carnaval', '2'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('3', '2019-01-01', 'O Grave Bater', '3'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('4', '2019-01-01', 'Todos os cantos', '4'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('5', '2019-01-01', 'Novas Histórias', '5'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('6', '2019-01-01', 'O Embaixador', '6'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('7', '2019-01-01', 'O Som das Multidões', '7'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('8', '2019-01-01', 'Terra do nunca', '8'); INSERT INTO `bancofeelsmusic`.`album` (`idalbum`, `ano_lancamento`, `nome`, `artista_idartista`) VALUES ('9', '2019-01-01', 'Tardezinha', '9'); INSERT INTO `bancofeelsmusic`.`usuario` (`idusuario`, `nome`, `data_nascimento`, `email`, `senha`, `nickname`, `tipo_usuario_idtipo_usuario1`, `sentimento_idsentimento`) VALUES ('1', 'Bruna Ribeiro', '1995-09-18', 'brunaeita@hotmail.com', 'bru123', 'Bru', '2', '1'); INSERT INTO `bancofeelsmusic`.`usuario` (`idusuario`, `nome`, `data_nascimento`, `email`, `senha`, `nickname`, `tipo_usuario_idtipo_usuario1`, `sentimento_idsentimento`) VALUES ('2', 'Guilherme Koerber', '2001-11-10', 'gk01@hotmail.com', 'gui123', 'Bru', '2', '1'); INSERT INTO `bancofeelsmusic`.`usuario` (`idusuario`, `nome`, `data_nascimento`, `email`, `senha`, `nickname`, `tipo_usuario_idtipo_usuario1`, `sentimento_idsentimento`) VALUES ('3', 'Felipe Rangel', '1990-06-20', 'feliperangel@hotmail.com', 'lipe123', 'Lipe', '2', '1'); INSERT INTO `bancofeelsmusic`.`usuario` (`idusuario`, `nome`, `data_nascimento`, `email`, `senha`, `nickname`, `tipo_usuario_idtipo_usuario1`, `sentimento_idsentimento`) VALUES ('4', 'Roberto Casagrande', '1998-03-18', 'casaroberto@hotmail.com', 'casa123', 'Casa', '2', '1'); INSERT INTO `bancofeelsmusic`.`usuario` (`idusuario`, `nome`, `data_nascimento`, `email`, `senha`, `nickname`, `tipo_usuario_idtipo_usuario1`, `sentimento_idsentimento`) VALUES ('5', 'Bruna Ribeiro', '1998-03-18', 'brunaeita@gmail.com', 'bruna123', 'bruna', '1', '1'); UPDATE `usuario` SET `nickname` = 'GK' WHERE `usuario`.`idusuario` = 2; ALTER TABLE `usuario` ADD UNIQUE (`nickname`); ALTER TABLE `usuario` ADD UNIQUE (`email`); ALTER TABLE `musica` ADD `caminho` VARCHAR(80); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (1, 'Fazer Falta', 1,3, '../../assets/musics/Fazer Falta.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (2, 'On The Floor', 3,3, '../../assets/musics/On the floor (reduzida).mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (3, 'Troféu do Ano', 1,3, '../../assets/musics/Troféu do Ano.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (4, 'Pirata e Tesouro', 4,9, '../../assets/musics/Pirata e Tesouro (reduzida).mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (5, 'A Dama E O Vagabundo', 6,6, '../../assets/musics/A Dama e o Vagabundo (reduzida).mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (6, 'Sunshine', 3,2, '../../assets/musics/Sunshine (reduzida).mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (7, 'Turn Of The Lights', 3,2, '../../assets/musics/Turn of the lights (reduzida).mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (8, 'Viva a Vida', 4,9, '../../assets/musics/Turn of the lights (reduzida).mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (9, 'Chuva de Novembro - Projota', 2,5, '../../assets/musics/Chuva de Novembro - Projota.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (10, 'The One You Loved Is Gone - Slash', 5,8, '../../assets/musics/The One You Loved Is Gone - Slash.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (11, 'Partiu - MC Kekel', 7,2, '../../assets/musics/Partiu - MC Kekel.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (12, 'Eterna Sacanagem - MC Jottape, MC Kekel e Kevinho', 7,2, '../../assets/musics/Eterna Sacanagem - MC Jottape, MC Kekel e Kevinho.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (13, 'Goosebumps - Travis Scott ft. Kendrick Lamar', 8,4, '../../assets/musics/Goosebumps - Travis Scott ft. Kendrick Lamar.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (14, 'Estilo Cachorro - Racionais MCs', 8,7, '../../assets/musics/Estilo Cachorro - Racionais MCs.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (15, 'In The Dark - Vintage Culture ft. Fancy INC', 9,2, '../../assets/musics/In The Dark - Vintage Culture ft. Fancy INC.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (16, 'Hear Me Now - Alok, Bruno Martini e Zeeba', 9,3, '../../assets/musics/Hear Me Now - Alok, Bruno Martini e Zeeba.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (17, 'Tá Escrito - Grupo Revelação', 10,2, '../../assets/musics/Tá Escrito - Grupo Revelação.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (18, 'Camisa 10 - Turma do Pagode', 10,8, '../../assets/musics/Camisa 10 - Turma do Pagode.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (19, 'Sweet Child Of Mine - Guns N Roses', 11,5, '../../assets/musics/Sweet Child Of Mine - Guns N Roses.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (20, 'We Will Rock You - Queen', 11,7, '../../assets/musics/We Will Rock You - Queen.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (21, 'Infiel - Marília Mendonça', 12,6, '../../assets/musics/Infiel - Marília Mendonça.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (22, 'Regime Fechado -Simone e Simaria', 12,9, '../../assets/musics/Regime Fechado - Simone e Simaria.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (23, 'Always - Bon Jovi', 5,3, '../../assets/musics/Always - Bon Jovi.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (24, 'É o Amor - Zezé Di Camargo e Luciano', 6,2, '../../assets/musics/É o Amor - Zezé Di Camargo e Luciano.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (25, 'Cerol na Mão - Bonde do Tigrão', 25,1, '../../assets/musics/Cerol na Mão - Bonde do Tigrão.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (26, 'Smack That - Akon ft. Eminem', 26,8, '../../assets/musics/Smack That - Akon ft. Eminem.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (27, 'Pa Panamericano - El Original', 27,6, '../../assets/musics/Pa Panamericano - El Original.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (28, 'Brincadeira de Criança - Molejo', 28,3, '../../assets/musics/Brincadeira de Criança - Molejo.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (29, 'We Will Rock You - Queen', 29,2, '../../assets/musics/We Will Rock You - Queen.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (30, 'Estrada da Vida - Milionário e José Rico', 30,7, '../../assets/musics/Estrada da Vida - Milionário e José Rico.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (31, 'Poesia Acústica 7 - Céu Azul', 2,1, '../../assets/musics/Poesia Acústica 7 - Céu Azul.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (32, 'Aliança no Dedo - Turma do Pagode', 4,7, '../../assets/musics/Aliança no Dedo - Turma do Pagode.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (33, 'Evoluiu- MC Kevin O Chris', 19,1, '../../assets/musics/Evoluiu- MC Kevin O Chris.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (34, 'Garupa 2 - DJ Henrique de Ferraz', 19,6, '../../assets/musics/Garupa 2 - DJ Henrique de Ferraz.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (35, 'Levanta e Anda - Emicida', 20,4, '../../assets/musics/Levanta e Anda - Emicida.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (36, 'Not Afraid - Eminem', 20,9, '../../assets/musics/Not Afraid - Eminem.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (37, 'My Girl - Vintage Culture e Fancy INC', 21,2, '../../assets/musics/My Girl - Vintage Culture e Fancy INC.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (38, 'Hey Hey Hey - Chemical Surf (Doozie Remix)', 21,4, '../../assets/musics/Hey Hey Hey - Chemical Surf (Doozie Remix).mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (39, 'Saideira - Atitude 67', 22,8, '../../assets/musics/Saideira - Atitude 67.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (40, 'Vamo Que Vamo - Thiaguinho', 22,3, '../../assets/musics/Vamo Que Vamo - Thiaguinho.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (41, 'Shoot To Thrill - ACDC', 23,1, '../../assets/musics/Shoot To Thrill - ACDC.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (42, 'Sweet Child Of Mine - Guns N Roses', 23,4, '../../assets/musics/Sweet Child Of Mine - Guns N Roses.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (43, 'Sapequinha - Eduardo Costa', 24,2, '../../assets/musics/Sapequinha - Eduardo Costa.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (44, 'Jenifer - Gabriel Diniz', 24,8, '../../assets/musics/Jenifer - Gabriel Diniz.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (45, 'Rabiola - Kevinho', 13,6, '../../assets/musics/Rabiola - Kevinho.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (46, 'Invocada - Ludmilla e Leo Santana', 13,1, '../../assets/musics/Invocada - Ludmilla e Leo Santana.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (47, 'No Guidance - Chris Brown ft Drake', 14,8, '../../assets/musics/No Guidance - Chris Brown ft Drake.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (48, 'Da Ponte Pra Cá - Racionais MCs', 14,2, '../../assets/musics/Da Ponte Pra Cá - Racionais MCs.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (49, 'Feel The Vibe (UH UH) - Dubdogz e The Fish House', 15,4, '../../assets/musics/Feel The Vibe (UH UH) - Dubdogz e The Fish House.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (50, 'Me Gusta - Kvsh, Beowlf e Flakk', 15,2, '../../assets/musics/Me Gusta - Kvsh, Beowlf e Flakk.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (51, 'Atrasadinha - Felipe Araújo e Ferrugem', 16,9, '../../assets/musics/Atrasadinha - Felipe Araújo e Ferrugem.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (52, 'Sua Mãe Vai Me Amar - Turma do Pagode', 16,5, '../../assets/musics/Sua Mãe Vai Me Amar - Turma do Pagode.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (53, 'Mind Your Manners - Slash', 17,1, '../../assets/musics/Mind Your Manners - Slash.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (54, 'Cant Stop - Red Hot Chili Peppers - Bon Jovi', 17,7, '../../assets/musics/Cant Stop - Red Hot Chili Peppers.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (55, 'Ce Acredita - João Neto e Frederico ft. Kevinho', 18,2, '../../assets/musics/Ce Acredita - João Neto e Frederico ft. Kevinho.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (56, 'Avisa Aí - João Neto e Frederico ft. Kevinho', 18,7, '../../assets/musics/Avisa Aí - João Neto e Frederico ft. Kevinho.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (57, 'Só Quem É Cristão - DJ Robinho de Jesus', 31,8, '../../assets/musics/Só Quem É Cristão - DJ Robinho de Jesus.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (58, 'Perdão a Cura Para o Ódio - Mensageiros da Profecia', 32,2, '../../assets/musics/Perdão a Cura Para o Ódio - Mensageiros da Profecia.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (59, 'Tu És Real- DJ PV', 33,7, '../../assets/musics/Tu És Real- DJ PV.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (60, 'Você Precisa Crer - Grupo Dupla Honra', 34,9, '../../assets/musics/Você Precisa Crer - Grupo Dupla Honra.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (61, 'Cartas Ao Remetente - Rose de Saron', 35,7, '../../assets/musics/Cartas Ao Remetente - Rose de Saron.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (62, 'Chuva de Poder - André & Felipe', 36,3, '../../assets/musics/Chuva de Poder - André & Felipe.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (63, 'Invocada - Ludmilla e Leo Santana', 37,7, '../../assets/musics/Invocada - Ludmilla e Leo Santana.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (64, 'No Guidance - Chris Brown ft Drake', 38,7, '../../assets/musics/No Guidance - Chris Brown ft Drake.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (65, 'I Will Find - Vintage Culture', 39,7, '../../assets/musics/I Will Find - Vintage Culture.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (66, 'Deu a Louca - Turma do Pagode ft. MC Guimê', 40,7, '../../assets/musics/Deu a Louca - Turma do Pagode ft. MC Guimê.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (67, 'By The Sword - Slash', 41,7, '../../assets/musics/By The Sword - Slash.mp3'); INSERT `musica` (`idmusica`, `titulo`, `musica_idgenero`, `album_idalbum`, `caminho`) VALUES (68, 'Boate Azul - Bruno e Marrone', 42,7, '../../assets/musics/Boate Azul - Bruno e Marrone.mp3');
# -------------------------------------------------------- # Script de création de la base de données # BdEdition et de ses tables # -------------------------------------------------------- ## Création de la base de données avec vérification ## de sa non-existence. CREATE DATABASE IF NOT EXISTS BdEdition; ## Création des tables USE BdEdition; # Création de la table tblAuteur CREATE TABLE tblAuteur ( noAuteur varchar(11) NOT NULL, nomAuteur varchar(25) NOT NULL, prenAuteur varchar(20) NOT NULL, telAuteur varchar(14) NOT NULL, noCiviqueAuteur varchar(6) NULL, rueAuteur varchar(30) NULL, villeAuteur varchar(45) NULL, paysAuteur varchar(30) NULL, codePostalAuteur varchar(9) NULL, contratAuteur bit NOT NULL ); # Création de la table tblEditeur CREATE TABLE tblEditeur ( noEditeur char(4) NOT NULL, nomEditeur varchar(40) NULL, villeEditeur varchar(20) NULL, paysEditeur varchar(30) NULL ); # Création de la table tblLivre CREATE TABLE tblLivre ( ISBN char(17) NOT NULL, titreLivre varchar(80) NOT NULL, typeLivre char(12) NOT NULL, prixLivre decimal(5,2) NULL, avanceLivre decimal(8,2) NULL, droitsLivre int NULL, cumulAnLivre int NULL, notesLivre varchar(200) NULL, datePubLivre date NOT NULL, noEditeur char(4) NULL ); # Création de la table tblLivreAuteur CREATE TABLE tblLivreAuteur ( noAuteur varchar(11) NOT NULL, ISBN char(17) NOT NULL, pourcDroits int NULL ); # Création de la table tblEmploi CREATE TABLE tblEmploi ( noEmploi smallint NOT NULL, descEmploi varchar(50) NOT NULL, salaireMin int NOT NULL, salaireMax int NOT NULL ); # Création de la table tblEmploye CREATE TABLE tblEmploye ( noEmploye char(9) NOT NULL, nomEmploye varchar(30) NOT NULL, prenomEmploye varchar(20) NOT NULL, initiale varchar(1) NULL, salaireEmploye int NOT NULL, dateEmbauche date NOT NULL, noEmploi smallint NOT NULL, noEditeur char(4) NOT NULL ); # Création de la table tblMagasin CREATE TABLE tblMagasin ( noMag char(4) NOT NULL, nomMag varchar(40) NULL, noCiviqueMag varchar(6) NULL, rueMag varchar(30) NULL, villeMag varchar(45) NULL, provinceMag varchar(3) NULL, codepostalMag char(6) NULL, noTelephoneMag char(10) NULL ); # Création de la table tblCommande CREATE TABLE tblCommande ( noCmd varchar(10) NOT NULL, dateCmd date NOT NULL, modePaiement varchar(12) NOT NULL, noMag char(4) NOT NULL ); # Création de la table tblLivreCommande CREATE TABLE tblLivreCommande ( noCmd varchar(10) NOT NULL, noLivre varchar(6) NOT NULL, qtCmd smallint NOT NULL ); ## Création des tables est terminé
-- MySQL dump 10.13 Distrib 5.7.13, for Linux (x86_64) -- -- Host: localhost Database: volcano -- ------------------------------------------------------ -- Server version 5.7.13-0ubuntu0.16.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `bus` -- DROP TABLE IF EXISTS `bus`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bus` ( `id_bus` int(11) NOT NULL AUTO_INCREMENT, `plaque` varchar(255) NOT NULL, `saved_date` datetime DEFAULT NULL, `seats` int(11) NOT NULL, `voided` bit(1) NOT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id_bus`), UNIQUE KEY `UK_1h6lus9a4opxxh36fnh0d7n85` (`plaque`), KEY `FK_n9vw3bucqcpxmgv65lwvqiodq` (`save_by_id`), CONSTRAINT `FK_n9vw3bucqcpxmgv65lwvqiodq` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `bus` -- LOCK TABLES `bus` WRITE; /*!40000 ALTER TABLE `bus` DISABLE KEYS */; INSERT INTO `bus` VALUES (1,'RAC337x','2016-07-28 14:12:00',2,'\0',1),(2,'RAC450P','2016-07-28 19:13:07',32,'\0',2); /*!40000 ALTER TABLE `bus` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `customer` -- DROP TABLE IF EXISTS `customer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `customer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `saved_date` datetime DEFAULT NULL, `telephone` varchar(255) DEFAULT NULL, `voided` bit(1) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UK_crkjmjk1oj8gb6j6t5kt7gcxm` (`name`), KEY `FK_cc276frdfkj3xs6a6s8hapcy3` (`save_by_id`), CONSTRAINT `FK_cc276frdfkj3xs6a6s8hapcy3` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customer` -- LOCK TABLES `customer` WRITE; /*!40000 ALTER TABLE `customer` DISABLE KEYS */; INSERT INTO `customer` VALUES (1,'Uwimana','2016-07-28 14:10:50','0788888888','\0',1),(2,'Nicole','2016-07-28 14:39:01','075666666','\0',2); /*!40000 ALTER TABLE `customer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `driver` -- DROP TABLE IF EXISTS `driver`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `driver` ( `id` int(11) NOT NULL AUTO_INCREMENT, `driving_lincence` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `saved_date` datetime DEFAULT NULL, `voided` bit(1) DEFAULT NULL, `bus_idBus` int(11) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_slkqrdps15vgfx7qjjgdr3s49` (`bus_idBus`), KEY `FK_ad6gnyfu5y5nc17mxc1omlrqb` (`save_by_id`), CONSTRAINT `FK_ad6gnyfu5y5nc17mxc1omlrqb` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`), CONSTRAINT `FK_slkqrdps15vgfx7qjjgdr3s49` FOREIGN KEY (`bus_idBus`) REFERENCES `bus` (`id_bus`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `driver` -- LOCK TABLES `driver` WRITE; /*!40000 ALTER TABLE `driver` DISABLE KEYS */; /*!40000 ALTER TABLE `driver` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `journey` -- DROP TABLE IF EXISTS `journey`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `journey` ( `id` int(11) NOT NULL AUTO_INCREMENT, `date` date DEFAULT NULL, `saved_date` datetime DEFAULT NULL, `time_departure` varchar(255) DEFAULT NULL, `voided` bit(1) DEFAULT NULL, `bus_idBus` int(11) DEFAULT NULL, `ligne_idLigne` int(11) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_c4kr8dhmhisbnf34apj83u6n4` (`bus_idBus`), KEY `FK_kx3qabsa84y49i66ljlfc8llm` (`ligne_idLigne`), KEY `FK_2jcp2xty3cvdvo4wybry8tdtq` (`save_by_id`), CONSTRAINT `FK_2jcp2xty3cvdvo4wybry8tdtq` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`), CONSTRAINT `FK_c4kr8dhmhisbnf34apj83u6n4` FOREIGN KEY (`bus_idBus`) REFERENCES `bus` (`id_bus`), CONSTRAINT `FK_kx3qabsa84y49i66ljlfc8llm` FOREIGN KEY (`ligne_idLigne`) REFERENCES `ligne` (`id_ligne`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `journey` -- LOCK TABLES `journey` WRITE; /*!40000 ALTER TABLE `journey` DISABLE KEYS */; INSERT INTO `journey` VALUES (1,'2016-07-28','2016-07-28 14:37:55','23:15','\0',1,1,2),(2,'2016-07-28','2016-07-28 15:05:37','15:15','\0',1,1,2); /*!40000 ALTER TABLE `journey` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `ligne` -- DROP TABLE IF EXISTS `ligne`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ligne` ( `id_ligne` int(11) NOT NULL AUTO_INCREMENT, `from_destination` varchar(255) DEFAULT NULL, `price` int(11) DEFAULT NULL, `saved_date` datetime DEFAULT NULL, `time_length` int(11) DEFAULT NULL, `to_destination` varchar(255) DEFAULT NULL, `voided` bit(1) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id_ligne`), KEY `FK_pwkkb4bbxuditsdoo0nf4v0du` (`save_by_id`), CONSTRAINT `FK_pwkkb4bbxuditsdoo0nf4v0du` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `ligne` -- LOCK TABLES `ligne` WRITE; /*!40000 ALTER TABLE `ligne` DISABLE KEYS */; INSERT INTO `ligne` VALUES (1,'Kigali',1000,'2016-07-28 19:08:16',1,'Muhanga','\0',2),(3,'Kigali',4500,'2016-07-28 19:13:34',3,'Ruhengeri','\0',2); /*!40000 ALTER TABLE `ligne` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `ligne_assigned_bus` -- DROP TABLE IF EXISTS `ligne_assigned_bus`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ligne_assigned_bus` ( `ligne_idLigne` int(11) NOT NULL, `assigned_bus_idBus` int(11) NOT NULL, UNIQUE KEY `UK_jukpdi2mr45aj9attvnvdwuql` (`assigned_bus_idBus`), KEY `FK_4n89lpxw3g0uxc4jm6d7qem7c` (`ligne_idLigne`), CONSTRAINT `FK_4n89lpxw3g0uxc4jm6d7qem7c` FOREIGN KEY (`ligne_idLigne`) REFERENCES `ligne` (`id_ligne`), CONSTRAINT `FK_jukpdi2mr45aj9attvnvdwuql` FOREIGN KEY (`assigned_bus_idBus`) REFERENCES `bus` (`id_bus`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `ligne_assigned_bus` -- LOCK TABLES `ligne_assigned_bus` WRITE; /*!40000 ALTER TABLE `ligne_assigned_bus` DISABLE KEYS */; INSERT INTO `ligne_assigned_bus` VALUES (1,1),(3,2); /*!40000 ALTER TABLE `ligne_assigned_bus` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `payment` -- DROP TABLE IF EXISTS `payment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `payment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `date_payment` datetime DEFAULT NULL, `saved_date` datetime DEFAULT NULL, `time_payment` varchar(255) DEFAULT NULL, `voided` bit(1) DEFAULT NULL, `reservation_id` int(11) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, `amount` int(11) DEFAULT '0', PRIMARY KEY (`id`), KEY `FK_3llq7oxcs9j7vlujfdf16jmu` (`reservation_id`), KEY `FK_l6104ilx530s9n09th78hbxch` (`save_by_id`), CONSTRAINT `FK_3llq7oxcs9j7vlujfdf16jmu` FOREIGN KEY (`reservation_id`) REFERENCES `reservation` (`id`), CONSTRAINT `FK_l6104ilx530s9n09th78hbxch` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `payment` -- LOCK TABLES `payment` WRITE; /*!40000 ALTER TABLE `payment` DISABLE KEYS */; INSERT INTO `payment` VALUES (1,'2016-07-28 00:00:00','2016-07-28 18:02:56','18:02:51','\0',1,2,900),(2,'2016-07-28 00:00:00','2016-07-28 19:08:55','19:08:49','\0',2,2,1000); /*!40000 ALTER TABLE `payment` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `price` -- DROP TABLE IF EXISTS `price`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `price` ( `id` int(11) NOT NULL AUTO_INCREMENT, `actual_amount` bit(1) NOT NULL, `price_amount` int(11) NOT NULL, `ligne_idLigne` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_8qbj9jngt8kivpdynggv3xfx9` (`ligne_idLigne`), CONSTRAINT `FK_8qbj9jngt8kivpdynggv3xfx9` FOREIGN KEY (`ligne_idLigne`) REFERENCES `ligne` (`id_ligne`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `price` -- LOCK TABLES `price` WRITE; /*!40000 ALTER TABLE `price` DISABLE KEYS */; /*!40000 ALTER TABLE `price` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `price_histors` -- DROP TABLE IF EXISTS `price_histors`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `price_histors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `actual_amount` tinyblob, `end_date` datetime DEFAULT NULL, `price_amount` tinyblob, `saved_date` datetime DEFAULT NULL, `start_date` datetime DEFAULT NULL, `voided` bit(1) DEFAULT NULL, `ligne_idLigne` int(11) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_mb7n4lxk52oh16mp9agswv1f1` (`ligne_idLigne`), KEY `FK_7n70i4yhnrmkvptiyerlhepka` (`save_by_id`), CONSTRAINT `FK_7n70i4yhnrmkvptiyerlhepka` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`), CONSTRAINT `FK_mb7n4lxk52oh16mp9agswv1f1` FOREIGN KEY (`ligne_idLigne`) REFERENCES `ligne` (`id_ligne`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `price_histors` -- LOCK TABLES `price_histors` WRITE; /*!40000 ALTER TABLE `price_histors` DISABLE KEYS */; /*!40000 ALTER TABLE `price_histors` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `reservation` -- DROP TABLE IF EXISTS `reservation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reservation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `date` date DEFAULT NULL, `paid` bit(1) DEFAULT NULL, `saved_date` datetime DEFAULT NULL, `time` varchar(255) DEFAULT NULL, `voided` bit(1) DEFAULT NULL, `customer_id` int(11) DEFAULT NULL, `ligne_idLigne` int(11) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_69tigr4wbkrwhfef2l1mp6vgu` (`customer_id`), KEY `FK_bb00gvmrj9da8atokj747nmqj` (`ligne_idLigne`), KEY `FK_kgmh9ays5ang5s90oktkp6baa` (`save_by_id`), CONSTRAINT `FK_69tigr4wbkrwhfef2l1mp6vgu` FOREIGN KEY (`customer_id`) REFERENCES `customer` (`id`), CONSTRAINT `FK_bb00gvmrj9da8atokj747nmqj` FOREIGN KEY (`ligne_idLigne`) REFERENCES `ligne` (`id_ligne`), CONSTRAINT `FK_kgmh9ays5ang5s90oktkp6baa` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `reservation` -- LOCK TABLES `reservation` WRITE; /*!40000 ALTER TABLE `reservation` DISABLE KEYS */; INSERT INTO `reservation` VALUES (1,'2016-07-28','','2016-07-28 14:38:36','23 : 15 ','\0',1,1,2),(2,'2016-07-28','','2016-07-28 15:36:54','15 : 15 ','\0',2,1,2),(3,'2016-07-28','\0','2016-07-28 15:37:14','15 : 15 ','\0',1,1,2),(4,'2016-07-28','\0','2016-07-28 15:37:31','15 : 15 ','\0',2,1,2); /*!40000 ALTER TABLE `reservation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role` -- DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role` ( `id` int(11) NOT NULL AUTO_INCREMENT, `saved_date` datetime DEFAULT NULL, `user_role` varchar(255) NOT NULL, `voided` bit(1) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_10nsvj0l8fts3n4uv25kdhv3n` (`save_by_id`), CONSTRAINT `FK_10nsvj0l8fts3n4uv25kdhv3n` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role` -- LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; INSERT INTO `role` VALUES (1,NULL,'Admin','\0',NULL); /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `ticket` -- DROP TABLE IF EXISTS `ticket`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ticket` ( `id_ticket` int(11) NOT NULL AUTO_INCREMENT, `saved_date` datetime DEFAULT NULL, `voided` bit(1) DEFAULT NULL, `bus_idBus` int(11) DEFAULT NULL, `journey_id` int(11) DEFAULT NULL, `payment_id` int(11) DEFAULT NULL, `reservation_id` int(11) DEFAULT NULL, `save_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id_ticket`), KEY `FK_6m527vv79leo8lssr4th6el7e` (`bus_idBus`), KEY `FK_h7xai132en8apysdo3fflenvn` (`journey_id`), KEY `FK_1lsimdp5kdxly2nfpxke69vnb` (`payment_id`), KEY `FK_lu9d2ii2dul4ael518na9w521` (`reservation_id`), KEY `FK_teuy2g8y0u98nqkgxs14f3pan` (`save_by_id`), CONSTRAINT `FK_1lsimdp5kdxly2nfpxke69vnb` FOREIGN KEY (`payment_id`) REFERENCES `payment` (`id`), CONSTRAINT `FK_6m527vv79leo8lssr4th6el7e` FOREIGN KEY (`bus_idBus`) REFERENCES `bus` (`id_bus`), CONSTRAINT `FK_h7xai132en8apysdo3fflenvn` FOREIGN KEY (`journey_id`) REFERENCES `journey` (`id`), CONSTRAINT `FK_lu9d2ii2dul4ael518na9w521` FOREIGN KEY (`reservation_id`) REFERENCES `reservation` (`id`), CONSTRAINT `FK_teuy2g8y0u98nqkgxs14f3pan` FOREIGN KEY (`save_by_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `ticket` -- LOCK TABLES `ticket` WRITE; /*!40000 ALTER TABLE `ticket` DISABLE KEYS */; /*!40000 ALTER TABLE `ticket` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `enabled` bit(1) DEFAULT NULL, `firstname` varchar(255) DEFAULT NULL, `lastname` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `saved_date` date DEFAULT NULL, `telephone` int(11) DEFAULT NULL, `username` varchar(100) NOT NULL, `role_id` int(11) DEFAULT NULL, `saved_by_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UK_r43af9ap4edm43mmtq01oddj6` (`username`), KEY `FK_krvotbtiqhudlkamvlpaqus0t` (`role_id`), KEY `FK_1t60j1l6r6b025rw1jo8noc8h` (`saved_by_id`), CONSTRAINT `FK_1t60j1l6r6b025rw1jo8noc8h` FOREIGN KEY (`saved_by_id`) REFERENCES `users` (`id`), CONSTRAINT `FK_krvotbtiqhudlkamvlpaqus0t` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES (1,'','firstaName','lastName','$2a$10$dw3w/diq/ST4gl4o8LI9dO939UeRZIUnG6nrqjottNgJLgUwtzEF2','2016-07-28',NULL,'admin',NULL,NULL),(2,'',NULL,NULL,'$2a$10$dw3w/diq/ST4gl4o8LI9dO939UeRZIUnG6nrqjottNgJLgUwtzEF2',NULL,NULL,'demo',NULL,NULL); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-07-29 7:13:38
-- 3 - Prunik, rozdil, sjednoceni -- 1 ------------------------------------------ ( SELECT vyrobek.jmeno FROM uzivatel, koupil, vyrobek WHERE uzivatel.login = koupil.login AND koupil.vID = vyrobek.vID AND uzivatel.login = 'vinetu' ) INTERSECT ( SELECT vyrobek.jmeno FROM uzivatel, koupil, vyrobek WHERE uzivatel.login = koupil.login AND koupil.vID = vyrobek.vID AND uzivatel.login = 'pepik' ) SELECT jmeno FROM vyrobek WHERE vID IN ( SELECT vID FROM koupil WHERE login = 'vinetu' ) AND vID IN ( SELECT vID FROM koupil WHERE login = 'pepik' ) -- 2 ------------------------------------------ ( SELECT vyrobek.jmeno FROM uzivatel, koupil, vyrobek WHERE uzivatel.login = koupil.login AND koupil.vID = vyrobek.vID AND uzivatel.login = 'vinetu' ) EXCEPT ( SELECT vyrobek.jmeno FROM uzivatel, koupil, vyrobek WHERE uzivatel.login = koupil.login AND koupil.vID = vyrobek.vID AND uzivatel.login = 'pepik' ) SELECT jmeno FROM vyrobek WHERE vID IN ( SELECT vID FROM koupil WHERE login = 'vinetu' ) AND vID NOT IN ( SELECT vID FROM koupil WHERE login = 'pepik' ) -- 3 ------------------------------------------ ( SELECT vyrobek.vID, vyrobek.jmeno FROM vyrobek ) EXCEPT ( SELECT koupil.vID, vyrobek.jmeno FROM koupil, vyrobek WHERE koupil.vID = vyrobek.vID ) SELECT vID FROM vyrobek WHERE vID NOT IN ( SELECT vID FROM koupil ) -- 4 ------------------------------------------ ( SELECT vyrobek.jmeno FROM uzivatel, koupil, vyrobek WHERE uzivatel.login = koupil.login AND koupil.vID = vyrobek.vID AND (uzivatel.login = 'vinetu' OR uzivatel.login = 'pepik') ) EXCEPT ( ( SELECT vyrobek.jmeno FROM uzivatel, koupil, vyrobek WHERE uzivatel.login = koupil.login AND koupil.vID = vyrobek.vID AND uzivatel.login = 'vinetu' ) INTERSECT ( SELECT vyrobek.jmeno FROM uzivatel, koupil, vyrobek WHERE uzivatel.login = koupil.login AND koupil.vID = vyrobek.vID AND uzivatel.login = 'pepik' ) ) SELECT vyrobek.vID, vyrobek.jmeno FROM vyrobek WHERE ( vID IN (SELECT vID FROM koupil WHERE login = 'vinetu') AND vID NOT IN (SELECT vID FROM koupil WHERE login = 'pepik') ) OR ( vID IN (SELECT vID FROM koupil WHERE login = 'pepik') AND vID NOT IN (SELECT vID FROM koupil WHERE login = 'vinetu') ) -- 5 ------------------------------------------ SELECT DISTINCT vyrobek.jmeno FROM vyrobek, koupil k1 WHERE vyrobek.vID = k1.vID AND EXISTS ( SELECT * FROM koupil k2 WHERE k1.vID = k2.vID AND k1.login = k2.login AND k1.rok != k2.rok ) -- 6 ------------------------------------------ SELECT jmeno FROM vyrobek WHERE aktualni_cena > ALL ( SELECT cena FROM koupil WHERE koupil.vID = vyrobek.vID ) -- 7 ------------------------------------------ SELECT DISTINCT login FROM koupil k1 WHERE NOT EXISTS ( SELECT * FROM koupil k2 WHERE k1.login = k2.login AND (k1.vID != k2.vID OR k1.rok != k2.rok) ) -- 8 ------------------------------------------ SELECT DISTINCT login FROM koupil k1 WHERE NOT EXISTS ( SELECT * FROM koupil k2 WHERE k1.login = k2.login AND k1.vID != k2.vID ) -- 9 ------------------------------------------ SELECT DISTINCT jmeno FROM koupil k1, vyrobek WHERE k1.vID = vyrobek.vID AND NOT EXISTS ( SELECT * FROM koupil k2 WHERE k1.login = k2.login AND k1.vID != k2.vID ) -- 10 ----------------------------------------- SELECT DISTINCT login FROM koupil k1 WHERE NOT EXISTS ( SELECT * FROM koupil k2 WHERE k1.vID = k2.vID AND k1.cena > k2.cena )
INSERT INTO priv (priv_module, priv_name, priv_descrip) VALUES ('System', 'MaintainPackages', 'Can Install and Uninstall Packages.'); INSERT INTO priv (priv_module, priv_name, priv_descrip) VALUES ('System', 'ViewPackages', 'Can View installed Packages.');