sql
stringlengths 6
1.05M
|
|---|
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SET NUMERIC_ROUNDABORT OFF
SET ARITHABORT ON
;WITH potential_columns AS
(
SELECT
-- in case we do encounter the old columns:
is_auto_create_stats_incremental_on = CONVERT (bit, NULL),
is_query_store_on = CONVERT (bit, NULL),
containment_desc = CONVERT (nvarchar(60), NULL),
target_recovery_time_in_seconds = CONVERT (int, NULL),
delayed_durability_desc = CONVERT(nvarchar(60), null),
is_memory_optimized_elevate_to_snapshot_on = CONVERT (bit, NULL),
is_federation_member = CONVERT (bit, NULL),
is_remote_data_archive_enabled = CONVERT (bit, NULL),
is_mixed_page_allocation_on = CONVERT (bit, NULL),
is_temporal_history_retention_enabled = CONVERT (bit, NULL),
catalog_collation_type_desc = CONVERT(nvarchar(60), null),
physical_database_name = CONVERT(nvarchar(128),null),
is_result_set_caching_on = CONVERT (bit, NULL),
is_memory_optimized_enabled = CONVERT (bit, NULL)
)
select m.* from potential_columns
CROSS APPLY
(
select database_id, name, source_database_id, DB_NAME(source_database_id) as source_database_name, owner_sid, SUSER_SNAME(owner_sid) as database_owner, create_date, compatibility_level, collation_name, user_access_desc, is_read_only, is_auto_close_on, is_auto_shrink_on,
state_desc, is_in_standby, snapshot_isolation_state_desc, is_read_committed_snapshot_on, recovery_model_desc, page_verify_option_desc,
is_auto_create_stats_on, is_auto_create_stats_incremental_on, is_auto_update_stats_on, is_auto_update_stats_async_on,
is_ansi_nulls_on, is_ansi_padding_on, is_ansi_warnings_on, is_arithabort_on, is_concat_null_yields_null_on, is_numeric_roundabort_on,
is_quoted_identifier_on, is_recursive_triggers_on, is_cursor_close_on_commit_on, is_local_cursor_default, is_fulltext_enabled, is_trustworthy_on,
is_db_chaining_on, is_parameterization_forced, is_master_key_encrypted_by_server, is_query_store_on, is_published, is_subscribed, is_merge_published,
is_distributor, is_sync_with_backup, is_broker_enabled, log_reuse_wait_desc,
is_date_correlation_on, is_cdc_enabled, is_encrypted, is_honor_broker_priority_on, containment_desc, target_recovery_time_in_seconds, delayed_durability_desc,
is_memory_optimized_elevate_to_snapshot_on, is_federation_member, is_remote_data_archive_enabled, is_mixed_page_allocation_on, is_temporal_history_retention_enabled,
catalog_collation_type_desc, physical_database_name, is_result_set_caching_on, is_memory_optimized_enabled
from sys.databases
) AS m;
|
<gh_stars>1-10
SELECT
M.[FirstName] + ' ' + M.[LastName] AS Mechanic,
J.Status,
J.IssueDate
FROM Mechanics AS M
JOIN Jobs AS J ON J.MechanicId = M.MechanicId
ORDER BY M.MechanicId, J.IssueDate,J.JobId
|
CREATE TABLE employee (
empId varchar primary key,
fname varchar,
lname varchar,
gender varchar,
dob date,
emailId varchar not null,
phno varchar not null,
city varchar,
zipcode integer,
datejoined date CHECK (datejoined > dob),
salary integer CHECK (salary >0),
role varchar,
qualification varchar,
dept varchar,
dept_id varchar,
training varchar,
score1 varchar,
score2 varchar
);
alter table employee add column training2 varchar
COPY employee FROM 'D:\Subjects\project\Application\Employeedata.csv' DELIMITER ',' CSV HEADER;
select * from employee
create table promotions(
id varchar primary key
);
COPY promotions FROM 'D:\Project\num.csv' DELIMITER ',' CSV HEADER;
alter table promotions add column adm varchar
alter table promotions add column promo varchar
create table query(
id varchar primary key,
ans varchar
);
insert into query values (1,'Honesty,Integrity,Trustworthiness,Loyality,Fairness,Concern for others,Respect For others'),
(2,'In your profile, down left u can click on the blue button it will redirect to the promotion requst page'),
(3,'U can contact admin'),
(4,'You can either find them in your profile or in Traning Panel'),
(5,'With a Span of 2 Hours You Can go to Cantee'),
(6,'4.5/5')
select * from test
create table test(
id varchar primary key
);
COPY test FROM 'D:\Project\num.csv' DELIMITER ',' CSV HEADER;
alter table test add column ans1 varchar
alter table test add column ans2 varchar
alter table test add column ans3 varchar
alter table test add column ans4 varchar
alter table test add column ans5 varchar
|
<filename>prisma/migrations/20211112211508_hash_length_prop/migration.sql<gh_stars>1-10
-- AlterTable
ALTER TABLE `clips` ADD COLUMN `hashLength` INTEGER NOT NULL DEFAULT 5;
|
<gh_stars>10-100
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ak.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073al.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ar.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073az.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ca.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073co.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ct.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073dc.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073de.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073fl.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ga.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073hi.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ia.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073id.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073il.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073in.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ks.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ky.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073la.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ma.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073md.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073me.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073mi.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073mn.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073mo.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ms.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073mt.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073nc.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073nd.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ne.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073nh.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073nj.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073nm.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073nv.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ny.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073oh.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ok.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073or.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073pa.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073pr.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ri.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073sc.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073sd.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073tn.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073tx.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073us.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073ut.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073va.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073vt.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073wa.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073wi.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073wv.txt' WITH ENCODING 'latin1';
COPY acs2007_3yr.tmp_geoheader FROM '/mnt/tmp/acs2007_3yr/g20073wy.txt' WITH ENCODING 'latin1';
|
<filename>3]. Competitive Programming/09]. HackerRank/1]. Practice/05]. SQL/12). HackerRank [SQL-Problem (Alternative_Queries)]/__53-55_Alternative_Queries.sql<gh_stars>1000+
-- 53rd Solution
SELECT REPEAT('* ', @NUMBER := @NUMBER - 1)
FROM INFORMATION_SCHEMA.TABLES,
(SELECT @NUMBER := 21) T
LIMIT 20
-- 54th Solution
SET @ROW := 0;
SELECT REPEAT('* ', @ROW := @ROW + 1)
FROM INFORMATION_SCHEMA.TABLES
WHERE @ROW < 20
-- 55th Solution
SELECT GROUP_CONCAT(NUMB SEPARATOR '&')
FROM(
SELECT @NUM := @NUM + 1 AS NUMB
FROM INFORMATION_SCHEMA.TABLES T1,
INFORMATION_SCHEMA.TABLES T2,
(SELECT @NUM := 1) TMP
) TEMPNUM
WHERE NUMB <= 1000 AND NOT EXISTS(
SELECT *
FROM(
SELECT @NUM1 := @NUM1 + 1 AS NUMA
FROM INFORMATION_SCHEMA.TABLES T1,
INFORMATION_SCHEMA.TABLES T2,
(SELECT @NUM1 := 1) TMP1
LIMIT 1000
) TEMPNUM1
WHERE FLOOR(NUMB/NUMA) = (NUMB/NUMA) AND NUMA<NUMB AND NUMA>1
)
|
<filename>backend/de.metas.handlingunits.base/src/main/sql/postgresql/system/5568250_sys_gh9982_addMShipperTrackingURL.sql<gh_stars>1000+
-- 2020-09-21T14:50:59.661Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FacetFilterSeqNo,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,571517,2127,0,10,664,'TrackingURL',TO_TIMESTAMP('2020-09-21 17:50:59','YYYY-MM-DD HH24:MI:SS'),100,'N','URL des Spediteurs um Sendungen zu verfolgen','D',0,255,'Die variable @TrackingNo@ in der URL wird durch die tatsächliche Identifizierungsnummer der Sendung ersetzt.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N',0,'Nachverfolgungs-URL',0,0,TO_TIMESTAMP('2020-09-21 17:50:59','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2020-09-21T14:50:59.670Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=571517 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2020-09-21T14:50:59.709Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_Column_Translation_From_AD_Element(2127)
;
-- 2020-09-21T14:51:24.979Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('M_Package','ALTER TABLE public.M_Package ADD COLUMN TrackingURL VARCHAR(255)')
;
-- 2020-09-21T14:54:55.728Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Reference_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,571517,617677,0,40,626,0,TO_TIMESTAMP('2020-09-21 17:54:55','YYYY-MM-DD HH24:MI:SS'),100,'URL des Spediteurs um Sendungen zu verfolgen',0,'D','Die variable @TrackingNo@ in der URL wird durch die tatsächliche Identifizierungsnummer der Sendung ersetzt.',0,'Y','Y','Y','N','N','N','N','N','Nachverfolgungs-URL',170,170,0,1,1,TO_TIMESTAMP('2020-09-21 17:54:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-09-21T14:54:55.733Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Field_ID=617677 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 2020-09-21T14:54:55.738Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(2127)
;
-- 2020-09-21T14:54:55.757Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=617677
;
-- 2020-09-21T14:54:55.762Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(617677)
;
-- 2020-09-21T14:55:40.453Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,617677,0,626,571527,541517,'F',TO_TIMESTAMP('2020-09-21 17:55:40','YYYY-MM-DD HH24:MI:SS'),100,'URL des Spediteurs um Sendungen zu verfolgen','Die variable @TrackingNo@ in der URL wird durch die tatsächliche Identifizierungsnummer der Sendung ersetzt.','Y','N','N','Y','N','N','N',0,'Nachverfolgungs-URL',80,0,0,TO_TIMESTAMP('2020-09-21 17:55:40','YYYY-MM-DD HH24:MI:SS'),100)
;
|
CREATE TABLE IF NOT EXISTS userses (
id VARCHAR UNIQUE,
name VARCHAR(50),
login VARCHAR(50) NOT NULL,
password VARCHAR(50) NOT NULL,
role VARCHAR(10),
email VARCHAR(50),
created DATE);
|
<reponame>Earth-Online/poc_test
-- 主表
CREATE TABLE `$basic_tablename` (
`uid` INT(10) unsigned NOT NULL,
UNIQUE `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
CREATE TABLE `$att_tablename`(
`uid` INT(10) unsigned NOT NULL,
UNIQUE `uid` (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk;
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Author: <NAME>
* Created: 21.05.2018
*/
CREATE TABLE USER (
id int auto_INCREMENT PRIMARY KEY,
firstname_id int,
lastname_id int,
email_id int,
loginname_id int,
passwordHash_id int,
isAdmin boolean,
isActive boolean
);
CREATE TABLE NAME (
id int auto_INCREMENT PRIMARY KEY,
name varchar
);
CREATE TABLE EMAIL (
id int auto_INCREMENT PRIMARY KEY,
name varchar
);
CREATE TABLE LOGINNAME (
id int auto_INCREMENT PRIMARY KEY,
name varchar
);
CREATE TABLE PASSWORDHASH (
id int auto_INCREMENT PRIMARY KEY,
name varchar
);
|
-- SPARK-23179: SQL ANSI 2011 states that in case of overflow during arithmetic operations,
-- an exception should be thrown instead of returning NULL.
-- This is what most of the SQL DBs do (eg. SQLServer, DB2).
-- tests for decimals handling in operations
create table decimals_test(id int, a decimal(38,18), b decimal(38,18)) using parquet;
insert into decimals_test values(1, 100.0, 999.0), (2, 12345.123, 12345.123),
(3, 0.1234567891011, 1234.1), (4, 123456789123456789.0, 1.123456789123456789);
-- test operations between decimals and constants
select id, a*10, b/10 from decimals_test order by id;
-- test operations on constants
select 10.3 * 3.0;
select 10.3000 * 3.0;
select 10.30000 * 30.0;
select 10.300000000000000000 * 3.000000000000000000;
select 10.300000000000000000 * 3.0000000000000000000;
-- arithmetic operations causing an overflow throw exception
select (5e36BD + 0.1) + 5e36BD;
select (-4e36BD - 0.1) - 7e36BD;
select 12345678901234567890.0 * 12345678901234567890.0;
select 1e35BD / 0.1;
-- arithmetic operations causing a precision loss throw exception
select 123456789123456789.1234567890 * 1.123456789123456789;
select 123456789123456789.1234567890 * 1.123456789123456789;
select 12345678912345.123456789123 / 0.000000012345678;
drop table decimals_test;
|
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
col bhobjects_owner head OWNER for a30
col bhobjects_object_name head OBJECT_NAME for a30
col bhobjects_subobject_name head SUBOBJECT_NAME for a30
col bhobjects_object_type head OBJECT_TYPE for a20 word_wrap
select * from (
select
count(*) buffers
, o.owner bhobjects_owner
, o.object_name bhobjects_object_name
, o.subobject_name bhobjects_subobject_name
, o.object_type bhobjects_object_type
from
v$bh bh
, dba_objects o
where
bh.objd = o.data_object_id
group by
o.owner, o.object_name, o.subobject_name, o.object_type
order by
buffers desc
)
where rownum <=30
/
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 06, 2022 at 10:17 PM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 8.0.6
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 */;
--
-- Database: `db_projek_rama_wibawa`
--
-- --------------------------------------------------------
--
-- Table structure for table `catatans`
--
CREATE TABLE `catatans` (
`id` bigint(20) UNSIGNED NOT NULL,
`pasien_id` bigint(20) UNSIGNED NOT NULL,
`tgl_berobat` date NOT NULL,
`keluhan_pasien` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`hasil_diagnosa` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `catatans`
--
INSERT INTO `catatans` (`id`, `pasien_id`, `tgl_berobat`, `keluhan_pasien`, `hasil_diagnosa`, `created_at`, `updated_at`) VALUES
(1, 1, '2022-02-07', '<NAME>', 'Kurang minum Air', '2022-02-06 13:49:50', '2022-02-06 13:49:50'),
(2, 2, '2022-02-24', 'sakit perut', 'Cacingan', '2022-02-06 13:50:19', '2022-02-06 13:50:19'),
(3, 3, '2022-02-10', 'Tidak enak badan', 'Kurang Vitamin C', '2022-02-06 13:50:48', '2022-02-06 13:50:48');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(17, '2014_10_12_000000_create_users_table', 1),
(18, '2014_10_12_100000_create_password_resets_table', 1),
(19, '2019_08_19_000000_create_failed_jobs_table', 1),
(20, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(21, '2022_02_06_171818_create_pasiens_table', 1),
(22, '2022_02_06_182933_create_catatans_table', 1),
(23, '2022_02_06_203304_create_transaksis_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `pasiens`
--
CREATE TABLE `pasiens` (
`id` bigint(20) UNSIGNED NOT NULL,
`nama_pasien` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`jenis_kelamin` enum('L','P') COLLATE utf8mb4_unicode_ci NOT NULL,
`umur` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `pasiens`
--
INSERT INTO `pasiens` (`id`, `nama_pasien`, `jenis_kelamin`, `umur`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 'L', '22', '2022-02-06 13:49:04', '2022-02-06 13:49:04'),
(2, '<NAME>', 'L', '20', '2022-02-06 13:49:15', '2022-02-06 13:49:15'),
(3, '<NAME>', 'P', '9', '2022-02-06 13:49:26', '2022-02-06 13:49:26');
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `personal_access_tokens`
--
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) UNSIGNED NOT NULL,
`tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `transaksis`
--
CREATE TABLE `transaksis` (
`id` bigint(20) UNSIGNED NOT NULL,
`pasien_id` bigint(20) UNSIGNED NOT NULL,
`biaya_berobat` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`kembalian` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `transaksis`
--
INSERT INTO `transaksis` (`id`, `pasien_id`, `biaya_berobat`, `kembalian`, `created_at`, `updated_at`) VALUES
(1, 1, '200000', '50000', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `catatans`
--
ALTER TABLE `catatans`
ADD PRIMARY KEY (`id`),
ADD KEY `catatans_pasien_id_foreign` (`pasien_id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pasiens`
--
ALTER TABLE `pasiens`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);
--
-- Indexes for table `transaksis`
--
ALTER TABLE `transaksis`
ADD PRIMARY KEY (`id`),
ADD KEY `transaksis_pasien_id_foreign` (`pasien_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `catatans`
--
ALTER TABLE `catatans`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT for table `pasiens`
--
ALTER TABLE `pasiens`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `transaksis`
--
ALTER TABLE `transaksis`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `catatans`
--
ALTER TABLE `catatans`
ADD CONSTRAINT `catatans_pasien_id_foreign` FOREIGN KEY (`pasien_id`) REFERENCES `pasiens` (`id`);
--
-- Constraints for table `transaksis`
--
ALTER TABLE `transaksis`
ADD CONSTRAINT `transaksis_pasien_id_foreign` FOREIGN KEY (`pasien_id`) REFERENCES `pasiens` (`id`);
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 */;
|
CREATE DATABASE psychomorph;
USE psychomorph;
\. /var/www/html/webmorph/resources/mysql/db.sql
\. /var/www/html/webmorph/resources/mysql/tems.sql
-- CREATE TABLE `user` (
-- `id` int(8) unsigned NOT NULL AUTO_INCREMENT,
-- `email` varchar(255) NOT NULL,
-- `password` varchar(255) NOT NULL,
-- `organisation` varchar(255) DEFAULT NULL,
-- `sex` enum('female','male','other') DEFAULT NULL,
-- `research` tinyint(1) DEFAULT NULL,
-- `personal` tinyint(1) DEFAULT NULL,
-- `business` tinyint(1) DEFAULT NULL,
-- `art` tinyint(1) DEFAULT NULL,
-- `regdate` datetime DEFAULT NULL,
-- `school` tinyint(1) DEFAULT NULL,
-- `firstname` varchar(255) DEFAULT NULL,
-- `lastname` varchar(255) DEFAULT NULL,
-- `pca` tinyint(1) DEFAULT '0',
-- `allocation` int(8) unsigned DEFAULT '1024',
-- PRIMARY KEY (`id`),
-- UNIQUE KEY `email` (`email`)
-- ) ENGINE=MyISAM AUTO_INCREMENT=91 DEFAULT CHARSET=latin1;
INSERT INTO user(id, email, password, organisation, sex, research, personal, business, art, regdate, school, firstname, lastname, pca, allocation)
VALUES ('1<PASSWORD>', '<EMAIL>', '<PASSWORD>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1024)
|
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 1192.168.3.11
-- Generation Time: May 31, 2020 at 07:58 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.3
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: `pos`
--
-- --------------------------------------------------------
--
-- Table structure for table `customer`
--
CREATE TABLE `customer` (
`customer_id` int(11) NOT NULL,
`name` varchar(60) NOT NULL,
`gender` enum('M','F') NOT NULL,
`phone` varchar(60) NOT NULL,
`address` varchar(100) NOT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
`updated` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `customer`
--
INSERT INTO `customer` (`customer_id`, `name`, `gender`, `phone`, `address`, `created`, `updated`) VALUES
(1, 'Hasan', 'M', '08281272777', 'Cikampek Selatan No.25', '2020-04-15 22:23:12', NULL),
(2, 'Jono', 'M', '0821828827177', 'Jl.Selamender 21', '2020-04-25 14:47:58', NULL),
(4, 'Hanny', 'F', '081299299880', 'Jl.Cilandak ', '2020-04-25 15:03:38', '2020-04-25 10:06:18');
-- --------------------------------------------------------
--
-- Table structure for table `p_category`
--
CREATE TABLE `p_category` (
`category_id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`created` date NOT NULL DEFAULT current_timestamp(),
`updated` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `p_category`
--
INSERT INTO `p_category` (`category_id`, `name`, `created`, `updated`) VALUES
(1, 'Computer', '2020-05-23', '2020-05-23'),
(2, 'Minuman', '2020-05-28', NULL),
(3, 'Makanan', '2020-05-28', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `p_item`
--
CREATE TABLE `p_item` (
`item_id` int(11) NOT NULL,
`barcode` varchar(100) DEFAULT NULL,
`name` varchar(100) DEFAULT NULL,
`category_id` int(11) NOT NULL,
`units_id` int(11) NOT NULL,
`price` int(11) NOT NULL,
`stock` int(10) NOT NULL,
`item_image` varchar(100) DEFAULT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
`updated` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `p_item`
--
INSERT INTO `p_item` (`item_id`, `barcode`, `name`, `category_id`, `units_id`, `price`, `stock`, `item_image`, `created`, `updated`) VALUES
(11, 'A001', 'V-Soy', 2, 2, 22000, 6, 'item-200528-775c4f6d9c.jpg', '2020-05-28 17:47:47', NULL),
(12, 'A002', 'MSI-Tomohawk', 1, 1, 1700000, 5, 'item-200528-0134ddd39d.jpg', '2020-05-28 17:49:00', '2020-05-28 12:53:32');
-- --------------------------------------------------------
--
-- Table structure for table `p_units`
--
CREATE TABLE `p_units` (
`units_id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`created` date NOT NULL,
`updated` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `p_units`
--
INSERT INTO `p_units` (`units_id`, `name`, `created`, `updated`) VALUES
(1, 'Pcs', '0000-00-00', '2020-05-24'),
(2, 'Botol', '0000-00-00', '2020-05-28');
-- --------------------------------------------------------
--
-- Table structure for table `supplier`
--
CREATE TABLE `supplier` (
`supplier_id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`phone` varchar(15) NOT NULL,
`alamat` varchar(200) NOT NULL,
`deskripsi` text DEFAULT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp(),
`updated` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `supplier`
--
INSERT INTO `supplier` (`supplier_id`, `name`, `phone`, `alamat`, `deskripsi`, `created`, `updated`) VALUES
(1, 'TOKO A', '08128828827777', 'Jl. <NAME>', '<NAME>', '2020-05-16 10:10:46', '2020-05-16 05:13:02');
-- --------------------------------------------------------
--
-- Table structure for table `t_cart`
--
CREATE TABLE `t_cart` (
`cart_id` int(11) NOT NULL,
`item_id` int(11) NOT NULL,
`price` decimal(10,0) NOT NULL,
`qty` int(11) NOT NULL,
`discount_item` decimal(10,0) NOT NULL,
`total` decimal(10,0) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `t_sales`
--
CREATE TABLE `t_sales` (
`sales_id` int(11) NOT NULL,
`invoice` varchar(50) NOT NULL,
`customer_id` int(11) DEFAULT NULL,
`total_price` int(11) NOT NULL,
`discount` int(11) NOT NULL,
`final_price` int(11) NOT NULL,
`cash` int(11) NOT NULL,
`change` int(11) NOT NULL,
`date` date NOT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `t_sales`
--
INSERT INTO `t_sales` (`sales_id`, `invoice`, `customer_id`, `total_price`, `discount`, `final_price`, `cash`, `change`, `date`, `created`) VALUES
(7, 'P2005310001', 2, 42000, 2000, 40000, 50000, 10000, '2020-05-31', '2020-05-31 12:55:08'),
(8, 'P2005310001', 2, 1600000, 50000, 1550000, 2000000, 450000, '2020-05-31', '2020-05-31 12:56:37');
-- --------------------------------------------------------
--
-- Table structure for table `t_sales_detail`
--
CREATE TABLE `t_sales_detail` (
`detail_id` int(11) NOT NULL,
`sales_id` int(11) NOT NULL,
`item_id` int(11) NOT NULL,
`price` int(11) NOT NULL,
`qty` int(11) NOT NULL,
`discount_item` int(11) NOT NULL,
`total` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `t_sales_detail`
--
INSERT INTO `t_sales_detail` (`detail_id`, `sales_id`, `item_id`, `price`, `qty`, `discount_item`, `total`) VALUES
(8, 7, 11, 22000, 2, 1000, 42000),
(9, 8, 12, 1700000, 1, 100000, 1600000);
--
-- Triggers `t_sales_detail`
--
DELIMITER $$
CREATE TRIGGER `stock_min` BEFORE INSERT ON `t_sales_detail` FOR EACH ROW BEGIN
UPDATE p_item SET stock = stock - NEW.qty
WHERE item_id = NEW.item_id;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `t_stock`
--
CREATE TABLE `t_stock` (
`stock_id` int(11) NOT NULL,
`item_id` int(11) NOT NULL,
`type` enum('in','out') NOT NULL,
`detail` varchar(200) NOT NULL,
`supplier_id` int(11) DEFAULT NULL,
`qty` int(10) NOT NULL,
`date` date NOT NULL,
`created` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `t_stock`
--
INSERT INTO `t_stock` (`stock_id`, `item_id`, `type`, `detail`, `supplier_id`, `qty`, `date`, `created`) VALUES
(5, 12, 'in', 'etc', 1, 6, '2020-05-29', '2020-05-29 13:06:08'),
(7, 11, 'in', 'tambahan', 1, 10, '2020-05-30', '2020-05-30 12:14:25');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`user_id` int(11) NOT NULL,
`fullname` varchar(128) NOT NULL,
`username` varchar(128) NOT NULL,
`email` varchar(128) NOT NULL,
`password` varchar(128) NOT NULL,
`image` varchar(128) NOT NULL,
`address` varchar(128) DEFAULT NULL,
`role_id` int(11) NOT NULL,
`is_active` int(1) NOT NULL,
`date_created` int(11) NOT NULL,
`updated` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `fullname`, `username`, `email`, `password`, `image`, `address`, `role_id`, `is_active`, `date_created`, `updated`) VALUES
(1, 'Administrator', 'admin', '<EMAIL>', '$2y$10$8Humg2K7NsYsAoolUuMif.NZTwcpIPP0xBzNpnfyKUuhqtnqUh6bu', 'admin1.jpg', 'Indonesia, Jakarta', 1, 1, 1586614808, '2020-05-23 07:41:13'),
(2, '<NAME>', 'Ezuck', '<EMAIL>', '$2y$10$A2YcvAUTIsmwUiLMwPRqQ.AEmG9/FFwzoErB38F.GAbCIqGqDOqOy', 'default.jpg', 'Bootcamp', 2, 1, 1586614990, '2020-04-16 13:13:14');
-- --------------------------------------------------------
--
-- Table structure for table `user_access_menu`
--
CREATE TABLE `user_access_menu` (
`id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
`menu_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user_access_menu`
--
INSERT INTO `user_access_menu` (`id`, `role_id`, `menu_id`) VALUES
(1, 1, 1),
(2, 1, 2),
(3, 2, 2),
(4, 1, 3),
(5, 1, 4),
(6, 2, 4),
(11, 1, 7),
(12, 1, 8),
(14, 2, 9),
(15, 1, 9);
-- --------------------------------------------------------
--
-- Table structure for table `user_menu`
--
CREATE TABLE `user_menu` (
`id` int(11) NOT NULL,
`menu` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user_menu`
--
INSERT INTO `user_menu` (`id`, `menu`) VALUES
(1, 'Admin'),
(2, 'User'),
(3, 'Menu'),
(9, 'Inventory');
-- --------------------------------------------------------
--
-- Table structure for table `user_role`
--
CREATE TABLE `user_role` (
`id` int(11) NOT NULL,
`role` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user_role`
--
INSERT INTO `user_role` (`id`, `role`) VALUES
(1, 'Admin'),
(2, 'Member'),
(3, 'Kasir');
-- --------------------------------------------------------
--
-- Table structure for table `user_sub_menu`
--
CREATE TABLE `user_sub_menu` (
`id` int(11) NOT NULL,
`menu_id` int(11) NOT NULL,
`title` varchar(128) NOT NULL,
`url` varchar(128) NOT NULL,
`icon` varchar(128) NOT NULL,
`is_active` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user_sub_menu`
--
INSERT INTO `user_sub_menu` (`id`, `menu_id`, `title`, `url`, `icon`, `is_active`) VALUES
(1, 1, 'Dashboard', 'admin', 'fas fa-fw fa-tachometer-alt', 1),
(2, 2, 'My Profile', 'user/profile', 'fas fa-fw fa-user-cog', 1),
(3, 2, 'Edit Profile', 'user/edit-profile', 'fas fa-fw fa-user-edit', 0),
(4, 3, 'Menu Management', 'menu', 'fas fa-fw fa-fw fa-bars', 1),
(5, 3, 'Submenu Management', 'menu/submenu', 'fas fa-fw fa-folder-open', 1),
(6, 2, 'User Dashboard', 'user', 'fa fa-fw fa-users', 1),
(14, 1, 'Role', 'admin/role', 'fa fa-fw fa-user-times', 1),
(15, 2, 'Change Password', 'user/changepassword', 'fa fa-fw fa-user-secret', 1),
(23, 9, 'Customer', 'customer', 'fa fa-fw fa-address-card', 1),
(24, 9, 'Supplier', 'supplier', 'fas fa-fw fa-truck', 1),
(25, 9, 'Category', 'category', 'fa fa-fw fa-tags', 1),
(26, 9, 'Units', 'units', 'fa fa-fw fa-sort-amount-desc', 1),
(27, 9, 'Item', 'item', 'fa fa-fw fa-tasks', 1),
(28, 9, 'Stock In', 'stock/stock_in_data', 'fas fa-fw fa-angle-double-left', 1),
(29, 9, 'Stock Out', 'stock/stock_out_data', 'fas fa-angle-double-right', 1),
(30, 9, 'Sales', 'sales', 'fa fa-fw fa-money', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
ADD PRIMARY KEY (`customer_id`);
--
-- Indexes for table `p_category`
--
ALTER TABLE `p_category`
ADD PRIMARY KEY (`category_id`);
--
-- Indexes for table `p_item`
--
ALTER TABLE `p_item`
ADD PRIMARY KEY (`item_id`),
ADD KEY `category_id` (`category_id`),
ADD KEY `units_id` (`units_id`);
--
-- Indexes for table `p_units`
--
ALTER TABLE `p_units`
ADD PRIMARY KEY (`units_id`);
--
-- Indexes for table `supplier`
--
ALTER TABLE `supplier`
ADD PRIMARY KEY (`supplier_id`);
--
-- Indexes for table `t_cart`
--
ALTER TABLE `t_cart`
ADD PRIMARY KEY (`cart_id`),
ADD KEY `item_id` (`item_id`);
--
-- Indexes for table `t_sales`
--
ALTER TABLE `t_sales`
ADD PRIMARY KEY (`sales_id`);
--
-- Indexes for table `t_sales_detail`
--
ALTER TABLE `t_sales_detail`
ADD PRIMARY KEY (`detail_id`),
ADD KEY `item_id` (`item_id`);
--
-- Indexes for table `t_stock`
--
ALTER TABLE `t_stock`
ADD PRIMARY KEY (`stock_id`),
ADD KEY `item_id` (`item_id`),
ADD KEY `supplier_id` (`supplier_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`);
--
-- Indexes for table `user_access_menu`
--
ALTER TABLE `user_access_menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_menu`
--
ALTER TABLE `user_menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_role`
--
ALTER TABLE `user_role`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_sub_menu`
--
ALTER TABLE `user_sub_menu`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `customer`
--
ALTER TABLE `customer`
MODIFY `customer_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `p_category`
--
ALTER TABLE `p_category`
MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `p_item`
--
ALTER TABLE `p_item`
MODIFY `item_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `p_units`
--
ALTER TABLE `p_units`
MODIFY `units_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `supplier`
--
ALTER TABLE `supplier`
MODIFY `supplier_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `t_sales`
--
ALTER TABLE `t_sales`
MODIFY `sales_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `t_sales_detail`
--
ALTER TABLE `t_sales_detail`
MODIFY `detail_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `t_stock`
--
ALTER TABLE `t_stock`
MODIFY `stock_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `user_access_menu`
--
ALTER TABLE `user_access_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `user_menu`
--
ALTER TABLE `user_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `user_role`
--
ALTER TABLE `user_role`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `user_sub_menu`
--
ALTER TABLE `user_sub_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `p_item`
--
ALTER TABLE `p_item`
ADD CONSTRAINT `p_item_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `p_category` (`category_id`),
ADD CONSTRAINT `p_item_ibfk_2` FOREIGN KEY (`units_id`) REFERENCES `p_units` (`units_id`);
--
-- Constraints for table `t_cart`
--
ALTER TABLE `t_cart`
ADD CONSTRAINT `t_cart_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `p_item` (`item_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `t_sales_detail`
--
ALTER TABLE `t_sales_detail`
ADD CONSTRAINT `t_sales_detail_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `p_item` (`item_id`);
--
-- Constraints for table `t_stock`
--
ALTER TABLE `t_stock`
ADD CONSTRAINT `t_stock_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `p_item` (`item_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `t_stock_ibfk_2` FOREIGN KEY (`supplier_id`) REFERENCES `supplier` (`supplier_id`);
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 */;
|
select * from estados e, cidades c
where e.id = c.estado_id;
select e.nome as Estado,
c.nome as Cidade,
regiao as Região
from estados e, cidades c
where e.id = c.estado_id;
select
c.nome as Cidade,
e.nome as Estado,
regiao as Região
from estados e
inner join cidades c on e.id = c.estado_id;
|
-- --------------------------------------------------------
-- Hôte : localhost
-- Version du serveur: 5.7.24 - MySQL Community Server (GPL)
-- SE du serveur: Win64
-- HeidiSQL Version: 9.5.0.5332
-- --------------------------------------------------------
/*!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' */;
-- Listage de la structure de la table nl. user_tenue
CREATE TABLE IF NOT EXISTS `user_tenue` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL,
`tenue` longtext COLLATE utf8mb4_bin NOT NULL,
`label` varchar(20) COLLATE utf8mb4_bin DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- Les données exportées n'étaient pas sélectionnées.
/*!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 */;
|
SELECT NAME FROM CITY
WHERE COUNTRYCODE = "USA" AND POPULATION > 120000;
|
CREATE USER tuition
IDENTIFIED BY reimbursement
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp
QUOTA 10M ON users;
GRANT connect to tuition;
GRANT resource to tuition;
GRANT create session TO tuition;
GRANT create table TO tuition;
GRANT create view TO tuition;
conn tuition/reimbursement
CREATE TABLE AUTHENTICATION(
USERNAME VARCHAR2(20) PRIMARY KEY,
PASSWORD VARCHAR2(20),
ACCOUNT_TYPE INTEGER);
/* account types are as follows:
0=employee
1=supervisor
2=department head
3=benco
4=CEO (full admin)
*/
INSERT INTO AUTHENTICATION VALUES ('backslash', 'backslash', 0);
INSERT INTO AUTHENTICATION VALUES ('garfield', 'lasagna', 4);
INSERT INTO AUTHENTICATION VALUES ('jon', 'arbuckle', 2);
INSERT INTO AUTHENTICATION VALUES ('lyman', 'odie', 1);
INSERT INTO AUTHENTICATION VALUES ('odie', 'woof', 3);
INSERT INTO AUTHENTICATION VALUES ('nermal', 'cute', 3);
CREATE TABLE SUPERVISOR(
EMPLOYEE VARCHAR2(20) PRIMARY KEY,
SUPERVISOR VARCHAR2(20));
INSERT INTO SUPERVISOR VALUES('backslash', 'lyman');
INSERT INTO SUPERVISOR VALUES('lyman', 'jon');
INSERT INTO SUPERVISOR VALUES('nermal', 'odie');
INSERT INTO SUPERVISOR VALUES('jon', 'garfield');
INSERT INTO SUPERVISOR VALUES('odie', 'garfield');
CREATE TABLE CURRENT_DATE(
TODAY INTEGER);
INSERT INTO CURRENT_DATE VALUES(1);
CREATE TABLE REQUESTS(
REQ_ID INTEGER PRIMARY KEY,
USERNAME VARCHAR2(20),
REQ_AMT NUMBER (38,2),
PEND_STATE INTEGER,
DEADLINE INTEGER);
/*pending state cheatsheet:
-1 denied
0 to supervisor to approve
1 to department head to approve
2 to benco to approve
3 waiting on user to give proof of grade
4 to benco to approve
5 to supervisor to approve
6 paid out
*/
CREATE SEQUENCE ID_GEN
START WITH 1
INCREMENT BY 1;
INSERT INTO REQUESTS VALUES(ID_GEN.NEXTVAL, 'garfield', 80.80, 0, 18);
SELECT * FROM REQUESTS WHERE USERNAME='backslash' AND PEND_STATE=0
|
USE flyway_test_db;
DELIMITER $$
CREATE PROCEDURE list_users_v1()
BEGIN
select u.name, u.surname, a.city, a.street from user u join address a on u.address_id = a.id;
END $$
|
<filename>DB/DB-Cocineros-Unidos.sql
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 10-12-2018 a las 13:41:12
-- Versión del servidor: 10.1.36-MariaDB
-- Versión de PHP: 7.2.10
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 */;
--
-- Base de datos: `bdcocina` Creada por profesor <NAME>
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `calificacion`
--
CREATE TABLE `calificacion` (
`usuario_nombre` varchar(100) NOT NULL,
`receta_nombre` varchar(100) NOT NULL,
`valor` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `composicion`
--
CREATE TABLE `composicion` (
`ingrediente_nombre` varchar(40) NOT NULL,
`receta_nombre` varchar(100) NOT NULL,
`cantidad` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ingrediente`
--
CREATE TABLE `ingrediente` (
`nombre` varchar(40) NOT NULL,
`unidad_medida` varchar(45) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `receta`
--
CREATE TABLE `receta` (
`nombre` varchar(100) NOT NULL,
`descripcion` text,
`creador` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuario`
--
CREATE TABLE `usuario` (
`nombre` varchar(100) NOT NULL,
`clave` varchar(40) NOT NULL,
`rol` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `calificacion`
--
ALTER TABLE `calificacion`
ADD PRIMARY KEY (`usuario_nombre`,`receta_nombre`),
ADD KEY `fk_usuario_has_receta_receta1_idx` (`receta_nombre`),
ADD KEY `fk_usuario_has_receta_usuario1_idx` (`usuario_nombre`);
--
-- Indices de la tabla `composicion`
--
ALTER TABLE `composicion`
ADD PRIMARY KEY (`ingrediente_nombre`,`receta_nombre`),
ADD KEY `fk_ingrediente_has_receta_receta1_idx` (`receta_nombre`),
ADD KEY `fk_ingrediente_has_receta_ingrediente_idx` (`ingrediente_nombre`);
--
-- Indices de la tabla `ingrediente`
--
ALTER TABLE `ingrediente`
ADD PRIMARY KEY (`nombre`);
--
-- Indices de la tabla `receta`
--
ALTER TABLE `receta`
ADD PRIMARY KEY (`nombre`),
ADD KEY `fk_receta_usuario1_idx` (`creador`);
--
-- Indices de la tabla `usuario`
--
ALTER TABLE `usuario`
ADD PRIMARY KEY (`nombre`);
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `calificacion`
--
ALTER TABLE `calificacion`
ADD CONSTRAINT `fk_usuario_has_receta_receta1` FOREIGN KEY (`receta_nombre`) REFERENCES `receta` (`nombre`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_usuario_has_receta_usuario1` FOREIGN KEY (`usuario_nombre`) REFERENCES `usuario` (`nombre`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Filtros para la tabla `composicion`
--
ALTER TABLE `composicion`
ADD CONSTRAINT `fk_ingrediente_has_receta_ingrediente` FOREIGN KEY (`ingrediente_nombre`) REFERENCES `ingrediente` (`nombre`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_ingrediente_has_receta_receta1` FOREIGN KEY (`receta_nombre`) REFERENCES `receta` (`nombre`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Filtros para la tabla `receta`
--
ALTER TABLE `receta`
ADD CONSTRAINT `fk_receta_usuario1` FOREIGN KEY (`creador`) REFERENCES `usuario` (`nombre`) ON DELETE NO ACTION ON UPDATE NO ACTION;
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 */;
|
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 28, 2019 at 01:14 PM
-- Server version: 5.7.27-0ubuntu0.18.04.1
-- PHP Version: 7.2.19-0ubuntu0.18.04.1
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: `cheers_and_beers`
--
-- --------------------------------------------------------
--
-- Table structure for table `cart`
--
CREATE TABLE `cart` (
`id` mediumint(8) UNSIGNED NOT NULL,
`created` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `cart`
--
INSERT INTO `cart` (`id`, `created`) VALUES
(49, '2019-10-15 11:55:42');
-- --------------------------------------------------------
--
-- Table structure for table `cartItems`
--
CREATE TABLE `cartItems` (
`id` mediumint(8) UNSIGNED NOT NULL,
`productID` mediumint(8) UNSIGNED NOT NULL,
`count` smallint(5) UNSIGNED NOT NULL,
`price` mediumint(8) UNSIGNED NOT NULL,
`added` datetime NOT NULL,
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`cartID` mediumint(8) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` tinyint(3) UNSIGNED NOT NULL,
`name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`brewery` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`abv` decimal(3,1) UNSIGNED NOT NULL,
`ibu` tinyint(3) UNSIGNED NOT NULL,
`availability` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`type` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`price` mediumint(8) UNSIGNED NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`image` varchar(300) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `name`, `brewery`, `abv`, `ibu`, `availability`, `type`, `price`, `description`, `image`) VALUES
(1, 'The Patsy®', 'Barley Forge Brewery', '6.6', 37, 'Year Round', 'Rye Stout', 999, 'The Patsy® is Barley Forge’s coconut rye stout, winner of a prestigious 2018 World Beer Cup Silver award in the Field Beer category. Brewed with US 2-row malt, flaked rye, chocolate rye, and various English specialty malts, this medium-bodied beer features a rye spiciness balanced with dark chocolate and espresso, as well as copious amounts of toasted coconut. This beer pairs well with pulled pork, braised brisket, gorgonzola cheese and chocolate desserts.', './images/productList/bf_thePatsy.png'),
(2, 'The Orange Curtain®', 'Barley Forge Brewery', '6.2', 96, 'Year Round', 'IPA', 999, 'The Orange Curtain® is Barley Forge’s India Pale Ale. Focusing on “old school” hop flavor over hop bitterness, our IPA features Warrior, Centennial and Cascade hops against a nicely rounded malt backbone that provides a medium bodied accompaniment. This combination has citrus notes worthy of the name, which is a nickname for Orange County, California where the brewery is located. This beer pairs well with spicy Thai or Vietnamese food, burgers, or oily, full-flavored fish such as salmon.', './images/productList/bf_theOrangeCurtain.png'),
(3, 'Future Tripping®', 'Barley Forge Brewery', '9.3', 100, 'Year Round', 'Double IPA', 999, 'This DIPA is brewed with a simple grain bill of Two Row, Pale Ale Malt & some Cara-Pils. A late addition of Dextrose is added to the boil to lighten the body and boost the gravity. A tried & true hop combination of Simcoe & Amarillo are showcased in this hop-forward beer. Simcoe provides a unique passionfruit-pine flavor & aroma combined with Amarillo’s citrus characteristics will keep you coming back for more. Future Tripping is finished off with a hefty amount of Simcoe & Amarillo in the dry hop. Boasting 100+ IBUs, you will find this beer to be quite balanced and not too bitter as it weighs in at 9.3% ABV.', './images/productList/bf_futureTripping.png'),
(4, 'The Black Dahlia®', 'Barley Forge Brewery', '11.0', 27, 'Year Round', 'Belgian Style Dark Ale', 999, 'The Black Dahlia® is our Belgian Strong Dark ale. This beer is brewed as an homage to the great Trappist holiday beers from Belgium. Brewed with Belgian Pils, Munich malt, a host of Belgian specialty grains, and a generous portion of dark Belgian candi sugar, this 11.0% ABV beer is a great one to age as it will continue to improve for years. This beer pairs well with braised beef dishes, steak, and dark chocolate desserts.', './images/productList/bf_theBlackDahlia.png'),
(5, 'NOM NOM®', 'Barley Forge Brewery', '5.8', 127, 'Year Round', 'Hefeweizen', 999, 'Nom Nom® is our German Hefeweizen brewed with real mango. Starting with with Pilsner, Wheat & Munich malts, we add pure mango juice powder directly into the boil., then just enough Northern Brewer hops strike a synergistic balance between malt sweetness and bitterness. A traditional Hefeweizen yeast is used, which produces a slight banana and clove aroma. To top it all off, we add some natural mango extract to the brite tank to round out the mango flavor. This delicious offering pairs perfectly with friends and food alike.', './images/productList/bf_nomNom.png'),
(6, '<NAME>', 'Ballast Point Brewery', '4.5', 17, 'Year Round', 'Lager', 999, 'A classic German-Style beer, brewed in San Diego. Our Longfin Lager has become one of the go-to beers with the team at the brewery. A solidly balanced Helles that finishes clean with a hint of hops, it would easily fit in at any German beer garden. But we think it’s perfect for enjoying on the beach, the boat or anywhere else you can put an ice chest full of beer.\r\n', './images/productList/bp_longfin.png'),
(7, 'Citrus Cove', 'Ballast Point Brewery', '4.2', 5, 'Limited Release', 'Session Ale', 999, 'The gateway to an easy get-away. Citrus Cove captures the salty spray of an ocean wind mingled with a bright tropical character that begs one refreshing sip after the other. Crisp, lemon citrus acidity leads the way to a nice, dry, salt and lime zest finish. The result is a surprisingly fresh take on the classic Gose style, turning all hours into happy hour.', './images/productList/bp_citrusCove.png'),
(8, 'Passing Haze', 'Ballast Point Brewery', '4.2', 30, 'Limited Release', 'Session IPA', 999, 'A guiding light among foggy beers. Passing Haze IPA is an off-the-charts exploration of the India Pale Ale. We’ve loaded the hop cannons and fired a late addition blast bursting this incredibly sessionable IPA with juicy, tropical citrus hops. The result is an easy drinking treasure trove of hop gold.', './images/productList/bp_passingHaze.png'),
(9, 'Fathom', 'Ballast Point Brewery', '6.9', 59, 'Year Round', 'IPA', 999, 'A smooth with just the right amount of depth. Fathom IPA highlights our favorite characteristics of the west-coast IPA style. This crisp and clean brew features a touch of malt on the surface with an ocean of zesty orange and piney hops below. The result is a refreshing, easy drinking IPA with just the right amount of depth.', './images/productList/bp_fathom.png'),
(10, 'Lager', 'Ballast Point Brewery', '4.2', 10, 'Year Round', 'Lager', 999, 'Bright, refreshing, and fit for adventure. Our Ballast Point Lager is the quintessential cooler beer for lively adventures or leisurely days. At only 99 calories, this incredibly bright lager still packs a ton of flavor. Brewed with 100% 2-Row barley and a light touch of Apollo hops, Ballast Point Lager is a refreshing choice for any occasion. Whether you’re docked or at sea, it’s the perfect companion for whatever destination lies ahead.', './images/productList/bp_lager.png'),
(16, 'Tropic Of Thunder', 'Stone Brewery', '5.8', 45, 'Year Round', 'Lager', 999, 'Imagine you set sail for a three hour tour. Let’s say from the Port of Escondido (work with us here). The weather started getting rough. Your tiny ship (but not lunch, thankfully) was tossed. Long story short: You’re marooned on a remote island somewhere near the Tropic of Thunder. The good news is that the Capt. of the S.S. Stone and her brewing kit were among the small cast of colorful characters that survived the rough voyage with you. Mainstays Citra & Mosaic along with newcomer Cashmere hops are joined by their juicy tropical aromas of citrus, pineapple and coconut (try stringing all that together in a catchy tune). The rescue ship will find you all soon enough. For now, set aside the non-working cell phone and lack of social media (again, work with us here), kick back and revel in your moment of tropical island lagoon serenity.', './images/productList/st_tropicOfThunder.png'),
(17, 'Xocoveza', 'Stone Brewery', '8.1', 50, 'Special Release', 'Stout', 999, 'This is a beloved stout. When first introduced as a limited special collaboration release with San Diego homebrewer <NAME> (after his recipe won our annual homebrew competition) and Cerveceria Insurgente, it was an instant hit and fans began clamoring for its return. Seeing as how its amazing flavor profile is evocative of Mexican hot chocolate, featuring coffee, pasilla peppers, vanilla, cinnamon, nutmeg and a generous amount of chocolate, we concluded it was the perfect stout to re-release in celebration of the Holidays and the entire winter season. This is now a highly anticipated yearly tradition that we are pleased to present from us to you, and makes a perfect wintry gift from you to your friends, loved ones, or simply to yourself. Cheers!', './images/productList/st_xocoveza.png'),
(18, 'Reveneful Spirit', 'Stone Brewery', '8.1', 53, 'Special Release', 'Imperial IPA', 999, 'In the late summer of 2017 we debuted Stone Vengeful Spirit IPA, a tropical IPA brewed with pineapple & mandarin orange. Its purpose was to demonstrate the gloriousness whole fruit can add to our IPAs. It did so, with a vengeance. So we tasked ourselves with creating an even bigger and more aggressive version of the beer, packing it with extra hops alongside real citrus & tropical fruit. The result is Stone Revengeful Spirit Imperial IPA: a beer, like revenge itself, best served cold.', './images/productList/st_revengefulSpirit.png'),
(19, 'White Geist', 'Stone Brewery', '4.7', 12, 'Special Release', 'Berlinre Weisse', 999, 'Our tartly refreshing, kettle-soured Stone Berliner Weisse gained its orthodox sour and acidic character from a specially selected Lactobacillus strain sourced from local Berlin cultures. To ensure a properly Stone, and therefore iconoclastic, Berliner Weisse, we upped the ABV to a healthy 4.7% and hopped the beer with new German varieties, Huell Melon and Callista. The beer embodies the liveliness of summer with the fruity tang of lemon and melon, further complimented by the tartness of rhubarb and gooseberries.', './images/productList/st_whiteGeist.png'),
(20, 'Ghost Hammer', 'Stone Brewery', '6.7', 56, 'Seasonal Release', 'IPA', 999, 'A fermenting beer never slumbers. Consequently, there is always scattered activity tending our precious beers throughout the dark hours. In these late nights and wee hours that hallowed responsibility falls to the shoulders of the overnight Brew Crew. These brewing soloists brave the long nights, often alone, to do what needs to be done. Most areas of the brewery are dark or in shadows. Throughout the night the cellars resonate with the occasional knocking of expanding and contracting pipes. It can be a bit spooky to hear the brewery creak and groan as if possessed by a spirit randomly knocking about with a mallet. This IPA, liberally hopped with Loral™, honors our intrepid overnight team by naming it after their mischievous poltergeist companion – the Ghost Hammer.', './images/productList/st_ghostHammer.png'),
(21, 'Hazy Memory', 'Lagunitas Brewery', '8.0', 55, 'Year Round', 'IPA', 999, 'So, we… uh… you know. It’s, like, a… well… hmm. So you know when you, like, go somewhere with something to, like, say and all, and then you get there and you totally forget? Let me go back to where I was to see if it’ll come back to me. Hold on… OH YEAH! So…', './images/productList/lg_hazyMemory.png'),
(22, 'Lagur', 'Lagunitas Brewery', '5.0', 30, 'Limited Release', 'Lager', 999, 'This light and crispy Lagunitas Lagur is full of some super-special Loral 291 hops, giving it a floral zing, Perfect wherever beer goes, whenever beer goes! Not a personal flotation device. No shirt, no shoes, no problem. Flip-flops optional. This deluxe libation vessel best operated under primo conditions, including but not limited to: poolside, beachfront, river\'s edge, lake view, hot tub adjacent, pre skinny-dipping, aprés watersliding, water ballooning, conjuring Cthulhu or simply sand-running in super slo-mo. ', './images/productList/lg_lagur.png'),
(23, 'Sumpin\' Easy', 'Lagunitas Brewery', '5.7', 51, 'Year Round', 'Ale', 999, 'Dip beneath the flotsam of categories. Past nouns. Beyond exclamations! Down to the autological: words possessing the very property they express. Short is short. Sesquipedalian is long. Sumpin\' has that thing on the tip of the tongue, and Easy just rolls off as easy as Sunday morning. Sumpin\' Easy is everything we\'ve learned about making hop-forward beer expressed in a moderate voice. Pale, cold, slightly alcoholic, and bitter. It\'s all we know.', './images/productList/lg_sumpinEasy.png'),
(24, '12th of Never', 'Lagunitas Brewery', '5.5', 45, 'Year Round', 'Ale', 999, 'As the River Styx froze and the final pig took flight, when the last winged monkey departed the darkly fragrant netherlands, as wishes became horses and all the beggars rode… Under a newly-blued moon at dawn on the very 12th of Never: the second-to-last craft brewery in America pressed the green ‘start’ button on their canning line. We wanted to be the Last Small Brewer in the U.S. to can their beer and maybe, finally, by now, we are...The ‘12th of Never Ale’ is everything we’ve learned about making hop-forward beer expressed in a moderate voice. Pale, cold, slightly alcoholic, and bitter. It’s all we know.', './images/productList/lg_12thOfNever.png'),
(25, 'Daytime', 'Lagunitas Brewery', '4.0', 31, 'Year Round', 'IPA', 999, 'At 4% ABV and only 98 calories, DayTime IPA represents everything we know about making hop-forward beer, expressed in a sotto voice. The beer in this can has achieved what we all hope for ourselves; to be made new again. There is freedom in burning down the house of expectations and it confers an undeniable lightness to being. We didn\'t invent these truths; they invented us.', './images/productList/lg_daytime.png');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `cartItems`
--
ALTER TABLE `cartItems`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `cartProductID` (`productID`,`cartID`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `cart`
--
ALTER TABLE `cart`
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `cartItems`
--
ALTER TABLE `cartItems`
MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
/*!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 */;
|
--
--
--AUTHOR: <NAME>
--DATE: 06/03/2021
--
-- ----------------------------------------------------------
/*CREAMOS EL USUARIO*/
CREATE USER empleado_airbnb
IDENTIFIED BY empair123;
-- ----------------------------------------------------------
|
<filename>5.2.3/Database/Constraints/AFW_25_THEME_FK1.sql
SET DEFINE OFF;
ALTER TABLE AFW_25_THEME ADD (
CONSTRAINT AFW_25_THEME_FK1
FOREIGN KEY (REF_GROUP_PUBLC)
REFERENCES AFW_25_GROUP_PUBLC (SEQNC)
ON DELETE CASCADE
ENABLE VALIDATE)
/
|
-- 修改字段默认值
ALTER TABLE `ss_node`
CHANGE COLUMN `is_subscribe` `is_subscribe` TINYINT(4) NOT NULL DEFAULT '1' COMMENT '是否允许用户订阅该节点:0-否、1-是' AFTER `monitor_url`,
CHANGE COLUMN `compatible` `compatible` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '兼容SS' AFTER `is_tcp_check`,
CHANGE COLUMN `single` `single` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '单端口多用户:0-否、1-是' AFTER `compatible`;
|
IF NOT EXISTS (SELECT NAME FROM sys.objects WHERE TYPE = 'P' AND NAME = 'RethrowError')
BEGIN
EXEC('CREATE PROCEDURE [dbo].RethrowError AS RETURN')
END
GO
ALTER PROCEDURE RethrowError AS
/* Return if there is no error information to retrieve. */
IF ERROR_NUMBER() IS NULL
RETURN;
DECLARE
@ErrorMessage NVARCHAR(4000),
@ErrorNumber INT,
@ErrorSeverity INT,
@ErrorState INT,
@ErrorLine INT,
@ErrorProcedure NVARCHAR(200);
/* Assign variables to error-handling functions that
capture information for RAISERROR. */
SELECT
@ErrorNumber = ERROR_NUMBER(),
@ErrorSeverity = ERROR_SEVERITY(),
@ErrorState = ERROR_STATE(),
@ErrorLine = ERROR_LINE(),
@ErrorProcedure = ISNULL(ERROR_PROCEDURE(), '-');
/* Building the message string that will contain original
error information. */
SELECT @ErrorMessage =
N'Error %d, Level %d, State %d, Procedure %s, Line %d, ' +
'Message: '+ ERROR_MESSAGE();
/* Raise an error: msg_str parameter of RAISERROR will contain
the original error information. */
RAISERROR(@ErrorMessage, @ErrorSeverity, 1,
@ErrorNumber, /* parameter: original error number. */
@ErrorSeverity, /* parameter: original error severity. */
@ErrorState, /* parameter: original error state. */
@ErrorProcedure, /* parameter: original error procedure name. */
@ErrorLine /* parameter: original error line number. */
);
GO
----------------------------------------------------------------
-- [dbo].[buzzwords] Table
--
IF NOT EXISTS (SELECT NAME FROM sys.objects WHERE TYPE = 'P' AND NAME = 'Insertbuzzwords')
BEGIN
EXEC('CREATE PROCEDURE [dbo].[Insertbuzzwords] AS RETURN')
END
GO
ALTER PROCEDURE [dbo].[Insertbuzzwords]
@id int OUT,
@name nvarchar(50)
AS
BEGIN
SET NOCOUNT ON
BEGIN TRY
INSERT INTO [dbo].[buzzwords] ([name])
VALUES (@name)
SET @id = SCOPE_IDENTITY()
END TRY
BEGIN CATCH
EXEC RethrowError;
END CATCH
SET NOCOUNT OFF
END
GO
IF NOT EXISTS (SELECT NAME FROM sys.objects WHERE TYPE = 'P' AND NAME = 'Updatebuzzwords')
BEGIN
EXEC('CREATE PROCEDURE [dbo].[Updatebuzzwords] AS RETURN')
END
GO
ALTER PROCEDURE [dbo].[Updatebuzzwords]
@id int,
@name nvarchar(50)
AS
BEGIN
--The [dbo].[buzzwords] table doesn't have a timestamp column. Optimistic concurrency logic cannot be generated
SET NOCOUNT ON
BEGIN TRY
UPDATE [dbo].[buzzwords]
SET [name] = @name
WHERE [id]=@id
IF @@ROWCOUNT = 0
BEGIN
RAISERROR('Concurrent update error. Updated aborted.', 16, 2)
END
END TRY
BEGIN CATCH
EXEC RethrowError;
END CATCH
SET NOCOUNT OFF
END
GO
IF NOT EXISTS (SELECT NAME FROM sys.objects WHERE TYPE = 'P' AND NAME = 'Deletebuzzwords')
BEGIN
EXEC('CREATE PROCEDURE [dbo].[Deletebuzzwords] AS RETURN')
END
GO
ALTER PROCEDURE [dbo].[Deletebuzzwords]
@id int
AS
BEGIN
SET NOCOUNT ON
DELETE FROM [dbo].[buzzwords]
WHERE [id]=@id
SET NOCOUNT OFF
END
GO
IF NOT EXISTS (SELECT NAME FROM sys.objects WHERE TYPE = 'P' AND NAME = 'GetAllFrombuzzwords')
BEGIN
EXEC('CREATE PROCEDURE [dbo].[GetAllFrombuzzwords] AS RETURN')
END
GO
ALTER PROCEDURE [dbo].[GetAllFrombuzzwords]
AS
BEGIN
SET NOCOUNT ON
SELECT
[buzzwords].[id] AS 'id',
[buzzwords].[name] AS 'name'
FROM [dbo].[buzzwords] [buzzwords]
SET NOCOUNT OFF
END
GO
IF NOT EXISTS (SELECT NAME FROM sys.objects WHERE TYPE = 'P' AND NAME = 'GetbuzzwordsByid')
BEGIN
EXEC('CREATE PROCEDURE [dbo].[GetbuzzwordsByid] AS RETURN')
END
GO
ALTER PROCEDURE [dbo].[GetbuzzwordsByid]
@id int
AS
BEGIN
SET NOCOUNT ON
SELECT
[buzzwords].[id] AS 'id',
[buzzwords].[name] AS 'name'
FROM [dbo].[buzzwords] [buzzwords]
WHERE [id]=@id
SET NOCOUNT OFF
END
GO
|
<gh_stars>10-100
-- file:tstypes.sql ln:213 expect:true
SELECT ts_delete('base hidden rebel spaceship strike'::tsvector, ARRAY['spaceship','leya','rebel','rebel'])
|
<reponame>tstenner1/SQL-challenge<gh_stars>0
--Use the information you have and create a table schema for each of the six CSV files. Remember to specify data types, primary keys, foreign keys, and other constraints.
--For the primary keys check if the column is unique, otherwise create a composite key. Which takes to primary keys in order to uniquely identify a row.
--Be sure to create tables in the correct order to handle foreign keys.
--Import each CSV file into the corresponding SQL table. Be sure to import the data in the same order that the tables were created and account for the headers when importing to avoid errors.
CREATE TABLE departments (
dept_no VARCHAR,
dept_name VARCHAR NOT NULL,
PRIMARY KEY (dept_no)
);
select * from departments
CREATE TABLE dept_emp (
emp_no INT NOT NULL,
dept_no VARCHAR NOT NULL,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY (emp_no) REFERENCES employees(emp_no),
FOREIGN KEY (dept_no) REFERENCES departments(dept_no)
);
select * from dept_emp
CREATE TABLE dept_managers (
dept_no VARCHAR,
emp_no INT,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY (dept_no) REFERENCES departments(dept_no),
FOREIGN KEY (emp_no) REFERENCES employees(emp_no)
);
select * from dept_managers
CREATE TABLE employees (
emp_no INT NOT NULL,
birth_date DATE NOT NULL,
first_name VARCHAR NOT NULL,
last_name VARCHAR NOT NULL,
gender VARCHAR NOT NULL,
hire_date DATE NOT NULL,
PRIMARY KEY (emp_no)
);
select * from employees
CREATE TABLE salaries (
emp_no INT NOT NULL,
salary INT NOT NULL,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY(emp_no) REFERENCES employees(emp_no)
);
select * from salaries
CREATE TABLE titles (
emp_no INT NOT NULL,
title VARCHAR NOT NULL,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY(emp_no) REFERENCES employees(emp_no)
);
select * from titles
|
delete from SR_RETURN_ANSWER where answer_id in (79800,80750,80751);
-- Query OK, 3 rows affected (0.01 sec)
delete from SR_ANSWER where id in (79800,80750,80751);
-- Query OK, 3 rows affected (0.01 sec)
update SR_RETURN set applicable_period = '2016-17' where id in(480,481,975);
-- remove all survey returns for org = undefined
delete from SR_RETURN_ANSWER where survey_return_id = 977;
delete from SR_RETURN where id = 977;
update SR_QUESTION set tenant_id = 'sdu' where tenant_id is null;
-- 14
-- remove detached answers
delete from SR_ANSWER where id not in (Select answer_id from SR_RETURN_ANSWER);
-- remove non-unique answers
-- RD1
delete from SR_RETURN_ANSWER where answer_id in (81899, 81901, 81904, 81903, 79898, 79803, 79900);
delete from SR_ANSWER where id in (81899, 81901, 81904, 81903, 81903, 79898, 79803, 79900);
-- RH5
delete from SR_RETURN_ANSWER where answer_id in(81059, 81060, 80892, 80893, 80747, 80748, 80609, 80608, 80847, 80848);
delete from SR_ANSWER where id in (81059, 81060, 80892, 80893, 80747, 80748, 80609, 80608, 80847, 80848);
delete from SR_RETURN_ANSWER where answer_id in(select id from SR_ANSWER where question_id in (select id from SR_QUESTION where source is null));
delete from SR_ANSWER where question_id in (select id from SR_QUESTION where source is null);
delete from SR_QUESTION where id = 577;
-- select * from ACT_ID_INFO where user_id_ = 'tstephen';
update ACT_ID_INFO set value_ = 'RD1' where id_ = 100;
|
<filename>Api/resources/database/scripts/backup210420.sql<gh_stars>0
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64)
--
-- Host: localhost Database: pandorabox
-- ------------------------------------------------------
-- Server version 8.0.19
/*!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 */;
/*!50503 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 `colaborador`
--
DROP TABLE IF EXISTS `colaborador`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `colaborador` (
`idUsuario` int NOT NULL,
`idProject` int NOT NULL,
`idTypeUser` int NOT NULL,
`active` tinyint DEFAULT NULL,
KEY `fk_idProyect_idx` (`idProject`),
KEY `fk_idUser_idx` (`idUsuario`),
KEY `fk_idTypeUser_idx` (`idTypeUser`),
CONSTRAINT `fk_idProyect` FOREIGN KEY (`idProject`) REFERENCES `proyecto` (`idProject`),
CONSTRAINT `fk_idTypeUser` FOREIGN KEY (`idTypeUser`) REFERENCES `tipousuario` (`idTipoUsuario`),
CONSTRAINT `fk_idUser` FOREIGN KEY (`idUsuario`) REFERENCES `usuario` (`idUsuario`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `proyecto`
--
DROP TABLE IF EXISTS `proyecto`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `proyecto` (
`idProject` int NOT NULL AUTO_INCREMENT,
`idOwner` int NOT NULL,
`emailProject` varchar(50) DEFAULT NULL,
`initDate` date DEFAULT NULL,
`addressRepository` varchar(200) DEFAULT NULL,
`webProject` varchar(200) DEFAULT NULL,
`nameProject` varchar(45) DEFAULT NULL,
PRIMARY KEY (`idProject`,`idOwner`),
KEY `id_idx` (`idOwner`),
CONSTRAINT `fk_idOwner` FOREIGN KEY (`idOwner`) REFERENCES `usuario` (`idUsuario`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `tipousuario`
--
DROP TABLE IF EXISTS `tipousuario`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tipousuario` (
`idTipoUsuario` int NOT NULL AUTO_INCREMENT,
`nameType` varchar(45) DEFAULT NULL,
`descriptionType` varchar(45) DEFAULT NULL,
PRIMARY KEY (`idTipoUsuario`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `usuario`
--
DROP TABLE IF EXISTS `usuario`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `usuario` (
`idUsuario` int NOT NULL AUTO_INCREMENT,
`userName` varchar(30) DEFAULT NULL,
`firstName` varchar(30) DEFAULT NULL,
`lastName` varchar(30) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`idUserType` int DEFAULT NULL,
`createDate` date DEFAULT NULL,
`active` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`idUsuario`),
CONSTRAINT `fk_idUserType` FOREIGN KEY (`idUsuario`) REFERENCES `tipousuario` (`idTipoUsuario`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 2020-04-21 17:25:15
|
create table pmprofile
(
md5 char(32)
) inherits (pmodel) without oids;
create unique index pmprofile_pmodel_id_idx on pmprofile(pmodel_id);
create unique index pmprofile_md5_idx on pmprofile(md5);
create index pmprofile_name_idx on pmprofile(name);
create table pfprofile
(
pmodel_id integer references pmprofile(pmodel_id)
on update cascade on delete cascade,
eval double precision,
len smallint
) inherits (pfeature) without oids;
create index pfprofile_pmodel_id_idx on pfprofile(pmodel_id);
create index pfprofile_eval_idx on pfprofile(eval);
|
{% snapshot snap_orders_check %}
{{
config(
target_schema='snapshots',
strategy='check',
unique_key='order_id',
check_cols=['status_orders'],
)
}}
select * from {{ref('stg_orders_table')}}
{% endsnapshot %}
|
select * from table01;
select * from table02;
|
CREATE TABLE [tracked_deletes_samplestudenttranscript].[InstitutionControlDescriptor]
(
InstitutionControlDescriptorId [INT] NOT NULL,
Id uniqueidentifier NOT NULL,
ChangeVersion bigint NOT NULL,
CONSTRAINT PK_InstitutionControlDescriptor PRIMARY KEY CLUSTERED (ChangeVersion)
)
CREATE TABLE [tracked_deletes_samplestudenttranscript].[InstitutionLevelDescriptor]
(
InstitutionLevelDescriptorId [INT] NOT NULL,
Id uniqueidentifier NOT NULL,
ChangeVersion bigint NOT NULL,
CONSTRAINT PK_InstitutionLevelDescriptor PRIMARY KEY CLUSTERED (ChangeVersion)
)
CREATE TABLE [tracked_deletes_samplestudenttranscript].[PostSecondaryOrganization]
(
NameOfInstitution [NVARCHAR](75) NOT NULL,
Id uniqueidentifier NOT NULL,
ChangeVersion bigint NOT NULL,
CONSTRAINT PK_PostSecondaryOrganization PRIMARY KEY CLUSTERED (ChangeVersion)
)
CREATE TABLE [tracked_deletes_samplestudenttranscript].[SpecialEducationGraduationStatusDescriptor]
(
SpecialEducationGraduationStatusDescriptorId [INT] NOT NULL,
Id uniqueidentifier NOT NULL,
ChangeVersion bigint NOT NULL,
CONSTRAINT PK_SpecialEducationGraduationStatusDescriptor PRIMARY KEY CLUSTERED (ChangeVersion)
)
CREATE TABLE [tracked_deletes_samplestudenttranscript].[SubmissionCertificationDescriptor]
(
SubmissionCertificationDescriptorId [INT] NOT NULL,
Id uniqueidentifier NOT NULL,
ChangeVersion bigint NOT NULL,
CONSTRAINT PK_SubmissionCertificationDescriptor PRIMARY KEY CLUSTERED (ChangeVersion)
)
|
<filename>src/main/resources/reports/invoices_balance_daily/report_invoices_balance_daily.ddl
create table report_invoices_balance_daily as select * from v_report_invoices_balance_daily limit 0;
drop procedure if exists refresh_report_invoices_balance_daily;
DELIMITER //
CREATE PROCEDURE refresh_report_invoices_balance_daily()
BEGIN
DECLARE EXIT HANDLER FOR SQLEXCEPTION ROLLBACK;
DECLARE EXIT HANDLER FOR SQLWARNING ROLLBACK;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
START TRANSACTION;
delete from report_invoices_balance_daily;
insert into report_invoices_balance_daily select * from v_report_invoices_balance_daily;
COMMIT;
END;
//
DELIMITER ;
|
<gh_stars>1-10
-- Database: cone
-- DROP DATABASE cone;
CREATE DATABASE cone
WITH
OWNER = inge_rw
ENCODING = 'UTF8'
LC_COLLATE = 'de_DE.UTF-8'
LC_CTYPE = 'de_DE.UTF-8'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
GRANT TEMPORARY, CONNECT ON DATABASE cone TO PUBLIC;
GRANT ALL ON DATABASE cone TO inge_rw;
-- Database: inge
-- DROP DATABASE inge;
CREATE DATABASE inge
WITH
OWNER = inge_rw
ENCODING = 'UTF8'
LC_COLLATE = 'de_DE.UTF-8'
LC_CTYPE = 'de_DE.UTF-8'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
GRANT TEMPORARY, CONNECT ON DATABASE inge TO PUBLIC;
GRANT ALL ON DATABASE inge TO inge_rw;
|
<reponame>sambitesh/gpdb
BEGIN;
REINDEX INDEX cr_co_reindex_bitmap_idx1;
COMMIT;
|
<reponame>maurizioabba/rose<gh_stars>100-1000
-- Computes statistics about false negatives in a database populated with two or more specimens compiled in different ways.
drop table if exists fr_results;
drop table if exists fr_results_precision_recall;
drop table if exists fr_false_positives;
drop table if exists fr_false_negatives;
drop table if exists fr_true_positives;
drop table if exists fr_true_negatives;
drop table if exists fr_clone_pairs;
drop table if exists fr_negative_pairs;
drop table if exists fr_positive_pairs;
drop table if exists fr_true_negatives;
drop table if exists fr_true_positives;
drop table if exists fr_function_pairs;
drop index if exists fr_fio_func_id;
drop table if exists fr_fio;
drop table if exists fr_functions;
drop table if exists fr_funcnames;
drop table if exists fr_specimens;
-- Files that are binary specimens; i.e., not shared libraries, etc.
create table fr_specimens as
select distinct specimen_id as id
from semantic_functions;
-- Function names that are present exactly once in each specimen
-- And which contain a certain number of instructions
-- And for which no test tried to consume too many inputs (status<>911000007)
-- And which come from the specimen, not from a dynamic library
create table fr_funcnames as
select func1.name as name
from fr_specimens as file
join semantic_functions as func1 on func1.file_id = file.id
left join semantic_functions as func2
on func1.id<>func2.id and func1.name <> '' and func1.name=func2.name and func1.file_id=func2.file_id
where func2.id is null and func1.ninsns >= ( select min_insns from fr_settings )
group by func1.name
having count(*) = (select count(*) from fr_specimens)
-- except (
-- select func.name as name
-- from semantic_fio as fio
-- join semantic_functions as func on fio.func_id = func.id
-- where fio.globals_consumed > 0
-- )
;
-- Functions that have a name and which appear once per specimen by that name.
create table fr_functions as
select distinct func.*
from fr_funcnames as named
join semantic_functions as func on named.name = func.name
-- uncomment the following lines to consider only those functions that passed at least once
-- join semantic_fio as test on func.id=test.func_id and test.status=0
;
-- Tests that we want to consider
create table fr_fio as
select fio.*
from fr_functions as func
join semantic_fio as fio on func.id = fio.func_id;
create index fr_fio_func_id on fr_fio(func_id);
-- Select all pairs of functions from two different specimens
create table fr_function_pairs as
select distinct f1.id as func1_id, f2.id as func2_id
from fr_functions as f1
join fr_functions as f2 on f1.id < f2.id and f1.specimen_id <> f2.specimen_id
-- where f1.ninsns >= 100 AND f2.ninsns >= 100
-- Uncomment the following lines to consider only those pairs of functions where both functions passed for
-- at least one of the same input groups
join fr_fio as test1 on f1.id = test1.func_id
join fr_fio as test2 on f2.id = test2.func_id and test1.igroup_id = test2.igroup_id
where test1.status = 0 and test2.status = 0 AND f1.ninsns >= ( select min_insns from fr_settings ) AND f2.ninsns >= ( select min_insns from fr_settings )
-- Uncomment the following lines to consider only those pairs of functions where all tests were successful
-- except
-- select f1.id as func1_id, f2.id as func2_id
-- from fr_functions as f1
-- join fr_functions as f2 on f1.name = f2.name and f1.id < f2.id and f1.specimen_id <> f2.specimen_id
-- join fr_fio as test1 on f1.id = test1.func_id
-- join fr_fio as test2 on f2.id = test2.func_id
-- where test1.status <> 0 or test2.status <> 0
;
-- Pairs of functions that should have been detected as being similar. We're assuming that any pair of binary functions that
-- have the same name are in fact the same function at the source level and should therefore be similar.
create table fr_positive_pairs as
select pair.*
from fr_function_pairs as pair
join fr_functions as f1 on pair.func1_id = f1.id
join fr_functions as f2 on pair.func2_id = f2.id
where f1.name = f2.name;
-- Pairs of functions that should not have been detected as being similar. We're assuming that if the two functions have
-- different names then they are different functions in the source code, and that no two functions in source code are similar.
-- That second assumption almost certainly doesn't hold water!
create table fr_negative_pairs as
select pair.*
from fr_function_pairs as pair
join fr_functions as f1 on pair.func1_id = f1.id
join fr_functions as f2 on pair.func2_id = f2.id
where f1.name <> f2.name;
-- Pairs of functions that were _detected_ as being similar.
create table fr_clone_pairs as
select sim.func1_id, sim.func2_id
from semantic_funcsim sim
join api_call_similarity api_sem on api_sem.func1_id = sim.func1_id AND api_sem.func2_id = sim.func2_id
where sim.similarity >= (select similarity_threshold from fr_settings)
AND api_sem.ave_similarity >= (select path_similarity_threshold from fr_settings)
AND api_sem.cg_similarity >= (select cg_similarity_threshold from fr_settings)
--AND sim.path_max_euclidean_d_ratio - sim.path_min_euclidean_d_ratio < 0.5
--AND sim.path_max_euclidean_d_ratio < 3.0
except(
select func1_id, func2_id from fr_ignored_function_pairs
)
;
-- Table of false negative pairs. These are pairs of functions that were not determined to be similar but which are present
-- in the fr_positives_pairs table.
create table fr_false_negatives as
select * from fr_positive_pairs except select func1_id, func2_id from fr_clone_pairs;
-- Table of false positive pairs. These are pairs of functions that were determined to be similar but which are present
-- in the fr_negative_pairs table.
create table fr_false_positives as
select * from fr_negative_pairs intersect select func1_id, func2_id from fr_clone_pairs;
create table fr_true_positives as
select * from fr_positive_pairs intersect select func1_id, func2_id from fr_clone_pairs;
create table fr_true_negatives as
select * from fr_negative_pairs except select func1_id, func2_id from fr_clone_pairs;
-- False negative rate is the ratio of false negatives to expected positives
-- False positive rate is the ratio of false positives to expected negatives
create table fr_results as
select
(select count(*) from fr_positive_pairs) as expected_positives,
(select count(*) from fr_negative_pairs) as expected_negatives,
((select count(*) from fr_true_positives ) + (select count(*) from fr_false_positives) ) as positives,
((select count(*) from fr_true_negatives ) + (select count(*) from fr_false_negatives) ) as negatives,
(select count(*) from fr_true_positives ) as true_positives,
(select count(*) from fr_true_negatives ) as true_negatives,
(select count(*) from fr_false_positives) as false_positives,
(select count(*) from fr_false_negatives) as false_negatives,
((select 100.0*count(*) from fr_true_positives ) / (0.001+((select count(*) from fr_true_positives ) + (select count(*) from fr_false_positives)))) as tp_percent,
(100.0*((select 1.0*count(*) from fr_negative_pairs ) - (select 1.0*count(*) from fr_false_negatives) ) / (0.001+(select count(*) from fr_negative_pairs))) as tn_percent,
((select 100.0*count(*) from fr_false_positives) / (0.001+((select count(*) from fr_true_positives ) + (select count(*) from fr_false_positives) ))) as fp_percent,
((select 100.0*count(*) from fr_false_negatives) / (0.001+(select count(*) from fr_negative_pairs))) as fn_percent
;
create table fr_results_precision_recall as
select
( (select 100.0*true_positives from fr_results limit 1) / (0.001+( ( select true_positives from fr_results limit 1 ) + (select false_negatives from fr_results limit 1) )) ) as recall,
( (select 100.0*true_negatives from fr_results limit 1) / (0.001+( ( select true_negatives from fr_results limit 1) + (select false_positives from fr_results limit 1)) )) as specificity,
( (select 100.0*true_positives from fr_results limit 1) / (0.001+( ( select true_positives from fr_results limit 1) + (select false_positives from fr_results limit 1 )))) as precision,
( 2 *
( (select 100.0*true_positives from fr_results limit 1) / (0.001+( ( select true_positives from fr_results limit 1 ) + (select false_negatives from fr_results limit 1) )) )
* ( (select 100.0*true_positives from fr_results limit 1) / (0.001+( ( select true_positives from fr_results limit 1) + (select false_positives from fr_results limit 1 ))))
/ (0.001+
( (select 100.0*true_positives from fr_results limit 1) / (0.001+( ( select true_positives from fr_results limit 1 ) + (select false_negatives from fr_results limit 1) )) )
+ ( (select 100.0*true_positives from fr_results limit 1) / (0.001+( ( select true_positives from fr_results limit 1) + (select false_positives from fr_results limit 1 ))))
)
) as fscore
;
|
DROP DATABASE IF EXISTS burgers_db;
CREATE DATABASE burgers_db;
USE burgers_db;
CREATE TABLE addaBurger (
id int AUTO_INCREMENT NOT NULL,
burger_name varchar(50) NOT NULL,
devoured boolean,
PRIMARY KEY(id)
);
|
UPDATE invites SET consumed_at = NOW() WHERE id = $1;
|
-- AlterTable
ALTER TABLE `Task` ADD COLUMN `userId` VARCHAR(191) NULL;
-- AddForeignKey
ALTER TABLE `Task` ADD CONSTRAINT `Task_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : mer. 23 mars 2022 à 17:49
-- Version du serveur : 10.4.22-MariaDB
-- Version de PHP : 8.0.13
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 */;
--
-- Base de données : `gsbmedecins`
--
-- --------------------------------------------------------
--
-- Structure de la table `departements`
--
CREATE TABLE `departements` (
`id` int(11) NOT NULL,
`numero` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `medecins`
--
CREATE TABLE `medecins` (
`id` int(11) NOT NULL,
`nom` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`prenom` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`adresse` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tel` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`spe` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`departement` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Déchargement des données de la table `medecins`
--
INSERT INTO `medecins` (`id`, `nom`, `prenom`, `adresse`, `tel`, `spe`, `departement`) VALUES
(1, '<NAME>', 'Prosper', '25 rue Anatole France BRIANCON 05100', '0485244174', NULL, 5),
(2, 'Ferdinand', 'Anne-Lucie', '39 rue des gatinnes BILLIAT 01200', '0433812572', NULL, 1),
(3, 'Pastor', 'Camille', '58 rue du stade MESSINCOURT 08110', '0365489929', NULL, 8),
(4, 'Certifat', 'Alice', '12 rue des Pigeons JOIGNY-SUR-MEUSE 08700', '0319692016', NULL, 8),
(5, 'Scipillon', 'Vénus', '55 rue du 14 juillet ORCIERES 05170', '0421670911', NULL, 5),
(6, 'Shavert', 'Anne-Lucie', '49 rue des Ormes ATTILLY 02490', '0313817061', NULL, 2),
(7, 'Nasri', 'Marie', '78 rue de Poligny YONCQ 08210', '0388716930', 'HOMEOPATHIE', 8),
(8, 'Chamois', 'Andrew', '29 rue des Pigeons SAVINES-LE-LAC 05160', '0477740994', NULL, 5),
(9, 'Jamgotchian', 'Julien', '45 rue de du général Scott THIN-LE-MOUTIER 08460', '0321760709', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(10, 'Cherioux', 'Aurèle', '16 rue Alphonse Daudet ORCIERES 05170', '0485568083', NULL, 5),
(11, 'Hansbern', 'Johnny', '74 rue de Paris SAVINES-LE-LAC 05160', '0417789322', NULL, 5),
(12, 'Billahian', 'Andrée', '29 rue Edouard Hériot SAINT-SAUVEUR 05200', '0439352503', NULL, 5),
(13, 'Zerbib', 'Gilles', '33 rue Commandant Hériot MONTIGNY-SUR-MEUSE 08170', '0334037052', NULL, 8),
(14, 'Varditi', 'Vénus', '14 rue de la poste BANCIGNY 02140', '0313832194', NULL, 2),
(15, 'Labatiste', 'Cristophe', '81 rue Bonaparte AUBENTON 02500', '0366612144', NULL, 2),
(16, 'Gaudin', 'Jules', '85 rue Hector Berlioz BRIANCON 05100', '0459073011', NULL, 5),
(17, 'CHeroudy', 'Julienne', '17 rue Lampion AUGIREIN 09800', '0524077425', NULL, 9),
(18, 'Lirevien', 'John', '92 rue du général de Gaulle SORBIERS 05150', '0484328394', 'HOMEOPATHIE', 5),
(19, 'Pistache', 'Cristophe', '1 rue des Accacias BELLOC 09600', '0564847694', NULL, 9),
(20, 'Nazaoui', 'Catherine', '8 rue des Accacias MONCEAU-SUR-OISE 02120', '0352679072', NULL, 2),
(21, 'Vipère', 'Julien', '51 rue Bonaparte CAMON 09500', '0552863581', NULL, 9),
(22, 'Fortin', 'Nohan', '69 rue Mallarmé AX-LES-THERMES 09110', '0596648531', NULL, 9),
(23, 'Chemkaoui', 'Julienne', '72 rue Pasteur SAVOURNON 05700', '0490527954', NULL, 5),
(24, 'Ségura', 'Irénée', '28 rue Anatole France BELLEY 01300', '0486481045', NULL, 1),
(25, 'Fortin', 'François', '78 rue des Epines AZY-SUR-MARNE 02400', '0318212781', NULL, 2),
(26, 'Roland', 'Charles-Edouard', '86 rue Louis Aragon BILLIAT 01200', '0446961025', NULL, 1),
(27, 'Prestoriat', 'Jérémy', '89 rue de la pointe SAINT-FIRMIN 05800', '0438318333', NULL, 5),
(28, 'Varicelle', 'Johnny', '19 rue de la Tour JOIGNY-SUR-MEUSE 08700', '0341883832', NULL, 8),
(29, 'Zidanne', 'Hector', '29 rue de la pointe BOURG-EN-BRESSE 01000', '0431450970', NULL, 1),
(30, 'Hatiche', 'Mohammed', '30 rue Pasteur BEZAC 09100', '0591677334', 'MEDECINE APPLIQUEE AUX SPORTS', 9),
(31, 'Sursarshill', 'Annie', '82 rue Mallarmé SIGOYER 05130', '0487018886', NULL, 5),
(32, 'Cherioux', 'Caline', '27 rue de Marigny BRIANCON 05100', '0444253472', NULL, 5),
(33, 'Framier', 'Jordan', '53 rue Alphonse Daudet SAINT-LAURENT-SUR-SAONE 01750', '0463813731', NULL, 1),
(34, 'Falmino', 'Anne-Lucie', '94 rue de la pointe BOULIGNEUX 01330', '0462262613', NULL, 1),
(35, 'Klébert', 'Reissa', '63 rue Alphonse Daudet AX-LES-THERMES 09110', '0563092583', NULL, 9),
(36, 'Mérieux', 'Anne-Jeanne', '26 rue des Armées AVANCON 05230', '0442237548', NULL, 5),
(37, 'Merlieux', 'Fatima', '24 rue Albert Camus PELVOUX 05340', '0411439067', 'URGENTISTE', 5),
(38, 'Zomar', 'Alice', '33 rue de la Tour BOURG-EN-BRESSE 01000', '0479660588', NULL, 1),
(39, 'Faure', 'Béatrice', '25 rue des Lilas LAUNOIS-SUR-VENCE 08430', '0389426738', NULL, 8),
(40, 'Balittin', 'Armelle', '48 rue de Paris REOTIER 05600', '0467247607', NULL, 5),
(41, 'Alprousky', 'Anselme', '19 rue des pyramides ARANDAS 01230', '0434638475', NULL, 1),
(42, 'Faure', 'John', '23 rue Alphonse Daudet SORBIERS 05150', '0473380415', NULL, 5),
(43, 'Mérieux', 'Firmin', '59 rue de la Pergolat FLEVILLE 08250', '0337420570', NULL, 8),
(44, 'Yanshen', 'Anne', '59 rue de du général Scott MONTCY-NOTRE-DAME 08090', '0310431717', 'ACUPONCTURE', 8),
(45, 'Bouglieux', 'Gilles', '65 rue des oiseaux ARROUT 09800', '0578097401', 'MEDECINE APPLIQUEE AUX SPORTS', 9),
(46, 'Braquet', 'Anne-Jeanne', '29 rue Petit BEDEILLE 09230', '0523206238', NULL, 9),
(47, 'Vipère', 'Anne-Lucie', '14 rue Petit BEZAC 09100', '0512011679', NULL, 9),
(48, 'Billahian', 'Carole', '86 rue du capitaine Fraquasse BETTANT 01500', '0490382365', 'HOMEOPATHIE', 1),
(49, 'Hanscart', 'Amiel', '22 rue Lampion BELLEY 01300', '0463584743', NULL, 1),
(50, '<NAME>', 'Martial', '75 rue du capitaine Crochet ATTILLY 02490', '0361985743', NULL, 2),
(51, 'Epriniche', 'Anne-Laure', '60 rue Pernod BETTANT 01500', '0437621473', NULL, 1),
(52, 'Oumar', 'Prosper', '46 rue de la Tour REOTIER 05600', '0450401007', 'ACUPONCTURE', 5),
(53, 'Brouzais', 'Fatima', '95 rue de Poligny BOURG-EN-BRESSE 01000', '0481057435', NULL, 1),
(54, 'Guimauve', 'Jérome', '39 rue Commandant Hériot BANCIGNY 02140', '0315759754', NULL, 2),
(55, 'Guimauve', 'Ines', '90 rue Pernod ROCHEBRUNE 05190', '0444572962', 'ALLERGOLOGIE', 5),
(56, 'Scipion', 'Jérémie', '45 rue des Chantereines FLOING 08200', '0333621591', NULL, 8),
(57, 'Chevalier', 'Anne-Marie', '48 rue du 14 juillet BRIANCON 05100', '0478777229', NULL, 5),
(58, 'Heroudy', 'Armelle', '88 rue des Argonautes DOMMARTIN 01380', '0482500579', NULL, 1),
(59, '<NAME>', 'Anselme', '18 rue de du général Scott BOURG-EN-BRESSE 01000', '0428387190', 'GERONTOLOGIE', 1),
(60, 'Frequin', 'Aude', '98 rue H<NAME>z BOULIGNEUX 01330', '0460116931', NULL, 1),
(61, 'Razaoui', 'Camille', '43 rue de la poste ASTON 09310', '0554877193', NULL, 9),
(62, 'Nahraoui', 'Bernard', '69 rue Debussy AX-LES-THERMES 09110', '0592618819', NULL, 9),
(63, 'Chakraoui', 'Johnny', '27 rue <NAME>ONTCEAUX 01090', '0410938634', NULL, 1),
(64, 'Lopes', 'Aude', '40 rue Mallarmé SAINT-FIRMIN 05800', '0434328795', NULL, 5),
(65, 'Charmieux', 'Anne-Lucie', '80 rue Victor Hugo LAVAL-MORENCY 08150', '0354570788', NULL, 8),
(66, '<NAME>', 'Alice', '48 rue des perles blanches QUATRE-CHAMPS 08400', '0351022549', NULL, 8),
(67, 'Astoria', 'Bénédicte', '44 rue des Pigeons SAINT-LAURENT-SUR-SAONE 01750', '0453817641', NULL, 1),
(68, '<NAME>', 'Précilia', '65 rue St Denis ASTON 09310', '0574385413', NULL, 9),
(69, 'Charlequin', 'Andrée', '86 rue des Pigeons AX-LES-THERMES 09110', '0512919575', NULL, 9),
(70, 'Merlieux', 'Bertrand', '87 rue du 14 juillet BARZY-SUR-MARNE 02850', '0389988201', 'ALLERGOLOGIE', 2),
(71, '<NAME>', 'Jérome', '40 rue Bonaparte MAYOT 02800', '0380247692', NULL, 2),
(72, 'Pionneer', 'Victor', '91 rue Malraux MEZIERES-SUR-OISE 02240', '0396223586', NULL, 2),
(73, 'Pistache', 'Victor', '86 rue du capitaine Fraquasse SAVINES-LE-LAC 05160', '0424098074', NULL, 5),
(74, 'Charmieux', 'Bertrand', '44 rue du capitaine Fraquasse MONTIGNY-SUR-MEUSE 08170', '0365814281', NULL, 8),
(75, 'Jarrinovski', 'Adrien', '47 rue Commandant Hériot AUDRESSEIN 09800', '0561293920', NULL, 9),
(76, 'Chermis', 'Irénée', '42 rue des Epines SAINT-LAURENT-SUR-SAONE 01750', '0432573377', NULL, 1),
(77, 'Pizoulais', 'Amélie', '95 rue Anatole France HERBEUVAL 08370', '0395342234', NULL, 8),
(78, 'Gullit', 'Jordan', '18 rue Blainville AVANCON 05230', '0410805260', NULL, 5),
(79, 'Zomar', 'Anne-Laure', '49 rue des Princes OYONNAX 01100', '0495914341', NULL, 1),
(80, '<NAME>', 'Ingrid', '90 rue des Lilas BELLOC 09600', '0550136460', NULL, 9),
(81, 'Prouteau', 'Yoan', '2 rue Beaudelaire FALAISE 08400', '0349609708', NULL, 8),
(82, 'Zebitoun', 'Jules', '61 rue Petit SORBIERS 05150', '0453597713', 'ANGEIOLOGIE', 5),
(83, 'Gaudillot', 'Jérome', '12 rue Agniel ABBECOURT 02300', '0336592352', NULL, 2),
(84, 'Pionneer', 'Bernard', '46 rue des Néfliers ARROUT 09800', '0593876907', NULL, 9),
(85, 'Aznavourian', 'Anne-Jeanne', '94 rue de la Tour AUBENTON 02500', '0315358087', NULL, 2),
(86, 'Zingaro', 'John', '13 rue de la recette MONT-LAURENT 08130', '0324815927', NULL, 8),
(87, 'Thardieux', 'Aurélien', '34 rue Alphonse Daudet MONTCY-NOTRE-DAME 08090', '0388838695', 'ALLERGOLOGIE', 8),
(88, 'Zingaro', 'Anne-Marie', '50 rue Commandant Mouchotte BARENTON-SUR-SERRE 02270', '0380767789', NULL, 2),
(89, '<NAME>', 'Marie', '36 rue de la rose BOULIGNEUX 01330', '0459841705', NULL, 1),
(90, '<NAME>', 'Bertrand', '80 rue Beaudelaire FLOING 08200', '0370254981', NULL, 8),
(91, 'Mingalle', 'Austine', '37 rue Agniel BILLIAT 01200', '0498702952', NULL, 1),
(92, 'Zingaro', 'Aline', '85 rue des Cavaux AUBENTON 02500', '0320874526', 'ACUPONCTURE', 2),
(93, 'Zebitoun', 'Béatrice', '98 rue Perdue AUDRESSEIN 09800', '0550107365', NULL, 9),
(94, 'Charles', 'Fernand', '21 rue Blainville ABBECOURT 02300', '0379546875', NULL, 2),
(95, 'Brouzais', 'Anne-Lucie', '47 rue des Anses bleues BARENTON-SUR-SERRE 02270', '0357798474', NULL, 2),
(96, 'Bridel', 'Julienne', '89 rue du stade VAUX-CHAMPAGNE 08130', '0321409034', NULL, 8),
(97, 'Sursarshill', 'Alain', '21 rue des pyramides MONTCY-NOTRE-DAME 08090', '0355126171', NULL, 8),
(98, 'Radesky', 'André', '70 rue de la rose THIN-LE-MOUTIER 08460', '0383574338', NULL, 8),
(99, 'Fortin', 'Anne-Lucie', '28 rue du Mont AX-LES-THERMES 09110', '0525425981', NULL, 9),
(100, 'Roland', 'Jérémie', '83 rue de la pointe MONTCY-NOTRE-DAME 08090', '0344175754', NULL, 8),
(101, 'Zola', 'Alizée', '23 rue des Néfliers BARZY-SUR-MARNE 02850', '0318063658', NULL, 2),
(102, 'Lafricain', 'Béatrice', '75 rue de la poste SIGOYER 05130', '0499728475', NULL, 5),
(103, 'Shavert', 'Jimmy', '57 rue du 14 juillet BEDEILLE 09230', '0579403405', NULL, 9),
(104, 'Labuze', 'Martin', '77 rue Edouard Hériot PELVOUX 05340', '0465821962', NULL, 5),
(105, 'Charminet', 'Astine', '77 rue des Chantereines SIGOYER 05130', '0443207794', NULL, 5),
(106, 'Francis', 'Julien', '75 rue des Epines EVIGNY 08090', '0353124513', NULL, 8),
(107, 'Lièvremont', 'Anne-Lucie', '64 rue des Pigeons BEAUMONT-EN-BEINE 02300', '0357357391', NULL, 2),
(108, 'Martinet', 'Fernand', '21 rue Commandant Hériot ARROUT 09800', '0533982064', 'ALLERGOLOGIE', 9),
(109, 'Pletziglass', 'Aurélien', '13 rue Debussy AUGIREIN 09800', '0550671849', NULL, 9),
(110, 'Raminski', 'Hector', '54 rue des Chantereines BEAUMONT-EN-BEINE 02300', '0397960460', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(111, '<NAME>', 'Bénédicte', '7 rue de Paris BOURG-EN-BRESSE 01000', '0483574560', NULL, 1),
(112, 'Kopa', 'Aristote', '35 rue des Argonautes FEPIN 08170', '0321622783', 'ACUPONCTURE', 8),
(113, 'Framier', 'Anémone', '66 rue Blainville ARROUT 09800', '0561274309', NULL, 9),
(114, '<NAME>', 'Hamed', '96 rue de la Tour SAINT-CREPIN 05600', '0466381035', NULL, 5),
(115, 'Rastuffe', 'Précilia', '45 rue des Chantereines MONTIGNY-SUR-MEUSE 08170', '0319515228', NULL, 8),
(116, 'Epriniche', 'Ines', '54 rue de la Tour AUGIREIN 09800', '0522353355', NULL, 9),
(117, 'Newmann', 'Alizée', '32 rue des gatinnes SAINT-SAUVEUR 05200', '0479723538', NULL, 5),
(118, 'Nazaoui', 'Reissa', '36 rue Malraux FLEVILLE 08250', '0389034128', NULL, 8),
(119, 'Protonne', 'Anne-Sophie', '27 rue Anatole France LAUNOIS-SUR-VENCE 08430', '0319617909', 'ANGEIOLOGIE', 8),
(120, 'Rastuffe', 'Hamed', '44 rue de la Pergolat AGUILCOURT 02190', '0391017673', NULL, 2),
(121, 'Politzer', 'Alain', '97 rue des Anges SAINT-LAURENT-SUR-SAONE 01750', '0420673509', NULL, 1),
(122, 'Margotton', 'Rodolphe', '5 rue de la pointe AUGIREIN 09800', '0568080361', NULL, 9),
(123, 'Kravatte', 'Andrée', '26 rue des Argonautes BELLEY 01300', '0417979762', NULL, 1),
(124, 'Kobel', 'Hamed', '52 rue des Argonautes BILLIAT 01200', '0434883323', NULL, 1),
(125, 'Vispendieu', 'Mohammed', '33 rue Bonaparte VAUX-CHAMPAGNE 08130', '0388412366', NULL, 8),
(126, 'Billahian', 'Patricia', '86 rue de la poste ASTON 09310', '0544573807', NULL, 9),
(127, 'Lopez', 'Aurélien', '51 rue Debussy SAINT-FIRMIN 05800', '0429493464', NULL, 5),
(128, 'Shavert', 'Firmin', '69 rue de Paris MEZIERES-SUR-OISE 02240', '0327148898', NULL, 2),
(129, 'Nahraoui', 'Robert', '18 rue des Pigeons MAYOT 02800', '0350756815', NULL, 2),
(130, 'Chamonix', 'Patrick', '35 rue des Cyprés MEZIERES-SUR-OISE 02240', '0375111486', NULL, 2),
(131, 'Charlequin', 'Catherine', '67 rue des Pigeons NEUVILLE-LES-DAMES 01400', '0445004508', NULL, 1),
(132, 'Prestor', 'Aude', '68 rue des Epines BAGERT 09230', '0511378600', 'ALLERGOLOGIE', 9),
(133, 'Fressinet', 'François', '38 rue Agniel PELVOUX 05340', '0466704922', NULL, 5),
(134, 'Charmis', 'Habib', '96 rue de Marigny SAINTE-MARIE 05150', '0472203933', NULL, 5),
(135, 'Aznavourian', 'Annie', '98 rue des Argonautes FRESSANCOURT 02800', '0324461914', 'HOMEOPATHIE', 2),
(136, 'Fortin', 'Julienne', '59 rue des gatinnes BARZY-SUR-MARNE 02850', '0311581103', NULL, 2),
(137, 'Kopa', 'Alain', '48 rue des Epines VAUX-CHAMPAGNE 08130', '0353929274', NULL, 8),
(138, 'Merlieux', 'Aristote', '42 rue Edouard Hériot BAGERT 09230', '0597457423', NULL, 9),
(139, 'Pionneer', 'Catherine', '53 rue des hirondelles SAINT-FIRMIN 05800', '0473864972', NULL, 5),
(140, 'Prestor', 'Fatima', '7 rue Alphonse Daudet ASTON 09310', '0573029393', NULL, 9),
(141, 'Durhum', 'Fernand', '64 rue des Artistes AX-LES-THERMES 09110', '0580503787', NULL, 9),
(142, 'CHeroudy', 'Anne-Lucie', '17 rue Pernod DOMMARTIN 01380', '0454076144', NULL, 1),
(143, 'Milliet', 'Anne-Ange', '39 rue des Anges SAVINES-LE-LAC 05160', '0460795137', NULL, 5),
(144, 'Framier', 'Alice', '32 rue des pyramides BEAUMONT-EN-BEINE 02300', '0315894255', NULL, 2),
(145, 'Scipillon', 'Armelle', '44 rue Perdue ABBECOURT 02300', '0346616676', NULL, 2),
(146, '<NAME>', 'Anne-Ange', '67 rue de la pointe SAINT-LAURENT-SUR-SAONE 01750', '0479957609', NULL, 1),
(147, 'CHeroudy', 'André', '9 rue Mallarmé AUBENTON 02500', '0342830645', 'ACUPONCTURE', 2),
(148, 'Zerbib', 'Aurèle', '54 rue du stade NEUVILLE-LES-DAMES 01400', '0470983399', NULL, 1),
(149, 'Sabatier', 'Jimmy', '8 rue Albert Camus MONTCY-NOTRE-DAME 08090', '0339328684', NULL, 8),
(150, 'Mariveaux', 'Anaelle', '53 rue St Denis BELLOC 09600', '0575252091', NULL, 9),
(151, 'Hallouche', 'Armelle', '79 rue Beaudelaire BAGERT 09230', '0574702561', NULL, 9),
(152, 'Sadot', 'Catherine', '81 rue des Cyprés SIGOYER 05130', '0431018220', NULL, 5),
(153, 'Politzer', 'Julien', '33 rue des Cyprés BAGERT 09230', '0590592425', NULL, 9),
(154, 'Charlequin', 'Adelphe', '7 rue de la poste OYONNAX 01100', '0463473029', NULL, 1),
(155, 'Restiffe', 'Hypolite', '62 rue Malraux BOURG-EN-BRESSE 01000', '0459994942', NULL, 1),
(156, 'Zebitoun', 'Martin', '4 rue des perles blanches FLOING 08200', '0377624408', NULL, 8),
(157, 'Bridel', 'Aristote', '13 rue des Argonautes ABBECOURT 02300', '0334073561', NULL, 2),
(158, 'Hansbern', 'Roby', '16 rue <NAME> MACHAULT 08310', '0327990795', NULL, 8),
(159, 'Ricardo', 'Austine', '86 rue Pernod SAINT-ANDRE-DE-ROSANS 05150', '0475430562', NULL, 5),
(160, 'Charles', 'François', '75 rue Anatole France AX-LES-THERMES 09110', '0527300069', NULL, 9),
(161, 'Pionneer', 'Aurèle', '77 rue des perles blanches BANCIGNY 02140', '0336207616', NULL, 2),
(162, 'Rachock', 'Carole', '62 rue de la pointe BRIANCON 05100', '0494704120', NULL, 5),
(163, 'Mistigry', 'Charles-Edouard', '96 rue des Pigeons MONTCY-NOTRE-DAME 08090', '0351941479', NULL, 8),
(164, 'Chesnikov', 'Hamed', '88 rue des Armées BELLEY 01300', '0425303459', NULL, 1),
(165, 'Mariveaux', 'Amélie', '8 rue de la gare AX-LES-THERMES 09110', '0543024681', NULL, 9),
(166, 'Aznavourian', 'Yoan', '67 rue des Anges SAINT-SAUVEUR 05200', '0444643838', NULL, 5),
(167, 'Shavert', 'Victor', '31 rue des Anges BUZAN 09800', '0531789114', NULL, 9),
(168, 'Hanzle', 'Julien', '30 rue des Argonautes ATTILLY 02490', '0381097843', 'ACUPONCTURE', 2),
(169, 'Frazier', 'Astine', '63 rue du stade AX-LES-THERMES 09110', '0589774185', NULL, 9),
(170, 'Kérouanne', 'Johnny', '63 rue du 14 juillet AX-LES-THERMES 09110', '0559787089', NULL, 9),
(171, 'Chastidien', 'Anaelle', '72 rue de Paris CHALLES 01450', '0436897781', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(172, 'Alprousky', 'Habib', '42 rue des Ormes BILLIAT 01200', '0461405456', 'URGENTISTE', 1),
(173, 'Zebitoun', 'Johnny', '62 rue du général de Gaulle BOURG-EN-BRESSE 01000', '0479899509', 'OSTEOPATHIE', 1),
(174, 'Billahian', 'Anne-Jeanne', '9 rue Pasteur SAINT-FIRMIN 05800', '0412854347', NULL, 5),
(175, 'Braquette', 'Françoise', '36 rue des Ormes SAINT-CREPIN 05600', '0470969763', NULL, 5),
(176, '<NAME>', 'Annie', '6 rue des Armées ASTON 09310', '0561398750', NULL, 9),
(177, 'Epoka', 'Alizée', '60 rue Edouard Hériot ASTON 09310', '0529196402', NULL, 9),
(178, 'Farahoui', 'Victor', '68 rue de la Pergolat BEDEILLE 09230', '0510798563', NULL, 9),
(179, 'Scipillon', 'Amiel', '48 rue Alphonse Daudet FLOING 08200', '0367188526', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(180, 'Alprousky', 'Serge', '13 rue des Epines BETTANT 01500', '0415842763', NULL, 1),
(181, 'Heroudy', 'Anne-Lucie', '91 rue Lampion HOUDILCOURT 08190', '0360919149', NULL, 8),
(182, 'Scott', 'Firmin', '79 rue Commandant Mouchotte SAVINES-LE-LAC 05160', '0454186158', 'OSTEOPATHIE', 5),
(183, 'Jalouve', 'Jules', '41 rue Louis Aragon SAINT-LAURENT-SUR-SAONE 01750', '0470580820', NULL, 1),
(184, 'Yanshen', 'Irénée', '25 rue Lampion BLYES 01150', '0462212615', NULL, 1),
(185, 'Camus', 'Anne-Marie', '21 rue de la Pergolat AX-LES-THERMES 09110', '0552002239', NULL, 9),
(186, 'Pastor', 'Ines', '81 rue du 14 juillet BELLOC 09600', '0579065527', NULL, 9),
(187, 'Chastidien', 'Aurèle', '82 rue des Anges MEZIERES-SUR-OISE 02240', '0372146119', NULL, 2),
(188, 'Yanshen', 'Ingrid', '2 rue de la rose BARZY-SUR-MARNE 02850', '0374513763', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(189, 'Froudette', 'Prosper', '34 rue Louis Aragon ARROUT 09800', '0570233041', NULL, 9),
(190, '<NAME>', 'Hamed', '54 rue Louis Aragon MACHAULT 08310', '0361841793', NULL, 8),
(191, 'GrosPierre', 'Yoan', '69 rue des Accacias BEAUMONT-EN-BEINE 02300', '0364444471', 'ANGEIOLOGIE', 2),
(192, 'Chamois', 'Serge', '57 rue du capitaine Crochet MONTCY-NOTRE-DAME 08090', '0348000197', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(193, 'Lirevien', 'Patrice', '64 rue Albert Camus SAINT-LAURENT-SUR-SAONE 01750', '0427960246', NULL, 1),
(194, 'Egrouzais', 'Aristote', '5 rue des Cyprés AZY-SUR-MARNE 02400', '0352734097', NULL, 2),
(195, 'Frazier', 'Astine', '40 rue Louis Aragon MONTCY-NOTRE-DAME 08090', '0335541135', NULL, 8),
(196, '<NAME>', 'Anémone', '85 rue Hector Berlioz BEZAC 09100', '0538796488', NULL, 9),
(197, 'Mérieux', 'Anselme', '79 rue des Cavaux CHABESTAN 05400', '0478991381', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(198, '<NAME>', 'Gilles', '88 rue Alphonse Daudet BELLOC 09600', '0591522693', NULL, 9),
(199, 'Mistigry', 'Austine', '72 rue des Ormes MESSINCOURT 08110', '0368355399', 'GERONTOLOGIE', 8),
(200, 'Klébert', 'Aurèle', '53 rue Hector Berlioz FALAISE 08400', '0325150351', NULL, 8),
(201, 'GrosJean', 'Nohan', '58 rue du 14 juillet AUBENTON 02500', '0380869429', NULL, 2),
(202, 'Roland', 'Jimmy', '41 rue du Mont FRESSANCOURT 02800', '0333010728', 'HOMEOPATHIE', 2),
(203, 'Rétin', 'Gilles', '26 rue du capitaine Fraquasse YONCQ 08210', '0355888480', NULL, 8),
(204, 'Shavert', 'Jules', '95 rue des gatinnes EVIGNY 08090', '0321047751', 'URGENTISTE', 8),
(205, 'Fortin', 'Adrien', '37 rue de la rose BARENTON-SUR-SERRE 02270', '0333061059', NULL, 2),
(206, 'Radot', 'Astine', '29 rue Louis Aragon FLEVILLE 08250', '0337878739', NULL, 8),
(207, 'Camus', 'Ingrid', '95 rue Mallarmé AX-LES-THERMES 09110', '0538253531', 'ALLERGOLOGIE', 9),
(208, 'Gueret', 'Julie', '70 rue du Mont BILLIAT 01200', '0434858369', NULL, 1),
(209, 'Hemdaoui', 'Jules', '87 rue des hirondelles FLOING 08200', '0366452640', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(210, 'Fortin', 'sabine', '70 rue des Ormes LAVAL-MORENCY 08150', '0313786191', NULL, 8),
(211, '<NAME>', 'Anne-Sophie', '72 rue de Paris AMBRIEF 02200', '0396888350', NULL, 2),
(212, 'Fermontin', 'Julienne', '95 rue de du général Scott SAINT-FIRMIN 05800', '0499781511', NULL, 5),
(213, 'Lièvremont', 'Prosper', '40 rue du stade CHEZY-SUR-MARNE 02570', '0370552277', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(214, 'Sursarshill', 'François', '21 rue des oiseaux AUBENTON 02500', '0347608567', NULL, 2),
(215, '<NAME>', 'Béatrice', '91 rue de Paris BARENTON-SUR-SERRE 02270', '0332630528', NULL, 2),
(216, 'Egrouzais', 'Alice', '14 rue de la Tour PELVOUX 05340', '0497349269', NULL, 5),
(217, '<NAME>', 'Hypolite', '4 rue Petit AX-LES-THERMES 09110', '0592259965', NULL, 9),
(218, 'Bridel', 'Dominique', '17 rue <NAME> NEUVILLE-LES-DAMES 01400', '0436894892', NULL, 1),
(219, 'Fortin', 'Précilia', '46 rue Perdue MONT-LAURENT 08130', '0357123782', NULL, 8),
(220, 'Frequin', 'Patrice', '37 rue des perles blanches AUGIREIN 09800', '0514467307', NULL, 9),
(221, '<NAME>', 'Catherine', '18 rue de la Pergolat CHABESTAN 05400', '0433787136', NULL, 5),
(222, 'Chemkaou', 'Anne-Jeanne', '61 rue Malraux SAVINES-LE-LAC 05160', '0425403948', NULL, 5),
(223, 'Francis', 'Martial', '39 rue des Pigeons FRESSANCOURT 02800', '0376405689', NULL, 2),
(224, 'Hanscart', 'Ines', '36 rue du général de Gaulle AX-LES-THERMES 09110', '0571237673', NULL, 9),
(225, 'Doineau', 'Fatima', '27 rue des Ormes BARENTON-SUR-SERRE 02270', '0369886219', NULL, 2),
(226, 'Zerbib', 'Cristophe', '35 rue Commandant Mouchotte CHEZY-SUR-MARNE 02570', '0399128847', NULL, 2),
(227, 'Harshill', 'Charles-Edouard', '69 rue de Paris BRIANCON 05100', '0486522042', 'ACUPONCTURE', 5),
(228, 'Chamois', 'Alice', '64 rue de Paris SORBIERS 05150', '0498218342', 'ANGEIOLOGIE', 5),
(229, 'Kobel', 'Johnny', '4 rue des Lilas BELLOC 09600', '0583708661', NULL, 9),
(230, 'Gullit', 'Marie', '27 rue du stade NEUVILLE-LES-DAMES 01400', '0440602180', NULL, 1),
(231, 'Format', 'Patrice', '25 rue des Néfliers AGUILCOURT 02190', '0313705112', NULL, 2),
(232, 'Mérieux', 'Roby', '74 rue de Marigny JUNIVILLE 08310', '0370618394', NULL, 8),
(233, 'Krevette', 'François', '40 rue Commandant Mouchotte BOURG-EN-BRESSE 01000', '0466232870', 'ANGEIOLOGIE', 1),
(234, 'Chastidien', 'Anne-Lucie', '28 rue de la poste MONCEAU-SUR-OISE 02120', '0337880516', NULL, 2),
(235, 'Prouteau', 'Marie', '65 rue des Accacias MEZIERES-SUR-OISE 02240', '0347429128', NULL, 2),
(236, 'Radosky', 'Irénée', '66 rue Victor Hugo ASTON 09310', '0545396012', 'HOMEOPATHIE', 9),
(237, 'Cassolette', 'Aurèle', '78 rue du 14 juillet NEUVILLE-LES-DAMES 01400', '0436441368', NULL, 1),
(238, 'Armouche', 'Jimmy', '31 rue des Cavaux BOURG-EN-BRESSE 01000', '0489010528', NULL, 1),
(239, 'Nasri', 'Jordan', '56 rue du Mont BRIANCON 05100', '0497686569', NULL, 5),
(240, 'Hanzle', 'Andrew', '5 rue des Pigeons ATTILLY 02490', '0317928011', NULL, 2),
(241, 'Capliez', 'Andrée', '9 rue de Paris CAMON 09500', '0575615612', NULL, 9),
(242, 'Béronze ', 'Aurélien', '34 rue des perles blanches HERBEUVAL 08370', '0354324365', NULL, 8),
(243, 'Chamois', 'Caline', '90 rue des Pigeons BETTANT 01500', '0441422871', NULL, 1),
(244, 'Hemdaoui', 'Bertrand', '88 rue Mallarmé CAMON 09500', '0519717031', NULL, 9),
(245, 'Magellan', 'Anne-Lucie', '31 rue St Denis AVANCON 05230', '0476620839', NULL, 5),
(246, '<NAME>', 'Anne-Marie', '32 rue Petit BOULIGNEUX 01330', '0429892782', NULL, 1),
(247, 'Sibaton', 'Anne', '96 rue des pyramides SAINT-FIRMIN 05800', '0430056957', NULL, 5),
(248, 'Frédrick', 'Jordan', '71 rue Lampion ROCHEBRUNE 05190', '0422193913', NULL, 5),
(249, 'Falahoui', 'Hector', '39 rue des Chantereines SAINT-CREPIN 05600', '0427945468', NULL, 5),
(250, 'Mistigry', 'Patrice', '35 rue de la gare DOMMARTIN 01380', '0412349269', NULL, 1),
(251, 'Scotbel', 'Austine', '1 rue Perdue BANCIGNY 02140', '0362784487', NULL, 2),
(252, 'Sidot', 'Nohan', '87 rue de la poste ORCIERES 05170', '0492790588', NULL, 5),
(253, 'Framzaoui', 'Adrien', '6 rue St Denis NEUVILLE-LES-DAMES 01400', '0463805846', 'URGENTISTE', 1),
(254, 'Nazaoui', 'Aurélien', '24 rue Anatole France FALAISE 08400', '0394184441', NULL, 8),
(255, 'Hanzert', 'Anne-Sophie', '78 rue Mallarmé BELLOC 09600', '0565131061', NULL, 9),
(256, 'Harviche', 'Précilia', '17 rue de Paris BARZY-SUR-MARNE 02850', '0373800189', NULL, 2),
(257, 'Farmin', 'Béatrice', '65 rue des Cyprés ASTON 09310', '0556222808', NULL, 9),
(258, 'Oulianov', 'Alain', '12 rue des oiseaux BEAUMONT-EN-BEINE 02300', '0336437836', NULL, 2),
(259, 'Framier', 'Jérémy', '13 rue Louis Aragon ARROUT 09800', '0579019785', 'GERONTOLOGIE', 9),
(260, 'Aznavourian', 'Alice', '42 rue des hirondelles SAINT-LAURENT-SUR-SAONE 01750', '0418404333', NULL, 1),
(261, 'Faouzi', 'Serge', '54 rue Debussy AUDRESSEIN 09800', '0589986579', NULL, 9),
(262, 'Rodriguez', 'Bertrand', '16 rue de la Tour MONTIGNY-SUR-MEUSE 08170', '0362958231', NULL, 8),
(263, 'Radronck', 'Alizée', '85 rue Alphonse Daudet SAINT-SAUVEUR 05200', '0469350553', NULL, 5),
(264, 'Sibroton', 'Irénée', '54 rue de Marigny PELVOUX 05340', '0413512651', NULL, 5),
(265, 'Billahian', 'Bertrand', '66 rue du capitaine Crochet BILLIAT 01200', '0430273395', 'ALLERGOLOGIE', 1),
(266, 'Frequin', 'Reissa', '92 rue des Epines BOURG-EN-BRESSE 01000', '0462567494', NULL, 1),
(267, 'GrosPierre', 'Anne-Lucie', '58 rue des Anges FRESSANCOURT 02800', '0397948858', 'GERONTOLOGIE', 2),
(268, 'Chermis', 'Alain', '13 rue Albert Camus BAGERT 09230', '0561056383', NULL, 9),
(269, 'Jankelevitch', 'Rodolphe', '4 rue Bonaparte NEUVILLE-LES-DAMES 01400', '0499930510', 'ALLERGOLOGIE', 1),
(270, 'Hallouche', 'Dominique', '31 rue Pernod MESSINCOURT 08110', '0354437353', 'HOMEOPATHIE', 8),
(271, 'Jalouve', 'Amélie', '73 rue des Epines AGUILCOURT 02190', '0393504917', NULL, 2),
(272, 'Hanscart', 'Aude', '43 rue des Pigeons FALAISE 08400', '0395808887', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(273, '<NAME>', 'Julie', '76 rue des Armées CAMON 09500', '0558376134', 'ALLERGOLOGIE', 9),
(274, 'Loulianov', 'Jérémie', '71 rue de Poligny SAVINES-LE-LAC 05160', '0490614401', NULL, 5),
(275, 'Falahoui', 'Annie', '95 rue des hirondelles AGUILCOURT 02190', '0334620315', 'ALLERGOLOGIE', 2),
(276, 'Rachock', 'Hypolite', '96 rue Commandant Mouchotte BOULIGNEUX 01330', '0445325841', NULL, 1),
(277, 'Billahian', 'Aline', '9 rue des Epines OYONNAX 01100', '0463729220', NULL, 1),
(278, 'Fournil', 'Martin', '93 rue de la Tour BELLEY 01300', '0459132484', NULL, 1),
(279, 'Thardieux', 'Hamed', '8 rue Louis Aragon FRESSANCOURT 02800', '0311170881', NULL, 2),
(280, 'Perronet', 'François', '90 rue de la poste AX-LES-THERMES 09110', '0553374090', NULL, 9),
(281, 'Bridel', 'Aurèle', '92 rue St Denis SORBIERS 05150', '0481537923', NULL, 5),
(282, 'Frequin', 'Bernard', '71 rue Mallarmé MESSINCOURT 08110', '0366706848', NULL, 8),
(283, 'Nazaoui', 'Julien', '58 rue de Paris CEYZERIAT 01250', '0411229599', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(284, '<NAME>', 'Gilles', '66 rue de du général Scott ARROUT 09800', '0590561289', 'MEDECINE APPLIQUEE AUX SPORTS', 9),
(285, 'Anglomert', 'Astine', '18 rue des gatinnes SAINT-LAURENT-SUR-SAONE 01750', '0426146482', NULL, 1),
(286, 'Mistigry', 'Patrice', '12 rue Victor Hugo EVIGNY 08090', '0311209603', NULL, 8),
(287, 'Hanzert', 'Ingrid', '74 rue des hirondelles AX-LES-THERMES 09110', '0542828199', NULL, 9),
(288, 'Radocky', 'Aurélien', '38 rue Debussy BILLIAT 01200', '0439490126', NULL, 1),
(289, 'Hanscart', 'Yoan', '40 rue de la recette MONCEAU-SUR-OISE 02120', '0333274282', 'OSTEOPATHIE', 2),
(290, 'Scott', 'Adelphe', '93 rue Alphonse Daudet OYONNAX 01100', '0457686776', NULL, 1),
(291, 'Chamonix', 'Adrien', '82 rue Agniel JUNIVILLE 08310', '0352053332', 'ALLERGOLOGIE', 8),
(292, 'Farahoui', 'Caline', '82 rue St Denis ASTON 09310', '0593546818', NULL, 9),
(293, '<NAME>', 'Rodolphe', '68 rue des Argonautes MONCEAU-SUR-OISE 02120', '0381648585', NULL, 2),
(294, 'Roland', 'Patricia', '6 rue de la gare BILLIAT 01200', '0474405770', 'GERONTOLOGIE', 1),
(295, 'Kan', 'Robert', '40 rue des pyramides SAINT-FIRMIN 05800', '0482621556', NULL, 5),
(296, 'Charlequin', 'Fatima', '7 rue du renard BUZAN 09800', '0560148975', NULL, 9),
(297, 'Cerpico', 'Carole', '77 rue Anatole France MESSINCOURT 08110', '0361849887', NULL, 8),
(298, 'Hourin', 'Jordan', '20 rue de la recette SAINT-ANDRE-DE-ROSANS 05150', '0432143599', 'ANGEIOLOGIE', 5),
(299, '<NAME>', 'Patrice', '10 rue du capitaine Crochet CHALLES 01450', '0479473742', 'ALLERGOLOGIE', 1),
(300, 'Durieux', 'Astine', '98 rue du renard BLYES 01150', '0447475896', NULL, 1),
(301, 'Chermis', 'Anselme', '78 rue de la poste OYONNAX 01100', '0465535519', NULL, 1),
(302, 'Bazoline', 'Aurèle', '63 rue de la gare CHABESTAN 05400', '0434955199', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(303, 'Serbouny', 'Jérome', '27 rue des Chantereines BARZY-SUR-MARNE 02850', '0328609452', NULL, 2),
(304, 'Fortin', 'Victor', '70 rue de la Pergolat ABBECOURT 02300', '0397808656', NULL, 2),
(305, 'Hemdaoui', 'Anne-Laure', '58 rue du général de Gaulle FALAISE 08400', '0381506423', NULL, 8),
(306, 'CHeroudy', 'Hector', '41 rue Malraux SIGOYER 05130', '0447077417', NULL, 5),
(307, 'Harviche', 'Anne-Jeanne', '12 rue Louis Aragon THIN-LE-MOUTIER 08460', '0351239489', NULL, 8),
(308, 'Raminsky', 'Anne-Lucie', '16 rue Blainville SAVINES-LE-LAC 05160', '0474386707', NULL, 5),
(309, 'Sursarshill', 'Jérémy', '53 rue de la pointe AUGIREIN 09800', '0517209857', NULL, 9),
(310, 'Shavert', 'Anne', '70 rue de la rose ABBECOURT 02300', '0315174364', NULL, 2),
(311, 'Kan', 'Armelle', '27 rue Blainville SIGOYER 05130', '0487157453', NULL, 5),
(312, 'Cherioux', 'Camille', '90 rue Mallarmé PELVOUX 05340', '0462682764', NULL, 5),
(313, 'Jankelevitch', 'Anaelle', '73 rue des Cavaux FEPIN 08170', '0347605928', NULL, 8),
(314, '<NAME>', 'Carole', '82 rue Blainville BILLIAT 01200', '0489580183', NULL, 1),
(315, 'Bredequin', 'Rosalie', '66 rue des Princes SORBIERS 05150', '0447973887', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(316, 'Mariveaux', 'Fatima', '38 rue Hector Berlioz SORBIERS 05150', '0489828043', NULL, 5),
(317, 'Fugasse', 'Anne-Jeanne', '60 rue Victor Hugo NEUVILLE-LES-DAMES 01400', '0466135862', NULL, 1),
(318, 'Nahraoui', 'Hypolite', '26 rue Alphonse Daudet BETTANT 01500', '0496740768', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(319, 'Chemkaoui', 'Sophie', '37 rue Alphonse Daudet AX-LES-THERMES 09110', '0550507761', NULL, 9),
(320, 'Nazaoui', 'Anne-Laure', '96 rue du capitaine Fraquasse AUBENTON 02500', '0332042330', 'URGENTISTE', 2),
(321, 'Cassin', 'Caline', '84 rue des Néfliers SAINT-ANDRE-DE-ROSANS 05150', '0441770926', NULL, 5),
(322, 'Pololsky', 'Amiel', '11 rue Commandant Hériot ARROUT 09800', '0530054025', 'GERONTOLOGIE', 9),
(323, 'Gueret', 'Adelphe', '1 rue des Princes SIGOYER 05130', '0446366196', NULL, 5),
(324, 'Doineau', 'Alain', '76 rue Commandant Mouchotte AX-LES-THERMES 09110', '0510808813', NULL, 9),
(325, 'Rosty', 'Gilles', '64 rue Commandant Hériot ARANDAS 01230', '0466707367', NULL, 1),
(326, 'Fortin', 'Fernand', '66 rue du 14 juillet OYONNAX 01100', '0446432036', NULL, 1),
(327, 'Vipère', 'Andrée', '76 rue des Cavaux SORBIERS 05150', '0433833354', NULL, 5),
(328, 'Fournil', 'Robert', '67 rue du capitaine Crochet FRESSANCOURT 02800', '0396745829', NULL, 2),
(329, 'Merlieux', 'Charles', '81 rue Mallarmé BEAUMONT-EN-BEINE 02300', '0318112146', NULL, 2),
(330, 'Doineau', 'Jérémie', '49 rue de la Pergolat REOTIER 05600', '0452299934', 'ACUPONCTURE', 5),
(331, 'Prouteau', 'sabine', '73 rue Agniel FEPIN 08170', '0340871558', NULL, 8),
(332, 'Braquette', 'Patrice', '26 rue du renard OYONNAX 01100', '0499920026', NULL, 1),
(333, 'Frequin', 'Jules', '21 rue Pasteur SORBIERS 05150', '0497153129', NULL, 5),
(334, 'Froudette', 'Alizée', '69 rue de la Pergolat BELLEY 01300', '0485963418', NULL, 1),
(335, 'Yansen', 'Armelle', '16 rue des Anses bleues VAUX-CHAMPAGNE 08130', '0334124353', NULL, 8),
(336, 'Charminet', 'Hector', '73 rue du général de Gaulle AUDRESSEIN 09800', '0593896893', NULL, 9),
(337, 'Hourin', 'Aristote', '78 rue des Argonautes AUGIREIN 09800', '0560183642', NULL, 9),
(338, 'Khan', 'Anne-Jeanne', '20 rue Commandant Hériot BEAUMONT-EN-BEINE 02300', '0335062492', NULL, 2),
(339, 'Aznavourian', 'Anne-Jeanne', '38 rue Louis Aragon SAINTE-MARIE 05150', '0413931222', NULL, 5),
(340, 'Jankelevitch', 'Jordan', '96 rue Bonaparte SAINTE-MARIE 05150', '0419574602', NULL, 5),
(341, 'Brouzais', 'Cristophe', '65 rue de la recette HERBEUVAL 08370', '0353219537', NULL, 8),
(342, 'Yanshen', 'Bénédicte', '2 rue des Armées FALAISE 08400', '0392106994', NULL, 8),
(343, 'Margot', 'sabine', '66 rue des Epines HOUDILCOURT 08190', '0396081849', 'HOMEOPATHIE', 8),
(344, 'Frazier', 'Serge', '6 rue du stade NEUVILLE-LES-DAMES 01400', '0441736702', NULL, 1),
(345, 'Rachock', 'Adelphe', '26 rue des Pigeons FEPIN 08170', '0383040737', 'ACUPONCTURE', 8),
(346, 'Framzaoui', 'Julienne', '89 rue Pasteur ASTON 09310', '0558895500', NULL, 9),
(347, 'Braquette', 'Austine', '96 rue St Denis BRIANCON 05100', '0442356662', NULL, 5),
(348, 'Rétin', 'Anne-Marie', '88 rue du capitaine Fraquasse FLOING 08200', '0337248343', NULL, 8),
(349, 'Raminski', 'Austine', '86 rue des Lilas BAGERT 09230', '0564227642', NULL, 9),
(350, 'Chesnikov', 'Aristote', '13 rue des Néfliers ARROUT 09800', '0578693214', NULL, 9),
(351, 'Fortin', 'Reissa', '56 rue du Mont THIN-LE-MOUTIER 08460', '0379320791', NULL, 8),
(352, 'Lirevien', 'sabine', '96 rue du général de Gaulle BELLOC 09600', '0517690862', NULL, 9),
(353, 'Vispendieu', 'Marie', '62 rue Hector Berlioz SAVOURNON 05700', '0443661423', 'ACUPONCTURE', 5),
(354, '<NAME>', 'Irénée', '68 rue de la pointe BARENTON-SUR-SERRE 02270', '0313123217', NULL, 2),
(355, 'Arditi', 'Adrien', '2 rue des hirondelles HAUTEVILLE 02120', '0385350100', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(356, 'Farmin', 'Caline', '13 rue du Mont SAINT-FIRMIN 05800', '0439120333', NULL, 5),
(357, 'Zomar', 'Camille', '38 rue des Chantereines MAYOT 02800', '0390403626', 'GERONTOLOGIE', 2),
(358, 'Scotland', 'Ingrid', '73 rue des gatinnes SAINT-ANDRE-DE-ROSANS 05150', '0455695337', NULL, 5),
(359, 'Zola', 'Jordan', '47 rue de Paris ROCHEBRUNE 05190', '0488575731', 'URGENTISTE', 5),
(360, 'Favriellé', 'Andrew', '40 rue Anatole France LAUNOIS-SUR-VENCE 08430', '0395797173', 'OSTEOPATHIE', 8),
(361, 'Chamonix', 'Aline', '27 rue des Anges SAINT-FIRMIN 05800', '0454426212', NULL, 5),
(362, 'Bazoline', 'Aurèle', '87 rue de Poligny SAINT-ANDRE-DE-ROSANS 05150', '0437604768', NULL, 5),
(363, 'Hemdaoui', 'Carole', '17 rue Debussy AVANCON 05230', '0435416748', NULL, 5),
(364, 'Shavert', 'Adelphe', '74 rue des Néfliers AUBENTON 02500', '0369486130', NULL, 2),
(365, 'Froudette', 'Irénée', '85 rue du capitaine Crochet JOIGNY-SUR-MEUSE 08700', '0397935550', 'OSTEOPATHIE', 8),
(366, 'Lopez', 'Aurélien', '92 rue des oiseaux SAVOURNON 05700', '0452076802', NULL, 5),
(367, 'Scotland', 'John', '74 rue des oiseaux BILLIAT 01200', '0463193696', NULL, 1),
(368, 'Format', 'Jules', '84 rue du stade OYONNAX 01100', '0430814652', 'GERONTOLOGIE', 1),
(369, 'Hourin', 'Robert', '46 rue des Accacias OYONNAX 01100', '0456783280', NULL, 1),
(370, 'Hatiche', 'Carole', '18 rue de la Tour NEUVILLE-LES-DAMES 01400', '0411713298', NULL, 1),
(371, 'Faure', 'Firmin', '73 rue du Mont ARROUT 09800', '0532011995', 'MEDECINE APPLIQUEE AUX SPORTS', 9),
(372, 'Doineau', 'Amélie', '79 rue Lampion SAINT-LAURENT-SUR-SAONE 01750', '0499820900', NULL, 1),
(373, 'Froudette', 'Patrice', '14 rue des Lilas CHEZY-SUR-MARNE 02570', '0310790961', NULL, 2),
(374, 'Scott', 'Martial', '32 rue de la poste JOIGNY-SUR-MEUSE 08700', '0351863890', NULL, 8),
(375, 'Astoria', 'John', '81 rue Edouard Hériot MAYOT 02800', '0361434057', NULL, 2),
(376, '<NAME>', 'Prosper', '99 rue des Pigeons SIGOYER 05130', '0420048322', 'URGENTISTE', 5),
(377, 'Hanscart', 'Camille', '88 rue des oiseaux JUNIVILLE 08310', '0370063871', NULL, 8),
(378, 'Scipillon', 'Adrien', '21 rue de la rose AX-LES-THERMES 09110', '0513336137', NULL, 9),
(379, 'Gaudillot', 'Victor', '86 rue des Armées DOMMARTIN 01380', '0447458241', NULL, 1),
(380, 'Radot', 'Bertrand', '91 rue de la rose FEPIN 08170', '0398107919', NULL, 8),
(381, 'Gueret', 'Serge', '58 rue Pernod MONCEAU-SUR-OISE 02120', '0322992429', NULL, 2),
(382, 'Bazoline', 'Julienne', '93 rue des Néfliers MONCEAU-SUR-OISE 02120', '0348940958', 'URGENTISTE', 2),
(383, 'Radosky', 'Caline', '8 rue des Anges FEPIN 08170', '0364882312', NULL, 8),
(384, 'Hemdaoui', 'Françoise', '76 rue de Marigny CAMON 09500', '0522112610', 'OSTEOPATHIE', 9),
(385, 'Mérieux', 'Françoise', '3 rue des Anges AUBENTON 02500', '0397776971', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(386, 'Epoka', 'Serge', '92 rue de Paris THIN-LE-MOUTIER 08460', '0365834913', 'ACUPONCTURE', 8),
(387, 'Shavert', 'Prosper', '24 rue de du général Scott BRIANCON 05100', '0493163850', NULL, 5),
(388, 'Fourmiret', 'Dominique', '4 rue H<NAME>lioz AX-LES-THERMES 09110', '0585018637', NULL, 9),
(389, 'Hatiche', 'Adrien', '30 rue Agniel SAINT-FIRMIN 05800', '0483927775', NULL, 5),
(390, 'Fortin', 'Adelphe', '4 rue des Pigeons BARZY-SUR-MARNE 02850', '0391947902', NULL, 2),
(391, 'Gullit', 'sabine', '9 rue du Mont BRIANCON 05100', '0423613710', NULL, 5),
(392, 'Vipère', 'Anne-Lucie', '81 rue des Lilas ABBECOURT 02300', '0357752522', 'HOMEOPATHIE', 2),
(393, 'Epriniche', 'Aurèle', '78 rue du renard SAINT-LAURENT-SUR-SAONE 01750', '0499152521', 'URGENTISTE', 1),
(394, 'Doineau', 'Julienne', '16 rue de la gare BELLOC 09600', '0567014080', NULL, 9),
(395, 'Nazaoui', 'Aurélien', '41 rue des Anses bleues ASTON 09310', '0528108863', 'OSTEOPATHIE', 9),
(396, 'Shouchen', 'François', '52 rue des Epines ATTILLY 02490', '0395338199', NULL, 2),
(397, '<NAME>', 'Bénédicte', '88 rue du renard ORCIERES 05170', '0452809250', NULL, 5),
(398, 'Epriniche', 'Vénus', '84 rue des Armées MONTIGNY-SUR-MEUSE 08170', '0332562475', NULL, 8),
(399, 'Fortin', 'Camille', '20 rue Anatole France MACHAULT 08310', '0394066862', NULL, 8),
(400, 'Nazaoui', 'Carole', '90 rue Bonaparte OYONNAX 01100', '0446953066', NULL, 1),
(401, 'Chemkaoui', 'Cristophe', '22 rue Perdue AX-LES-THERMES 09110', '0533152140', NULL, 9),
(402, 'Sérénice', 'Anne-Laure', '73 rue Agniel BOURG-EN-BRESSE 01000', '0434367086', NULL, 1),
(403, 'Merlieux', 'Martial', '61 rue des Cavaux SAINT-LAURENT-SUR-SAONE 01750', '0460367150', NULL, 1),
(404, 'Certifat', 'Aurélien', '44 rue des Epines OYONNAX 01100', '0439758191', NULL, 1),
(405, 'Azria', 'Aude', '98 rue des Accacias SIGOYER 05130', '0497650512', 'OSTEOPATHIE', 5),
(406, 'Durhum', 'sabine', '61 rue de la Pergolat AUDRESSEIN 09800', '0566668732', 'ACUPONCTURE', 9),
(407, 'Rachock', 'Jules', '45 rue du capitaine Crochet EVIGNY 08090', '0351073860', NULL, 8),
(408, 'Shouchen', 'Rodolphe', '89 rue des oiseaux BOURG-EN-BRESSE 01000', '0436599230', NULL, 1),
(409, 'Béronze ', 'Habib', '97 rue Pernod AZY-SUR-MARNE 02400', '0380003737', 'ACUPONCTURE', 2),
(410, 'Merlieux', 'Bernard', '81 rue des Epines SAINT-CREPIN 05600', '0477707175', NULL, 5),
(411, 'Chrome', 'Habib', '83 rue Malraux ABBECOURT 02300', '0310290366', NULL, 2),
(412, 'Zebitoun', 'Mohammed', '70 rue du 14 juillet MONT-LAURENT 08130', '0398765209', NULL, 8),
(413, 'Cassan', 'François', '71 rue du 14 juillet SAINT-SAUVEUR 05200', '0418376454', 'ACUPONCTURE', 5),
(414, 'Bouglieux', 'Rodolphe', '99 rue Alphonse Daudet YONCQ 08210', '0367093394', NULL, 8),
(415, 'Anglomert', 'Catherine', '4 rue des Armées AUBENTON 02500', '0368054817', NULL, 2),
(416, 'Format', 'Bernard', '64 rue Commandant Hériot TRAVECY 02800', '0315061114', NULL, 2),
(417, 'Chemkaou', 'Armelle', '79 rue des Epines EVIGNY 08090', '0334511766', NULL, 8),
(418, 'Arvis', 'Julie', '13 rue de la pointe ASTON 09310', '0518564010', NULL, 9),
(419, 'Charmieux', 'Dominique', '62 rue Malraux AUGIREIN 09800', '0585303807', NULL, 9),
(420, '<NAME>', 'Charles', '71 rue Anatole France CAMON 09500', '0569559189', NULL, 9),
(421, 'Scotbel', 'Cristophe', '85 rue des Argonautes AZY-SUR-MARNE 02400', '0316188975', 'HOMEOPATHIE', 2),
(422, 'Charles', 'Dominique', '21 rue des Artistes BELLEY 01300', '0428818011', 'OSTEOPATHIE', 1),
(423, 'Harshill', 'Précilia', '82 rue Victor Hugo LAVAL-MORENCY 08150', '0391802125', NULL, 8),
(424, 'Fermat', 'André', '87 rue Anatole France YONCQ 08210', '0311956610', NULL, 8),
(425, 'Chastidien', 'Fernand', '37 rue du général de Gaulle AUGIREIN 09800', '0517286774', NULL, 9),
(426, 'Ségura', 'Hamed', '72 rue des hirondelles AGUILCOURT 02190', '0334618532', NULL, 2),
(427, 'Berzinne', 'Hector', '20 rue du capitaine Fraquasse BELLEY 01300', '0447089672', 'ANGEIOLOGIE', 1),
(428, 'Chamois', 'Patricia', '9 rue des gatinnes CHALLES 01450', '0489226737', NULL, 1),
(429, 'Yoggi', 'Aline', '12 rue des Anges BRIANCON 05100', '0498699637', NULL, 5),
(430, 'Cassolette', 'Austine', '37 rue des Armées SIGOYER 05130', '0485539010', NULL, 5),
(431, 'Epoka', 'Hypolite', '33 rue de Paris TRAVECY 02800', '0319460470', NULL, 2),
(432, 'Scotland', 'Fernand', '80 rue du Mont BAGERT 09230', '0570483785', NULL, 9),
(433, 'Festina', 'Anne-Sophie', '18 rue de la recette FLOING 08200', '0335293346', 'ALLERGOLOGIE', 8),
(434, 'Chamonix', 'Bénédicte', '71 rue des pyramides MONT-LAURENT 08130', '0364431472', NULL, 8),
(435, 'Radot', 'John', '35 rue Mallarmé ATTILLY 02490', '0384830087', NULL, 2),
(436, 'Nazaoui', 'Patrick', '97 rue du général de Gaulle AUBENTON 02500', '0378805449', NULL, 2),
(437, 'Béronzelle ', 'Alice', '3 rue des Lilas ABBECOURT 02300', '0338216554', NULL, 2),
(438, 'Khan', 'Jérome', '67 rue Perdue BEDEILLE 09230', '0527487962', NULL, 9),
(439, 'Liorehen', 'Anne-Jeanne', '91 rue <NAME> SAINT-CREPIN 05600', '0464885309', NULL, 5),
(440, 'Azoulais', 'Robert', '73 rue Pasteur BOURG-EN-BRESSE 01000', '0451252312', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(441, 'Bazoline', 'Marie', '51 rue <NAME> JOIGNY-SUR-MEUSE 08700', '0328058400', NULL, 8),
(442, 'Billahian', 'Bénédicte', '37 rue Mallarmé SAINT-CREPIN 05600', '0472480246', NULL, 5),
(443, 'Bazile', 'Hypolite', '97 rue Malraux SAINTE-MARIE 05150', '0471019122', 'URGENTISTE', 5),
(444, 'Razaoui', 'Anne-Marie', '21 rue Blainville MESSINCOURT 08110', '0315472355', NULL, 8),
(445, 'Zola', 'Fatima', '32 rue des Armées MEZIERES-SUR-OISE 02240', '0335733742', NULL, 2),
(446, 'Harshill', 'sabine', '52 rue des Pigeons PELVOUX 05340', '0424219942', 'GERONTOLOGIE', 5),
(447, 'Braquette', 'Vénus', '96 rue des Chantereines FRESSANCOURT 02800', '0359036944', NULL, 2),
(448, 'Hatiche', 'Victor', '96 rue de Paris BETTANT 01500', '0478464491', NULL, 1),
(449, 'Pletziglass', 'Aurèle', '34 rue des oiseaux NEUVILLE-LES-DAMES 01400', '0437142230', NULL, 1),
(450, 'Béronzelle ', 'Reissa', '89 rue des Pigeons PELVOUX 05340', '0414138297', NULL, 5),
(451, '<NAME>', 'Camille', '5 rue des Anges BUZAN 09800', '0550828415', NULL, 9),
(452, 'Alprousky', 'Marie', '58 rue Victor Hugo BOULIGNEUX 01330', '0432323455', NULL, 1),
(453, 'Ferdinand', 'Camille', '89 rue Beaudelaire AUBENTON 02500', '0341803965', NULL, 2),
(454, '<NAME>', 'Fatima', '59 rue Bonaparte EVIGNY 08090', '0326409640', NULL, 8),
(455, 'Sérénice', 'Anne-Jeanne', '10 rue du capitaine Fraquasse MESSINCOURT 08110', '0315685825', NULL, 8),
(456, '<NAME>', 'Alice', '94 rue des Cyprés SAINT-FIRMIN 05800', '0492845898', NULL, 5),
(457, 'Casson', 'Aline', '83 rue des Cavaux CHALLES 01450', '0477868457', NULL, 1),
(458, 'Doineau', 'Françoise', '3 rue des gatinnes FRESSANCOURT 02800', '0310422807', NULL, 2),
(459, 'Pistache', 'Béatrice', '86 rue des Accacias MONTIGNY-SUR-MEUSE 08170', '0351114264', NULL, 8),
(460, 'Bridel', 'Anne-Ange', '17 rue des Accacias JOIGNY-SUR-MEUSE 08700', '0354449959', NULL, 8),
(461, 'Cassin', 'Alain', '61 rue de du général Scott QUATRE-CHAMPS 08400', '0395171820', NULL, 8),
(462, '<NAME>', 'Alain', '10 rue Alphonse Daudet AGUILCOURT 02190', '0378125914', NULL, 2),
(463, 'Habrielle', 'Aude', '73 rue Mallarmé SORBIERS 05150', '0415973212', NULL, 5),
(464, 'Azoulais', 'Aurélien', '5 rue des pyramides SAVINES-LE-LAC 05160', '0417672103', NULL, 5),
(465, 'Gaudillot', 'Amiel', '44 rue Victor Hugo SIGOYER 05130', '0470456938', NULL, 5),
(466, '<NAME>', 'Aude', '45 rue des Lilas FLOING 08200', '0347310971', NULL, 8),
(467, 'Charminet', 'Catherine', '88 rue Alphonse Daudet ARROUT 09800', '0578689528', NULL, 9),
(468, 'Fugasse', 'Alain', '57 rue Petit SAINT-LAURENT-SUR-SAONE 01750', '0448765649', NULL, 1),
(469, 'Zitoune', 'Fatima', '47 rue Lampion OYONNAX 01100', '0460692244', 'OSTEOPATHIE', 1),
(470, 'Certifat', 'Anaelle', '12 rue Albert Camus AX-LES-THERMES 09110', '0569661155', NULL, 9),
(471, 'Hallouche', 'Julie', '3 rue de la pointe SAINT-CREPIN 05600', '0435145304', NULL, 5),
(472, 'Hanscart', 'Alizée', '91 rue Blainville OYONNAX 01100', '0424443942', NULL, 1),
(473, 'Chesnikov', 'Anselme', '58 rue Victor Hugo LAVAL-MORENCY 08150', '0387649400', NULL, 8),
(474, 'Nazaoui', 'Rodolphe', '57 rue des Epines AZY-SUR-MARNE 02400', '0397983251', NULL, 2),
(475, 'Harviche', 'Aristote', '2 rue de Poligny FALAISE 08400', '0379304135', 'ANGEIOLOGIE', 8),
(476, 'Klébert', 'Anne-Marie', '73 rue du capitaine Crochet CHALLES 01450', '0459580046', NULL, 1),
(477, 'Frequin', 'Rosalie', '88 rue <NAME> SAINT-LAURENT-SUR-SAONE 01750', '0460756612', NULL, 1),
(478, 'Charminet', 'Julienne', '54 rue du 14 juillet BEAUMONT-EN-BEINE 02300', '0357974621', NULL, 2),
(479, '<NAME>', 'Bernard', '28 rue des perles blanches MONT-LAURENT 08130', '0350608229', NULL, 8),
(480, 'Yanshen', 'Ingrid', '14 rue de Paris MONTCEAUX 01090', '0490462674', NULL, 1),
(481, 'Sadot', 'Alice', '84 rue <NAME> BLYES 01150', '0486949300', NULL, 1),
(482, 'Chastidien', 'Reissa', '71 rue des Cavaux FLOING 08200', '0371858489', NULL, 8),
(483, 'Vispendieu', 'Anselme', '67 rue Bonaparte MESSINCOURT 08110', '0353311714', NULL, 8),
(484, 'Roland', 'Aristote', '67 rue du renard BUZAN 09800', '0550911167', NULL, 9),
(485, 'Bazile', 'Jules', '50 rue des Cyprés BARENTON-SUR-SERRE 02270', '0377237270', NULL, 2),
(486, 'Thardieux', 'François', '98 rue du stade MACHAULT 08310', '0371879519', 'OSTEOPATHIE', 8),
(487, 'Magellan', 'Patricia', '8 rue des Pigeons CHEZY-SUR-MARNE 02570', '0360797082', 'OSTEOPATHIE', 2),
(488, 'Radesky', 'Reissa', '33 rue Beaudelaire BAGERT 09230', '0551753977', NULL, 9),
(489, 'Braquette', 'Rosalie', '3 rue des Cavaux AMBRIEF 02200', '0325834365', 'GERONTOLOGIE', 2),
(490, 'Rodriguez', 'Irénée', '16 rue Bonaparte AVANCON 05230', '0429279003', 'HOMEOPATHIE', 5),
(491, 'Raminsky', 'Armelle', '24 rue des Néfliers QUATRE-CHAMPS 08400', '0371872007', 'OSTEOPATHIE', 8),
(492, 'Ricardo', 'Serge', '30 rue Albert Camus ARROUT 09800', '0563717429', NULL, 9),
(493, 'Kobel', 'Bénédicte', '29 rue Victor Hugo AUDRESSEIN 09800', '0525469712', NULL, 9),
(494, 'Razaoui', 'Marie', '15 rue de Paris AUBENTON 02500', '0396696281', NULL, 2),
(495, 'Armouche', 'Charles-Edouard', '12 rue St Denis MONTCEAUX 01090', '0492465629', NULL, 1),
(496, 'Ségura', 'Victor', '12 rue des Anses bleues SAVINES-LE-LAC 05160', '0417736200', NULL, 5),
(497, 'Fylbouni', 'Johnny', '35 rue du stade ASTON 09310', '0575380150', NULL, 9),
(498, 'Chakraoui', 'Cristophe', '86 rue Mallarmé ORCIERES 05170', '0488800978', NULL, 5),
(499, 'Fermontin', 'Julien', '38 rue Anatole France AUBENTON 02500', '0318610565', NULL, 2),
(500, 'Frequin', 'François', '32 rue du Mont REOTIER 05600', '0425989993', NULL, 5),
(501, 'Sérénice', 'Anaelle', '74 rue de la gare FLEVILLE 08250', '0325218232', NULL, 8),
(502, 'Kan', 'Anselme', '86 rue Victor Hugo MESSINCOURT 08110', '0381133645', NULL, 8),
(503, 'Fort', 'Cristophe', '86 rue Pasteur NEUVILLE-LES-DAMES 01400', '0432667697', NULL, 1),
(504, 'Chemkaou', 'sabine', '75 rue des Pigeons BEAUMONT-EN-BEINE 02300', '0376547227', NULL, 2),
(505, 'Sibroton', 'Précilia', '66 rue Malraux BUZAN 09800', '0513300693', NULL, 9),
(506, 'Chrome', 'Catherine', '27 rue de la Pergolat MONTCEAUX 01090', '0421383743', 'ALLERGOLOGIE', 1),
(507, '<NAME>', 'Alice', '37 rue de Paris CHEZY-SUR-MARNE 02570', '0356410090', 'ANGEIOLOGIE', 2),
(508, 'Gullit', 'Habib', '71 rue Bonaparte AGUILCOURT 02190', '0350823331', NULL, 2),
(509, 'Mérieux', 'Alain', '77 rue des Accacias BRIANCON 05100', '0498867503', 'GERONTOLOGIE', 5),
(510, 'Aznavourian', 'Patricia', '3 rue de la Tour BILLIAT 01200', '0428025797', NULL, 1),
(511, 'Ricardo', 'Austine', '44 rue des Néfliers CHEZY-SUR-MARNE 02570', '0363569859', NULL, 2),
(512, 'Aznavourian', 'André', '30 rue Hector Berlioz SAINT-FIRMIN 05800', '0444332279', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(513, 'Casson', 'Johnny', '36 rue Blainville AUBENTON 02500', '0395155855', NULL, 2),
(514, 'Razaoui', 'Aurèle', '10 rue du général de Gaulle ARROUT 09800', '0554301843', NULL, 9),
(515, 'Krevette', 'Alizée', '35 rue des Pigeons MONT-LAURENT 08130', '0340963504', NULL, 8),
(516, '<NAME>', 'Fatima', '16 rue Commandant Hériot BANCIGNY 02140', '0334753913', NULL, 2),
(517, 'Hemdaoui', 'Adrien', '2 rue Commandant Hériot MONCEAU-SUR-OISE 02120', '0352372278', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(518, '<NAME>', 'Andrew', '26 rue des pyramides BOULIGNEUX 01330', '0469707196', NULL, 1),
(519, '<NAME>', 'Anémone', '9 rue des Epines BLYES 01150', '0440301616', NULL, 1),
(520, 'Bonieck', 'Cristophe', '69 rue de la recette DOMMARTIN 01380', '0495802726', NULL, 1),
(521, 'Falmino', 'Jules', '24 rue Perdue THIN-LE-MOUTIER 08460', '0328900829', NULL, 8),
(522, 'Castro', 'Aurélien', '66 rue des Anges BOULIGNEUX 01330', '0417563891', NULL, 1),
(523, 'Charles', 'François', '1 rue Blainville HAUTEVILLE 02120', '0317885243', NULL, 2),
(524, 'Lirevien', 'Irénée', '64 rue des perles blanches QUATRE-CHAMPS 08400', '0316251329', 'ALLERGOLOGIE', 8),
(525, 'Prestor', 'Camille', '20 rue du stade AZY-SUR-MARNE 02400', '0339478573', NULL, 2),
(526, 'Scipillon', 'Adelphe', '51 rue des gatinnes BRIANCON 05100', '0412521015', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(527, 'Charmieux', 'Andrew', '14 rue <NAME> BRIANCON 05100', '0448191946', 'GERONTOLOGIE', 5),
(528, 'Rachock', 'Mohammed', '47 rue Pernod YONCQ 08210', '0371193497', NULL, 8),
(529, 'Hanzert', 'Aurèle', '68 rue des Chantereines BUZAN 09800', '0563311027', 'OSTEOPATHIE', 9),
(530, 'Oberlieux', 'Patricia', '72 rue des pyramides ARROUT 09800', '0551116863', NULL, 9),
(531, 'GrosPierre', 'Aude', '35 rue de Poligny CHABESTAN 05400', '0454617092', NULL, 5),
(532, 'Aznavourian', 'Jérémy', '10 rue Malraux FALAISE 08400', '0355875878', NULL, 8),
(533, 'Politzer', 'Jérémy', '12 rue des Anges SAINT-LAURENT-SUR-SAONE 01750', '0476010116', NULL, 1),
(534, 'Faure', 'Alain', '86 rue de Marigny AUDRESSEIN 09800', '0584761714', NULL, 9),
(535, 'Radot', 'Sophie', '54 rue des Epines SAINTE-MARIE 05150', '0447268257', NULL, 5),
(536, 'Habrielle', 'Anne-Ange', '44 rue Malraux DOMMARTIN 01380', '0420664795', NULL, 1),
(537, 'CHeroudy', 'Anaelle', '65 rue des Accacias BILLIAT 01200', '0463159777', NULL, 1);
INSERT INTO `medecins` (`id`, `nom`, `prenom`, `adresse`, `tel`, `spe`, `departement`) VALUES
(538, 'Fortin', 'Julien', '26 rue Pernod AUDRESSEIN 09800', '0564023565', NULL, 9),
(539, 'Casson', 'Jules', '5 rue Albert Camus BAGERT 09230', '0553330696', NULL, 9),
(540, 'Jamgotchian', 'Aristote', '71 rue Petit OYONNAX 01100', '0459707313', 'URGENTISTE', 1),
(541, 'Framzaoui', 'Fernand', '59 rue des Cavaux YONCQ 08210', '0370679861', NULL, 8),
(542, 'Hansbern', 'Anselme', '89 rue de la rose THIN-LE-MOUTIER 08460', '0329785730', NULL, 8),
(543, '<NAME>', 'Firmin', '36 rue Blainville MAYOT 02800', '0335413346', NULL, 2),
(544, 'Fortin', 'Hypolite', '77 rue de Paris OYONNAX 01100', '0445547469', NULL, 1),
(545, '<NAME>', 'Cristophe', '24 rue de la Pergolat THIN-LE-MOUTIER 08460', '0394637980', NULL, 8),
(546, 'Fortin', 'Habib', '28 rue des Chantereines FEPIN 08170', '0370382521', NULL, 8),
(547, 'Bazoline', 'Amiel', '14 rue Petit AUBENTON 02500', '0324206273', NULL, 2),
(548, 'Fermontin', 'Béatrice', '34 rue de la rose AVANCON 05230', '0441382007', NULL, 5),
(549, 'Chamonix', 'Béatrice', '98 rue du capitaine Crochet AX-LES-THERMES 09110', '0583031525', NULL, 9),
(550, 'Hatiche', 'Béatrice', '7 rue Hector Berlioz FRESSANCOURT 02800', '0368437171', NULL, 2),
(551, 'Magellan', 'Fernand', '91 rue Pernod DOMMARTIN 01380', '0417334765', 'ACUPONCTURE', 1),
(552, 'Newmann', 'Anselme', '82 rue St Denis BOURG-EN-BRESSE 01000', '0467462959', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(553, 'Radronck', 'Jérémie', '80 rue Beaudelaire HOUDILCOURT 08190', '0391017675', NULL, 8),
(554, '<NAME>', 'Fatima', '88 rue du général de Gaulle DOMMARTIN 01380', '0436582548', 'URGENTISTE', 1),
(555, 'Shavert', 'Marie', '65 rue Edouard Hériot ABBECOURT 02300', '0316457802', 'HOMEOPATHIE', 2),
(556, 'Chakraoui', 'Amiel', '75 rue des Accacias MAYOT 02800', '0348266841', NULL, 2),
(557, 'Harshill', 'Anne-Lucie', '89 rue de la Pergolat SIGOYER 05130', '0423854231', NULL, 5),
(558, 'Aznavourian', 'Patrice', '38 rue Pasteur AVANCON 05230', '0433495288', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(559, 'Cassolette', 'Victor', '3 rue des Chantereines AMBRIEF 02200', '0313285058', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(560, 'Jaoulle', 'John', '99 rue du capitaine Fraquasse MAYOT 02800', '0325788039', 'URGENTISTE', 2),
(561, 'Palminin', 'Anne', '59 rue des Pigeons CEYZERIAT 01250', '0414968284', NULL, 1),
(562, 'Aznavourian', 'Aurèle', '48 rue Anatole France SIGOYER 05130', '0498986897', NULL, 5),
(563, 'Gueret', 'Firmin', '2 rue de la Tour AZY-SUR-MARNE 02400', '0334984702', NULL, 2),
(564, '<NAME>', 'Ingrid', '74 rue des Pigeons BELLOC 09600', '0575501098', NULL, 9),
(565, 'Zelniky', 'Prosper', '53 rue de Paris BARENTON-SUR-SERRE 02270', '0390633950', NULL, 2),
(566, '<NAME>', 'Anne-Lucie', '19 rue du renard FRESSANCOURT 02800', '0380522884', NULL, 2),
(567, '<NAME>', 'Aline', '76 rue Louis Aragon BOULIGNEUX 01330', '0458483440', 'URGENTISTE', 1),
(568, 'Lirevien', 'Serge', '79 rue Petit BUZAN 09800', '0597720760', 'ANGEIOLOGIE', 9),
(569, 'Sadot', 'Carole', '87 rue de Paris YONCQ 08210', '0386136458', NULL, 8),
(570, 'Anglebert', 'Aristote', '89 rue du stade BOURG-EN-BRESSE 01000', '0495804047', NULL, 1),
(571, 'Zelniky', 'Annie', '81 rue de Poligny ORCIERES 05170', '0484719957', NULL, 5),
(572, 'Lopes', 'Anne-Ange', '89 rue Debussy VAUX-CHAMPAGNE 08130', '0398454558', 'ACUPONCTURE', 8),
(573, 'Charmieux', 'Vénus', '19 rue Bonaparte AUDRESSEIN 09800', '0576161788', 'ACUPONCTURE', 9),
(574, 'Durhum', 'Irénée', '16 rue de Paris OYONNAX 01100', '0438645340', NULL, 1),
(575, 'Chrome', 'Jérémie', '61 rue Hector Berlioz CHABESTAN 05400', '0488168776', 'OSTEOPATHIE', 5),
(576, 'Nahraoui', 'Aurèle', '64 rue des Epines NEUVILLE-LES-DAMES 01400', '0498004744', NULL, 1),
(577, 'Restiffe', 'Fatima', '21 rue des Chantereines LAVAL-MORENCY 08150', '0397521639', NULL, 8),
(578, '<NAME>', 'André', '35 rue Lampion BOURG-EN-BRESSE 01000', '0473219689', NULL, 1),
(579, 'Loulianov', 'Marie', '17 rue des Accacias LAUNOIS-SUR-VENCE 08430', '0369193051', NULL, 8),
(580, 'Zelniky', 'Astine', '94 rue Malraux HAUTEVILLE 02120', '0335672541', NULL, 2),
(581, 'Klébert', 'Patricia', '75 rue du général de Gaulle FALAISE 08400', '0359521971', NULL, 8),
(582, 'Ferdinand', 'Charles', '40 rue de la poste JOIGNY-SUR-MEUSE 08700', '0395476454', NULL, 8),
(583, 'Anglomert', 'Anne-Laure', '75 rue Victor Hugo MONTCY-NOTRE-DAME 08090', '0333999479', NULL, 8),
(584, 'Yansen', 'Alizée', '51 rue Agniel YONCQ 08210', '0352293505', NULL, 8),
(585, 'Capliez', 'Françoise', '9 rue Malraux SAINT-ANDRE-DE-ROSANS 05150', '0433874591', NULL, 5),
(586, 'Chemkaoui', 'Anne-Marie', '90 rue Mallarmé MAYOT 02800', '0363076320', NULL, 2),
(587, 'Certifat', 'Jimmy', '10 rue <NAME> CHABESTAN 05400', '0479570050', NULL, 5),
(588, 'Jankelevitch', 'Aurélien', '67 rue des Princes AMBRIEF 02200', '0326868610', NULL, 2),
(589, 'Béronzelle ', 'Anaelle', '86 rue du Mont MONTCEAUX 01090', '0432538873', 'URGENTISTE', 1),
(590, 'Chakraoui', 'François', '23 rue de Paris BARZY-SUR-MARNE 02850', '0338114774', NULL, 2),
(591, 'Bazile', 'François', '33 rue <NAME> BELLOC 09600', '0587084727', NULL, 9),
(592, 'Harviche', 'Catherine', '70 rue Malraux BRIANCON 05100', '0446591175', NULL, 5),
(593, '<NAME>', 'Amélie', '26 rue des Accacias MONT-LAURENT 08130', '0347054500', NULL, 8),
(594, 'Braquet', 'Charles', '77 rue des perles blanches BETTANT 01500', '0413532750', NULL, 1),
(595, 'Breton', 'Adelphe', '96 rue des Argonautes REOTIER 05600', '0488831908', NULL, 5),
(596, 'Lopes', 'Carole', '83 rue du renard AX-LES-THERMES 09110', '0540901782', NULL, 9),
(597, 'Labatiste', 'Rodolphe', '33 rue Commandant Mouchotte THIN-LE-MOUTIER 08460', '0324607170', NULL, 8),
(598, '<NAME>', 'Yoan', '42 rue Anatole France BEZAC 09100', '0597093071', 'ALLERGOLOGIE', 9),
(599, 'Lopez', 'Firmin', '66 rue Commandant Hériot AX-LES-THERMES 09110', '0560293085', NULL, 9),
(600, 'Astoria', 'Caline', '54 rue de la pointe SAINT-SAUVEUR 05200', '0476324085', NULL, 5),
(601, 'Capliez', 'Amélie', '12 rue du capitaine Fraquasse BARZY-SUR-MARNE 02850', '0347886278', NULL, 2),
(602, 'CHeroudy', 'Nohan', '87 rue du 14 juillet HERBEUVAL 08370', '0350146870', NULL, 8),
(603, 'Raminsky', 'Yoan', '8 rue de Paris MONCEAU-SUR-OISE 02120', '0358800447', NULL, 2),
(604, 'Framier', 'Victor', '26 rue Hector Berlioz ARANDAS 01230', '0426016480', NULL, 1),
(605, 'Faure', 'Bertrand', '94 rue des gatinnes MONTCEAUX 01090', '0480493919', NULL, 1),
(606, 'Chesnikov', 'Précilia', '56 rue du capitaine Crochet AUDRESSEIN 09800', '0537599041', NULL, 9),
(607, 'Lièvremont', 'Astine', '58 rue des perles blanches YONCQ 08210', '0380622197', NULL, 8),
(608, 'Ségura', 'Anne-Sophie', '52 rue des Artistes FALAISE 08400', '0352041231', NULL, 8),
(609, 'Chevalier', 'Anselme', '85 rue des Pigeons AGUILCOURT 02190', '0387135673', NULL, 2),
(610, 'Sursarshill', 'Julie', '97 rue des Lilas OYONNAX 01100', '0493949488', NULL, 1),
(611, 'Pletziglass', 'Andrée', '76 rue Alphonse Daudet LAUNOIS-SUR-VENCE 08430', '0355911277', NULL, 8),
(612, '<NAME>', 'Rosalie', '28 rue des Argonautes SAINTE-MARIE 05150', '0470907768', 'HOMEOPATHIE', 5),
(613, 'Guimauve', 'Alizée', '78 rue de Marigny HERBEUVAL 08370', '0347904226', NULL, 8),
(614, 'Sabatier', 'Adelphe', '72 rue Albert Camus SAINT-FIRMIN 05800', '0474088419', NULL, 5),
(615, 'Chastidien', 'Rodolphe', '59 rue Pasteur ORCIERES 05170', '0464480776', NULL, 5),
(616, 'Azria', 'Martin', '14 rue Perdue AUBENTON 02500', '0377909038', 'OSTEOPATHIE', 2),
(617, 'Roland', 'Anne-Ange', '89 rue Pasteur SIGOYER 05130', '0461827483', 'HOMEOPATHIE', 5),
(618, 'Liorehen', 'Marie', '51 rue des Epines ABBECOURT 02300', '0326934571', NULL, 2),
(619, 'Zidanne', 'Julienne', '3 rue des Artistes BLYES 01150', '0413911989', NULL, 1),
(620, 'Homar', 'Amélie', '45 rue des Cavaux ABBECOURT 02300', '0372174885', NULL, 2),
(621, 'Rachock', 'Jules', '18 rue Agniel AUBENTON 02500', '0368418443', NULL, 2),
(622, 'Froudette', 'Aurèle', '64 rue de Poligny BRIANCON 05100', '0484091392', 'OSTEOPATHIE', 5),
(623, 'Lopes', 'Bertrand', '68 rue de la gare BOURG-EN-BRESSE 01000', '0416521067', NULL, 1),
(624, 'Prestoriat', 'Jimmy', '66 rue de Paris OYONNAX 01100', '0419790693', NULL, 1),
(625, 'Fortin', 'Nohan', '55 rue <NAME>ugo BANCIGNY 02140', '0350319392', 'HOMEOPATHIE', 2),
(626, 'Prouteau', 'Caline', '96 rue Perdue CAMON 09500', '0540178028', NULL, 9),
(627, 'Pistache', 'André', '34 rue des Princes ROCHEBRUNE 05190', '0444668151', NULL, 5),
(628, 'Politzer', 'Hector', '75 rue des Anses bleues SAINT-LAURENT-SUR-SAONE 01750', '0478936977', NULL, 1),
(629, 'Chrome', 'Précilia', '39 rue Petit SAINT-LAURENT-SUR-SAONE 01750', '0456796681', NULL, 1),
(630, 'Kérouanne', 'Gilles', '11 rue des Pigeons NEUVILLE-LES-DAMES 01400', '0418340885', NULL, 1),
(631, 'Durhum', 'Jordan', '53 rue des Anses bleues PELVOUX 05340', '0474792387', NULL, 5),
(632, 'Thardieux', 'Julien', '76 rue Pasteur PELVOUX 05340', '0439307843', NULL, 5),
(633, 'Froudette', 'François', '83 rue Petit BRIANCON 05100', '0481669712', NULL, 5),
(634, 'Farahoui', 'Firmin', '69 rue de la Tour AUGIREIN 09800', '0561526750', NULL, 9),
(635, 'Prouteau', 'Bernard', '50 rue Malraux MONCEAU-SUR-OISE 02120', '0330404637', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(636, 'Doineau', 'Aline', '63 rue du général de Gaulle MONTCY-NOTRE-DAME 08090', '0330296222', NULL, 8),
(637, 'Yoggi', 'Anne-Sophie', '28 rue du général de Gaulle BRIANCON 05100', '0466993498', 'GERONTOLOGIE', 5),
(638, 'Durieux', 'Bernard', '47 rue du général de Gaulle CAMON 09500', '0534440216', NULL, 9),
(639, 'Format', 'Anne-Marie', '15 rue des Princes ASTON 09310', '0584747640', NULL, 9),
(640, 'Bretonnot', 'Aristote', '27 rue des Cavaux FEPIN 08170', '0333376588', NULL, 8),
(641, 'GrosJean', 'John', '41 rue Commandant Mouchotte HAUTEVILLE 02120', '0328740889', 'URGENTISTE', 2),
(642, 'Ségura', 'Irénée', '42 rue Agniel OYONNAX 01100', '0447938676', NULL, 1),
(643, 'Farahoui', 'Martin', '67 rue Agniel NEUVILLE-LES-DAMES 01400', '0412803539', 'URGENTISTE', 1),
(644, 'Sibroton', 'Rosalie', '15 rue Edouard Hériot ARROUT 09800', '0553692792', NULL, 9),
(645, 'Mérieux', 'Gilles', '64 rue du Mont HAUTEVILLE 02120', '0310558221', 'GERONTOLOGIE', 2),
(646, 'Jaoulle', 'Aude', '25 rue des hirondelles BLYES 01150', '0415240773', NULL, 1),
(647, 'Hemdaoui', 'Reissa', '65 rue du général de Gaulle AZY-SUR-MARNE 02400', '0374955418', NULL, 2),
(648, 'Oulianov', 'Andrée', '30 rue du 14 juillet AVANCON 05230', '0463468177', NULL, 5),
(649, 'Scipion', 'Julien', '47 rue Agniel JOIGNY-SUR-MEUSE 08700', '0334063627', NULL, 8),
(650, 'Prestor', 'Reissa', '62 rue de la Tour ROCHEBRUNE 05190', '0480473643', NULL, 5),
(651, 'Fourmiret', 'Sophie', '91 rue Petit AUBENTON 02500', '0348745022', NULL, 2),
(652, '<NAME>', 'Patricia', '95 rue Pasteur HERBEUVAL 08370', '0354297793', NULL, 8),
(653, 'Oulianov', 'Reissa', '25 rue Perdue AX-LES-THERMES 09110', '0540152929', 'OSTEOPATHIE', 9),
(654, 'Lopes', 'Armelle', '57 rue des Pigeons SAINT-FIRMIN 05800', '0479849596', NULL, 5),
(655, 'Mingalle', 'Irénée', '83 rue des pyramides FLEVILLE 08250', '0312351408', NULL, 8),
(656, 'Kobel', 'Anne-Laure', '58 rue des Argonautes ATTILLY 02490', '0344455589', NULL, 2),
(657, 'Chrome', 'Patrick', '28 rue des Cyprés OYONNAX 01100', '0456081235', NULL, 1),
(658, 'Hallouche', 'Ines', '65 rue Mallarmé TRAVECY 02800', '0344024000', NULL, 2),
(659, 'Scott', 'Julie', '30 rue de du général Scott SAINT-FIRMIN 05800', '0440937400', NULL, 5),
(660, 'Zingaro', 'Aurélien', '92 rue des Cyprés BEZAC 09100', '0521006225', NULL, 9),
(661, 'Framaouzy', 'Martial', '41 rue du général de Gaulle AUGIREIN 09800', '0569674646', NULL, 9),
(662, 'Bazile', 'Amiel', '6 rue Malraux HAUTEVILLE 02120', '0336447283', NULL, 2),
(663, 'Thardieux', 'Jérémy', '62 rue Lampion BEZAC 09100', '0526185264', NULL, 9),
(664, 'Fylbouni', 'Cristophe', '88 rue du général de Gaulle BOULIGNEUX 01330', '0435544779', NULL, 1),
(665, 'Fort', 'Ingrid', '6 rue du 14 juillet DOMMARTIN 01380', '0442048091', NULL, 1),
(666, 'CHeroudy', 'Jimmy', '50 rue Anatole France MACHAULT 08310', '0332316186', NULL, 8),
(667, '<NAME>', 'Aline', '68 rue des Artistes NEUVILLE-LES-DAMES 01400', '0431882334', NULL, 1),
(668, 'Yoggi', 'Irénée', '34 rue des Chantereines BEAUMONT-EN-BEINE 02300', '0337016124', NULL, 2),
(669, 'Jalouve', 'Gilles', '28 rue du Mont JOIGNY-SUR-MEUSE 08700', '0356982229', 'OSTEOPATHIE', 8),
(670, 'Martinet', 'Irénée', '33 rue des perles blanches HOUDILCOURT 08190', '0399670344', NULL, 8),
(671, 'Kan', 'Habib', '9 rue des gatinnes BEZAC 09100', '0521113468', NULL, 9),
(672, 'Chermis', 'Cristophe', '18 rue Edouard Hériot CHALLES 01450', '0428126087', NULL, 1),
(673, 'Chastidien', 'Aline', '87 rue de la Tour ORCIERES 05170', '0474417618', NULL, 5),
(674, 'Ricardo', 'Julien', '20 rue des Chantereines SAINT-SAUVEUR 05200', '0430434976', NULL, 5),
(675, 'Epoka', 'Anselme', '14 rue des Anges REOTIER 05600', '0441999912', NULL, 5),
(676, 'Bredequin', 'Anne-Lucie', '47 rue Bonaparte AUGIREIN 09800', '0533497900', NULL, 9),
(677, 'Lopez', 'Alizée', '96 rue Albert <NAME> 09230', '0519203974', NULL, 9),
(678, 'Doineau', 'Béatrice', '97 rue Lampion TRAVECY 02800', '0350641861', NULL, 2),
(679, 'Hemdaoui', 'Serge', '61 rue Mallarmé SAVINES-LE-LAC 05160', '0489512105', NULL, 5),
(680, 'Chamois', 'Rodolphe', '43 rue des Princes ASTON 09310', '0513212527', NULL, 9),
(681, 'Durhum', 'Adelphe', '80 rue des Princes AVANCON 05230', '0446646697', NULL, 5),
(682, 'Nahraoui', 'Austine', '47 rue Pasteur BEZAC 09100', '0530872724', NULL, 9),
(683, 'Klébert', 'Yoan', '55 rue des Cavaux AGUILCOURT 02190', '0324607617', NULL, 2),
(684, 'Fermontin', 'Gilles', '46 rue du stade MONT-LAURENT 08130', '0387328329', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(685, 'Zola', 'Aude', '98 rue des Cyprés SAINT-CREPIN 05600', '0458369404', NULL, 5),
(686, 'Zingaro', 'Cristophe', '82 rue H<NAME> ARANDAS 01230', '0425003261', NULL, 1),
(687, 'Pionneer', 'Jérémy', '21 rue des Princes MONT-LAURENT 08130', '0322135363', NULL, 8),
(688, 'Lièvremont', 'Mohammed', '53 rue Pasteur THIN-LE-MOUTIER 08460', '0389514499', NULL, 8),
(689, 'Ferdinand', 'Précilia', '38 rue Louis Aragon SAVINES-LE-LAC 05160', '0441180757', NULL, 5),
(690, 'Charles', 'Françoise', '63 rue des Anges AX-LES-THERMES 09110', '0553742065', 'URGENTISTE', 9),
(691, 'Festina', 'sabine', '18 rue Lampion MONTCEAUX 01090', '0474843880', NULL, 1),
(692, 'Jaoulle', 'Julien', '50 rue des Chantereines REOTIER 05600', '0433213809', NULL, 5),
(693, 'Epoka', 'Julie', '29 rue de du général Scott SAINT-ANDRE-DE-ROSANS 05150', '0450980762', NULL, 5),
(694, 'Radot', 'Roby', '14 rue Mallarmé LAVAL-MORENCY 08150', '0350310027', 'ANGEIOLOGIE', 8),
(695, 'Chrome', 'Jérémy', '42 rue du capitaine Fraquasse JUNIVILLE 08310', '0361117640', NULL, 8),
(696, 'Durhum', 'Anne-Laure', '63 rue Commandant Mouchotte BOURG-EN-BRESSE 01000', '0442277236', NULL, 1),
(697, 'Armouche', 'Anaelle', '21 rue des Cavaux CHEZY-SUR-MARNE 02570', '0388675304', NULL, 2),
(698, 'Rastidien', 'Hamed', '74 rue Victor Hugo ARROUT 09800', '0541004550', NULL, 9),
(699, 'Scipion', 'Béatrice', '54 rue Victor Hugo FRESSANCOURT 02800', '0312941986', 'ALLERGOLOGIE', 2),
(700, 'Ferdinand', 'Françoise', '98 rue de la Tour MESSINCOURT 08110', '0317883763', 'GERONTOLOGIE', 8),
(701, 'Thardieux', 'Aristote', '73 rue des Anges BARENTON-SUR-SERRE 02270', '0369353331', NULL, 2),
(702, 'Hanzert', 'Johnny', '41 rue Victor Hugo FALAISE 08400', '0393642374', NULL, 8),
(703, 'Arvis', 'André', '59 rue de la Pergolat BAGERT 09230', '0570809688', NULL, 9),
(704, 'Fourmiret', 'Carole', '49 rue de du général Scott HOUDILCOURT 08190', '0318196859', NULL, 8),
(705, 'Milliet', 'Armelle', '70 rue Mallarmé LAVAL-MORENCY 08150', '0330805895', NULL, 8),
(706, 'Kan', 'François', '51 rue des Lilas SAINT-FIRMIN 05800', '0410879788', NULL, 5),
(707, 'Dusel', 'Anémone', '66 rue Commandant Mouchotte BRIANCON 05100', '0421542405', NULL, 5),
(708, 'Framzaoui', 'Reissa', '73 rue de la Pergolat BRIANCON 05100', '0444698187', NULL, 5),
(709, 'Pionneer', 'John', '2 rue des Princes SAVINES-LE-LAC 05160', '0431249814', NULL, 5),
(710, 'Billahian', 'Catherine', '53 rue de Poligny BARZY-SUR-MARNE 02850', '0373513553', NULL, 2),
(711, 'Frequin', 'Jules', '30 rue Malraux EVIGNY 08090', '0317625916', 'GERONTOLOGIE', 8),
(712, 'Yanshen', 'Martin', '35 rue des perles blanches OYONNAX 01100', '0484949416', NULL, 1),
(713, 'Newmann', 'Rodolphe', '22 rue du stade AX-LES-THERMES 09110', '0597525447', NULL, 9),
(714, 'Nazaoui', 'Patrick', '18 rue Perdue NEUVILLE-LES-DAMES 01400', '0454304156', NULL, 1),
(715, 'Nahraoui', 'Bertrand', '65 rue des Anses bleues BELLOC 09600', '0522232477', NULL, 9),
(716, 'Capliez', 'Bernard', '70 rue des pyramides AX-LES-THERMES 09110', '0548800884', NULL, 9),
(717, 'Zelniky', 'Rosalie', '9 rue Mallarmé SAINT-CREPIN 05600', '0470298666', NULL, 5),
(718, '<NAME>', 'Jordan', '36 rue Mallarmé MONCEAU-SUR-OISE 02120', '0337902134', NULL, 2),
(719, 'Fourmiret', 'Jérémie', '27 rue de Paris TRAVECY 02800', '0321240986', 'ANGEIOLOGIE', 2),
(720, 'Frequin', 'Catherine', '25 rue du stade THIN-LE-MOUTIER 08460', '0373019942', NULL, 8),
(721, 'Homar', 'Précilia', '58 rue des Chantereines SORBIERS 05150', '0456138900', NULL, 5),
(722, 'Cerpico', 'Roby', '14 rue des Princes REOTIER 05600', '0418201233', NULL, 5),
(723, 'Hollidays', 'Roby', '7 rue du 14 juillet SAINT-FIRMIN 05800', '0435737841', NULL, 5),
(724, 'Fournil', 'Alice', '21 rue du 14 juillet AUDRESSEIN 09800', '0549577626', 'ALLERGOLOGIE', 9),
(725, 'Fournil', 'Sophie', '12 rue Blainville BOULIGNEUX 01330', '0485824681', NULL, 1),
(726, 'Fortin', 'Armelle', '87 rue des pyramides BANCIGNY 02140', '0380163229', NULL, 2),
(727, 'Radronck', 'Cristophe', '44 rue St Denis ROCHEBRUNE 05190', '0421833954', NULL, 5),
(728, 'Aznakovitch', 'Reissa', '27 rue de la gare AUDRESSEIN 09800', '0525862994', NULL, 9),
(729, 'Astoria', 'Amélie', '41 rue des pyramides VAUX-CHAMPAGNE 08130', '0343900888', NULL, 8),
(730, '<NAME>', 'Andrew', '31 rue de la poste FLOING 08200', '0311338451', NULL, 8),
(731, 'Béronze ', 'Marie', '35 rue des gatinnes PELVOUX 05340', '0427092084', NULL, 5),
(732, 'El Hamouti', 'Alice', '35 rue du renard AX-LES-THERMES 09110', '0579017565', NULL, 9),
(733, 'Loulianov', 'Jules', '90 rue de Paris VAUX-CHAMPAGNE 08130', '0386647121', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(734, 'Falmino', 'Rosalie', '3 rue de Marigny AX-LES-THERMES 09110', '0552021678', NULL, 9),
(735, 'Zidanne', 'Astine', '7 rue de la Pergolat BAGERT 09230', '0521392547', 'MEDECINE APPLIQUEE AUX SPORTS', 9),
(736, 'Bonieck', 'Prosper', '90 rue Bonaparte YONCQ 08210', '0392674994', NULL, 8),
(737, 'Hanscart', 'Fernand', '42 rue Edouard Hériot ARROUT 09800', '0515601750', NULL, 9),
(738, 'Scipillon', 'Anne-Laure', '70 rue du Mont AZY-SUR-MARNE 02400', '0347195732', NULL, 2),
(739, 'Framier', 'Julien', '13 rue des Lilas BANCIGNY 02140', '0339249742', NULL, 2),
(740, 'Fortin', 'Hypolite', '45 rue des Néfliers ORCIERES 05170', '0435503130', NULL, 5),
(741, 'Jamgotchian', 'Irénée', '57 rue Hector Berlioz FEPIN 08170', '0399685398', NULL, 8),
(742, 'Chamois', 'Reissa', '24 rue Hector Berlioz ARROUT 09800', '0564256388', 'GERONTOLOGIE', 9),
(743, 'Radocky', 'Jimmy', '25 rue Albert Camus SAINT-LAURENT-SUR-SAONE 01750', '0442319187', NULL, 1),
(744, 'Protonne', 'Jérémie', '96 rue Anatole France MONT-LAURENT 08130', '0379511159', NULL, 8),
(745, 'Zitoune', 'Victor', '37 rue de Marigny SAINTE-MARIE 05150', '0497549880', NULL, 5),
(746, 'Guimauve', 'Bertrand', '20 rue Pasteur BEDEILLE 09230', '0522586224', NULL, 9),
(747, 'Epriniche', 'Julien', '44 rue Bonaparte BANCIGNY 02140', '0390688254', NULL, 2),
(748, 'Khan', 'Habib', '5 rue du stade AMBRIEF 02200', '0327960352', NULL, 2),
(749, 'Lopez', 'André', '69 rue Debussy MONCEAU-SUR-OISE 02120', '0363762717', NULL, 2),
(750, 'Casson', 'Hypolite', '20 rue Victor Hugo THIN-LE-MOUTIER 08460', '0387692474', NULL, 8),
(751, 'Oumar', 'André', '27 rue des Accacias LAUNOIS-SUR-VENCE 08430', '0314089620', NULL, 8),
(752, 'Aznakovitch', 'Mohammed', '48 rue du 14 juillet AX-LES-THERMES 09110', '0557230819', NULL, 9),
(753, '<NAME>', 'Patrick', '38 rue du renard BILLIAT 01200', '0438986289', NULL, 1),
(754, 'Epoka', 'Précilia', '3 rue des Epines AUGIREIN 09800', '0555523105', NULL, 9),
(755, 'Merlieux', 'Hamed', '43 rue des Epines HERBEUVAL 08370', '0332471585', NULL, 8),
(756, 'Fournil', 'Anne-Marie', '26 rue de Paris SORBIERS 05150', '0480449197', NULL, 5),
(757, 'Liorehen', 'Amélie', '33 rue de Marigny BRIANCON 05100', '0429531221', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(758, 'Festina', 'Précilia', '17 rue des pyramides MESSINCOURT 08110', '0383254238', NULL, 8),
(759, 'Jamgotchian', 'Précilia', '24 rue Debussy BOURG-EN-BRESSE 01000', '0431348186', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(760, 'Charminet', 'Béatrice', '21 rue des perles blanches MONTCY-NOTRE-DAME 08090', '0314453519', NULL, 8),
(761, 'Ségura', 'Caline', '46 rue Mallarmé MONTCEAUX 01090', '0420799374', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(762, 'Charlequin', 'Bénédicte', '90 rue Agniel YONCQ 08210', '0373069363', NULL, 8),
(763, 'CHeroudy', 'Alain', '17 rue St Denis AGUILCOURT 02190', '0333695801', NULL, 2),
(764, 'Harviche', 'Précilia', '34 rue Anatole France BETTANT 01500', '0412141785', NULL, 1),
(765, 'Shavert', 'Anne-Laure', '24 rue Commandant Mouchotte REOTIER 05600', '0420893209', NULL, 5),
(766, 'Hallouche', 'Françoise', '80 rue Albert Camus AMBRIEF 02200', '0373756074', NULL, 2),
(767, 'Kérouanne', 'Caline', '30 rue des perles blanches SAINT-LAURENT-SUR-SAONE 01750', '0439831324', NULL, 1),
(768, 'Pololsky', 'Victor', '14 rue des Lilas CHEZY-SUR-MARNE 02570', '0313300681', NULL, 2),
(769, 'Mingalle', 'Aristote', '79 rue des Anses bleues ARANDAS 01230', '0420332660', NULL, 1),
(770, 'Frazier', 'Johnny', '34 rue du renard FALAISE 08400', '0370553291', NULL, 8),
(771, 'Rodriguez', 'Jérome', '28 rue <NAME> ORCIERES 05170', '0443297062', NULL, 5),
(772, 'Bredequin', 'Françoise', '88 rue du Mont FRESSANCOURT 02800', '0313654986', 'ANGEIOLOGIE', 2),
(773, 'Labatiste', 'Anaelle', '48 rue des Argonautes ARROUT 09800', '0518603040', NULL, 9),
(774, '<NAME>', 'Jérémie', '67 rue des gatinnes ARANDAS 01230', '0410422676', NULL, 1),
(775, 'Chrome', 'Julie', '4 rue Anatole France DOMMARTIN 01380', '0496807830', NULL, 1),
(776, 'Guimauve', 'Jules', '62 rue de la Pergolat BOURG-EN-BRESSE 01000', '0487728945', NULL, 1),
(777, 'Nahraoui', 'Amélie', '59 rue Louis Aragon CAMON 09500', '0591653123', NULL, 9),
(778, 'CHeroudy', 'Johnny', '80 rue de du général Scott JOIGNY-SUR-MEUSE 08700', '0386814494', NULL, 8),
(779, 'Azria', 'Dominique', '35 rue des Epines MONTCEAUX 01090', '0463823233', NULL, 1),
(780, 'Azoulais', 'Amélie', '60 rue des gatinnes BILLIAT 01200', '0487102339', NULL, 1),
(781, 'Mariveaux', 'Andrée', '20 rue de la Pergolat MONTCEAUX 01090', '0487833849', NULL, 1),
(782, 'Fortin', 'Aristote', '74 rue des Néfliers SAINT-LAURENT-SUR-SAONE 01750', '0417675151', NULL, 1),
(783, 'Charmieux', 'Anémone', '78 rue <NAME> BRIANCON 05100', '0430859878', NULL, 5),
(784, 'Vispendieu', 'Amiel', '2 rue Perdue AUBENTON 02500', '0334550712', NULL, 2),
(785, 'Farahoui', 'Aline', '88 rue de Poligny FRESSANCOURT 02800', '0399301475', NULL, 2),
(786, 'Liorehen', 'Prosper', '18 rue des hirondelles BOURG-EN-BRESSE 01000', '0463936581', NULL, 1),
(787, 'Froudette', 'Marie', '47 rue Perdue BRIANCON 05100', '0464689414', NULL, 5),
(788, 'Klébert', 'Hector', '91 rue des hirondelles AX-LES-THERMES 09110', '0583375798', NULL, 9),
(789, 'Klébert', 'Jérémie', '19 rue Commandant Hériot CEYZERIAT 01250', '0426848534', 'URGENTISTE', 1),
(790, 'Brouzais', 'Aristote', '96 rue du Mont ROCHEBRUNE 05190', '0486526998', NULL, 5),
(791, 'Frazier', 'Hypolite', '92 rue Beaudelaire JOIGNY-SUR-MEUSE 08700', '0364925968', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(792, 'Cassolette', 'Jules', '56 rue du Mont BILLIAT 01200', '0459159687', NULL, 1),
(793, 'Bazoline', 'Anne-Lucie', '94 rue Agniel BILLIAT 01200', '0497364094', NULL, 1),
(794, 'Favriellé', 'Reissa', '37 rue de la pointe HAUTEVILLE 02120', '0398806683', 'ALLERGOLOGIE', 2),
(795, 'Camus', 'Patricia', '5 rue St Denis ABBECOURT 02300', '0355040100', NULL, 2),
(796, 'Mingalle', 'Anne-Lucie', '90 rue Lampion YONCQ 08210', '0399778947', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(797, 'Khan', 'Jérémy', '75 rue des Cavaux SAINT-LAURENT-SUR-SAONE 01750', '0466069822', NULL, 1),
(798, 'Charmis', 'Nohan', '9 rue des Epines SAVOURNON 05700', '0411774310', NULL, 5),
(799, 'Cassin', 'Hector', '87 rue Malraux LAUNOIS-SUR-VENCE 08430', '0359717547', NULL, 8),
(800, 'Bonieck', 'Aline', '14 rue de la rose BARZY-SUR-MARNE 02850', '0356584101', NULL, 2),
(801, 'Billahian', 'Sophie', '66 rue du 14 juillet AVANCON 05230', '0413861599', NULL, 5),
(802, 'Pionneer', 'Dominique', '72 rue des Argonautes BRIANCON 05100', '0465512769', NULL, 5),
(803, 'Durhum', 'Anne', '78 rue des hirondelles PELVOUX 05340', '0495946694', NULL, 5),
(804, 'Perronet', 'Ines', '15 rue des Anses bleues MESSINCOURT 08110', '0312418493', NULL, 8),
(805, '<NAME>', 'Anémone', '21 rue Commandant Hériot BELLEY 01300', '0465513099', NULL, 1),
(806, 'Bonieck', 'Sophie', '54 rue du 14 juillet AX-LES-THERMES 09110', '0548859466', NULL, 9),
(807, '<NAME>', 'Irénée', '48 rue des perles blanches BRIANCON 05100', '0424065321', NULL, 5),
(808, 'Radosky', 'John', '34 rue du Mont BETTANT 01500', '0441330897', 'HOMEOPATHIE', 1),
(809, 'Nazaoui', 'Aurélien', '61 rue Pasteur MAYOT 02800', '0356229245', NULL, 2),
(810, '<NAME>', 'sabine', '14 rue des Anges OYONNAX 01100', '0456485843', NULL, 1),
(811, 'Oberlieux', 'Camille', '67 rue Alphonse Daudet BUZAN 09800', '0531797312', NULL, 9),
(812, 'Fylbouni', 'Mohammed', '6 rue des Pigeons BARENTON-SUR-SERRE 02270', '0370234499', 'MEDECINE APPLIQUEE AUX SPORTS', 2),
(813, 'Homar', 'Amiel', '23 rue Hector Berlioz BETTANT 01500', '0487520515', NULL, 1),
(814, 'Azria', 'Vénus', '90 rue des Lilas HAUTEVILLE 02120', '0394086731', NULL, 2),
(815, 'Sidot', 'Hypolite', '80 rue de la gare ARANDAS 01230', '0440645072', NULL, 1),
(816, 'Rastidien', 'Anémone', '22 rue des Cyprés BLYES 01150', '0470785500', NULL, 1),
(817, 'Oulianov', 'Rodolphe', '24 rue des Anges BELLEY 01300', '0459668577', NULL, 1),
(818, 'Hanzert', 'Julie', '88 rue des Pigeons JUNIVILLE 08310', '0391920541', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(819, 'Zelniky', 'Alice', '6 rue des hirondelles SAINT-CREPIN 05600', '0478485015', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(820, 'Guimauve', 'Carole', '78 rue des Pigeons SAINTE-MARIE 05150', '0433025835', NULL, 5),
(821, 'Anglebert', 'Anne-Ange', '19 rue de la pointe PELVOUX 05340', '0411070122', NULL, 5),
(822, 'Braquet', 'Ingrid', '35 rue Malraux QUATRE-CHAMPS 08400', '0370478563', 'ALLERGOLOGIE', 8),
(823, '<NAME>', 'Alain', '27 rue du stade SAINT-LAURENT-SUR-SAONE 01750', '0492470117', NULL, 1),
(824, 'Shavert', 'Vénus', '29 rue de Paris AVANCON 05230', '0424123589', NULL, 5),
(825, 'Framier', 'Bernard', '53 rue de la poste BAGERT 09230', '0550830599', 'OSTEOPATHIE', 9),
(826, 'Charlequin', 'Serge', '52 rue de Paris SAINT-FIRMIN 05800', '0472679599', NULL, 5),
(827, 'Fermat', 'Anaelle', '92 rue Blainville SAINT-ANDRE-DE-ROSANS 05150', '0474041924', 'GERONTOLOGIE', 5),
(828, 'Sibroton', 'Charles', '47 rue Beaudelaire AMBRIEF 02200', '0356493035', NULL, 2),
(829, '<NAME>', 'Fatima', '73 rue des Anges FRESSANCOURT 02800', '0390943061', NULL, 2),
(830, 'Sadot', 'André', '95 rue Edouard Hériot SAINT-FIRMIN 05800', '0483174531', 'HOMEOPATHIE', 5),
(831, 'Frazier', 'André', '24 rue Louis Aragon REOTIER 05600', '0476877380', NULL, 5),
(832, 'Zingaro', 'Ines', '71 rue Edouard Hériot ASTON 09310', '0543065471', 'HOMEOPATHIE', 9),
(833, 'Chrome', 'Irénée', '72 rue du capitaine Crochet SAVOURNON 05700', '0415947068', 'ANGEIOLOGIE', 5),
(834, 'Harshill', 'Armelle', '32 rue de Paris SAINT-LAURENT-SUR-SAONE 01750', '0480648434', NULL, 1),
(835, 'Aznakovitch', 'Serge', '96 rue des oiseaux YONCQ 08210', '0397358254', NULL, 8),
(836, 'Frazier', 'Patrick', '66 rue Blainville FRESSANCOURT 02800', '0330907062', 'OSTEOPATHIE', 2),
(837, 'Habresh', 'Caline', '84 rue des Epines BRIANCON 05100', '0411957355', NULL, 5),
(838, 'Fermontin', 'Patrice', '93 rue Perdue DOMMARTIN 01380', '0430289650', NULL, 1),
(839, 'Bazoline', 'Martin', '96 rue des Pigeons ORCIERES 05170', '0492319447', NULL, 5),
(840, 'Rastuffe', 'Rosalie', '34 rue des Ormes AX-LES-THERMES 09110', '0577827344', NULL, 9),
(841, 'Anglebert', 'Robert', '97 rue des perles blanches VAUX-CHAMPAGNE 08130', '0315818160', NULL, 8),
(842, 'Protonne', 'Patricia', '59 rue Pernod SORBIERS 05150', '0452990036', 'GERONTOLOGIE', 5),
(843, 'Raminski', 'Patrice', '30 rue de du général Scott SAINT-SAUVEUR 05200', '0412740574', NULL, 5),
(844, 'Falahoui', 'Alizée', '24 rue Commandant Hériot HERBEUVAL 08370', '0372811016', NULL, 8),
(845, 'Zomar', 'Amiel', '30 rue des Epines ARROUT 09800', '0554912883', NULL, 9),
(846, 'Jalouve', 'Anne-Laure', '72 rue des Accacias CEYZERIAT 01250', '0495757649', NULL, 1),
(847, 'Epoka', 'Alain', '89 rue de la Pergolat NEUVILLE-LES-DAMES 01400', '0443139412', NULL, 1),
(848, 'Chéchenko', 'Julien', '52 rue Malraux MAYOT 02800', '0313537125', NULL, 2),
(849, 'Framier', 'Dominique', '26 rue des Pigeons CHEZY-SUR-MARNE 02570', '0376713314', NULL, 2),
(850, 'CHeroudy', 'Prosper', '34 rue des pyramides DOMMARTIN 01380', '0437007893', NULL, 1),
(851, 'Scipillon', 'Amélie', '84 rue de Marigny AMBRIEF 02200', '0362342189', 'GERONTOLOGIE', 2),
(852, 'Durhum', 'Carole', '14 rue des Lilas SAVOURNON 05700', '0440474468', 'ALLERGOLOGIE', 5),
(853, 'Homar', 'Adelphe', '32 rue de Marigny CHABESTAN 05400', '0479332407', 'ANGEIOLOGIE', 5),
(854, 'Chamois', 'Anne-Lucie', '31 rue des pyramides MAYOT 02800', '0352060592', 'URGENTISTE', 2),
(855, 'Egrouzais', 'Amélie', '90 rue des Néfliers HOUDILCOURT 08190', '0360017048', NULL, 8),
(856, '<NAME>', 'Adelphe', '35 rue des Argonautes BOULIGNEUX 01330', '0470938471', NULL, 1),
(857, 'Rastidien', 'Rosalie', '14 rue Blainville FLEVILLE 08250', '0320670229', NULL, 8),
(858, 'Fortin', 'Caline', '27 rue Pasteur AX-LES-THERMES 09110', '0512150549', NULL, 9),
(859, 'Gaudillot', 'Astine', '94 rue Debussy MONTIGNY-SUR-MEUSE 08170', '0358772408', NULL, 8),
(860, '<NAME>', 'Victor', '23 rue St Denis TRAVECY 02800', '0330373632', NULL, 2),
(861, 'Hallouche', 'Aristote', '55 rue Agniel BEDEILLE 09230', '0597171275', 'MEDECINE APPLIQUEE AUX SPORTS', 9),
(862, 'Mistigry', 'Charles-Edouard', '78 rue de la recette MACHAULT 08310', '0325349638', NULL, 8),
(863, 'Frequin', 'Caline', '19 rue Pernod AX-LES-THERMES 09110', '0568016782', NULL, 9),
(864, 'Lopes', 'Aurèle', '9 rue de la gare MONTCY-NOTRE-DAME 08090', '0346893168', NULL, 8),
(865, 'Ségura', 'Serge', '99 rue de Paris MONTCY-NOTRE-DAME 08090', '0391243175', NULL, 8),
(866, 'Béronzelle ', 'Aline', '66 rue des Cyprés ROCHEBRUNE 05190', '0474044568', 'HOMEOPATHIE', 5),
(867, 'Hanscart', 'Gilles', '13 rue des Ormes BLYES 01150', '0424315941', 'OSTEOPATHIE', 1),
(868, 'Kérouanne', 'Johnny', '99 rue des Epines LAUNOIS-SUR-VENCE 08430', '0313668088', 'ALLERGOLOGIE', 8),
(869, 'Chrome', 'Jérome', '24 rue des Anses bleues FLOING 08200', '0351576826', NULL, 8),
(870, 'Egrouzais', 'Amiel', '16 rue des oiseaux OYONNAX 01100', '0480872838', NULL, 1),
(871, 'Ronsard', 'Irénée', '24 rue Agniel BOURG-EN-BRESSE 01000', '0457782183', NULL, 1),
(872, 'Hanscart', 'Andrew', '63 rue de du général Scott SAINTE-MARIE 05150', '0496424640', NULL, 5),
(873, 'Fort', 'Fatima', '9 rue des Cyprés FRESSANCOURT 02800', '0399807861', NULL, 2),
(874, 'Radot', 'Andrew', '53 rue de la Pergolat CHABESTAN 05400', '0448286750', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(875, 'Framier', 'Gilles', '47 rue du capitaine Fraquasse BANCIGNY 02140', '0397976949', 'HOMEOPATHIE', 2),
(876, 'Chéchenko', 'Marie', '89 rue Albert Camus MONTCY-NOTRE-DAME 08090', '0378321982', NULL, 8),
(877, 'Fort', 'Anne-Jeanne', '81 rue des Cavaux SAINT-LAURENT-SUR-SAONE 01750', '0463951383', NULL, 1),
(878, 'Habresh', 'Armelle', '76 rue du Mont MONTCEAUX 01090', '0415598111', NULL, 1),
(879, 'Gaudin', 'Anémone', '19 rue Albert Camus CAMON 09500', '0573404038', NULL, 9),
(880, 'Durhum', 'Prosper', '67 rue de la gare FLOING 08200', '0324668686', NULL, 8),
(881, 'Zebitoun', 'Anselme', '53 rue des hirondelles FLOING 08200', '0327408227', NULL, 8),
(882, 'Capliez', 'Roby', '13 rue du stade OYONNAX 01100', '0474204428', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(883, 'Scipillon', 'Vénus', '50 rue des Argonautes HERBEUVAL 08370', '0373456319', NULL, 8),
(884, 'Nahraoui', 'Aline', '54 rue de la Tour ARROUT 09800', '0573442616', NULL, 9),
(885, 'Fortin', 'Alain', '50 rue Anatole France TRAVECY 02800', '0323311091', NULL, 2),
(886, 'Krevette', 'Mohammed', '78 rue des Epines BLYES 01150', '0431013911', NULL, 1),
(887, 'Fermontin', 'sabine', '80 rue de la Tour AX-LES-THERMES 09110', '0516185496', 'ACUPONCTURE', 9),
(888, 'Bouglieux', 'Adelphe', '43 rue de la pointe AZY-SUR-MARNE 02400', '0325660790', NULL, 2),
(889, 'Scott', 'Annie', '96 rue du général de Gaulle AX-LES-THERMES 09110', '0599243446', NULL, 9),
(890, '<NAME>', 'John', '82 rue de la recette AGUILCOURT 02190', '0366228551', NULL, 2),
(891, 'Brouzais', 'Aurélien', '66 rue Louis Aragon BETTANT 01500', '0473878093', 'MEDECINE APPLIQUEE AUX SPORTS', 1),
(892, 'Fressinet', 'Hypolite', '70 rue des Néfliers CHALLES 01450', '0476171240', NULL, 1),
(893, 'Chamonix', 'Sophie', '43 rue des Armées BRIANCON 05100', '0415807023', NULL, 5),
(894, 'Shouchen', 'Anselme', '59 rue Petit FRESSANCOURT 02800', '0383782513', 'GERONTOLOGIE', 2),
(895, 'Bazoline', 'Ines', '43 rue du général de Gaulle AUGIREIN 09800', '0598718886', NULL, 9),
(896, '<NAME>', 'Aurélien', '79 rue de la gare BELLEY 01300', '0479776039', NULL, 1),
(897, 'Roland', 'Andrew', '18 rue du Mont CHALLES 01450', '0433547437', NULL, 1),
(898, 'Scotland', 'Jérome', '89 rue des pyramides MONCEAU-SUR-OISE 02120', '0345551167', NULL, 2),
(899, 'Guimauve', 'Serge', '97 rue du capitaine Crochet FLOING 08200', '0316196835', NULL, 8),
(900, 'Fortin', 'Patrice', '25 rue des gatinnes FLEVILLE 08250', '0334902877', NULL, 8),
(901, 'Fylbouni', 'Bénédicte', '13 rue Agniel BEZAC 09100', '0566740268', NULL, 9),
(902, '<NAME>', 'Jérome', '40 rue des perles blanches SAINT-ANDRE-DE-ROSANS 05150', '0446944245', NULL, 5),
(903, 'Doineau', 'Jérémie', '78 rue des Epines VAUX-CHAMPAGNE 08130', '0358416091', NULL, 8),
(904, 'Nasri', 'Catherine', '34 rue Malraux MACHAULT 08310', '0384057669', NULL, 8),
(905, 'Sérénice', 'Prosper', '76 rue des Epines FLOING 08200', '0393379729', NULL, 8),
(906, '<NAME>', 'Patrick', '26 rue Agniel BOURG-EN-BRESSE 01000', '0479180299', NULL, 1),
(907, 'Rosty', 'Julie', '40 rue des Armées AMBRIEF 02200', '0361450183', NULL, 2),
(908, 'Prestoriat', 'Jordan', '27 rue de la rose BANCIGNY 02140', '0352416188', 'HOMEOPATHIE', 2),
(909, 'Scipillon', 'Julienne', '69 rue des gatinnes AX-LES-THERMES 09110', '0580069967', NULL, 9),
(910, 'Pastor', 'Annie', '58 rue du capitaine Fraquasse CHABESTAN 05400', '0467360442', 'HOMEOPATHIE', 5),
(911, 'Zingaro', 'Patrick', '19 rue Pernod SIGOYER 05130', '0457375943', NULL, 5),
(912, 'Brouzais', 'Andrew', '83 rue de Paris AMBRIEF 02200', '0395359341', NULL, 2),
(913, 'Framaouzy', 'Adelphe', '27 rue Bonaparte CHEZY-SUR-MARNE 02570', '0355084339', NULL, 2),
(914, 'Chrome', 'sabine', '65 rue des Pigeons HERBEUVAL 08370', '0360394232', NULL, 8),
(915, 'Scipion', 'Irénée', '69 rue de la recette MACHAULT 08310', '0383128193', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(916, 'Zitoune', 'Martial', '86 rue du général de Gaulle BARZY-SUR-MARNE 02850', '0317141855', NULL, 2),
(917, 'Loulianov', 'Roby', '9 rue du général de Gaulle SAINT-ANDRE-DE-ROSANS 05150', '0487582509', NULL, 5),
(918, 'Arditi', 'Aurèle', '87 rue des Armées BARZY-SUR-MARNE 02850', '0338003620', NULL, 2),
(919, 'Kopa', 'Sophie', '94 rue de Poligny ARROUT 09800', '0557640538', NULL, 9),
(920, 'Epriniche', 'Aurèle', '63 rue des Epines ASTON 09310', '0522392505', NULL, 9),
(921, 'Fylbouni', 'Bertrand', '46 rue des Néfliers AUBENTON 02500', '0347004937', NULL, 2),
(922, 'Anglebert', 'Catherine', '75 rue des Pigeons MEZIERES-SUR-OISE 02240', '0361266958', NULL, 2),
(923, 'Shavert', 'Anne-Jeanne', '45 rue de la poste MONTCEAUX 01090', '0483591358', NULL, 1),
(924, 'Chamonix', 'Précilia', '97 rue de Marigny OYONNAX 01100', '0492249302', NULL, 1),
(925, 'Durieux', 'Julien', '86 rue Pasteur AMBRIEF 02200', '0351207619', 'ACUPONCTURE', 2),
(926, 'Sibaton', 'Yoan', '16 rue des Cyprés ROCHEBRUNE 05190', '0447561911', NULL, 5),
(927, 'Froudette', 'Martin', '12 rue de Marigny SAVOURNON 05700', '0427247399', 'MEDECINE APPLIQUEE AUX SPORTS', 5),
(928, 'Yansen', 'Alizée', '88 rue Blainville ROCHEBRUNE 05190', '0426259531', NULL, 5),
(929, 'Aznakovitch', 'Anne-Jeanne', '25 rue des Cavaux SAINT-ANDRE-DE-ROSANS 05150', '0453552598', NULL, 5),
(930, 'Billahian', 'Anémone', '52 rue des Argonautes BRIANCON 05100', '0490437250', NULL, 5),
(931, 'Hourin', 'Rosalie', '1 rue Albert Camus BOURG-EN-BRESSE 01000', '0436516378', NULL, 1),
(932, 'Scotland', 'Julien', '16 rue Mallarmé JUNIVILLE 08310', '0387772024', NULL, 8),
(933, 'Nahraoui', 'Béatrice', '56 rue de du général Scott BLYES 01150', '0497830362', NULL, 1),
(934, 'Nahraoui', 'Irénée', '28 rue <NAME> YONCQ 08210', '0391607943', NULL, 8),
(935, 'Prouteau', 'Bernard', '67 rue des Pigeons AZY-SUR-MARNE 02400', '0363260638', 'ACUPONCTURE', 2),
(936, 'Format', 'Nohan', '56 rue de la poste BILLIAT 01200', '0489588610', NULL, 1),
(937, 'Klébert', 'Hector', '56 rue du Mont AUBENTON 02500', '0317965994', NULL, 2),
(938, 'Chesnikov', 'Vénus', '42 rue Mallarmé SAINT-FIRMIN 05800', '0496188645', NULL, 5),
(939, 'Framzaoui', 'Ingrid', '69 rue des gatinnes SAINT-LAURENT-SUR-SAONE 01750', '0474955755', NULL, 1),
(940, 'Bazoline', 'Béatrice', '83 rue Mallarmé LAVAL-MORENCY 08150', '0353669720', NULL, 8),
(941, '<NAME>', 'Aristote', '45 rue des Néfliers ORCIERES 05170', '0410443514', 'OSTEOPATHIE', 5),
(942, 'Faure', 'Firmin', '86 rue Alphonse Daudet SORBIERS 05150', '0474673714', NULL, 5),
(943, 'Shouchen', 'Hypolite', '46 rue Blainville BELLEY 01300', '0432841577', NULL, 1),
(944, 'Radot', 'Anne-Laure', '10 rue Debussy BRIANCON 05100', '0488339706', NULL, 5),
(945, 'Liorehen', 'Adrien', '16 rue des Lilas CHEZY-SUR-MARNE 02570', '0375598648', NULL, 2),
(946, 'Zingaro', 'Martial', '48 rue des Cavaux BRIANCON 05100', '0497203279', NULL, 5),
(947, 'Prestor', 'Adrien', '67 rue Mallarmé NEUVILLE-LES-DAMES 01400', '0483807492', NULL, 1),
(948, 'GrosJean', 'Andrée', '9 rue Blainville BILLIAT 01200', '0443247634', NULL, 1),
(949, 'Khan', 'Austine', '76 rue des Ormes BEDEILLE 09230', '0541576058', 'GERONTOLOGIE', 9),
(950, 'Cassan', 'sabine', '37 rue du stade ARROUT 09800', '0574023557', NULL, 9),
(951, 'Gaudin', 'Bénédicte', '52 rue Mallarmé SAINT-FIRMIN 05800', '0498785723', NULL, 5),
(952, 'Prestoriat', 'Aline', '72 rue des Accacias AX-LES-THERMES 09110', '0548451154', NULL, 9),
(953, 'Cerpico', 'Charles-Edouard', '19 rue des Accacias HOUDILCOURT 08190', '0316020754', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(954, 'Yoggi', 'Hector', '65 rue des Lilas BEDEILLE 09230', '0574559022', NULL, 9),
(955, 'Bazile', 'Anémone', '5 rue du 14 juillet CHEZY-SUR-MARNE 02570', '0337232948', 'ANGEIOLOGIE', 2),
(956, 'Astoria', 'Ingrid', '92 rue des Epines AX-LES-THERMES 09110', '0561364657', NULL, 9),
(957, 'Heroudy', 'Habib', '22 rue de la pointe MESSINCOURT 08110', '0313589708', NULL, 8),
(958, 'Caroussel', 'Jérémy', '59 rue des perles blanches YONCQ 08210', '0326242380', 'MEDECINE APPLIQUEE AUX SPORTS', 8),
(959, 'Zerbib', 'Amiel', '96 rue Pasteur ARROUT 09800', '0587698522', 'ACUPONCTURE', 9),
(960, 'Lièvremont', 'Austine', '65 rue Mallarmé MONTCEAUX 01090', '0470285907', NULL, 1),
(961, 'Chamonix', 'Anne-Jeanne', '32 rue Pernod TRAVECY 02800', '0333270659', NULL, 2),
(962, 'Durieux', 'François', '33 rue des Armées JOIGNY-SUR-MEUSE 08700', '0349739798', NULL, 8),
(963, 'Framzaoui', 'Astine', '14 rue de Paris HAUTEVILLE 02120', '0351375540', NULL, 2),
(964, 'Epoka', 'Catherine', '62 rue Petit AUBENTON 02500', '0396351922', NULL, 2),
(965, 'Shavert', 'Dominique', '16 rue Albert Camus MONTCEAUX 01090', '0460614067', NULL, 1),
(966, 'Raminski', 'Habib', '43 rue Agniel FEPIN 08170', '0334104949', NULL, 8),
(967, 'Scotland', 'Bertrand', '19 rue des Armées BUZAN 09800', '0568125818', 'HOMEOPATHIE', 9),
(968, 'Hallouche', 'Anne-Lucie', '98 rue de la recette CHABESTAN 05400', '0456022326', NULL, 5),
(969, 'Billahian', 'Bernard', '20 rue des Pigeons ARROUT 09800', '0573067550', NULL, 9),
(970, 'Fort', 'Nohan', '43 rue des hirondelles BEDEILLE 09230', '0525181569', 'URGENTISTE', 9),
(971, 'Nazaoui', 'Anne-Sophie', '31 rue Blainville BARENTON-SUR-SERRE 02270', '0373526813', NULL, 2),
(972, 'Chevalier', 'Alice', '33 rue des Accacias ROCHEBRUNE 05190', '0449350884', NULL, 5),
(973, 'Anglebert', 'Aline', '84 rue du capitaine Crochet MONT-LAURENT 08130', '0325576123', NULL, 8),
(974, 'Ségura', 'John', '3 rue de la Tour FRESSANCOURT 02800', '0331446881', NULL, 2),
(975, 'Homar', 'Anne', '96 rue des Anges AUBENTON 02500', '0378136627', 'GERONTOLOGIE', 2),
(976, 'Bridel', 'Julienne', '69 rue des Argonautes MONT-LAURENT 08130', '0370869862', NULL, 8),
(977, '<NAME>', 'Amiel', '64 rue Bonaparte PELVOUX 05340', '0488029182', NULL, 5),
(978, '<NAME>', 'sabine', '82 rue Petit MONTCEAUX 01090', '0462167372', NULL, 1),
(979, 'Casson', 'Aurélien', '43 rue de la pointe SAINTE-MARIE 05150', '0435284955', NULL, 5),
(980, 'Pololsky', 'François', '82 rue des gatinnes LAVAL-MORENCY 08150', '0342390211', NULL, 8),
(981, '<NAME>', 'Anne-Jeanne', '43 rue <NAME> MONTCEAUX 01090', '0423643158', NULL, 1),
(982, 'Sabatier', 'Gilles', '61 rue de la Pergolat FLEVILLE 08250', '0344269218', NULL, 8),
(983, '<NAME>', 'Anne-Lucie', '10 rue des Armées JUNIVILLE 08310', '0323215933', NULL, 8),
(984, 'Lopez', 'Rosalie', '61 rue Lampion MAYOT 02800', '0334037246', 'ACUPONCTURE', 2),
(985, 'Scipillon', 'Marie', '42 rue de la recette MONTCEAUX 01090', '0483490191', 'ACUPONCTURE', 1),
(986, 'Radot', 'Alain', '49 rue des Chantereines SAINT-SAUVEUR 05200', '0444873979', 'ACUPONCTURE', 5),
(987, 'Mérieux', 'Yoan', '26 rue Perdue BARENTON-SUR-SERRE 02270', '0383462706', 'ACUPONCTURE', 2),
(988, 'Oberlieux', 'Anne-Lucie', '30 rue des Néfliers FRESSANCOURT 02800', '0375894393', NULL, 2),
(989, 'Serbouny', 'Nohan', '35 rue Pernod BELLOC 09600', '0584397641', 'URGENTISTE', 9),
(990, 'Jarrinovski', 'John', '87 rue des Epines JUNIVILLE 08310', '0326912283', 'ALLERGOLOGIE', 8),
(991, 'Capliez', 'Patricia', '11 rue des Armées CAMON 09500', '0564584038', NULL, 9),
(992, 'CHeroudy', 'Adelphe', '1 rue des Anges AMBRIEF 02200', '0341912319', NULL, 2),
(993, 'Margot', 'Anaelle', '34 rue de la Tour BOURG-EN-BRESSE 01000', '0421198450', NULL, 1),
(994, 'Homar', 'Jérome', '1 rue du capitaine Crochet MAYOT 02800', '0322747123', NULL, 2),
(995, 'Ricardo', 'Hector', '96 rue des Princes AGUILCOURT 02190', '0344210000', NULL, 2),
(996, 'Sursarshill', 'Austine', '48 rue Beaudelaire MACHAULT 08310', '0327416806', NULL, 8),
(997, 'Bretonnot', 'Anne', '37 rue du capitaine Crochet SIGOYER 05130', '0440990856', NULL, 5),
(998, '<NAME>', 'Aude', '87 rue Louis Aragon SAINTE-MARIE 05150', '0458331361', NULL, 5),
(999, 'Nazaoui', 'Aurélien', '83 rue des hirondelles SAINT-LAURENT-SUR-SAONE 01750', '0419114151', NULL, 1),
(1000, 'Armouche', 'Sophie', '83 rue des Chantereines NEUVILLE-LES-DAMES 01400', '0412959203', NULL, 1),
(1003, 'aaaa', 'test', '25 allee de test', '0665457895', NULL, 9);
-- --------------------------------------------------------
--
-- Structure de la table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Déchargement des données de la table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2022_03_09_101643_create_departements_table', 0),
(2, '2022_03_09_101643_create_medecin_table', 0),
(3, '2022_03_09_101643_create_pays_table', 0),
(8, '2014_10_12_000000_create_users_table', 1),
(9, '2014_10_12_100000_create_password_resets_table', 1),
(10, '2019_08_19_000000_create_failed_jobs_table', 1),
(11, '2019_12_14_000001_create_personal_access_tokens_table', 1);
-- --------------------------------------------------------
--
-- Structure de la table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `pays`
--
CREATE TABLE `pays` (
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `personal_access_tokens`
--
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) UNSIGNED NOT NULL,
`tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Déchargement des données de la table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'floriane', '<EMAIL>', NULL, '$2y$10$cvrntiswDo8H7KnWFud<PASSWORD>Pxc.rFDMqcHNrzNtKXXI/Y4zYFH5fIG', '<PASSWORD>', '2022-03-23 07:46:20', '2022-03-23 07:46:20');
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `departements`
--
ALTER TABLE `departements`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Index pour la table `medecins`
--
ALTER TABLE `medecins`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Index pour la table `pays`
--
ALTER TABLE `pays`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);
--
-- Index pour la table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `departements`
--
ALTER TABLE `departements`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `medecins`
--
ALTER TABLE `medecins`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1006;
--
-- AUTO_INCREMENT pour la table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT pour la table `pays`
--
ALTER TABLE `pays`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
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 */;
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : sam. 27 mars 2021 à 18:45
-- Version du serveur : 10.4.11-MariaDB
-- Version de PHP : 7.4.1
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 */;
--
-- Base de données : `time2flush`
--
-- --------------------------------------------------------
--
-- Structure de la table `matters`
--
CREATE TABLE `matters` (
`id` int(11) NOT NULL,
`matter` varchar(255) NOT NULL,
`day` int(11) NOT NULL,
`start` time NOT NULL,
`end` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `matters`
--
INSERT INTO `matters` (`id`, `matter`, `day`, `start`, `end`) VALUES
(1, 'i145', 3, '08:45:00', '09:30:00'),
(2, 'i239', 3, '09:45:00', '10:30:00'),
(3, 'i300', 3, '10:30:00', '11:15:00'),
(4, 'i157', 3, '12:00:00', '12:45:00'),
(5, 'i182', 3, '12:45:00', '13:30:00'),
(6, 'Math', 3, '14:30:00', '15:15:00'),
(7, 'Sciences', 3, '15:15:00', '16:00:00'),
(8, 'i182', 3, '13:45:00', '14:30:00'),
(9, 'i141', 4, '08:00:00', '08:45:00'),
(10, 'Économie', 4, '08:45:00', '09:30:00'),
(11, 'Économie', 4, '09:45:00', '10:30:00'),
(12, 'ECG', 4, '10:30:00', '11:15:00'),
(13, 'ECG', 4, '11:15:00', '12:00:00'),
(14, 'ECG', 4, '12:45:00', '13:30:00'),
(15, 'Anglais', 4, '13:45:00', '14:30:00');
-- --------------------------------------------------------
--
-- Structure de la table `records`
--
CREATE TABLE `records` (
`id` int(11) NOT NULL,
`start_time` datetime NOT NULL,
`end_time` datetime NOT NULL,
`fk_matter` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `records`
--
INSERT INTO `records` (`id`, `start_time`, `end_time`, `fk_matter`) VALUES
(3, '2021-03-26 23:25:37', '2021-03-26 23:25:41', NULL),
(4, '2021-03-26 23:55:14', '2021-03-26 23:55:18', NULL),
(5, '2021-03-27 00:51:47', '2021-03-27 00:51:53', NULL),
(6, '2021-03-27 00:55:47', '2021-03-27 00:55:59', NULL),
(7, '2021-03-17 09:30:02', '2021-03-17 09:39:11', 1),
(8, '2021-03-27 02:14:58', '2021-03-27 02:15:03', NULL),
(9, '2021-03-27 02:18:42', '2021-03-27 03:18:52', NULL),
(10, '2021-03-27 18:40:09', '2021-03-27 18:40:20', NULL);
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `matters`
--
ALTER TABLE `matters`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `records`
--
ALTER TABLE `records`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_matter` (`fk_matter`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `matters`
--
ALTER TABLE `matters`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT pour la table `records`
--
ALTER TABLE `records`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- Contraintes pour les tables déchargées
--
--
-- Contraintes pour la table `records`
--
ALTER TABLE `records`
ADD CONSTRAINT `records_ibfk_1` FOREIGN KEY (`fk_matter`) REFERENCES `matters` (`id`);
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 */;
|
-- +goose Up
-- +goose StatementBegin
CREATE OR REPLACE FUNCTION import_timekeeping()
RETURNS trigger
LANGUAGE plpgsql AS
$BODY$
BEGIN
IF NOT EXISTS(SELECT 1 FROM busycore.timekeeping WHERE mite_record_id = NEW.mite_record_id) THEN
INSERT INTO busycore.timekeeping (mite_record_id, date_at, note, mite_id, minutes, revenue, hourly_rate)
VALUES (NEW.mite_record_id, NEW.date_at, NEW.note, NEW.mite_id, NEW.minutes, NEW.revenue/100.0, NEW.hourly_rate/100.0);
END IF;
RETURN NEW;
END;
$BODY$
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP FUNCTION IF EXISTS import_timekeeping() CASCADE;
-- +goose StatementEnd
|
ALTER TABLE inntekt_v1_arena_mapping
DROP CONSTRAINT inntekt_v1_arena_mapping_inntektid_fkey,
ADD CONSTRAINT inntekt_v1_arena_mapping_inntektid_fkey FOREIGN KEY (inntektid) REFERENCES inntekt_v1 (id) ON DELETE CASCADE;
|
-- MySQL Script generated by MySQL Workbench
-- Fr 29 Mär 2019 12:40:40 CET
-- 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='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema shoppinglist
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema shoppinglist
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `shoppinglist` DEFAULT CHARACTER SET utf8 ;
USE `shoppinglist` ;
-- -----------------------------------------------------
-- Table `shoppinglist`.`product_category`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `shoppinglist`.`product_category` (
`id` INT NOT NULL AUTO_INCREMENT,
`category` VARCHAR(255) NOT NULL,
`parentId` INT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `shoppinglist`.`product`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `shoppinglist`.`product` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
`ean` MEDIUMTEXT NULL,
`product_category_id` INT NOT NULL,
PRIMARY KEY (`id`, `product_category_id`),
INDEX `fk_product_product_category1_idx` (`product_category_id` ASC),
CONSTRAINT `fk_product_product_category1`
FOREIGN KEY (`product_category_id`)
REFERENCES `shoppinglist`.`product_category` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `shoppinglist`.`shoppinglist`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `shoppinglist`.`shoppinglist` (
`id` INT NOT NULL AUTO_INCREMENT,
`date` VARCHAR(45) NOT NULL,
`name` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `shoppinglist`.`shoppinglist_has_product`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `shoppinglist`.`shoppinglist_has_product` (
`shoppinglist_id` INT NOT NULL,
`product_id` INT NOT NULL,
PRIMARY KEY (`shoppinglist_id`, `product_id`),
INDEX `fk_shoppinglist_has_product_product1_idx` (`product_id` ASC),
INDEX `fk_shoppinglist_has_product_shoppinglist_idx` (`shoppinglist_id` ASC),
CONSTRAINT `fk_shoppinglist_has_product_shoppinglist`
FOREIGN KEY (`shoppinglist_id`)
REFERENCES `shoppinglist`.`shoppinglist` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_shoppinglist_has_product_product1`
FOREIGN KEY (`product_id`)
REFERENCES `shoppinglist`.`product` (`id`)
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;
|
SELECT DISTINCT(S.sname)
FROM Student S, Enrolled E
WHERE S.snum <> E.snum
|
<filename>Basic SQL/LIKE.sql
1.All the companies whose names start with 'C'.
2.All companies whose names contain the string 'one' somewhere in the name.
3.All companies whose names end with 's'.
1.select name from accounts where name like 'C%';
2.select name from accounts where name like '%one%';
3.select name from accounts where name like '%s';
|
<reponame>navikt/veilarbfilter
UPDATE EnhetFilter
SET valgte_filter = replace(valgte_filter::TEXT,'"kjonn": []','"kjonn": null')::jsonb;
|
<filename>monday.sql
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 20, 2020 at 09:54 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
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: `monday`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`nama` varchar(30) COLLATE latin1_bin NOT NULL,
`username` varchar(30) COLLATE latin1_bin NOT NULL,
`password` varchar(100) COLLATE latin1_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `nama`, `username`, `password`) VALUES
(1, 'admin', 'admin', '<PASSWORD>'),
(2, 'user', 'user', '<PASSWORD>'),
(3, 'Zulfa', 'zulfa', '<PASSWORD>'),
(4, 'Khai Zulfa', 'khaizulfa18', '<PASSWORD>');
-- --------------------------------------------------------
--
-- Table structure for table `author`
--
CREATE TABLE `author` (
`id` int(11) NOT NULL,
`nama` varchar(30) NOT NULL,
`account` varchar(30) NOT NULL,
`link` varchar(100) NOT NULL,
`no_wa` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `author`
--
INSERT INTO `author` (`id`, `nama`, `account`, `link`, `no_wa`) VALUES
(1, '<NAME>', '@khaiz.18_', 'https://www.instagram.com/khaiz.18_/', '+62895383063231'),
(2, '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', '+62895384113413');
-- --------------------------------------------------------
--
-- Table structure for table `posted`
--
CREATE TABLE `posted` (
`id` int(11) NOT NULL,
`id_posted` varchar(20) NOT NULL,
`judul` varchar(25) NOT NULL,
`author` varchar(50) NOT NULL,
`account` varchar(50) NOT NULL,
`link_acc` varchar(100) NOT NULL,
`picture` text NOT NULL,
`date_posted` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `posted`
--
INSERT INTO `posted` (`id`, `id_posted`, `judul`, `author`, `account`, `link_acc`, `picture`, `date_posted`) VALUES
(13, 'MON-820190905', 'Elizabeth_Angela_Lorenza', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'Elizabeth_Angela_Lorenza.jpg', '2019-09-05 12:17:12'),
(14, 'MON-920190905', 'Joker', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'jokerwpap.jpg', '2019-09-05 12:20:52'),
(15, 'MON-1020190905', 'Jhon_Lennon', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'john_lennon.jpg', '2019-09-05 12:33:48'),
(16, 'MON-1020190905', 'Polwan', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'Polwan.jpg', '2019-09-05 12:39:00'),
(17, 'MON-1120190905', 'Emma_Stone', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'Emma_Stone.jpg', '2019-09-05 12:46:17'),
(18, 'MON-1820190905', 'Woman', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'chinese.jpg', '2019-09-05 16:31:14'),
(19, 'MON-1520190905', 'Neymar_Jr.', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'Neymar.jpg', '2019-09-05 16:34:25'),
(20, 'MON-2020190905', 'PUBG_x_Alan_Walker', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'pubg1.jpg', '2019-09-05 16:37:07'),
(21, 'MON-2120190905', 'Thanos', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'thanos.jpg', '2019-09-05 16:39:28'),
(22, 'MON-1120191003', 'Cerberus', '<NAME>', '@khaiz.18_', 'https://www.instagram.com/khaiz.18_/', '5d2ffbc5b8bc1.png', '2019-10-03 09:42:13'),
(23, 'MON-23120191016', 'REM_Waifuku', '<NAME>', '@khaiz.18_', 'https://www.instagram.com/khaiz.18_/', 'rem-re-zero-wallpaper-1920x1080-WTG30911389.jpg', '2019-10-16 13:32:09'),
(24, 'MON-7620191106', 'Rem', '<NAME>', '@iqbalpradana.crew', 'https://www.instagram.com/iqbalpradana.crew/', 'bali.jpg', '2019-11-06 13:51:58'),
(25, 'MON-123220200128', 'Testing', '<NAME>', '@khaiz.18_', 'https://www.instagram.com/khaiz.18_/', '4568631-shigatsu-wa-kimi-no-uso-miyazono-kaori-arima-kousei-minimalism-anime-vectors.png', '2020-01-28 19:46:56');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `author`
--
ALTER TABLE `author`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `posted`
--
ALTER TABLE `posted`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `author`
--
ALTER TABLE `author`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `posted`
--
ALTER TABLE `posted`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
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 */;
|
-- DROP TABLE accountdetailtype_aud;
CREATE TABLE accountdetailtype_aud
(
id bigint NOT NULL,
rev integer NOT NULL,
name character varying(50) NOT NULL,
description character varying(50) NOT NULL,
tablename character varying(50),
columnname character varying(50),
attributename character varying(50) NOT NULL,
nbroflevels bigint NOT NULL,
full_qualified_name character varying(250),
createddate date,
lastmodifieddate date,
lastmodifiedby bigint,
version bigint default 0,
isactive boolean,
revtype numeric
);
ALTER TABLE ONLY accountdetailtype_aud ADD CONSTRAINT pk_accountdetailtype_aud PRIMARY KEY (id, rev);
alter table accountdetailtype rename column created TO createddate;
alter table accountdetailtype rename column modifiedby TO lastmodifiedby;
alter table accountdetailtype rename column lastmodified TO lastmodifieddate;
|
CREATE TABLE watchlist (
id VARCHAR(50) NOT NULL,
user_id VARCHAR(50) NOT NULL,
title VARCHAR(50) NOT NULL,
category VARCHAR(50) NOT NULL,
season INT NOT NULL,
episode INT NOT NULL,
created_at TIMESTAMP,
updated_at TIMESTAMP,
PRIMARY KEY (id),
CONSTRAINT fk_users
FOREIGN KEY(user_id)
REFERENCES users(id)
);
|
<reponame>Shuttl-Tech/antlr_psql
-- file:rules.sql ln:1069 expect:true
CREATE TABLE hat_data (
hat_name char(10),
hat_color char(10) )
|
<reponame>dram/metasfresh
-- 2018-11-20T10:59:51.813
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=554385
;
-- 2018-11-20T11:00:11.631
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='N', IsUpdateable='N',Updated=TO_TIMESTAMP('2018-11-20 11:00:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=4083
;
-- 2018-11-20T11:01:22.330
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2018-11-20 11:01:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=554392
;
|
<filename>tests/partial_datacopy.test/t12.sql
create table t {
schema {
int a
int b
int c
int d
}
keys {
datacopy(b, c) "a" = a
}
};$$
insert into t with recursive r(n) as (select 1 union all select n + 4 from r where n < 97) select n, n + 1, n + 2, n + 3 from r;
exec procedure sys.cmd.verify("t");
drop table t;
|
DROP TABLE USER_SESSION;
DROP TABLE CODE_NAME;
DROP TABLE CODE_PATTERN;
|
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Aug 10, 2018 at 10:46 AM
-- Server version: 5.7.21
-- PHP Version: 5.6.35
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: `citizen`
--
-- --------------------------------------------------------
--
-- Table structure for table `applied_schemes`
--
DROP TABLE IF EXISTS `applied_schemes`;
CREATE TABLE IF NOT EXISTS `applied_schemes` (
`app_id` varchar(20) NOT NULL,
`contact_no` varchar(20) NOT NULL,
`link` varchar(20) NOT NULL,
`dept_id` varchar(20) NOT NULL,
`status` varchar(5) NOT NULL,
PRIMARY KEY (`app_id`),
KEY `dept_id` (`dept_id`),
KEY `contact_no` (`contact_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `applied_schemes`
--
INSERT INTO `applied_schemes` (`app_id`, `contact_no`, `link`, `dept_id`, `status`) VALUES
('1', '8237772146', 'url', '1', '1');
-- --------------------------------------------------------
--
-- Table structure for table `citizen_details`
--
DROP TABLE IF EXISTS `citizen_details`;
CREATE TABLE IF NOT EXISTS `citizen_details` (
`contact_no` varchar(20) NOT NULL,
`firstname` varchar(50) NOT NULL,
`secondname` varchar(50) NOT NULL,
`DOB` date NOT NULL,
`sex` varchar(10) NOT NULL,
`address` varchar(150) NOT NULL,
`city` varchar(20) NOT NULL,
`pincode` varchar(10) NOT NULL,
`members_per_family` int(3) NOT NULL,
`no_of_earnings` int(3) NOT NULL,
`salary` decimal(20,2) NOT NULL,
`password` varchar(30) NOT NULL,
PRIMARY KEY (`contact_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `citizen_details`
--
INSERT INTO `citizen_details` (`contact_no`, `firstname`, `secondname`, `DOB`, `sex`, `address`, `city`, `pincode`, `members_per_family`, `no_of_earnings`, `salary`, `password`) VALUES
('6775026761', 'nishant', 'nimbalkar', '2018-08-08', 'male', '<NAME>', 'thane', '421503', 5, 2, '750000.00', 'hashed'),
('7775026761', 'nishant', 'nimbalkar', '2018-08-08', 'male', '<NAME> apt', 'thane', '421503', 5, 2, '750000.00', 'hashed'),
('8237772146', 'nishant', 'nimbalkar', '2018-08-08', 'male', '<NAME>a apt', 'thane', '421503', 5, 2, '750000.00', ''),
('9775026761', 'nishant', 'nimbalkar', '2018-08-08', 'male', '<NAME>', 'thane', '421503', 5, 2, '750000.00', 'hashed');
--
-- Constraints for dumped tables
--
--
-- Constraints for table `applied_schemes`
--
ALTER TABLE `applied_schemes`
ADD CONSTRAINT `applied_schemes_ibfk_1` FOREIGN KEY (`dept_id`) REFERENCES `super_admin`.`department` (`dept_id`),
ADD CONSTRAINT `applied_schemes_ibfk_2` FOREIGN KEY (`contact_no`) REFERENCES `citizen_details` (`contact_no`);
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 */;
|
<gh_stars>100-1000
SELECT * FROM LIKE_COMMENTS
WHERE DELETE_FLAG = 0
ORDER BY INSERT_DATETIME %s
LIMIT ? OFFSET ?;
|
DROP TABLE connection_container_connection;
|
<gh_stars>1000+
ALTER TABLE "selfservice_registration_requests" ADD COLUMN "messages" TEXT;
|
<gh_stars>0
-- Verify forum:forums on pg
BEGIN;
SELECT id, name, description, parent_forum, category_id, created_at, updated_at
FROM forums
WHERE FALSE;
ROLLBACK;
|
CREATE TABLE subject_templates
(
id SERIAL PRIMARY KEY,
image text NOT NULL
);
|
<filename>baza.sql
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Czas generowania: 04 Kwi 2018, 23:07
-- Wersja serwera: 10.1.16-MariaDB
-- Wersja PHP: 7.0.9
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 */;
--
-- Baza danych: `sklep`
--
CREATE DATABASE IF NOT EXISTS `sklep` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `sklep`;
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `elementy_transakcji`
--
CREATE TABLE `elementy_transakcji` (
`IDelementy_transakcji` int(11) NOT NULL,
`IDtransakcje` int(11) NOT NULL,
`IDprodukty` int(11) NOT NULL,
`iloscElementow` int(11) NOT NULL,
`IDstatus` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_polish_ci;
--
-- Zrzut danych tabeli `elementy_transakcji`
--
INSERT INTO `elementy_transakcji` (`IDelementy_transakcji`, `IDtransakcje`, `IDprodukty`, `iloscElementow`, `IDstatus`) VALUES
(1, 1, 4, 7, 0),
(5, 1, 5, 3, 0),
(17, 3, 2, 2, 0),
(18, 4, 4, 1, 0),
(19, 4, 5, 8, 0),
(20, 5, 5, 1, 0),
(21, 6, 5, 1, 0),
(22, 7, 19, 14, 0),
(23, 8, 4, 4, 0),
(24, 9, 3, 1, 0),
(25, 10, 4, 5, 0),
(26, 11, 18, 1, 0),
(27, 11, 14, 5, 0),
(28, 7, 3, 1, 0),
(29, 12, 6, 1, 0),
(30, 13, 4, 3, 0);
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `kategoria`
--
CREATE TABLE `kategoria` (
`IDkategoria` int(11) NOT NULL,
`nazwaKategorii` text COLLATE utf16_polish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_polish_ci;
--
-- Zrzut danych tabeli `kategoria`
--
INSERT INTO `kategoria` (`IDkategoria`, `nazwaKategorii`) VALUES
(1, 'Noże'),
(2, 'Rewolwery'),
(3, 'Karabiny'),
(4, '<NAME>');
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `podkategoria`
--
CREATE TABLE `podkategoria` (
`IDpodkategoria` int(11) NOT NULL,
`nazwaPodkategorii` text COLLATE utf16_polish_ci NOT NULL,
`IDkategoria` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_polish_ci;
--
-- Zrzut danych tabeli `podkategoria`
--
INSERT INTO `podkategoria` (`IDpodkategoria`, `nazwaPodkategorii`, `IDkategoria`) VALUES
(1, 'EDC', 1),
(2, 'Magnum', 2),
(3, 'Motylki', 1),
(4, 'Granaty', 4),
(5, 'Walter', 2),
(6, 'Automatyczne', 3),
(7, 'Półautomatyczne', 3),
(12, 'Noże', 4);
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `produkty`
--
CREATE TABLE `produkty` (
`IDprodukty` int(11) NOT NULL,
`nazwa` text COLLATE utf16_polish_ci NOT NULL,
`opisProduktu` text COLLATE utf16_polish_ci NOT NULL,
`imageLink` text COLLATE utf16_polish_ci NOT NULL,
`cenaNetto` float NOT NULL,
`VAT` float NOT NULL,
`IDkategoria` int(11) NOT NULL,
`IDpodkategoria` int(11) NOT NULL,
`ilosc_cala` int(11) NOT NULL,
`ilosc_zarezerwowana` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_polish_ci;
--
-- Zrzut danych tabeli `produkty`
--
INSERT INTO `produkty` (`IDprodukty`, `nazwa`, `opisProduktu`, `imageLink`, `cenaNetto`, `VAT`, `IDkategoria`, `IDpodkategoria`, `ilosc_cala`, `ilosc_zarezerwowana`) VALUES
(1, 'Model 31', 'Całkiem Niezły pistolet', 'files/images/stock.png', 1000, 0.2, 2, 5, 10, 3),
(2, 'Model 33 8-cali', 'Super Rewolwer Strzylo Jeszcze Lepij i Lepij', 'files/images/2.jpeg', 1500, 0.2, 2, 2, 5, 1),
(3, 'BenchMade 20100', 'Super Nóż Polecam', 'files/images/3.jpeg', 300, 0.1, 1, 3, 10, 4),
(4, 'Sanrenmu 710', 'Super fajny nóż. Mały ale wariat.', 'files/images/4.jpeg', 27, 0.23, 1, 1, 21, 11),
(5, 'Paramilitary 2', 'Dobry nóż ale drogi.', 'files/images/5.jpeg', 670, 0.24, 1, 1, 7, 7),
(6, 'RAT 1', 'Początek dobrych noży', 'files/images/6.jpeg', 120, 0.22, 1, 1, 14, 0),
(7, 'RAT 2', 'Nóż marzenie', 'files/images/7.jpeg', 200, 0.23, 1, 1, 20, 0),
(8, 'RAT 3', 'Całkiem niezły fixed.', 'files/images/stock.png', 130, 0.22, 1, 1, 15, 0),
(9, 'Mora BushCraft', 'Klasyka noży roboczych', 'files/images/stock.png', 120, 0.21, 1, 1, 25, 0),
(10, 'cold steel tanto', 'Fajne ostrze tanto dobrej marki.', 'files/images/stock.png', 180, 0.22, 1, 1, 15, 0),
(11, 'cold steel kudu', 'Dobra marka niskim kosztem', 'files/images/stock.png', 34, 0.23, 1, 1, 25, 0),
(12, ' M4', '<NAME>', 'files/images/stock.png', 2500, 0.23, 3, 6, 5, 0),
(13, 'STURMGEWEHR 44', '<NAME> niemiecki okupant.', 'files/images/13.jpeg', 3000, 0.18, 3, 7, 5, 0),
(14, '<NAME>', 'Wybucha i wszystko staje się jasne.', 'files/images/stock.png', 40, 0.2, 4, 4, 30, 5),
(15, 'Kunai Joker 6', 'Bedziesz jak ninja jak to kupisz.', 'files/images/15.jpeg', 15, 0.15, 4, 12, 40, 0),
(16, 'Model 27 7,5-cala', 'Dobry Rewolwer', 'files/images/stock.png', 750, 0.23, 2, 2, 15, 0),
(17, 'BenchMade 2231', '<NAME>', 'files/images/stock.png', 500, 0.15, 1, 3, 8, 0),
(18, 'BenchMade 203453', 'tak', 'files/images/18.jpeg', 534, 0.21, 1, 3, 12, 1),
(19, 'Szuriken', 'Do rzucania', 'files/images/19.jpeg', 2.42, 0.22, 4, 12, 11, 0),
(20, 'M4A4', 'dobry karabin', 'files/images/20.jpeg', 2340, 0.23, 3, 6, 15, 0);
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `status`
--
CREATE TABLE `status` (
`IDstatus` int(11) NOT NULL,
`status` text COLLATE utf16_polish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_polish_ci;
--
-- Zrzut danych tabeli `status`
--
INSERT INTO `status` (`IDstatus`, `status`) VALUES
(0, 'W koszyku'),
(1, 'Przyjeto zamowienie'),
(2, 'Kompletowanie zamowienia'),
(3, 'Przygotowanie do wysylki'),
(4, 'Wyslano'),
(5, 'Brak towaru');
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `transakcje`
--
CREATE TABLE `transakcje` (
`IDtransakcje` int(11) NOT NULL,
`IDuzytkownicy` int(11) NOT NULL,
`data` datetime NOT NULL,
`IDstatus` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_polish_ci;
--
-- Zrzut danych tabeli `transakcje`
--
INSERT INTO `transakcje` (`IDtransakcje`, `IDuzytkownicy`, `data`, `IDstatus`) VALUES
(1, 2, '2017-11-27 22:41:59', 4),
(3, 2, '2017-11-26 17:43:18', 4),
(4, 2, '2017-11-27 22:27:23', 1),
(5, 2, '2017-11-26 18:13:17', 5),
(6, 2, '2017-11-25 16:54:20', 1),
(7, 1, '2018-04-04 22:39:11', 1),
(8, 2, '2017-11-25 21:24:57', 0),
(9, 3, '2017-11-26 01:24:08', 0),
(10, 4, '2017-11-30 00:23:35', 4),
(11, 4, '2017-11-29 00:07:34', 2),
(12, 1, '2017-11-29 00:15:08', 4),
(13, 1, '2017-11-30 00:23:05', 1),
(14, 1, '2018-04-04 22:39:27', 0);
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `uprawnienia`
--
CREATE TABLE `uprawnienia` (
`IDuprawnienia` int(11) NOT NULL,
`uprawnienia` text COLLATE utf16_polish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_polish_ci;
--
-- Zrzut danych tabeli `uprawnienia`
--
INSERT INTO `uprawnienia` (`IDuprawnienia`, `uprawnienia`) VALUES
(1, 'Administrator'),
(2, 'Uzytkownik');
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `uzytkownicy`
--
CREATE TABLE `uzytkownicy` (
`IDuzytkownicy` int(11) NOT NULL,
`login` text COLLATE utf16_polish_ci NOT NULL,
`haslo` text COLLATE utf16_polish_ci NOT NULL,
`IDuprawnienia` int(11) NOT NULL,
`imie` text COLLATE utf16_polish_ci NOT NULL,
`nazwisko` text COLLATE utf16_polish_ci NOT NULL,
`plec` varchar(1) COLLATE utf16_polish_ci NOT NULL,
`wiek` tinyint(4) NOT NULL,
`ulica` text COLLATE utf16_polish_ci NOT NULL,
`kodPocztowy` text COLLATE utf16_polish_ci NOT NULL,
`poczta` text COLLATE utf16_polish_ci NOT NULL,
`miejscowosc` text COLLATE utf16_polish_ci NOT NULL,
`adres` text COLLATE utf16_polish_ci NOT NULL,
`wojewodztwo` text COLLATE utf16_polish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_polish_ci;
--
-- Zrzut danych tabeli `uzytkownicy`
--
INSERT INTO `uzytkownicy` (`IDuzytkownicy`, `login`, `haslo`, `IDuprawnienia`, `imie`, `nazwisko`, `plec`, `wiek`, `ulica`, `kodPocztowy`, `poczta`, `miejscowosc`, `adres`, `wojewodztwo`) VALUES
(1, 'admin', 'qwerty', 1, 'Jan', 'Kowalski', 'm', 25, 'Śiaka', '34-600', 'Limanowa', 'Limanowa', '69', 'Małopolskie'),
(2, 'user', 'qwerty', 2, 'Zenon', 'Tagowski', 'm', 54, 'Ilcza', '37-800', 'Kraków', 'Wieliczka', 'Ilcza 65', 'Małopolskie'),
(3, 'admin2', 'qwerty', 1, 'Anka', 'Jucz', 'k', 22, 'Takowa', '34-600', 'Limanowa', 'Limanowa', '89', 'Małopolskie'),
(4, 'user2', 'qwerty', 2, 'Aneczka', 'Juczkiewcz', 'k', 22, 'Takowa', '34-600', 'Limanowa', 'Limanowa', '89', 'Małopolskie');
--
-- Indeksy dla zrzutów tabel
--
--
-- Indexes for table `elementy_transakcji`
--
ALTER TABLE `elementy_transakcji`
ADD PRIMARY KEY (`IDelementy_transakcji`),
ADD KEY `IDtransakcja` (`IDtransakcje`),
ADD KEY `IDprodukt` (`IDprodukty`),
ADD KEY `status` (`IDstatus`);
--
-- Indexes for table `kategoria`
--
ALTER TABLE `kategoria`
ADD PRIMARY KEY (`IDkategoria`);
--
-- Indexes for table `podkategoria`
--
ALTER TABLE `podkategoria`
ADD PRIMARY KEY (`IDpodkategoria`),
ADD KEY `IDkategoria` (`IDkategoria`);
--
-- Indexes for table `produkty`
--
ALTER TABLE `produkty`
ADD PRIMARY KEY (`IDprodukty`),
ADD KEY `kategoria` (`IDkategoria`),
ADD KEY `podkategoria` (`IDpodkategoria`);
--
-- Indexes for table `status`
--
ALTER TABLE `status`
ADD PRIMARY KEY (`IDstatus`);
--
-- Indexes for table `transakcje`
--
ALTER TABLE `transakcje`
ADD PRIMARY KEY (`IDtransakcje`),
ADD KEY `IDuzytkownika` (`IDuzytkownicy`),
ADD KEY `status` (`IDstatus`);
--
-- Indexes for table `uprawnienia`
--
ALTER TABLE `uprawnienia`
ADD PRIMARY KEY (`IDuprawnienia`);
--
-- Indexes for table `uzytkownicy`
--
ALTER TABLE `uzytkownicy`
ADD PRIMARY KEY (`IDuzytkownicy`),
ADD KEY `uprawnienia` (`IDuprawnienia`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT dla tabeli `elementy_transakcji`
--
ALTER TABLE `elementy_transakcji`
MODIFY `IDelementy_transakcji` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
--
-- AUTO_INCREMENT dla tabeli `kategoria`
--
ALTER TABLE `kategoria`
MODIFY `IDkategoria` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT dla tabeli `podkategoria`
--
ALTER TABLE `podkategoria`
MODIFY `IDpodkategoria` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT dla tabeli `produkty`
--
ALTER TABLE `produkty`
MODIFY `IDprodukty` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT dla tabeli `status`
--
ALTER TABLE `status`
MODIFY `IDstatus` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT dla tabeli `transakcje`
--
ALTER TABLE `transakcje`
MODIFY `IDtransakcje` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT dla tabeli `uprawnienia`
--
ALTER TABLE `uprawnienia`
MODIFY `IDuprawnienia` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT dla tabeli `uzytkownicy`
--
ALTER TABLE `uzytkownicy`
MODIFY `IDuzytkownicy` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Ograniczenia dla zrzutów tabel
--
--
-- Ograniczenia dla tabeli `elementy_transakcji`
--
ALTER TABLE `elementy_transakcji`
ADD CONSTRAINT `elementy_transakcji_ibfk_1` FOREIGN KEY (`IDtransakcje`) REFERENCES `transakcje` (`IDtransakcje`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `elementy_transakcji_ibfk_2` FOREIGN KEY (`IDprodukty`) REFERENCES `produkty` (`IDprodukty`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `elementy_transakcji_ibfk_3` FOREIGN KEY (`IDstatus`) REFERENCES `status` (`IDstatus`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ograniczenia dla tabeli `podkategoria`
--
ALTER TABLE `podkategoria`
ADD CONSTRAINT `podkategoria_ibfk_1` FOREIGN KEY (`IDkategoria`) REFERENCES `kategoria` (`IDkategoria`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ograniczenia dla tabeli `produkty`
--
ALTER TABLE `produkty`
ADD CONSTRAINT `produkty_ibfk_1` FOREIGN KEY (`IDkategoria`) REFERENCES `kategoria` (`IDkategoria`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `produkty_ibfk_2` FOREIGN KEY (`IDpodkategoria`) REFERENCES `podkategoria` (`IDpodkategoria`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ograniczenia dla tabeli `transakcje`
--
ALTER TABLE `transakcje`
ADD CONSTRAINT `transakcje_ibfk_2` FOREIGN KEY (`IDuzytkownicy`) REFERENCES `uzytkownicy` (`IDuzytkownicy`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `transakcje_ibfk_3` FOREIGN KEY (`IDstatus`) REFERENCES `status` (`IDstatus`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ograniczenia dla tabeli `uzytkownicy`
--
ALTER TABLE `uzytkownicy`
ADD CONSTRAINT `uzytkownicy_ibfk_1` FOREIGN KEY (`IDuprawnienia`) REFERENCES `uprawnienia` (`IDuprawnienia`) ON DELETE CASCADE ON UPDATE CASCADE;
/*!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 */;
|
/*
Warnings:
- The migration will remove the values [ADMIN] on the enum `Role`. If these variants are still used in the database, the migration will fail.
*/
-- AlterEnum
BEGIN;
CREATE TYPE "Role_new" AS ENUM ('USER', 'PRO', 'SYSADMIN');
ALTER TYPE "Role" RENAME TO "Role_old";
ALTER TYPE "Role_new" RENAME TO "Role";
DROP TYPE "Role_old";
COMMIT;
-- AlterTable
ALTER TABLE "User" ADD COLUMN "role" "Role" NOT NULL DEFAULT E'USER';
|
-- CreateTable
CREATE TABLE `users` (
`id` VARCHAR(191) NOT NULL,
`name` VARCHAR(191) NOT NULL,
`avatar_url` VARCHAR(191) NOT NULL,
`email` VARCHAR(191) NOT NULL,
`phone_number` VARCHAR(191) NOT NULL,
`github_username` VARCHAR(191) NOT NULL,
`title` VARCHAR(191) NOT NULL,
`about` VARCHAR(191) NOT NULL,
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`updated_at` DATETIME(3) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
<filename>carnvial-purchase/sql/micro_order.sql
/*
SQLyog Ultimate v11.24 (32 bit)
MySQL - 5.7.13 : Database - micro_order
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!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 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`micro_order` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `micro_order`;
/*Table structure for table `tb_ord_inf` */
DROP TABLE IF EXISTS `tb_ord_inf`;
CREATE TABLE `tb_ord_inf` (
`tid` varchar(32) NOT NULL,
`serial_no` varchar(18) DEFAULT NULL COMMENT '流水号',
`status` varchar(30) DEFAULT NULL COMMENT '订单状态',
`pay_type` char(10) DEFAULT NULL COMMENT '支付类型',
`pay_status` varchar(16) DEFAULT NULL COMMENT '支付状态',
`shipping_account` varchar(32) DEFAULT NULL COMMENT '账户',
`account_id` varchar(32) DEFAULT NULL COMMENT '账户编号',
`shipping_name` varchar(200) DEFAULT NULL COMMENT '收货人',
`shipping_address` varchar(200) DEFAULT NULL COMMENT '收货地址',
`shipping_phone` varchar(15) DEFAULT NULL COMMENT '收货电话',
`post_way` char(10) DEFAULT NULL COMMENT '发货方式',
`post_fee` decimal(18,2) DEFAULT NULL COMMENT '配送费',
`price` decimal(18,2) DEFAULT NULL COMMENT '订单总价',
`create_by` varchar(32) DEFAULT NULL,
`create_date` datetime NOT NULL COMMENT '创建时间',
`update_by` varchar(32) DEFAULT NULL,
`update_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`remark` varchar(1000) DEFAULT NULL COMMENT '原因',
`version` int(2) DEFAULT '0' COMMENT '版本',
`state` int(2) DEFAULT '1' COMMENT '状态',
PRIMARY KEY (`tid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单信息表';
/*Data for the table `tb_ord_inf` */
LOCK TABLES `tb_ord_inf` WRITE;
UNLOCK TABLES;
/*Table structure for table `tb_ord_produt` */
DROP TABLE IF EXISTS `tb_ord_produt`;
CREATE TABLE `tb_ord_produt` (
`tid` varchar(32) NOT NULL,
`serial_no` varchar(32) DEFAULT NULL COMMENT '流水号',
`prd_name` varchar(200) DEFAULT NULL COMMENT '商品名',
`prd_price` decimal(18,2) DEFAULT NULL COMMENT '商品价',
`prd_qty` int(4) DEFAULT NULL COMMENT '数量',
`create_date` datetime NOT NULL COMMENT '创建时间',
`update_by` varchar(32) DEFAULT NULL,
`update_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`remark` varchar(1000) DEFAULT NULL COMMENT '原因',
`version` int(2) DEFAULT '0' COMMENT '版本',
`state` int(2) DEFAULT '1' COMMENT '状态',
PRIMARY KEY (`tid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单商品表';
/*Data for the table `tb_ord_produt` */
LOCK TABLES `tb_ord_produt` WRITE;
UNLOCK TABLES;
/*Table structure for table `tb_ord_state` */
DROP TABLE IF EXISTS `tb_ord_state`;
CREATE TABLE `tb_ord_state` (
`tid` varchar(32) NOT NULL,
`serial_no` varchar(32) DEFAULT NULL COMMENT '流水号',
`status` varchar(30) DEFAULT NULL COMMENT '订单状态',
`create_date` datetime NOT NULL COMMENT '创建时间',
`update_by` varchar(32) DEFAULT NULL,
`update_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`remark` varchar(1000) DEFAULT NULL COMMENT '原因',
`version` int(2) DEFAULT '0' COMMENT '版本',
`state` int(2) DEFAULT '1' COMMENT '状态',
PRIMARY KEY (`tid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单状态变更';
/*Data for the table `tb_ord_state` */
LOCK TABLES `tb_ord_state` WRITE;
UNLOCK TABLES;
/*!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 */;
|
<gh_stars>1-10
-- MySQL dump 10.13 Distrib 5.7.13, for Win64 (x86_64)
--
-- Host: localhost Database: toubkal_unit_tests
-- ------------------------------------------------------
-- Server version 5.7.13-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 `cities`
--
DROP TABLE IF EXISTS `cities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cities` (
`id` binary(16) NOT NULL COMMENT 'uuid',
`name` varchar(128) NOT NULL,
`geometry` geometry NOT NULL,
`create_time` varchar(128) NOT NULL COMMENT 'timestamp with milliseconds',
PRIMARY KEY (`id`),
SPATIAL KEY `geometry` (`geometry`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `project`
--
DROP TABLE IF EXISTS `project`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `project` (
`id` binary(16) NOT NULL COMMENT 'uuid',
`creator_id` binary(16) NOT NULL COMMENT 'user.id',
`name` varchar(255) DEFAULT NULL,
`create_time` varchar(128) NOT NULL COMMENT 'timestamp with milliseconds',
PRIMARY KEY (`id`),
KEY `creator_id` (`creator_id`),
CONSTRAINT `project_ibfk_1` FOREIGN KEY (`creator_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project`
--
LOCK TABLES `project` WRITE;
/*!40000 ALTER TABLE `project` DISABLE KEYS */;
/*!40000 ALTER TABLE `project` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
`id` binary(16) NOT NULL COMMENT 'uuid',
`login` varchar(32) NOT NULL,
`email` varchar(128) NOT NULL,
`create_time` varchar(128) NOT NULL COMMENT 'timestamp with milliseconds',
PRIMARY KEY (`id`),
UNIQUE KEY `login_UNIQUE` (`login`),
UNIQUE KEY `email_UNIQUE` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user`
--
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
/*!40000 ALTER TABLE `user` 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 2017-05-15 14:00:53
|
-- +migrate Up
CREATE TABLE dockmon_liveness_target (
service_name VARCHAR(150) PRIMARY KEY,
liveness_url VARCHAR(250),
liveness_interval INT,
should_restart BOOLEAN,
fail_after INT,
is_healty BOOLEAN,
number_of_restarts INT,
consecutive_failed_health_checks INT,
last_restarted TIMESTAMP,
last_health_success TIMESTAMP,
last_health_failure TIMESTAMP,
created_at TIMESTAMP
);
|
<filename>subprojects/athena-data/queries/ytd-gross-breakage-by-merchant-by-business-model.sql
-- Get breakages for a merchant by business model
-- Description: For a given merchant, get breakages by business model, e.g Open Loop, Closed Loop etc.
-- Verified: OK
select business_model, sum(breakage) as merchant_breakage_by_business_model
from (select P.tx_value as purchase_value,
R.total_redeemed as redeemed_value,
(purchase_value - redeemed_value) as breakage,
P.gc_business_model as business_model
from (select gc_uuid, merchant_code, tx_value, card_type.gc_business_model
from transaction, card_type
where tx_type = 'PURCHASE'
and transaction.merchant_code = 'M-0001'
and transaction.gc_type_code = card_type.gc_type_code) P, -- Purchase value on card instance
(select gc_uuid, sum(tx_value) as total_redeemed
from transaction
where tx_type = 'REDEMPTION'
and transaction.merchant_code = 'M-0001'
group by gc_uuid) R, -- Redeemed value on card instance
(select gc_uuid
from card
where gc_expiry_date < current_date
and (CURRENT_DATE::date - gc_expiry_date) < 365) E, -- Expired card instances in this year (YTD)
card -- card instances
where P.gc_uuid = E.gc_uuid
and E.gc_uuid = card.gc_uuid
and E.gc_uuid = R.gc_uuid) MB
group by business_model;
|
SELECT nd.Problem, nd.Instance, nd.SolverId, nd.Solved as "New-Solved", od.Solved as "Old-Solved", nd.Solved != od.Solved as "Different-Solved",
nd.Optimally as "New-Optimally", od.Optimally as "Old-Optimally", nd.Optimally != od.Optimally as "Different-Optimally",
nd.ElapsedSecs as "New-Elapsed", od.ElapsedSecs as "Old-Elapsed"
FROM "new-data" nd, "old-data" od where
od.problem = nd.problem and
od.instance = nd.instance and
od.solverId = nd.solverId and
od.SearchType = nd.SearchType and
od.Mif = nd.Mif and
od.SPD = nd.SPD and
od.PropRed = nd.PropRed;
|
<reponame>aliostad/deep-learning-lang-detection
-- USER table, replace userid, password hash is for 'invenio' --
insert into invenio_user (userid, password)
values ('invenio','<PASSWORD>');
-- VOL_DUMP --
insert into VOL_DUMP values (1,'AC-SUG-1', 1,100, 5, 'Y', 50, 'AA-101', '','','2020-01-01');
insert into VOL_DUMP values (2,'AC-COP-1', 1,1000, 50, 'Y', 50, 'AA-102', '','','2020-01-02');
insert into VOL_DUMP values (3,'AC-SUG-2', 1,1000, 15, 'Y', 50, 'AA-103', '','','2020-01-03');
insert into VOL_DUMP values (4,'AC-IRN-1', 1,100, 5, 'Y', 50, 'AA-104', '','','2020-01-04');
insert into VOL_DUMP values (5,'AC-ZIN-1', 1,100, 5, 'Y', 50, 'AA-105', '','','2020-01-05');
insert into instrument values (1,'Instrument-1', 'INS-1', 'Portfolio-1', 'M1', 10, 30, 200);
insert into instrument values (2,'Instrument-2', 'INS-2', 'Portfolio-2', 'M2', 20, 20, 500);
insert into instrument values (3,'Instrument-3', 'INS-3', 'Portfolio-3', 'M3', 30, 10, 700);
-- FUT_DUMP --
insert into FUT_DUMP values (1, 1, 10, 100, 900, 'Basic', 500, 20, 10, 1, 0.1);
insert into FUT_DUMP values (2, 2, 20, 200, 1900, 'Adavanced', 550, 20, 10, 1,0.2);
insert into FUT_DUMP values (3, 3, 30, 300, 2900, 'Priority', 900, 20, 10, 1,0.3);
insert into FUT_DUMP values (4, 1, 40, 400, 3900, 'Basic', 10, 20, 10, 1,0.4);
insert into FUT_DUMP values (5, 1, 50, 500, 5000, 'Basic', 55, 20, 10, 1, 0.5);
-- OPT_DUMP --
insert into OPT_DUMP values (1, 1, 10, 1, 10.1, 1.1, 2.0, 100, 'Customer-1', 2.2, 3.1, 'ABC', 'Y', 'N', 'Y', '2020-01-01', 'BUY', 500, 'CONTRACT-1', 'Y', 10.2, 'L-1', 10);
insert into OPT_DUMP values (2, 2, 20, 2, 10.2, 1.2, 1.9, 200, 'Customer-2', 2.2, 3.2, 'MNO', 'N', 'Y', 'N', '2020-01-02', 'BUY', 1500, 'CONTRACT-2', 'N', 10.8, 'L-2', 20);
insert into OPT_DUMP values (3, 3, 30, 3, 10.3, 1.3, 1.8, 300, 'Customer-3', 2.3, 3.3, 'XYZ', 'Y', 'N', 'Y', '2020-01-03', 'BUY', 2500, 'CONTRACT-3', 'Y', 10.2, 'L-3', 30);
insert into OPT_DUMP values (4, 1, 40, 4, 10.4, 1.4, 1.7, 400, 'Customer-4', 2.4, 3.4, 'ABC', 'N', 'N', 'Y', '2020-01-04', 'BUY', 4500, 'CONTRACT-4', 'Y', 10.2, 'L-4', 40);
insert into OPT_DUMP values (5, 2, 50, 5, 10.5, 1.5, 1.6, 500, 'Customer-5', 2.5, 3.5, 'MNO', 'Y', 'N', 'N', '2020-01-05', 'BUY', 5500, 'CONTRACT-5', 'Y', 10.9, 'L-5', 50);
insert into OPT_DUMP values (6, 3, 60, 6, 10.6, 1.6, 1.5, 600, 'Customer-6', 2.6, 3.6, 'XYZ', 'N', 'N', 'Y', '2020-01-06', 'SELL', 7500, 'CONTRACT-6', 'Y', 10.2, 'L-6', 60);
insert into OPT_DUMP values (7, 1, 70, 7, 10.7, 1.7, 1.4, 700, 'Customer-7', 2.7, 3.7, 'ABC', 'N', 'Y', 'Y', '2020-01-07', 'SELL', 50, 'CONTRACT-7', 'N', 10.2, 'L-7', 70);
insert into OPT_DUMP values (8, 2, 80, 8, 10.8, 1.8, 1.3, 800, 'Customer-8', 2.8, 3.8, 'MNO', 'N', 'Y', 'Y', '2020-01-08', 'SELL', 5, 'CONTRACT-8', 'Y', 10.2, 'L-8', 80);
insert into OPT_DUMP values (9, 3, 90, 9, 10.9, 1.9, 1.2, 900, 'Customer-9', 2.9, 3.9, 'XYZ', 'Y', 'N', 'Y', '2020-01-09', 'SELL', 500, 'CONTRACT-9', 'Y', 10.2, 'L-9', 90);
insert into OPT_DUMP values (10, 1, 100, 18, 20, 2.0, 1.1, 1000, 'Customer-10', 3.0, 3.0, 'ABC', 'Y', 'N', 'N', '2020-01-10', 'SELL', 500, 'CONTRACT-10', 'N', 10.1, 'L-10', 100);
-- M_US_DUMP --
insert into M_US_DUMP values (1, 1, 'STR-1', 10, 1, 10.0, 1.4, 1.0, 101, 1, '2020-01-01', 'instrument-1');
insert into M_US_DUMP values (2, 2, 'STR-2', 11, 2, 10.5, 1.3, 2.0, 102, 2, '2020-01-02', 'instrument-2');
insert into M_US_DUMP values (3, 3, 'STR-3', 12, 3, 10.2, 1.2, 3.0, 103, 3, '2020-01-03', 'instrument-3');
insert into M_US_DUMP values (4, 1, 'STR-4', 13, 4, 10.1, 1.1, 4.0, 104, 4, '2020-01-04', 'instrument-4');
insert into M_US_DUMP values (5, 1, 'STR-5', 14, 5, 10.2, 1.0, 5.0, 100, 5, '2020-01-05', 'instrument-5');
|
--set num_comments for all posts
update
tpost p
set
num_comments = (select count(1) from ttest where path <@ text2ltree(p.post_id::text));
--list num_comments for all posts
select
p.post_id,
p.title,
(select count(1) from ttest where path <@ text2ltree(p.post_id::text)) num_comments
from
tpost p
order by
p.post_id;
-- clear/truncate all tables and reset "autoincrement"
truncate tfollower, tpost, tposttag, ttag, ttest, tuser restart identity;
|
SELECT REPLACE(trim(LOWER("Romance_2"."location"),' \\t\ \\x0b\\f\\r'),',','') AS "Calculation_813462698272518145" FROM "Romance_2" WHERE (("Romance_2"."lat" >= cast('40.466670000000001' as double)) AND ("Romance_2"."lat" <= cast('41' as double)) AND ("Romance_2"."lng" >= cast('-74.25' as double)) AND ("Romance_2"."lng" <= cast('-73.549999999999997' as double))) GROUP BY "Calculation_813462698272518145" ORDER BY "Calculation_813462698272518145" ASC ;
|
RAISERROR('Create function: [dbo].[ufn_formatPlatformSpecificPath]', 10, 1) WITH NOWAIT
GO
IF EXISTS (SELECT * FROM sysobjects WHERE [id] = OBJECT_ID(N'[dbo].[ufn_formatPlatformSpecificPath]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[ufn_formatPlatformSpecificPath]
GO
CREATE FUNCTION [dbo].[ufn_formatPlatformSpecificPath]
(
@sqlServerName [sysname],
@filePath [nvarchar] (4000)
)
RETURNS [nvarchar](4000)
/* WITH ENCRYPTION */
AS
-- ============================================================================
-- Copyright (c) 2004-2015 <NAME> (<EMAIL>)
-- ============================================================================
-- Author : <NAME>
-- Create date : 18.12.2017
-- Module : Database Analysis & Performance Monitoring
-- : SQL Server 2000/2005/2008/2008R2/2012+
-- ============================================================================
-----------------------------------------------------------------------------------------
-- Input Parameters:
-- @sqlServerName - name of SQL Server instance
-- @filePath - path to convert to platform specific
-----------------------------------------------------------------------------------------
-- Return :
-- SQL statement formated to be executed over linked server using OPENQUERY or locally
-----------------------------------------------------------------------------------------
-- { sql_statement | statement_block }
begin
DECLARE @hostPlatform [sysname],
@filePathPlatformSpecific [nvarchar](4000)
SET @filePathPlatformSpecific = @filePath
SELECT @hostPlatform = [host_platform]
FROM [dbo].[vw_catalogInstanceNames]
WHERE [instance_name] = @sqlServerName
IF @hostPlatform='linux'
begin
SET @filePathPlatformSpecific = REPLACE(REPLACE(@filePathPlatformSpecific, '/\', '/'), '\', '/')
end
RETURN @filePathPlatformSpecific
end
GO
|
<filename>S4 High Availability/Monitoring/verify_data_synchronization.sql
/*
Other potential fodder:
perf counters:
https://docs.microsoft.com/en-us/sql/relational-databases/performance-monitor/sql-server-database-mirroring-object
(i should be able to grab those on 'named instances' by simply grabbing the instance name and so on...
problem is, those docs kind of suck.
e.g.., what is transaction delay? hours, minutes, days? ms?
I would ASSUME ms...
and... this place documents those as being the case:
https://logicalread.com/sql-server-perf-counters-database-mirroring-tl01/#.WrU4k-jwbAQ
(still, not sure why MS can't do that).
possible fodder:
https://docs.microsoft.com/en-us/sql/database-engine/database-mirroring/use-warning-thresholds-and-alerts-on-mirroring-performance-metrics-sql-server
might also be good:
https://technet.microsoft.com/en-us/library/cc917681.aspx?f=255&MSPPError=-2147217396
TODO:
[NOTE: the info below now correlates to this parameter: @ExcludeAnomolousSyncDeviations]
document/address problem or issue with Ghosted Records.
specifically, we're determining 'lag' and RPOs by means of the vector between primary_last_log_commit and secondary_last_log_commit
as, normally, they should be within a few milliseconds of each other.
Only, imagine a scenario like the following:
- very little traffic and/or very few modifications.
specifically, a few INSERTs every 10-180 seconds and a FEW DELETEs every 1-2.5 minutes...
at this point the last-log-commit time on BOTH servers is going to be, say, 10, 40, or even 120 seconds+ OLD.
it'll be the SAME on both - cuz the last change was 'a long time ago' - but it happened synchronously on both servers at/around the exact same time
so... the VECTOR between those two metrics isn't large - but the duration between NOW and when that happened is ... large-ish.
- Ghosted Record Cleanup.
this is a process that doesn't have to be synchronously committed - it happens on the primary and (apparently?) gets thrown over the fence to the secondary
(I actually need to double-check and see if i can spot whether this stuff is happening or not...
i.e., all of these 'details' are a very SOLID working THEORY... they're the only thing that really explains what's going on here - and I can see
that ghosted record cleanup IS happening on the primary and it IS happening at/around the time of the main problem - i.e., it's the catalyst - or so it appears).
meaning that ...
we now have 'async' changes ... that are 120+ seconds or whatever apart.
I've started to tackle this by means of averages - i.e., instead of taking the RPO 'right now' ... I 'poll' over N seconds and X times.
BUT, that's still not enough... i.e., 4x RPOs of 0 and 1x RPO of 147 still weigh in at an average of, say, 45seconds - well over the 15s threshold i normally want.
SO,
I need to do the following:
- 1. set up different options for polling - maybe EVEN by DATABASE...
this'll SUCK to put into @Params for this sproc so... instead, I'm going to:
a) default the @pollCount and @waitDuration to whatever makes sense (i.e., whatever's already in the sproc below).
b) set up options to LOOK FOR 'overwrites' for those defaults ... in the dbo.settings table.
and then... POSSIBLY, if i can think of a clean/easy way to tackle it ... look at doing this if/when certain dbs are found or whatever...
(probably NOT going to be feasible).
- 2. Look at using STDEV - to ignore/'remove'/'flatten' hiccups caused by this problem - as per the 'dogs' stuff here:
https://www.mathsisfun.com/data/standard-deviation.html
and further detailed here:
https://www.mathsisfun.com/data/standard-deviation-formulas.html
NOTE:
Final implementation is as follows:
1. If @ExcludeAnomolousSyncDeviations is enabled... then.
2. Calculate the MEAN (AVG) per each DB.
3. Also calculate SAMPLE STDEV (i.e., STDEV vs STDEVP) per database.
4. Add STDEV to MEAN.
5. Substract STDEV from MEAN.
6. _IF_ MEAN - STDEV is < 0, then
ADD
MEAN + STDEV + (ABS(MEAN - STDEV))
instead of just using STDEV + MEAN (i.e., 'overwrite 'rule' #4'...
7. ALLOW removal/exclusion of 1x (i.e., largest) rpo or other target value IF
the value of output #6 is > output of #4 AND... the RPO in question is > #6...
e.g.,
RPOs are
0
147
0
3
0
AVG/MEAN = 30 seconds (i.e., 150 / 5)
SAMPLED MEAN = 66.
30 + 66 = 96 as upper bound (#4)
30 - 66 = -36 as lower bound. (#5)
36 + 96 = 132 (#6 - i.e., outcome of #5 was < 0 - so ABS value is added to result of #4).
147 IS > 132
so it's excluded/ignored - meaning we get an average of .75 (i.e., 3 seconds / 4 iterations).
whereas if @ExcludeAnomolousSyncDeviations had been set to 0, we'd be back at the AVG of 30 seconds.
*/
USE [admindb];
GO
IF OBJECT_ID('dbo.verify_data_synchronization','P') IS NOT NULL
DROP PROC dbo.verify_data_synchronization;
GO
CREATE PROC dbo.verify_data_synchronization
@IgnoredDatabases nvarchar(MAX) = NULL,
@RPOThreshold sysname = N'10 seconds',
@RTOThreshold sysname = N'40 seconds',
@AGSyncCheckIterationCount int = 8,
@AGSyncCheckDelayBetweenChecks sysname = N'1800 milliseconds',
@ExcludeAnomolousSyncDeviations bit = 0, -- Primarily for Ghosted Records Cleanup...
@EmailSubjectPrefix nvarchar(50) = N'[Data Synchronization Problems] ',
@MailProfileName sysname = N'General',
@OperatorName sysname = N'Alerts',
@PrintOnly bit = 0
AS
SET NOCOUNT ON;
-- {copyright}
----------------------------------------------
-- Determine which server to run checks on.
IF (SELECT dbo.[is_primary_server]()) = 0 BEGIN
PRINT 'Server is Not Primary.';
RETURN 0;
END;
---------------------------------------------
-- Dependencies Validation:
DECLARE @return int, @returnMessage nvarchar(MAX);
IF @PrintOnly = 0 BEGIN
EXEC @return = dbo.verify_advanced_capabilities;
IF @return <> 0
RETURN @return;
EXEC @return = dbo.verify_alerting_configuration
@OperatorName,
@MailProfileName;
IF @return <> 0
RETURN @return;
END;
IF NOT EXISTS (SELECT NULL FROM sys.servers WHERE [name] = 'PARTNER') BEGIN
RAISERROR('Linked Server ''PARTNER'' not detected. Comparisons between this server and its peer can not be processed.', 16, 1);
RETURN -5;
END;
EXEC @return = dbo.verify_partner
@Error = @returnMessage OUTPUT;
IF @return <> 0 BEGIN
-- S4-229: this (current) response is a hack - i.e., sending email/message DIRECTLY from this code-block violates DRY
-- and is only in place until dbo.verify_job_synchronization is rewritten to use a process bus.
IF @PrintOnly = 1 BEGIN
PRINT 'PARTNER is disconnected/non-accessible. Terminating early. Connection Details/Error:';
PRINT ' ' + @returnMessage;
END;
ELSE BEGIN
DECLARE @hackSubject nvarchar(200), @hackMessage nvarchar(MAX);
SELECT
@hackSubject = N'PARTNER server is down/non-accessible.',
@hackMessage = N'Job Synchronization Checks can not continue as PARTNER server is down/non-accessible. Connection Error Details: ' + NCHAR(13) + NCHAR(10) + @returnMessage;
EXEC msdb..sp_notify_operator
@profile_name = @MailProfileName,
@name = @OperatorName,
@subject = @hackSubject,
@body = @hackMessage;
END;
RETURN 0;
END;
----------------------------------------------
-- Determine the last time this job ran:
DECLARE @lastCheckupExecutionTime datetime;
EXEC [dbo].[get_last_job_completion_by_session_id]
@SessionID = @@SPID,
@ExcludeFailures = 1,
@LastTime = @lastCheckupExecutionTime OUTPUT;
SET @lastCheckupExecutionTime = ISNULL(@lastCheckupExecutionTime, DATEADD(HOUR, -2, GETDATE()));
IF DATEDIFF(DAY, @lastCheckupExecutionTime, GETDATE()) > 2
SET @lastCheckupExecutionTime = DATEADD(HOUR, -2, GETDATE())
DECLARE @syncCheckSpanMinutes int = DATEDIFF(MINUTE, @lastCheckupExecutionTime, GETDATE());
IF @syncCheckSpanMinutes <= 1
RETURN 0; -- no sense checking on history if it's just been a minute...
-- convert vectors to seconds:
DECLARE @rpoSeconds decimal(20, 2);
DECLARE @rtoSeconds decimal(20, 2);
DECLARE @vectorOutput bigint, @vectorError nvarchar(max);
EXEC dbo.translate_vector
@Vector = @RPOThreshold,
@Output = @vectorOutput OUTPUT, -- milliseconds
@ProhibitedIntervals = N'DAY, WEEK, MONTH, QUARTER, YEAR',
@Error = @vectorError OUTPUT;
IF @vectorError IS NOT NULL BEGIN
RAISERROR(@vectorError, 16, 1);
RETURN -1;
END;
SET @rpoSeconds = @vectorOutput / 1000.0;
EXEC dbo.translate_vector
@Vector = @RTOThreshold,
@Output = @vectorOutput OUTPUT, -- milliseconds
@ProhibitedIntervals = N'DAY, WEEK, MONTH, QUARTER, YEAR',
@Error = @vectorError OUTPUT;
IF @vectorError IS NOT NULL BEGIN
RAISERROR(@vectorError, 16, 1);
RETURN -1;
END;
SET @rtoSeconds = @vectorOutput / 1000.0;
IF @rtoSeconds > 2764800.0 OR @rpoSeconds > 2764800.0 BEGIN
RAISERROR(N'@RPOThreshold and @RTOThreshold values can not be set to > 1 month.', 16, 1);
RETURN -10;
END;
IF @rtoSeconds < 2.0 OR @rpoSeconds < 2.0 BEGIN
RAISERROR(N'@RPOThreshold and @RTOThreshold values can not be set to less than 2 seconds.', 16, 1);
RETURN -10;
END;
-- translate @AGSyncCheckDelayBetweenChecks into waitfor value.
DECLARE @waitFor sysname;
SET @vectorError = NULL;
EXEC dbo.[translate_vector_delay]
@Vector = @AGSyncCheckDelayBetweenChecks,
@ParameterName = N'@AGSyncCheckDelayBetweenChecks',
@Output = @waitFor OUTPUT,
@Error = @vectorError OUTPUT;
IF @vectorError IS NOT NULL BEGIN
RAISERROR(@vectorError, 16, 1);
RETURN -20;
END;
----------------------------------------------
-- Begin Processing:
DECLARE @localServerName sysname = @@SERVERNAME;
DECLARE @remoteServerName sysname;
EXEC master.sys.sp_executesql N'SELECT @remoteName = (SELECT TOP 1 [name] FROM PARTNER.master.sys.servers WHERE server_id = 0);',
N'@remoteName sysname OUTPUT',
@remoteName = @remoteServerName OUTPUT;
-- start by loading a 'list' of all dbs that might be Mirrored or AG'd:
DECLARE @synchronizingDatabases table (
[server_name] sysname,
[sync_type] sysname,
[database_name] sysname,
[role] sysname
);
-- grab a list of SYNCHRONIZING (primary) databases (excluding any we're instructed to NOT watch/care about):
INSERT INTO @synchronizingDatabases (
[server_name],
[sync_type],
[database_name],
[role]
)
SELECT
[server_name],
[sync_type],
[database_name],
[role]
FROM
dbo.list_synchronizing_databases(@IgnoredDatabases, 1);
----------------------------------------------
DECLARE @errors TABLE (
error_id int IDENTITY(1,1) NOT NULL,
errorMessage nvarchar(MAX) NOT NULL
);
-- http://msdn.microsoft.com/en-us/library/ms366320(SQL.105).aspx
DECLARE @output TABLE (
[database_name] sysname,
[role] int,
mirroring_state int,
witness_status int,
log_generation_rate int,
unsent_log int,
send_rate int,
unrestored_log int,
recovery_rate int,
transaction_delay int,
transactions_per_sec int,
average_delay int,
time_recorded datetime,
time_behind datetime,
local_time datetime
);
DECLARE @crlf nchar(2) = CHAR(13) + CHAR(10);
DECLARE @tab nchar(1) = CHAR(9);
DECLARE @errorMessage nvarchar(MAX);
DECLARE @transdelayMilliseconds int;
DECLARE @averagedelay int;
----------------------------------------------
-- Process Mirrored Databases:
DECLARE m_checker CURSOR LOCAL FAST_FORWARD FOR
SELECT
[database_name]
FROM
@synchronizingDatabases
WHERE
[sync_type] = N'MIRRORED'
ORDER BY
[database_name];
DECLARE @currentMirroredDB sysname;
OPEN m_checker;
FETCH NEXT FROM m_checker INTO @currentMirroredDB;
WHILE @@FETCH_STATUS = 0 BEGIN
DELETE FROM @output;
SET @errorMessage = N'';
-- Force an explicit update of the mirroring stats - so that we get the MOST recent details:
EXEC msdb.sys.sp_dbmmonitorupdate @database_name = @currentMirroredDB;
INSERT INTO @output
EXEC msdb.sys.sp_dbmmonitorresults
@database_name = @currentMirroredDB,
@mode = 0, -- just give us the last row - to check current status
@update_table = 0; -- This SHOULD be set to 1 - but can/will cause issues with 'nested' INSERT EXEC calls (i.e., a bit of a 'bug'). So... the previous call updates... and we just read the recently updated results.
IF (SELECT COUNT(*) FROM @output) < 1 BEGIN
SET @errorMessage = N'Mirroring Failure - Monitoring not working correctly.'
+ @crlf + @tab + @tab + N'Database Mirroring Monitoring Failure for database ' + @currentMirroredDB + N' on Server ' + @localServerName + N'.';
INSERT INTO @errors (errorMessage)
VALUES (@errorMessage);
END;
IF (SELECT TOP(1) mirroring_state FROM @output) <> 4 BEGIN
SET @errorMessage = N'Mirroring Failure - Mirroring Disabled'
+ @crlf + @tab + @tab + N'Synchronization Failure for database ' + @currentMirroredDB + N' on Server ' + @localServerName + N'.';
INSERT INTO @errors (errorMessage)
VALUES (@errorMessage);
END
-- check on the witness if needed:
IF EXISTS (SELECT mirroring_witness_state_desc FROM sys.database_mirroring WHERE database_id = DB_ID(@currentMirroredDB) AND NULLIF(mirroring_witness_state_desc, N'UNKNOWN') IS NOT NULL) BEGIN
IF (SELECT TOP(1) witness_status FROM @output) <> 1 BEGIN
SET @errorMessage = N'Mirroring Failure - Witness Down'
+ @crlf + @tab + @tab + N'Witness Failure. Witness is currently not enabled or monitoring for database ' + @currentMirroredDB + N' on Server ' + @localServerName + N'.';
INSERT INTO @errors (errorMessage)
VALUES (@errorMessage);
END;
END;
DELETE FROM @output;
INSERT INTO @output
EXEC msdb.sys.sp_dbmmonitorresults
@database_name = @currentMirroredDB,
@mode = 1, -- give us rows from the last 2 hours:
@update_table = 0;
-- make sure that metrics are even working - if we get any NULLs in transaction_delay/average_delay,
-- then it's NOT working correctly (i.e. it's somehow not seeing everything it needs to in order
-- to report - and we need to throw an error):
SELECT @transdelayMilliseconds = MIN(ISNULL(transaction_delay,-1)) FROM @output
WHERE local_time >= @lastCheckupExecutionTime;
IF @transdelayMilliseconds < 0 BEGIN
SET @errorMessage = N'Mirroring Failure - Synchronization Metrics Unavailable'
+ @crlf + @tab + @tab + N'Metrics for transaction_delay and average_delay unavailable for monitoring (i.e., SQL Server Mirroring Monitor is ''busted'') for database: ' + @currentMirroredDB + N' on Server: ' + @localServerName + N'.';
INSERT INTO @errors (errorMessage)
VALUES (@errorMessage);
END;
-- check for problems with transaction delay:
SELECT @transdelayMilliseconds = MAX(ISNULL(transaction_delay,0)) FROM @output
WHERE local_time >= @lastCheckupExecutionTime;
IF @transdelayMilliseconds > (@rpoSeconds * 1000.0) BEGIN
SET @errorMessage = N'Mirroring Alert - Delays Applying Data to Secondary'
+ @crlf + @tab + @tab + N'Max Trans Delay of ' + CAST(@transdelayMilliseconds AS nvarchar(30)) + N'ms in last ' + CAST(@syncCheckSpanMinutes as sysname) + N' minutes is greater than allowed threshold of ' + CAST((@rpoSeconds * 1000.0) as sysname) + N'ms for database: ' + @currentMirroredDB + N' on Server: ' + @localServerName + N'.';
INSERT INTO @errors (errorMessage)
VALUES (@errorMessage);
END
-- check for problems with transaction delays on the primary:
SELECT @averagedelay = MAX(ISNULL(average_delay,0)) FROM @output
WHERE local_time >= @lastCheckupExecutionTime;
IF @averagedelay > (@rtoSeconds * 1000.0) BEGIN
SET @errorMessage = N'Mirroring Alert - Transactions Delayed on Primary'
+ @crlf + @tab + @tab + N'Max(Avg) Trans Delay of ' + CAST(@averagedelay AS nvarchar(30)) + N'ms in last ' + CAST(@syncCheckSpanMinutes as sysname) + N' minutes is greater than allowed threshold of ' + CAST((@rtoSeconds * 1000.0) as sysname) + N'ms for database: ' + @currentMirroredDB + N' on Server: ' + @localServerName + N'.';
INSERT INTO @errors (errorMessage)
VALUES (@errorMessage);
END
FETCH NEXT FROM m_checker INTO @currentMirroredDB;
END;
CLOSE m_checker;
DEALLOCATE m_checker;
----------------------------------------------
-- Process AG'd Databases:
IF (SELECT dbo.[get_engine_version]()) <= 10.5
GOTO REPORTING;
DECLARE @downNodes nvarchar(MAX);
DECLARE @currentAGName sysname;
DECLARE @currentAGId uniqueidentifier;
DECLARE @syncHealth tinyint;
DECLARE @processedAgs table (
agname sysname NOT NULL
);
DECLARE ag_checker CURSOR LOCAL FAST_FORWARD FOR
SELECT
[database_name]
FROM
@synchronizingDatabases
WHERE
[sync_type] = N'AG'
ORDER BY
[database_name];
DECLARE @currentAGdDatabase sysname;
OPEN ag_checker;
FETCH NEXT FROM ag_checker INTO @currentAGdDatabase;
WHILE @@FETCH_STATUS = 0 BEGIN
SET @currentAGName = N'';
SET @currentAGId = NULL;
EXEC sys.sp_executesql N'SELECT @currentAGName = ag.[name], @currentAGId = ag.group_id FROM sys.availability_groups ag INNER JOIN sys.availability_replicas ar ON ag.group_id = ar.group_id INNER JOIN sys.databases d ON ar.replica_id = d.replica_id WHERE d.[name] = @currentAGdDatabase;',
N'@currentAGdDatabase sysname, @currentAGName sysname OUTPUT, @currentAGId uniqueidentifier OUTPUT',
@currentAGdDatabase = @currentAGdDatabase,
@currentAGName = @currentAGName OUTPUT,
@currentAGId = @currentAGId OUTPUT;
IF NOT EXISTS (SELECT NULL FROM @processedAgs WHERE agname = @currentAGName) BEGIN
-- Make sure there's an active primary:
-- TODO: in this new, streamlined, code... this check (at this point) is pointless.
-- need to check this well before we get to the CURSOR for processing AGs, AG'd dbs...
-- also, there might be a quicker/better way to get a 'list' of all dbs in a 'bad' (non-primary'd) state right out of the gate.
-- AND, either way I slice it, i'll have to tackle this via sp_executesql - to account for lower-level servers.
--SELECT @primaryReplica = agstates.primary_replica
--FROM sys.availability_groups ag
--LEFT OUTER JOIN sys.dm_hadr_availability_group_states agstates ON ag.group_id = agstates.group_id
--WHERE
-- ag.[name] = @currentAGdDatabase;
--IF ISNULL(@primaryReplica,'') = '' BEGIN
-- SET @errorMessage = N'MAJOR PROBLEM: No Replica is currently defined as the PRIMARY for Availability Group [' + @currentAG + N'].';
-- INSERT INTO @errors (errorMessage)
-- VALUES(@errorMessage);
--END
-- Check on Status of all members:
SET @downNodes = N'';
EXEC master.sys.sp_executesql N'SELECT @downNodes = @downNodes + member_name + N'','' FROM sys.dm_hadr_cluster_members WHERE member_state <> 1;', N'@downNodes nvarchar(MAX) OUTPUT', @downNodes = @downNodes OUTPUT;
IF LEN(@downNodes) > LEN(N'') BEGIN
SET @downNodes = LEFT(@downNodes, LEN(@downNodes) - 1);
SET @errorMessage = N'WARNING: The following WSFC Cluster Member Nodes are currently being reported as offline: ' + @downNodes + N'.';
INSERT INTO @errors (errorMessage)
VALUES(@errorMessage);
END
-- Check on AG Health Status:
SET @syncHealth = 0;
EXEC master.sys.sp_executesql N'SELECT @syncHealth = synchronization_health FROM sys.dm_hadr_availability_replica_states WHERE group_id = @currentAGId;', N'@currentAGId uniqueidentifier, @syncHealth tinyint OUTPUT', @currentAGId = @currentAGId, @syncHealth = @syncHealth OUTPUT;
IF @syncHealth <> 2 BEGIN
SELECT @errorMessage = N'WARNING: Current Health Status of Availability Group [' + @currentAGName + N'] Is Showing NON-HEALTHY.'
INSERT INTO @errors (errorMessage)
VALUES(@errorMessage);
END;
-- Check on Synchronization Status of each db:
SET @syncHealth = 0;
EXEC master.sys.sp_executesql N'SELECT @syncHealth = synchronization_health FROM sys.dm_hadr_availability_replica_states WHERE group_id = @currentAGId;', N'@currentAGId uniqueidentifier, @syncHealth tinyint OUTPUT', @currentAGId = @currentAGId, @syncHealth = @syncHealth OUTPUT;
IF @syncHealth <> 2 BEGIN
SELECT @errorMessage = N'WARNING: The Synchronization Status for one or more Members of the Availability Group [' + @currentAGName + N'] Is Showing NON-HEALTHY.'
INSERT INTO @errors (errorMessage)
VALUES(@errorMessage);
END;
-- mark the current AG as processed (so that we don't bother processing multiple dbs (and getting multiple errors/messages) if/when they're all in the same AG(s)).
INSERT INTO @processedAgs ([agname])
VALUES(@currentAGName);
END;
-- otherwise, we've already run checks on the availability group itself.
FETCH NEXT FROM ag_checker INTO @currentAGdDatabase;
END;
CLOSE ag_checker;
DEALLOCATE ag_checker;
IF EXISTS (SELECT NULL FROM @synchronizingDatabases WHERE [sync_type] = N'AG') BEGIN
CREATE TABLE [#metrics] (
[row_id] int IDENTITY(1, 1) NOT NULL,
[database_name] sysname NOT NULL,
[iteration] int NOT NULL,
[timestamp] datetime NOT NULL,
[synchronization_delay (RPO)] decimal(20, 2) NOT NULL,
[recovery_time (RTO)] decimal(20, 2) NOT NULL,
-- raw data:
[is_failover_ready] bit NULL,
[redo_queue_size] decimal(20, 2) NULL,
[redo_rate] decimal(20, 2) NULL,
[primary_last_commit] datetime NULL,
[secondary_last_commit] datetime NULL,
[ignore_rpo_as_anomalous] bit NOT NULL CONSTRAINT DF_metrics_anomalous DEFAULT (0)
);
DECLARE @agSyncCheckSQL nvarchar(MAX) = N'
WITH [metrics] AS (
SELECT
[adc].[database_name],
[drs].[last_commit_time],
CAST([drs].[redo_queue_size] AS decimal(20,2)) [redo_queue_size], -- KB of log data not yet ''checkpointed'' on the secondary...
CAST([drs].[redo_rate] AS decimal(20,2)) [redo_rate], -- avg rate (in KB) at which redo (i.e., inverted checkpoints) are being applied on the secondary...
[drs].[is_primary_replica] [is_primary],
[cs].[is_failover_ready]
FROM
[sys].[dm_hadr_database_replica_states] AS [drs]
INNER JOIN [sys].[availability_databases_cluster] AS [adc] ON [drs].[group_id] = [adc].[group_id] AND [drs].[group_database_id] = [adc].[group_database_id]
INNER JOIN [sys].[dm_hadr_database_replica_cluster_states] [cs] ON [drs].[replica_id] = [cs].[replica_id]
),
[primary] AS (
SELECT
[database_name],
[last_commit_time] [primary_last_commit],
[is_failover_ready]
FROM
[metrics]
WHERE
[is_primary] = 1
),
[secondary] AS (
SELECT
[database_name],
[last_commit_time] [secondary_last_commit],
[redo_rate],
[redo_queue_size]
FROM
[metrics]
WHERE
[is_primary] = 0
)
SELECT
p.[database_name],
@iterations [iteration],
GETDATE() [timestamp],
CASE
WHEN p.[is_failover_ready] = 1 THEN 0
ELSE ISNULL(DATEDIFF(MILLISECOND, s.[secondary_last_commit], p.[primary_last_commit]), -2000)
END [synchronization_delay (RPO)],
CASE
WHEN ISNULL(s.[redo_queue_size], 0) = 0 THEN 0
--WHEN ISNULL(s.[redo_rate], 0) = 0 THEN 0
ELSE CAST((s.[redo_queue_size] / s.[redo_rate]) as decimal(20,2))
END [recovery_time (RTO)],
p.[is_failover_ready],
s.[redo_queue_size],
s.[redo_rate],
p.[primary_last_commit],
s.[secondary_last_commit]
FROM
[primary] p
INNER JOIN [secondary] s ON p.[database_name] = s.[database_name]; ';
DECLARE @iterations int = 1;
WHILE @iterations < @AGSyncCheckIterationCount BEGIN
INSERT INTO [#metrics] (
[database_name],
[iteration],
[timestamp],
[synchronization_delay (RPO)],
[recovery_time (RTO)],
[is_failover_ready],
[redo_queue_size],
[redo_rate],
[primary_last_commit],
[secondary_last_commit]
)
EXEC sp_executesql
@agSyncCheckSQL,
N'@iterations int',
@iterations = @iterations;
WAITFOR DELAY @waitFor;
SET @iterations += 1;
END;
IF @ExcludeAnomolousSyncDeviations = 1 BEGIN
WITH derived AS (
SELECT
[database_name],
CAST(MAX([synchronization_delay (RPO)]) AS decimal(20, 2)) [max],
CAST(AVG([synchronization_delay (RPO)]) AS decimal(20, 2)) [mean],
CAST(STDEV([synchronization_delay (RPO)]) AS decimal(20, 2)) [deviation]
FROM
[#metrics]
GROUP BY
[database_name]
),
db_iterations AS (
SELECT
(
SELECT TOP 1 x.row_id
FROM [#metrics] x
WHERE x.[synchronization_delay (RPO)] = d.[max] AND [x].[database_name] = d.[database_name]
ORDER BY x.[synchronization_delay (RPO)] DESC
) [row_id]
FROM
[derived] d
WHERE
d.mean - d.[deviation] < 0 -- biz-rule - only if/when deviation 'knocks everything' negative...
AND d.[max] > ([d].[mean] + d.[deviation] + ABS([d].[mean] - d.[deviation]))
)
UPDATE m
SET
m.[ignore_rpo_as_anomalous] = 1
FROM
[#metrics] m
INNER JOIN [db_iterations] x ON m.[row_id] = x.[row_id];
END;
WITH violations AS (
SELECT
[database_name],
CAST(AVG([synchronization_delay (RPO)]) AS decimal(20, 2)) [rpo (seconds)],
CAST(AVG([recovery_time (RTO)]) AS decimal(20,2 )) [rto (seconds)],
CAST((
SELECT
[x].[iteration] [@iteration],
[x].[timestamp] [@timestamp],
[x].[ignore_rpo_as_anomalous],
[x].[synchronization_delay (RPO)] [rpo],
[x].[recovery_time (RTO)] [rto],
[x].[redo_queue_size],
[x].[redo_rate],
[x].[primary_last_commit],
[x].[secondary_last_commit]
FROM
[#metrics] x
WHERE
x.[database_name] = m.[database_name]
ORDER BY
[x].[row_id]
FOR XML PATH('detail'), ROOT('details')
) AS xml) [raw_data]
FROM
[#metrics] m
WHERE
m.[ignore_rpo_as_anomalous] = 0 -- note: these don't count towards rpo values - but they ARE included in serialized xml output (for review/analysis purposes).
GROUP BY
[database_name]
)
INSERT INTO @errors (
[errorMessage]
)
SELECT
N'AG Alert - SLA Warning(s) for ' + QUOTENAME([database_name]) + @crlf + @tab + @tab + N'RPO and RTO values are currently set at [' + @RPOThreshold + N'] and [' + @RTOThreshold + N'] - but are currently polling at an AVERAGE of [' + CAST([rpo (seconds)] AS sysname) + N' seconds] AND [' + CAST([rto (seconds)] AS sysname) + N' seconds] for database ' + QUOTENAME([database_name]) + N'. Raw XML Data: ' + CAST([raw_data] AS nvarchar(MAX))
FROM
[violations]
WHERE
[violations].[rpo (seconds)] > @rpoSeconds OR [violations].[rto (seconds)] > @rtoSeconds
ORDER BY
[database_name];
END;
REPORTING:
--
IF EXISTS (SELECT NULL FROM @errors) BEGIN
DECLARE @subject nvarchar(MAX) = @EmailSubjectPrefix + N' - Synchronization Problems Detected';
SET @errorMessage = N'The following errors were detected: ' + @crlf;
SELECT @errorMessage = @errorMessage + @tab + N'- ' + errorMessage + @crlf
FROM @errors
ORDER BY error_id;
IF @PrintOnly = 1 BEGIN
PRINT N'SUBJECT: ' + @subject;
PRINT N'BODY: ' + @errorMessage;
END
ELSE BEGIN
EXEC msdb..sp_notify_operator
@profile_name = @MailProfileName,
@name = @OperatorName,
@subject = @subject,
@body = @errorMessage;
END;
END;
RETURN 0;
GO
|
# Drop old index to allow creating new one.
DROP INDEX ix_tv_episodes_videos_id ON tv_episodes;
# Change firstaired colum to be date only. date time was intended for videos table only
ALTER TABLE tv_episodes MODIFY firstaired DATE;
# Correct the index to include firstaired or by date episodes will only allow for the first as duplicate series = 0 and episode = 0 prevents all others
CREATE INDEX ux_videoid_series_episode_aired ON tv_episodes (videos_id, series, episode, firstaired);
|
<reponame>davymartinez/base-de-datos-master<gh_stars>0
/* Listar los códigos, los nombres locales y la región a la que pertenecen aquellos países donde se hable español.
(Se esperan 3 columnas y 28 registros) */
SELECT
country.code, country.localname, country.region
FROM
world.country
INNER JOIN
world.countrylanguage ON country.code = countrylanguage.countrycode
WHERE
countrylanguage.language = 'Spanish';
|
CREATE PROCEDURE [calendar].[GetCorpCalendarUpdates]
@UserID int = 0,
@IsInAppOwnerList bit=0
AS
BEGIN
SET NOCOUNT ON;
BEGIN TRY
DECLARE @UserMinistryID TABLE
( MinistryId UNIQUEIDENTIFIER )
INSERT INTO @UserMinistryID
SELECT MinistryId FROM SystemUserMinistry WHERE SystemUserId=@UserID AND IsActive=1
DECLARE @AccessibleSharedWithActivities TABLE
( ActivityId int)
INSERT INTO @AccessibleSharedWithActivities
SELECT ActivityId
FROM ActivitySharedWith
WHERE MinistryId IN (SELECT MinistryId FROM @UserMinistryID)
IF @IsInAppOwnerList = 1
BEGIN
SELECT TOP 5 nf.*
FROM NewsFeed nf
INNER JOIN Activity a on nf.ActivityId = a.Id
ORDER BY nf.CreatedDateTime DESC
END
ELSE
BEGIN
SELECT TOP 5 nf.*
FROM NewsFeed nf
INNER JOIN Activity a on nf.ActivityId = a.Id
WHERE (a.ContactMinistryId in (Select MinistryId FROM @UserMinistryID)
OR a.Id in (Select ActivityId FROM @AccessibleSharedWithActivities))
ORDER BY nf.CreatedDateTime DESC
END
END TRY
BEGIN CATCH
-- Raise an error with the details of the exception
DECLARE @ErrMsg nvarchar(4000),
@ErrSeverity int
SELECT @ErrMsg = ERROR_MESSAGE(),
@ErrSeverity = ERROR_SEVERITY()
RAISERROR(@ErrMsg, @ErrSeverity, 1)
END CATCH
END
|
-- 05/12/2019 - Option to show/hide product component on frontend
ALTER TABLE `products` ADD `show_components_on_frontend` TINYINT(1) NOT NULL DEFAULT '0' AFTER `not_deliver`;
|
create table resource
(
id serial primary key,
name varchar(255),
comment text,
url varchar(255),
created_at timestamptz default LOCALTIMESTAMP not null,
updated_at timestamptz default LOCALTIMESTAMP not null,
author_id integer
);
|
PROMPT Does not invoke aftereach procedure when aftereach procedure name for a test is null
--Arrange
declare
simple_test ut_test := ut_test(
a_after_each_proc_name => null
,a_object_name => 'ut_example_tests'
,a_name => 'ut_passing_test'
);
listener ut_event_listener := ut_event_listener(ut_reporters());
begin
--Act
simple_test.do_execute(listener);
--Assert
if ut_example_tests.g_char2 = 'a' then
:test_result := ut_utils.tr_success;
else
dbms_output.put_line('expected: ut_example_tests.g_char = ''a'', got: '||ut_example_tests.g_char2 );
end if;
end;
/
|
# change log_events schema
# --- !Ups
ALTER TABLE log_events DROP COLUMN event;
ALTER TABLE log_events DROP COLUMN code;
ALTER TABLE log_events ADD COLUMN exiting BOOLEAN NOT NULL DEFAULT FALSE;
# --- !Downs
ALTER TABLE log_events ADD COLUMN event CHARACTER VARYING(100);
ALTER TABLE log_events ADD COLUMN code CHARACTER VARYING(100);
ALTER TABLE log_events DROP COLUMN exiting;
|
<filename>baidunews/127_0_0_1.sql
-- phpMyAdmin SQL Dump
-- version 4.4.15.5
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1:8889
-- Generation Time: Apr 22, 2017 at 05:16 AM
-- Server version: 5.6.34-log
-- PHP Version: 7.0.13
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: `baidunews`
--
-- --------------------------------------------------------
--
-- Table structure for table `news`
--
CREATE TABLE IF NOT EXISTS `news` (
`id` int(11) NOT NULL,
`newsType` char(200) NOT NULL,
`newsTitle` varchar(200) NOT NULL,
`newsImg` varchar(200) NOT NULL,
`newsDate` datetime NOT NULL,
`newsHot` char(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `news`
--
INSERT INTO `news` (`id`, `newsType`, `newsTitle`, `newsImg`, `newsDate`, `newsHot`) VALUES
(5, '本地', '习近平:以优异成绩迎接党的十九大胜利召开', 'img/new-item1.jpg', '2017-04-21 00:00:00', '热点'),
(6, '推荐', '中国互联网有多牛?看完这张图你就明白了', 'img/new-item2.jpg', '2017-04-21 00:00:00', '热点');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `news`
--
ALTER TABLE `news`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `news`
--
ALTER TABLE `news`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
/*!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 */;
|
-- begin transaction
BEGIN;
DROP TRIGGER IF EXISTS cvterm_generate_dbxref ON data_commons.cvterm;
DROP TRIGGER IF EXISTS cvterm_insert_trigger ON data_commons.cvterm;
CREATE TRIGGER cvterm_generate_dbxref BEFORE INSERT ON data_commons.cvterm FOR EACH ROW EXECUTE PROCEDURE data_commons.cvterm_generate_dbxref('facebase');
CREATE TRIGGER cvterm_insert_trigger AFTER INSERT ON data_commons.cvterm FOR EACH ROW EXECUTE PROCEDURE data_commons.cvterm_add('facebase');
INSERT INTO data_commons.cv (name, definition) VALUES('ocdm', 'Ontology of Craniofacial Development and Malformation');
INSERT INTO data_commons.cv (name, definition) VALUES('facebase', 'Resource for Craniofacial Researchers');
INSERT INTO data_commons.db (name, urlprefix, description) VALUES('OCDM', 'http://purl.org/sig/ont/ocdm', 'Ontology of Craniofacial Development and Malformation');
INSERT INTO data_commons.db (name, urlprefix, description) VALUES('FaceBase', 'https://www.facebase.org/', 'Resource for Craniofacial Researchers');
INSERT INTO data_commons.cvterm (cv, name) SELECT cv, name FROM temp.owl_terms;
INSERT INTO temp.ocdm (cv, name) SELECT cv, name FROM temp.owl_terms WHERE name NOT IN (SELECT name FROM temp.uberon) AND name IN (SELECT name FROM temp.terms);
UPDATE temp.terms T1 SET cv = (SELECT cv FROM temp.ocdm T2 WHERE T1.name = T2.name) WHERE name IN (SELECT name FROM temp.ocdm);
-- update ermrest
TRUNCATE _ermrest.data_version;
TRUNCATE _ermrest.model_version;
SELECT _ermrest.model_change_event();
COMMIT;
|
<filename>DMS5/V_Predefined_Analysis_Dataset_Info.sql
/****** Object: View [dbo].[V_Predefined_Analysis_Dataset_Info] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[V_Predefined_Analysis_Dataset_Info]
AS
SELECT C.Campaign_Num AS Campaign,
E.Experiment_Num AS Experiment,
E.EX_comment AS Experiment_Comment,
E.EX_Labelling AS Experiment_Labelling,
Org.OG_name AS Organism,
InstName.IN_name AS Instrument,
InstName.IN_class AS InstrumentClass,
DS.DS_comment AS Dataset_Comment,
DS.Dataset_ID AS ID,
DS.Dataset_Num AS Dataset,
DS.DS_rating AS Rating,
DRN.DRN_name AS Rating_Name,
DSTypeName.DST_Name AS Dataset_Type,
SepType.SS_name AS Separation_Type,
ISNULL(DS.Acq_Time_Start, DS.DS_created) AS DS_Date,
DS.Scan_Count
FROM dbo.T_Dataset DS
INNER JOIN dbo.T_Instrument_Name InstName
ON DS.DS_instrument_name_ID = InstName.Instrument_ID
INNER JOIN dbo.T_Experiments E
ON DS.Exp_ID = E.Exp_ID
INNER JOIN dbo.T_Campaign C
ON E.EX_campaign_ID = C.Campaign_ID
INNER JOIN dbo.T_DatasetTypeName DSTypeName
ON DS.DS_type_ID = DSTypeName.DST_Type_ID
INNER JOIN dbo.T_Organisms Org
ON E.EX_organism_ID = Org.Organism_ID
INNER JOIN T_DatasetRatingName DRN
ON DS.DS_rating = DRN.DRN_state_ID
LEFT OUTER JOIN dbo.T_Secondary_Sep SepType
ON DS.DS_sec_sep = SepType.SS_name
GO
GRANT VIEW DEFINITION ON [dbo].[V_Predefined_Analysis_Dataset_Info] TO [DDL_Viewer] AS [dbo]
GO
|
<gh_stars>10-100
create schema warehouse;
set schema 'warehouse';
create table employee_dimension(
emp_key int generated always as identity not null primary key,
empno int not null,
ename varchar(128) not null,
dname varchar(128) not null,
job varchar(128) not null,
unique(empno)
);
create table calendar_dimension(
calendar_key int generated always as identity not null primary key,
calendar_date date not null,
is_weekend boolean not null,
unique(calendar_date)
);
create index calendar_weekend_idx on calendar_dimension(is_weekend);
create table timesheet_fact(
timesheet_key int generated always as identity not null primary key,
emp_key int not null,
workday_key int not null,
hours_worked smallint not null,
unique(emp_key, workday_key)
);
create index timesheet_workday_idx on timesheet_fact(workday_key);
create index timesheet_hours_worked_idx on timesheet_fact(hours_worked);
|
<reponame>emcleod/OG-Platform
START TRANSACTION;
-- update the version
UPDATE rsk_schema_version SET version_value='46' WHERE version_key='schema_patch';
CREATE SEQUENCE rsk_hibernate_sequence START WITH 1 INCREMENT BY 1;
CREATE FUNCTION copy_sequence_value (from_name text, to_name text)
RETURNS bigint AS $$
BEGIN
IF ((SELECT COUNT(c.relname) FROM pg_class c WHERE c.relkind = 'S' AND c.relname = from_name) > 0) THEN
RETURN setval(to_name, nextval(from_name));
END IF;
RETURN 1;
END
$$ LANGUAGE plpgsql;
SELECT copy_sequence_value('hibernate_sequence', 'rsk_hibernate_sequence');
DROP FUNCTION copy_sequence_value (from_name text, to_name text);
COMMIT;
|
DROP INDEX IF EXISTS address_balance_idx;
CREATE INDEX address_balance_idx ON address (balance);
|
CREATE TABLE `em_user_real_audit` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`uid` int(10) NOT NULL DEFAULT '0' COMMENT '用户id',
`audit_uid` int(10) DEFAULT '0' COMMENT '审核人员id',
`audit_username` varchar(50) DEFAULT NULL COMMENT '审核人员',
`attach_ids` varchar(255) DEFAULT NULL COMMENT '附件id逗号拼接',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0->审核中,1->认证通过,2->认证失败',
`refuse_type` tinyint(1) unsigned DEFAULT '1' COMMENT '拒绝错误类型',
`refuse_name` varchar(255) DEFAULT NULL COMMENT '类型名字',
`description` varchar(300) DEFAULT NULL COMMENT '具体备注',
`serialize` text,
`audit_time` int(10) DEFAULT '0' COMMENT '审核时间',
`create_time` int(10) NOT NULL DEFAULT '0' COMMENT '申请时间',
PRIMARY KEY (`id`),
KEY `audit_username` (`audit_username`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户实名认证表';
CREATE TABLE `em_user_log` (
`id` int(6) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`user_id` int(6) NOT NULL DEFAULT '0' COMMENT '用户id',
`username` varchar(50) NOT NULL COMMENT '用户名',
`operator_id` int(10) NOT NULL COMMENT '操作人id',
`create_time` int(10) NOT NULL DEFAULT '0' COMMENT '申请时间',
`msg` varchar(255) DEFAULT NULL COMMENT '操作内容',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户任务历史表';
CREATE TABLE `em_user_task_log` (
`id` int(6) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`user_id` int(6) NOT NULL DEFAULT '0' COMMENT '用户id',
`username` varchar(50) NOT NULL COMMENT '用户名',
`task_id` int(6) unsigned NOT NULL DEFAULT '0' COMMENT '任务ID',
`business_id` int(6) NOT NULL DEFAULT '0' COMMENT '商家ID',
`title` varchar(50) NOT NULL COMMENT '任务标题',
`operator_id` int(10) DEFAULT '0' COMMENT '操作人id',
`create_time` int(10) NOT NULL DEFAULT '0' COMMENT '申请时间',
`msg` varchar(255) DEFAULT NULL COMMENT '操作内容',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户任务历史表';
|
<reponame>Zhaojia2019/cubrid-testcases
-- [er] create vclass using Constraints not null and default
create vclass t1 (
c1 int not null DEFAULT 9
);
drop t1;
|
<gh_stars>0
CREATE TABLE [dbo].[AspNetUserLogins]
(
[LoginProvider] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ProviderKey] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UserId] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AspNetUserLogins] ADD CONSTRAINT [PK_dbo.AspNetUserLogins] PRIMARY KEY CLUSTERED ([LoginProvider], [ProviderKey], [UserId]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_UserId] ON [dbo].[AspNetUserLogins] ([UserId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AspNetUserLogins] ADD CONSTRAINT [FK_dbo.AspNetUserLogins_dbo.AspNetUsers_UserId] FOREIGN KEY ([UserId]) REFERENCES [dbo].[AspNetUsers] ([Id]) ON DELETE CASCADE
GO
|
DROP TABLE IF EXISTS users CASCADE;
CREATE TABLE users (
id serial PRIMARY KEY,
email varchar NOT NULL UNIQUE CHECK(TRIM(email) <> ''),
name varchar NOT NULL UNIQUE CHECK (TRIM(name) <> ''),
student_number varchar UNIQUE CHECK (TRIM(student_number) <> ''),
admin boolean NOT NULL DEFAULT false,
mentor boolean NOT NULL DEFAULT false
);
DROP TABLE IF EXISTS meetings;
CREATE TABLE meetings (
id serial PRIMARY KEY,
user_id int NOT NULL,
at DATE NOT NULL DEFAULT current_date,
UNIQUE (user_id, at),
CONSTRAINT fk_user
FOREIGN KEY(user_id)
REFERENCES users(id)
ON DELETE CASCADE
);
CREATE INDEX ON meetings (at);
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 15, 2017 at 09:36 AM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 7.0.15
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: `test`
--
-- --------------------------------------------------------
--
-- Table structure for table `bivse_firme`
--
CREATE TABLE `bivse_firme` (
`id` int(10) UNSIGNED NOT NULL,
`ime_firme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`zaposleni_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `bivse_firme`
--
INSERT INTO `bivse_firme` (`id`, `ime_firme`, `zaposleni_id`) VALUES
(43, NULL, 42),
(101, 'Microsoft', 41),
(102, 'Energodata', 41),
(103, 'Maxi', 43),
(104, 'Idea DOO', 43),
(105, 'Font Inzenjering', 44),
(106, 'Stadion DOO', 45);
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2017_03_14_140015_create_zaposleni_table', 1),
(2, '2017_03_14_140736_create_bivse_firme_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `zaposleni`
--
CREATE TABLE `zaposleni` (
`id` int(10) UNSIGNED NOT NULL,
`ime` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`prezime` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`zanimanje` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `zaposleni`
--
INSERT INTO `zaposleni` (`id`, `ime`, `prezime`, `zanimanje`) VALUES
(41, 'Zora', 'Zoric', 'Programer'),
(42, 'Mitar', 'Mitrovic', 'Programer'),
(43, 'Jovan', 'Jovic', 'Radnik'),
(44, 'Zika', 'Zikic', 'Administrator'),
(45, 'Pera', 'Peric', 'Kuvar');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `bivse_firme`
--
ALTER TABLE `bivse_firme`
ADD PRIMARY KEY (`id`),
ADD KEY `bivse_firme_zaposleni_id_foreign` (`zaposleni_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `zaposleni`
--
ALTER TABLE `zaposleni`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `bivse_firme`
--
ALTER TABLE `bivse_firme`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=107;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `zaposleni`
--
ALTER TABLE `zaposleni`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `bivse_firme`
--
ALTER TABLE `bivse_firme`
ADD CONSTRAINT `bivse_firme_zaposleni_id_foreign` FOREIGN KEY (`zaposleni_id`) REFERENCES `zaposleni` (`id`) ON DELETE CASCADE;
/*!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 */;
|
<reponame>MOSHTAQABDUH/event_system<filename>public/insert.sql
/* INSERT QUERY NO: 1 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
1, 'أ / علي محمد الرويلي', 0555447790
);
/* INSERT QUERY NO: 4 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
2, 'م/ محمد علي السلاطين', 533742222
);
/* INSERT QUERY NO: 5 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
3, 'العميد/ سالم محمد المري', 505933282
);
/* INSERT QUERY NO: 6 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
4, 'ا / نوره العتيبي', 555181727
);
/* INSERT QUERY NO: 7 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
5, 'ا / سعاد الظافر', 502977107
);
/* INSERT QUERY NO: 12 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
6, 'م / محمد عالي الشهري', 597232318
);
/* INSERT QUERY NO: 13 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
7, 'ا /خالد عبدالعزيز الحرفش', 505718300
);
/* INSERT QUERY NO: 14 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
8, 'م/ عبدالله سعيد المالكي', 599249874
);
/* INSERT QUERY NO: 15 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
9, 'ا / رامي عايض آل موسى', 500000763
);
/* INSERT QUERY NO: 16 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
10, 'ا / نوال صالح المالك', 505404977
);
/* INSERT QUERY NO: 20 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
11, 'ا / مشاري الراجح', 530777779
);
/* INSERT QUERY NO: 23 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
12, 'ا / ناصر تركي الشيباني', 563570057
);
/* INSERT QUERY NO: 24 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
13, 'م / سمير حبيب بنتن', 544047722
);
/* INSERT QUERY NO: 28 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
14, 'ا /محمد صالح القرعاوي', 504208963
);
/* INSERT QUERY NO: 29 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
15, 'ا / بندر مغرم الشهري', 509084526
);
/* INSERT QUERY NO: 30 */
/* INSERT QUERY NO: 31 */
/* INSERT QUERY NO: 32 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
16, 'م/ ثامر العتيبي', 549661111
);
/* INSERT QUERY NO: 33 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
17, 'ا / نايف صالح السديس', 555198232
);
/* INSERT QUERY NO: 34 */
/* INSERT QUERY NO: 35 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
18, 'م/ محمد العسيري', 554651000
);
/* INSERT QUERY NO: 36 */
/* INSERT QUERY NO: 37 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
19, 'د/ تركي بقشان', 505658866
);
/* INSERT QUERY NO: 38 */
/* INSERT QUERY NO: 39 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
20, 'عميد ركن .د / أحمد ضيف الله القرني', 555840149
);
/* INSERT QUERY NO: 40 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
21, 'ا / فيصل الخليفي', 554111123
);
/* INSERT QUERY NO: 41 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
22, 'ا / ابراهيم صالح الحسينان', 506987816
);
/* INSERT QUERY NO: 42 */
/* INSERT QUERY NO: 43 */
/* INSERT QUERY NO: 44 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
23, 'م/ هيثم علي الجحني', 504402283
);
/* INSERT QUERY NO: 45 */
/* INSERT QUERY NO: 46 */
/* INSERT QUERY NO: 47 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
24, 'مقدم .د/ رياض محمد الشهري', 595319107
);
/* INSERT QUERY NO: 48 */
/* INSERT QUERY NO: 49 */
/* INSERT QUERY NO: 50 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
25, 'د/ عامر الحسيني', 555050831
);
/* INSERT QUERY NO: 51 */
/* INSERT QUERY NO: 52 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
26, 'العميد الركن / فواز كاسب العنزي', 504266900
);
/* INSERT QUERY NO: 53 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
27, 'م/ عبدالاله عبدالله الطويل', 555405141
);
/* INSERT QUERY NO: 54 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
28, 'ا / عبدالله غازي كتبي', 544615577
);
/* INSERT QUERY NO: 55 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
29, 'م/ عبدالحميد سليمان الحماد', 504422703
);
/* INSERT QUERY NO: 56 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
30, 'ا / انس الفواز', 555005353
);
/* INSERT QUERY NO: 57 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
31, 'م/ فيصل مبارك المبارك', 544542211
);
/* INSERT QUERY NO: 58 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
32, 'ا / مشاعل بن سعيدان', 505221040
);
/* INSERT QUERY NO: 59 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
33, 'ا / فهد ابراهيم الفعيم', 505240484
);
/* INSERT QUERY NO: 60 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
34, 'عقيد.د/علي عبدالله الشهري', 505774808
);
/* INSERT QUERY NO: 61 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
35, 'م/ محمد عبدالله ال عثمان', 505262280
);
/* INSERT QUERY NO: 62 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
36, 'العميد الركن/ احمد الشهري', 505771644
);
/* INSERT QUERY NO: 63 */
/* INSERT QUERY NO: 64 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
37, 'عقيد .م. د/ نايف الحازمي', 554202001
);
/* INSERT QUERY NO: 65 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
38, 'أ / نواف المسرع', 555489791
);
/* INSERT QUERY NO: 66 */
/* INSERT QUERY NO: 67 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
39, 'م/ عبدالرزاق محمد التويجري', 503244923
);
/* INSERT QUERY NO: 68 */
/* INSERT QUERY NO: 69 */
/* INSERT QUERY NO: 70 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
40, 'ا /عبدالعزيز عبدالكريم العريج', 505274793
);
/* INSERT QUERY NO: 71 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
41, 'د/ حميد السلمي', 556709999
);
/* INSERT QUERY NO: 72 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
42, 'العميد الركن / ناصر المطيري', 546555513
);
/* INSERT QUERY NO: 73 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
43, 'د /سعيد عبدالله القرشي', 532516600
);
/* INSERT QUERY NO: 74 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
44, 'م/ فهد العرابي الحارثي', 558000110
);
/* INSERT QUERY NO: 75 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
45, 'د/ يحيى مفرح الزهراني', 508845004
);
/* INSERT QUERY NO: 76 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
46, 'د/ سلطان منير الحارثي', 504144041
);
/* INSERT QUERY NO: 77 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
47, 'د/عبدالرحمن عبدالعزيز البواردي', 505810112
);
/* INSERT QUERY NO: 78 */
/* INSERT QUERY NO: 79 */
/* INSERT QUERY NO: 80 */
/* INSERT QUERY NO: 81 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
48, 'ا / ابراهيم سعد السيف', 504553773
);
/* INSERT QUERY NO: 82 */
/* INSERT QUERY NO: 83 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
49, 'م/ محمد الميموني', 554085025
);
/* INSERT QUERY NO: 84 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
50, 'د/ عادل عبدالله العجاجي', 539191967
);
/* INSERT QUERY NO: 85 */
/* INSERT QUERY NO: 86 */
/* INSERT QUERY NO: 87 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
51, 'ا / المأمون الشنقيطي', 506604179
);
/* INSERT QUERY NO: 88 */
/* INSERT QUERY NO: 89 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
52, 'م/ مشاري فهد الجويرة', 502203644
);
/* INSERT QUERY NO: 90 */
/* INSERT QUERY NO: 91 */
/* INSERT QUERY NO: 92 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
53, 'د/ عبدالله العجلان', 503140401
);
/* INSERT QUERY NO: 93 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
54, 'م/ محمد فيصل بن معمر', 504115101
);
/* INSERT QUERY NO: 94 */
/* INSERT QUERY NO: 95 */
/* INSERT QUERY NO: 96 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
55, 'ا / خالد الدغيثر', 599999969
);
/* INSERT QUERY NO: 97 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
56, 'د/ جاسم شاهين الرميحي', 505873496
);
/* INSERT QUERY NO: 98 */
/* INSERT QUERY NO: 99 */
/* INSERT QUERY NO: 100 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
57, 'م/ عبود الرفيع', 542992892
);
/* INSERT QUERY NO: 101 */
/* INSERT QUERY NO: 102 */
/* INSERT QUERY NO: 103 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
58, 'ا / مشاعل القحطاني', 533992424
);
/* INSERT QUERY NO: 104 */
/* INSERT QUERY NO: 105 */
/* INSERT QUERY NO: 106 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
59, 'د / عبدالعزيز الشقري', 555110885
);
/* INSERT QUERY NO: 107 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
60, 'م/ محمد العمودي', 501232233
);
/* INSERT QUERY NO: 108 */
/* INSERT QUERY NO: 109 */
/* INSERT QUERY NO: 110 */
/* INSERT QUERY NO: 111 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
61, 'ا /حمد الفطيح', 597822244
);
/* INSERT QUERY NO: 112 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
62, 'د/ زامل المانع', 567104108
);
/* INSERT QUERY NO: 113 */
/* INSERT QUERY NO: 114 */
/* INSERT QUERY NO: 115 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
63, 'ا / زياد آل الشيخ', 549922226
);
/* INSERT QUERY NO: 116 */
/* INSERT QUERY NO: 117 */
/* INSERT QUERY NO: 118 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
64, 'ا / خالد عبدالله السويلم', 504458225
);
/* INSERT QUERY NO: 119 */
/* INSERT QUERY NO: 120 */
/* INSERT QUERY NO: 121 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
65, 'ا / حنان راوه', 556672268
);
/* INSERT QUERY NO: 122 */
/* INSERT QUERY NO: 123 */
/* INSERT QUERY NO: 124 */
/* INSERT QUERY NO: 125 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
66, 'م/ تركي باخريبة', 505647920
);
/* INSERT QUERY NO: 126 */
/* INSERT QUERY NO: 127 */
/* INSERT QUERY NO: 128 */
/* INSERT QUERY NO: 129 */
/* INSERT QUERY NO: 130 */
/* INSERT QUERY NO: 131 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
67, 'عقيد / سعيد عايض القحطاني', 506588838
);
/* INSERT QUERY NO: 132 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
68, 'د/ فهد أحمد الفيفي', 581119675
);
/* INSERT QUERY NO: 133 */
/* INSERT QUERY NO: 134 */
/* INSERT QUERY NO: 135 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
69, 'ا / عبدالعزيز سعيد الصيعري', 506599988
);
/* INSERT QUERY NO: 136 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
70, 'ا / الجوهرة السدحان', 559110111
);
/* INSERT QUERY NO: 137 */
/* INSERT QUERY NO: 138 */
/* INSERT QUERY NO: 139 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
71, 'د/ هدى بن سعيدان', 505222900
);
/* INSERT QUERY NO: 140 */
/* INSERT QUERY NO: 141 */
/* INSERT QUERY NO: 142 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
72, 'ا / هديل الصيعري', 594449804
);
/* INSERT QUERY NO: 143 */
/* INSERT QUERY NO: 144 */
/* INSERT QUERY NO: 145 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
73, 'د/ أسامة بن محمد الملا', 505928850
);
/* INSERT QUERY NO: 146 */
/* INSERT QUERY NO: 147 */
/* INSERT QUERY NO: 148 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
74, 'م/ فيصل القرعاوي', 540003410
);
/* INSERT QUERY NO: 149 */
/* INSERT QUERY NO: 150 */
/* INSERT QUERY NO: 151 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
75, 'د/ سليمان صالح العطية', 555138804
);
/* INSERT QUERY NO: 152 */
/* INSERT QUERY NO: 153 */
/* INSERT QUERY NO: 154 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
76, 'ا / محمد سعود الرشيدي', 550044089
);
/* INSERT QUERY NO: 155 */
/* INSERT QUERY NO: 156 */
/* INSERT QUERY NO: 157 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
77, 'ا / تركي سعود الأحمري', 567745365
);
/* INSERT QUERY NO: 158 */
/* INSERT QUERY NO: 159 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
78, 'ا / علي مغرم الشهري', 558511000
);
/* INSERT QUERY NO: 160 */
/* INSERT QUERY NO: 161 */
/* INSERT QUERY NO: 162 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
79, 'د/ عزيز الجعيد', 544025025
);
/* INSERT QUERY NO: 163 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
80, 'م/ سلمان محمد العمري', 580005158
);
/* INSERT QUERY NO: 164 */
/* INSERT QUERY NO: 165 */
/* INSERT QUERY NO: 166 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
81, 'م/ ياسر الفضلي', 555989848
);
/* INSERT QUERY NO: 167 */
/* INSERT QUERY NO: 168 */
/* INSERT QUERY NO: 169 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
82, 'م/ محمد عمر بن زقر', 555685088
);
/* INSERT QUERY NO: 170 */
/* INSERT QUERY NO: 171 */
/* INSERT QUERY NO: 172 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
83, 'د/عزيزة سعد الرويس', 504423728
);
/* INSERT QUERY NO: 173 */
/* INSERT QUERY NO: 174 */
/* INSERT QUERY NO: 175 */
/* INSERT QUERY NO: 176 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
84, 'ا /عبدالمجيد عبدالرحمن الطاسان', 558917815
);
/* INSERT QUERY NO: 177 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
85, 'ا /علي الشهري', 557575658
);
/* INSERT QUERY NO: 178 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
86, 'د/ أيمن المخلفي', 541377441
);
/* INSERT QUERY NO: 179 */
/* INSERT QUERY NO: 180 */
/* INSERT QUERY NO: 181 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
87, 'د/ محمد عبدالله الدريس', 540011282
);
/* INSERT QUERY NO: 182 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
88, 'أ / عبدالرحمن الهتلان ', 506757989
);
/* INSERT QUERY NO: 183 */
/* INSERT QUERY NO: 184 */
/* INSERT QUERY NO: 185 */
/* INSERT QUERY NO: 186 */
/* INSERT QUERY NO: 187 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
89, 'العقيد/ عبدالله فريح العلي', 505388042
);
/* INSERT QUERY NO: 188 */
/* INSERT QUERY NO: 189 */
/* INSERT QUERY NO: 190 */
/* INSERT QUERY NO: 191 */
/* INSERT QUERY NO: 192 */
/* INSERT QUERY NO: 193 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
90, 'أ / محمد عبدالعزيز النشمي', 505450730
);
/* INSERT QUERY NO: 194 */
/* INSERT QUERY NO: 195 */
/* INSERT QUERY NO: 196 */
/* INSERT QUERY NO: 197 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
91, 'د/ هادي الخالدي', 506506598
);
/* INSERT QUERY NO: 198 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
92, 'أ / هيفاء آل حموض', 555025692
);
/* INSERT QUERY NO: 199 */
/* INSERT QUERY NO: 200 */
/* INSERT QUERY NO: 201 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
93, 'م/ هاني عبدالله المحمد', 554454488
);
/* INSERT QUERY NO: 202 */
/* INSERT QUERY NO: 203 */
/* INSERT QUERY NO: 204 */
/* INSERT QUERY NO: 205 */
/* INSERT QUERY NO: 206 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
94, 'أ / نواف إبراهيم الرفدي', 550036777
);
/* INSERT QUERY NO: 207 */
/* INSERT QUERY NO: 208 */
/* INSERT QUERY NO: 209 */
/* INSERT QUERY NO: 210 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
95, 'أ / محمد العكاسي', 505880065
);
/* INSERT QUERY NO: 211 */
/* INSERT QUERY NO: 212 */
/* INSERT QUERY NO: 213 */
/* INSERT QUERY NO: 214 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
96, 'د/ سعيد حمود الزهراني', 505234554
);
/* INSERT QUERY NO: 215 */
/* INSERT QUERY NO: 216 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
97, 'د/عبدالرحمن إبراهيم الخضير', 0506425995
);
/* INSERT QUERY NO: 217 */
/* INSERT QUERY NO: 218 */
/* INSERT QUERY NO: 219 */
/* INSERT QUERY NO: 220 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
98, 'أ / عامر المصلوخي', 536200018
);
/* INSERT QUERY NO: 221 */
/* INSERT QUERY NO: 222 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
99, 'د/ عسيري أحمد الأحوس', 505772217
);
/* INSERT QUERY NO: 223 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
100, 'أ / تركي الأسمري ', 565111747
);
/* INSERT QUERY NO: 224 */
/* INSERT QUERY NO: 225 */
/* INSERT QUERY NO: 226 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
101, 'أ / سلطان يوسف الشمري', 544455444
);
/* INSERT QUERY NO: 227 */
/* INSERT QUERY NO: 228 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
102, 'د/عبدالعزيز سلطان الملحم', 550910001
);
/* INSERT QUERY NO: 229 */
/* INSERT QUERY NO: 230 */
/* INSERT QUERY NO: 231 */
/* INSERT QUERY NO: 232 */
/* INSERT QUERY NO: 233 */
/* INSERT QUERY NO: 234 */
/* INSERT QUERY NO: 235 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
103, 'د/محمد حميد الثقفي', 558299229
);
/* INSERT QUERY NO: 236 */
/* INSERT QUERY NO: 237 */
/* INSERT QUERY NO: 238 */
/* INSERT QUERY NO: 239 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
104, 'د/متعب إبراهيم الرويتع', 505481451
);
/* INSERT QUERY NO: 240 */
/* INSERT QUERY NO: 241 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
105, 'أ / الجوهره الحربي', 591503993
);
/* INSERT QUERY NO: 242 */
/* INSERT QUERY NO: 243 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
106, 'د/ مها إبراهيم الخلف', 500519369
);
/* INSERT QUERY NO: 244 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
107, 'م/ وليد سعد آل زيدان', 555501440
);
/* INSERT QUERY NO: 245 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
108, 'م/ ناصر عبدالله العريفي', 554230063
);
/* INSERT QUERY NO: 246 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
109, 'م/ أحمد حميد الثقفي', 541926433
);
/* INSERT QUERY NO: 247 */
/* INSERT QUERY NO: 248 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
110, 'م/ مجول سريان الدهمشي', 550935550
);
/* INSERT QUERY NO: 249 */
/* INSERT QUERY NO: 250 */
/* INSERT QUERY NO: 251 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
111, 'أ / نجلاء المحبشي', 567888727
);
/* INSERT QUERY NO: 252 */
/* INSERT QUERY NO: 253 */
/* INSERT QUERY NO: 254 */
/* INSERT QUERY NO: 255 */
/* INSERT QUERY NO: 256 */
/* INSERT QUERY NO: 257 */
/* INSERT QUERY NO: 258 */
/* INSERT QUERY NO: 259 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
112, 'أ / محمد عبدالله الزنان', 560366683
);
/* INSERT QUERY NO: 260 */
/* INSERT QUERY NO: 261 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
113, 'د/ فايع محمد آل عطية', 0554785752
);
/* INSERT QUERY NO: 262 */
/* INSERT QUERY NO: 263 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
114, 'أ / بدر المطيري', 505949614
);
/* INSERT QUERY NO: 264 */
/* INSERT QUERY NO: 265 */
/* INSERT QUERY NO: 266 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
115, 'د/ سامي سليمان الصالح', 558686512
);
/* INSERT QUERY NO: 267 */
/* INSERT QUERY NO: 268 */
/* INSERT QUERY NO: 269 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
116, 'د/ فيصل محمد الشرعبي', 505248701
);
/* INSERT QUERY NO: 270 */
/* INSERT QUERY NO: 271 */
/* INSERT QUERY NO: 272 */
/* INSERT QUERY NO: 273 */
/* INSERT QUERY NO: 274 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
117, 'أ / سلطان بداح الحربي', 505546777
);
/* INSERT QUERY NO: 275 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
118, 'أ / أنور أحمد حلمي', 544525252
);
/* INSERT QUERY NO: 276 */
/* INSERT QUERY NO: 277 */
/* INSERT QUERY NO: 278 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
119, 'أ / فاطمة العثمان', 558541010
);
/* INSERT QUERY NO: 279 */
/* INSERT QUERY NO: 280 */
/* INSERT QUERY NO: 281 */
/* INSERT QUERY NO: 282 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
120, 'أ / خالد فيصل الغامدي', 555564606
);
/* INSERT QUERY NO: 283 */
/* INSERT QUERY NO: 284 */
/* INSERT QUERY NO: 285 */
/* INSERT QUERY NO: 286 */
/* INSERT QUERY NO: 287 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
121, 'م/ تركي حسن اليامي', 500011122
);
/* INSERT QUERY NO: 288 */
/* INSERT QUERY NO: 289 */
/* INSERT QUERY NO: 290 */
/* INSERT QUERY NO: 291 */
/* INSERT QUERY NO: 292 */
INSERT INTO `users`(`id`, `first_name`, `phone`)
VALUES
(
122, 'د/ عجلان محمد الشهري', 555255680
);
|
<reponame>coingraham/codefights
/*
You've been promoted and assigned to a new project. The problem is, you don't know who you are working with and your predecessor has vanished without a trace! Luckily, each project in your company keeps its own activity database, which you are going to use to find out the names of your new colleagues.
Information about the project's activity is stored in table projectLog, which has the following structure:
id: unique action id;
name: the name of the person who performed the action;
description: the description of the action;
timestamp: the timestamp of the action.
You only have access to the project's most recent history, but this should be enough for you. You've decided that finding everyone who interacted with the project in this period is the best way to start.
Given the table projectLog, build a new results table with a single name column that contains the names of the project's contributors sorted in ascending order.
*/
/*Please add ; after each select statement*/
CREATE PROCEDURE projectsTeam()
BEGIN
SELECT DISTINCT name
FROM projectLog
ORDER BY name;
END
|
CREATE TABLE "users" (
"username" varchar(50) PRIMARY KEY,
"email" varchar(50) UNIQUE NOT NULL,
"password" varchar(100) NOT NULL,
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL,
"deleted_at" timestamp NOT NULL
);
CREATE TABLE "role" (
"name" varchar(50) PRIMARY KEY,
"description" varchar(100) NOT NULL,
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL,
"deleted_at" timestamp NOT NULL
);
CREATE TABLE "team" (
"id" varchar(50) PRIMARY KEY,
"name" varchar(50) NOT NULL,
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL,
"deleted_at" timestamp NOT NULL
);
CREATE TABLE "todo" (
"id" varchar(50) PRIMARY KEY,
"name" varchar(50) NOT NULL,
"description" varchar(100) NOT NULL,
"start_time" timestamp NOT NULL,
"end_time" timestamp NOT NULL,
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL,
"deleted_at" timestamp NOT NULL
);
CREATE TABLE "team_members" (
"id" varchar(50) PRIMARY KEY,
"team_id" varchar(50) NOT NULL,
"user_id" varchar(50) NOT NULL,
"role" varchar(50) NOT NULL,
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL,
"deleted_at" timestamp NOT NULL
);
CREATE TABLE "todo_actor" (
"id" varchar(50) PRIMARY KEY,
"todo_id" varchar(50) NOT NULL,
"user_id" varchar(50) NOT NULL,
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL,
"deleted_at" timestamp NOT NULL
);
ALTER TABLE "team_members" ADD FOREIGN KEY ("team_id") REFERENCES "team" ("id");
ALTER TABLE "team_members" ADD FOREIGN KEY ("user_id") REFERENCES "users" ("username");
ALTER TABLE "team_members" ADD FOREIGN KEY ("role") REFERENCES "role" ("name");
ALTER TABLE "todo_actor" ADD FOREIGN KEY ("todo_id") REFERENCES "todo" ("id");
ALTER TABLE "todo_actor" ADD FOREIGN KEY ("user_id") REFERENCES "users" ("username");
CREATE UNIQUE INDEX ON "users" ("email");
CREATE INDEX ON "team" ("name");
CREATE INDEX ON "todo" ("name");
CREATE UNIQUE INDEX ON "team_members" ("team_id", "user_id");
CREATE UNIQUE INDEX ON "todo_actor" ("todo_id", "user_id");
|
<reponame>Dontmovedad/dbProjRepo<filename>create_db.sql
Drop table if exists Champ_Type,
Item_Type,
Item,
Pos,
recom,
Champion,
Champ_Pos,
Area,
Country,
Team,
Pro_Player,
PlayerGoodAt CASCADE;
create table Champ_Type (Champ_Type_ID SERIAL, Champ_Type_Name varchar(50) not null, primary key (Champ_Type_ID));
create table Item_Type (Item_Type_ID SERIAL, Item_Type_Name varchar(50) not null, primary key (Item_Type_ID));
create table Item (Item_ID SERIAL, Item_Name varchar(50) not null unique, Item_Effect varchar(500), Item_Type_ID int not null, primary key (Item_ID),
foreign key (Item_Type_ID) references Item_Type(Item_Type_ID));
create table Pos (Pos_ID SERIAL, Pos_Name varchar(10) not null, primary key (Pos_ID));
create table Champion (Champ_ID SERIAL, Champ_Type_ID int not null, Champ_Name varchar(50) not null unique, Base_HP float not null, Base_Mana float, Base_Attack float not null, Base_AtkSpeed float not null, Base_Armor float not null, Base_Magic_Resist float not null, Base_MoveSpeed float not null, PRIMARY KEY (Champ_ID),
foreign key(Champ_Type_ID) references Champ_Type(Champ_Type_ID));
create table Champ_Pos (Champ_ID int not null, Pos_ID int not null,
foreign key(Champ_ID) references Champion(Champ_ID),
foreign key(Pos_ID) references Pos(Pos_ID));
create table recom (Recom_ID SERIAL, item_name varchar(50) not null, champ_name varchar(50) not null, reason varchar(100) not null,
foreign key(item_name) references Item(item_name),
foreign key(champ_name) references Champion(champ_name));
create table Area (Area_ID SERIAL, Area_Name varchar(10), primary key(Area_ID));
create table Country (Country_ID SERIAL, Area_ID int not null, Country_Name varchar(50) not null, primary key(Country_ID),
foreign key(Area_ID) references Area(Area_ID));
create table Team (Team_ID SERIAL, Area_ID int not null, Team_Name varchar(50), primary key(Team_ID),
foreign key (Area_ID) references Area(Area_ID));
create table Pro_Player (Player_ID SERIAL, Team_ID int not null, Main_Pos int not null, Player_Name varchar(50) not null, Game_ID varchar(50) not null, primary key (Player_ID),
foreign key (Main_Pos) references Pos(Pos_ID),
foreign key (Team_ID) references Team(Team_ID));
create table PlayerGoodAt (Player_ID int not null, Champ_ID int not null,
foreign key(Player_ID) references Pro_Player(Player_ID),
foreign key(Champ_Id) references Champion(Champ_ID));
|
<reponame>bigokro/gruff-server
-- Requires there to be a user with id 1
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','This is a debate about the legacy of the recently-deceased Fidel Castro. Should he be praised or demonized for what he did in his 50 years as dictator of Cuba?','Fidel Castro deserves to be praised for his legacy');
-- Root Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','It has been widely claimed that Fidel Castro implemented policies in Cuba that dramatically improved education and healthcare for Cuban citizens. Is this true?','Fidel Castro promoted healthcare and education in Cuba for all its citizens');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, 'Fidel Castro deserves praise for the improvements he made to healthcare and education in Cuba.', 'He promoted healthcare and education in Cuba for all' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'Fidel Castro promoted healthcare and education in Cuba for all its citizens' WHERE d1.title = 'Fidel Castro deserves to be praised for his legacy';
-- Edu and Healthcare Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','The Fidel Castro regime produced tens of thousands of doctors and teachers and achieved some of the lowest infant mortality and illiteracy rates in the Western hemisphere.');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He produced tens of thousands of doctors and teachers and achieved some of the lowest infant mortality and illiteracy rates in the Western hemisphere.' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'The Fidel Castro regime produced tens of thousands of doctors and teachers and achieved some of the lowest infant mortality and illiteracy rates in the Western hemisphere.' WHERE d1.title = 'Fidel Castro promoted healthcare and education in Cuba for all its citizens';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, 'An article which discusses his achievements in the area of healthcare', 'Cuba Leader Fidel Castro Dead at 90', 'http://www.aljazeera.com/news/americas/2016/11/cuba-leader-fidel-castro-dead-90-161126053354637.html', d.id FROM claims d WHERE title = 'The Fidel Castro regime produced tens of thousands of doctors and teachers and achieved some of the lowest infant mortality and illiteracy rates in the Western hemisphere.';
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','In 1961, two years after Castro''s revolution won power, the new Cuban government launched an ambitious campaign to stamp out illiteracy. Some 250,000 volunteer teachers, many of them young women, fanned out across the country, especially in rural areas where access to education was spotty and the need was greatest. In the space of a year, about 700,000 people learned to read and write, said "Maestra," a documentary that explores the initiative''s history. Today, Cuba reports a literacy rate of 99.8 percent, on par with the most developed nations in the world.','Fidel Castro''s policy was responsible for raising the literacy rate in Cuba to 99.8 percent.');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He raised the literacy rate in Cuba to 99.8%' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'Fidel Castro''s policy was responsible for raising the literacy rate in Cuba to 99.8 percent.' WHERE d1.title = '<NAME> promoted healthcare and education in Cuba for all its citizens';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, 'An article from Fox News discussing the many impacts Fidel Castro had on life in Cuba', 'From Milk to Lightbulbs Fidel Castro Reshaped Life in Cuba', 'http://www.foxnews.com/world/2016/11/28/from-milk-to-lightbulbs-fidel-castro-reshaped-life-in-cuba.html', d.id FROM claims d WHERE title = 'The Fidel Castro regime produced tens of thousands of doctors and teachers and achieved some of the lowest infant mortality and illiteracy rates in the Western hemisphere.';
-- Back to Root Pro-truth
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','Fidel Castro was instrumental in ending Apartheid in South Africa');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He was instrumental in ending Apartheid in South Africa' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> was instrumental in ending Apartheid in South Africa' WHERE d1.title = '<NAME> deserves to be praised for his legacy';
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','During the reign of Fidel Castro, Cuba was instrumental in the liberation of many African nations');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'During his reign, Cuba was instrumental in the liberation of many African nations' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'During the reign of Fidel Castro, Cuba was instrumental in the liberation of many African nations' WHERE d1.title = 'Fidel Castro deserves to be praised for his legacy';
-- Liberation of African Nations Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','Under instruction from Fidel Castro, Cuba played an important role in support of liberation struggles in Angola and Mozambique');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'Cuba was instrumental in liberating Angola and Mozambique' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'Under instruction from Fidel Castro, Cuba played an important role in support of liberation struggles in Angola and Mozambique' WHERE d1.title = 'During the reign of Fidel Castro, Cuba was instrumental in the liberation of many African nations';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'A Look at Fidel Castro''s Legacy from a Fair Perspective', 'https://www.theguardian.com/world/2016/nov/29/look-at-fidel-castro-legacy-from-a-fair-perspective', d.id FROM claims d WHERE title = 'Under instruction from Fidel Castro, Cuba played an important role in support of liberation struggles in Angola and Mozambique';
-- Liberation of African Nations Con-impact arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','I''ve not seen comment on Cuba’s support for Mengistu Haile Mariam when Ethiopia was invaded by the Somali forces of Siad Barre. What is the judgment? Mengistu eventually ousted (to sanctuary in Zimbabwe), Siad forced out and dead; Somalia in a very sorry state and Ethiopia again in some turmoil after a period of relative contentment.','During the reign of <NAME>, Cuba''s attempts at helping Ethiopia ended in disaster');
INSERT INTO "arguments" ("created_by_id", "target_argument_id","claim_id","type","strength","description","title") SELECT 1, a1.id, d2.id, 6, 0.75, '', 'Cuba''s attempts at helping Ethiopia ended in disaster' FROM arguments a1 LEFT JOIN claims d2 ON d2.title = 'During the reign of <NAME>, Cuba''s attempts at helping Ethiopia ended in disaster' WHERE a1.title = 'During his reign, Cuba was instrumental in the liberation of many African nations';
-- Back to Root Pro-truth
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','<NAME> was loved by the Cuban people');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He was loved by the Cuban people' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> was loved by the Cuban people' WHERE d1.title = '<NAME> deserves to be praised for his legacy';
-- Loved by Cubans Pro-truth
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','Castro walked the streets of Havana safely despite over 500 attempts on his life by the CIA. He is revered by his people – even the BBC in a report on Sunday acknowledged that the young people in Cuba think favourably of him.','<NAME> felt safe to walk the streets in Cuba even after 500 attempts of assassination by the CIA');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He felt safe to to walk the streets in Cuba even after multiple attempts on his life by the CIA' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> felt safe to walk the streets in Cuba even after 500 attempts of assassination by the CIA' WHERE d1.title = '<NAME> was loved by the Cuban people';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'A Look at Fidel Castro''s Legacy from a Fair Perspective', 'https://www.theguardian.com/world/2016/nov/29/look-at-fidel-castro-legacy-from-a-fair-perspective', d.id FROM claims d WHERE title = '<NAME> felt safe to walk the streets in Cuba even after 500 attempts of assassination by the CIA';
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','His "struggle for good and equality for all" makes him "one of the great ones. Fidel is like a myth. He''s like Che," said Del Toro, referring to the late Argentinean revolutionary Ernesto "Che" Guevara.','<NAME> is as revered by the Cuban people as Che Guevara');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He felt safe to to walk the streets in Cuba even after multiple attempts on his life by the CIA' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> is as revered by the Cuban people as Che Guevara' WHERE d1.title = '<NAME> was loved by the Cuban people';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'Cuba Leader Fidel Castro Dead at 90', 'http://www.aljazeera.com/news/americas/2016/11/cuba-leader-fidel-castro-dead-90-161126053354637.html', d.id FROM claims d WHERE title = '<NAME> is as revered by the Cuban people as Che Guevara';
-- Back to Root Pro-truth
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','<NAME> created a more egalitarian society in Cuba');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He created a more egalitarian society in Cuba' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> created a more egalitarian society in Cuba' WHERE d1.title = '<NAME> deserves to be praised for his legacy';
-- Egalitarian Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','The Batista regime in Cuba served only Batist''s own interests and those of the wealthy');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'His regime replaced the Batista regime, a dictator that served his own interests and those of the wealthy' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'The Batista regime in Cuba served only Batist''s own interests and those of the wealthy' WHERE d1.title = '<NAME> created a more egalitarian society in Cuba';
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','<NAME> implemented agrarian reform in Cuba that resulted in more economic equality');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He implemented agrarian reform in Cuba that resulted in more economic equality' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> implemented agrarian reform in Cuba that resulted in more economic equality' WHERE d1.title = '<NAME> created a more egalitarian society in Cuba';
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','<NAME> ended homelessness in Cuba');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He ended homelessness in Cuba' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> ended homelessness in Cuba' WHERE d1.title = '<NAME> created a more egalitarian society in Cuba';
-- Ended homelessness Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','you don''t see anyone living on the street. Everyone has a house');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'you don''t see anyone living on the street. Everyone has a house' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'you don''t see anyone living on the street. Everyone has a house' WHERE d1.title = 'Fidel Castro ended homelessness in Cuba';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'Cuba Leader Fidel Castro Dead at 90', 'http://www.aljazeera.com/news/americas/2016/11/cuba-leader-fidel-castro-dead-90-161126053354637.html', d.id FROM claims d WHERE title = 'you don''t see anyone living on the street. Everyone has a house';
-- Back to Egalitarian Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','In spite of hardships, the population is content due to the egalitarian nature of society in Cuba');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'In spite of hardships, the population is content due to the egalitarian nature of society' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'In spite of hardships, the population is content due to the egalitarian nature of society in Cuba' WHERE d1.title = '<NAME> created a more egalitarian society in Cuba';
-- Contented with society Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','"Our visit this month confirmed our belief that in Cuba, despite the hardships that the people have to endure, the majority of the population are cheerful, friendly and content with the egalitarian system that Castro introduced."','The Guardian reports that the population is generally content with the egalitarian nature of Cuba');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'According to The Guardian, the population of Cuba is content' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'The Guardian reports that the population is generally content with the egalitarian nature of Cuba' WHERE d1.title = 'In spite of hardships, the population is content due to the egalitarian nature of society in Cuba';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'Cuba Leader Fidel Castro Dead at 90', 'http://www.aljazeera.com/news/americas/2016/11/cuba-leader-fidel-castro-dead-90-161126053354637.html', d.id FROM claims d WHERE title = 'The Guardian reports that the population is generally content with the egalitarian nature of Cuba';
-- Egalitarian Con-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','"It became clear very quickly after the revolution that while all Cubans were equal, some were more equal than others. And that is why, while ordinary Cubans scrape for crumbs, the privileged communists in Castro’s nomenklatura live like millionaires."','Even in Fidel Castro''s Cuba, not all people are treated equally');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 2, 0.75, '', 'Even in Cuba, the government plays with favoritism' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'Even in Fidel Castro''s Cuba, not all people are treated equally' WHERE d1.title = 'Fidel Castro created a more egalitarian society in Cuba';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'Monster Fidel Castro Leaves Blood of Innocents in his Wake', 'http://www.breitbart.com/national-security/2016/11/27/glazov-monster-fidel-castro-leaves-blood-innocents-wake/', d.id FROM claims d WHERE title = 'Even in Fidel Castro''s Cuba, not all people are treated equally';
-- Back to Root Pro-truth
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','Fidel Castro serves as inspiration to all nations that feel a need to stand up to bullying nations like the United States');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He serves as inspiration to all nations that feel a need to stand up to bullying nations like the United States' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> serves as inspiration to all nations that feel a need to stand up to bullying nations like the United States' WHERE d1.title = 'Fidel Castro deserves to be praised for his legacy';
-- Inspiration Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','He had the ability to face - together with his people - the most powerful enemy on earth. And I think [his] ideas will live on forever.','<NAME> had the ability to face - together with his people - the most powerful enemy on earth.');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He had the ability to face - together with his people - the most powerful enemy on earth.' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> had the ability to face - together with his people - the most powerful enemy on earth.' WHERE d1.title = '<NAME> serves as inspiration to all nations that feel a need to stand up to bullying nations like the United States';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'Cuba Leader Fidel Castro Dead at 90', 'http://www.aljazeera.com/news/americas/2016/11/cuba-leader-fidel-castro-dead-90-161126053354637.html', d.id FROM claims d WHERE title = '<NAME> had the ability to face - together with his people - the most powerful enemy on earth.';
-- Back to Root Pro-truth
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','<NAME> sent Cuban doctors to third world countries to help improve health conditions');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He sent Cuban doctors to third world countries to help improve health conditions' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> sent Cuban doctors to third world countries to help improve health conditions' WHERE d1.title = '<NAME> deserves to be praised for his legacy';
-- Inspiration Pro-truth arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','"...sending Cuba''s doctors to heal the Third World''s sick"','A Fox News article mentions that <NAME> sent Cuban doctors to other countries to help with their health system');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'He did, according to at least on Fox News article' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'A Fox News article mentions that <NAME> sent Cuban doctors to other countries to help with their health system' WHERE d1.title = '<NAME> sent Cuban doctors to third world countries to help improve health conditions';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, 'An article from Fox News discussing the many impacts Fidel Castro had on life in Cuba', 'From Milk to Lightbulbs Fidel Castro Reshaped Life in Cuba', 'http://www.foxnews.com/world/2016/11/28/from-milk-to-lightbulbs-fidel-castro-reshaped-life-in-cuba.html', d.id FROM claims d WHERE title = 'A Fox News article mentions that <NAME> sent Cuban doctors to other countries to help with their health system';
-- Root Con-truth Arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','<NAME>astro executed thousands of people for being political dissidents');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 2, 0.75, '', 'He executed thousands of people for being political dissidents' FROM claims d1 LEFT JOIN claims d2 ON d2.title = '<NAME> executed thousands of people for being political dissidents' WHERE d1.title = '<NAME> deserves to be praised for his legacy';
-- Execution Pro-truth Arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','','The Victims of Communism Memorial Foundation estimates 73,000 were killed since Fidel Castro came to power in 1959, until the time of his death');
INSERT INTO "arguments" ("created_by_id", "target_claim_id","claim_id","type","strength","description","title") SELECT 1, d1.id, d2.id, 1, 0.75, '', 'The Victims of Communism Memorial Foundation estimates 73,000 were killed since Castro came to power in 1959' FROM claims d1 LEFT JOIN claims d2 ON d2.title = 'The Victims of Communism Memorial Foundation estimates 73,000 were killed since <NAME> came to power in 1959, until the time of his death' WHERE d1.title = '<NAME> executed thousands of people for being political dissidents';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'Fidel Castro''s Legacy of Murder and Repression Whitewashed by the Left', 'http://www.theaustralian.com.au/opinion/columnists/janet-albrechtsen/fidel-castros-legacy-of-murder-and-repression-whitewashed-by-the-left/news-story/8e12657fc5a8fa70fdae9e5ba6f5daff', d.id FROM claims d WHERE title = 'The Victims of Communism Memorial Foundation estimates 73,000 were killed since Fidel Castro came to power in 1959, until the time of his death';
-- Execution Con-strength Arguments
INSERT INTO "claims" ("created_by_id","truth","description","title") VALUES ('1','0.5','While Castro may be rightly criticised for executing Batista supporters, even those guilty of torture and multiple murder, it may be salutary to remember that back then, in 1959, Britain executed people accused of a single murder. It was also a time when British forces were imprisoning and torturing Kenyans, and those of the French multiparty democracy were torturing and killing Algerians. Even those crimes pale before the horrors the US multiparty democracy was shortly to unleash on Vietnam.','The executions following Fidel Castro''s rise to power were necessary, and were minor in comparison to other atrocities committed by nations at that time.');
INSERT INTO "arguments" ("created_by_id", "target_argument_id","claim_id","type","strength","description","title") SELECT 1, a1.id, d2.id, 4, 0.75, '', 'The executions were minor in comparison to what was happening in the world at the time' FROM arguments a1 LEFT JOIN claims d2 ON d2.title = 'The executions following Fidel Castro''s rise to power were necessary, and were minor in comparison to other atrocities committed by nations at that time.' WHERE a1.title = 'He executed thousands of people for being political dissidents';
INSERT INTO "links" ("created_by_id", "description", "title", "url", "claim_id") SELECT 1, '', 'A Look at Fidel Castro''s Legacy from a Fair Perspective', 'https://www.theguardian.com/world/2016/nov/29/look-at-fidel-castro-legacy-from-a-fair-perspective', d.id FROM claims d WHERE title = 'The executions following Fidel Castro''s rise to power were necessary, and were minor in comparison to other atrocities committed by nations at that time.';
|
CREATE PROC [dbo].[h3giSmsRecipientRemoval]
@phoneNumber AS NVARCHAR(50)
AS
BEGIN
UPDATE h3giSMSPhoneNumbers
SET valid ='N'
WHERE phoneNumber = @phoneNumber
END
GRANT EXECUTE ON h3giSmsRecipientRemoval TO b4nuser
GO
|
-- Find the country that start with Y
SELECT name FROM world
WHERE name LIKE 'Y%'
-- Find the countries that end with y
SELECT name FROM world
WHERE name LIKE '%y'
-- Find the countries that contain the letter x
SELECT name FROM world
WHERE name LIKE '%x%'
-- Find the countries that end with land
SELECT name FROM world
WHERE name LIKE '%land'
-- Find the countries that start with C and end with ia
SELECT name FROM world
WHERE name LIKE 'C%ia'
-- Find the country that has oo in the name
SELECT name FROM world
WHERE name LIKE '%oo%'
-- Find the countries that have three or more a in the name
SELECT name FROM world
WHERE name LIKE '%a%a%a%'
-- Find the countries that have "t" as the second character.
SELECT name FROM world
WHERE name LIKE '_t%'
ORDER BY name
-- Find the countries that have two "o" characters separated by two others.
SELECT name FROM world
WHERE name LIKE '%o__o%'
-- Find the countries that have exactly four characters.
SELECT name FROM world
WHERE name LIKE '____'
-- Find the country where the name is the capital city.
SELECT name
FROM world
WHERE name LIKE capital
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.