sql
stringlengths 6
1.05M
|
|---|
create table code_annotation
(
`id` varchar(36) primary key,
`targetType` varchar(255) not null,
`targetId` varchar(36) not null,
`name` varchar(255) not null
)
collate = utf8mb4_unicode_ci;
create table code_annotation_value
(
`id` varchar(36) primary key,
`annotationId` varchar(36) not null,
`key` varchar(255) not null,
`value` varchar(255) not null,
constraint JAnnotationValue_ibfk_1
foreign key (annotationId) references code_annotation (id)
on delete cascade
)
collate = utf8mb4_unicode_ci;
|
<filename>CSETWebApi/CSETWeb_Api/Database/dbo.UNIVERSAL_SUB_CATEGORIES.Table.sql<gh_stars>100-1000
USE [CSETWeb]
GO
/****** Object: Table [dbo].[UNIVERSAL_SUB_CATEGORIES] Script Date: 11/14/2018 3:57:21 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[UNIVERSAL_SUB_CATEGORIES](
[Universal_Sub_Category] [varchar](100) NOT NULL,
[Universal_Sub_Category_Id] [int] IDENTITY(1,1) NOT NULL,
CONSTRAINT [PK_UNIVERSAL_SUB_CATEGORIES] PRIMARY KEY CLUSTERED
(
[Universal_Sub_Category] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ON
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Agreements', 1)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access and Roles', 4214)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access and Roles Policies and Procedures', 4215)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Authorizations', 3)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control', 4)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control Decisions', 693)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control Equipment', 4154)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control For Mobile Devices', 3763)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control For Output Devices', 721)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control for Portable and Mobile Devices', 1560)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control For Transmission Medium', 3995)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control Personnel', 4153)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control Policy', 423)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control Policy And Procedures', 3760)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Control Safety-Critical Equipment', 4163)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Enforcement', 5)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Management', 1681)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Restrictions', 6)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Restrictions For Change', 3783)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access Restrictions for Configuration Change', 1562)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access to Databases with Cardholder Data', 4217)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Access to Network Resources and Cardholder Data Policies and Procedures', 4222)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Account Management', 7)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Account Monitoring and Control', 1940)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Account Review', 9)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Accountability, Audit, and Risk Management', 4013)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Accounting of Disclosures', 1166)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Acquisition Process', 3827)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Acquisitions', 10)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Actions w/o ID/Auth', 12)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Active Directory', 1682)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Active Malware Protection', 4160)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Adaptive Identification And Authentication', 4021)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Administrative Safeguards', 1945)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Allocation Of Resources', 3825)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternate Audit Capability', 4014)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternate Communications Protocols', 4016)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternate Processing Site', 3990)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternate Storage Site', 3989)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternate Storate Site', 424)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternate Work Site', 18)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternative Command and Control Methods', 425)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternative Control Center', 426)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternative Security Mechanisms', 4018)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Alternative Work Site', 756)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Analysis', 1618)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Annual Review, Reassessment, and Update of Control Systems Cyber Security Procedures', 1599)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Anti-Virus', 4212)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Anti-Virus Policies and Procedures', 4213)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Application Partitioning', 20)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Application Software Security', 1942)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Architecture And Provisioning For Name / Address Resolution Service', 3836)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'ARP Poisoning', 427)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Asset Management', 1612)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Asset Monitoring And Tracking', 4026)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Assign Cybersecurity Responsibilities', 1760)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Attack Vectors', 24)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit and Accountability', 26)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit And Accountability Policy And Procedures', 3771)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Events', 3772)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Failure Response', 27)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Generation', 28)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Logs and Security Events', 4220)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Monitor/Analysis', 30)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Monitoring/Analysis', 1691)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Protection General', 428)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Record Retention', 3777)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Reduction And Report Generation', 3988)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Review, Analysis, And Reporting', 3776)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Storage Capacity', 3774)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Trail History', 4221)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Trail Records', 4219)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Audit Trails', 4218)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Auditable Events', 1769)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Auditable Events List', 38)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Auditing Roles Responsible For Provenance', 1802)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Auditing Utilities', 39)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Auditor Qualifications', 429)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authentication Data Storage', 4211)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authentication Implementation', 43)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authentication Mechanisms', 4216)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authenticator Feedback', 3792)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authenticator Management', 44)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authoritative DNS and Name/Address Resolution', 430)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authority and Purpose', 4012)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authority to Collect', 1157)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Authorization Process', 431)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Awareness and Training', 1615)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Awareness and Training Policy and Procedures', 1768)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Awareness Training', 49)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Baseline Configuration', 52)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Baseline Practices', 53)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Boundary Defense', 1936)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Boundary Protection', 56)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Business Environment', 1613)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Business Process Definition', 432)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cabling', 59)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Card Data Storage', 4225)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Card Data Storage', 4285)
GO
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cardholder Data Policies and Procedures', 4226)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cardholder Data Storage', 4224)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'CDA Accounts', 1567)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'CDA Policy & Procedures', 433)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'CDA, System and Communications Protection', 1552)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Central Management', 4028)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Certification & Accreditation', 434)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Change Control', 61)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Change Control Policies and Procedures', 1545)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Change-Detection Mechanisms', 4228)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Collaboration', 69)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Collaborative Computing', 70)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Collaborative Computing Devices', 1786)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Communicate Authentication Policies and Procedures', 4227)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Communication Confidentiality', 435)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Communication Integrity', 1778)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Communication Protection', 73)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Communications', 1617)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Complaint Management', 1183)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Component Authenticity', 733)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Component Inventory', 75)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Concealment and Misdirection', 737)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Concurrent Session Control', 3765)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Confidentiality at Rest', 436)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Config Change Control', 78)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Configuration Assets', 755)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Configuration Change Control', 1574)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Configuration Change Management', 1628)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Configuration Management', 758)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Configuration Management Audit Trail', 4155)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Configuration Management Plan', 438)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Configuration Management Policy And Procedures', 3781)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Configuration Settings', 80)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Connecting Security Zones of Different Security Levels', 4149)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Consent', 1179)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Console Communication Encryption', 4223)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Contacts', 82)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Contacts with Security Groups and Associations', 726)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Content Of Audit Records', 3773)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Contingency Plan', 83)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Contingency Plan Testing', 84)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Contingency Planning Policy and Procedures', 1557)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Contingency Training', 86)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Continuity of Operations Plan', 439)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Continuity of Operations Plan Testing', 440)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Continuity of Operations Plan Update', 441)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Continuity of Operations Policy and Procedures', 1564)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Continuity of Operations Training', 1565)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Continuous Monitor', 88)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Continuous Monitoring', 89)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Continuous Vulnerability Assessment and Remediation', 1928)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Contracted Maintenance', 4209)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Control Access', 1747)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Control System and Enterprise Network Security Coordination Process', 1600)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Control System Component Security Deficiency Mitigation', 1542)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Control System Usage Approval', 1548)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Control Systems Restoration and Recovery Plan', 1546)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Control Systems Restoration and Recovery Process', 1606)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Control the Workforce Life Cycle', 1761)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Controlled Access Based on the Need to Know', 1938)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Controlled Maintenance', 3800)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Controlled Use of Administrative Privileges', 1929)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Corrective Action Program', 442)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Covert Channel Analysis', 1787)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Covert Channels', 94)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Critical Cyber Asset Classification', 1530)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Critical Infrastructure Plan', 3816)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Criticality Analysis', 3999)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cross-Functional Team', 96)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cross-Organization', 696)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cross-Organizational Auditing', 4015)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cryptographic Considerations', 443)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cryptographic Key Establishment and Management', 1779)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cryptographic Keys', 98)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cryptographic Module Authentication', 3793)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cryptographic Protection', 3831)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'CSIRT', 99)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Customized Development Of Critical Components', 4029)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Asset Physical Access Controls', 1532)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Intrusion Incident Handling Policies and Procedures', 1608)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Intrusion Monitoring and Detection Policies and Procedures', 1607)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Security Plan', 4293)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Security Policies', 4294)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Security Program Manager', 444)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Security Response Team', 445)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Security Specialist', 446)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Cyber Security Sponsor', 447)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Flow Controls', 100)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Integrity and Data Integrity Board', 1171)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Minimization and Retention', 4020)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Mining', 692)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Mining Protection', 4011)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Protection', 1937)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Quality', 1167)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Quality and Integrity', 4019)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Recovery Capability', 1934)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Retention and Disposal', 1175)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Security', 5295)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Transmission Encryption', 4231)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Data Transmission Encryption Policies and Procedures', 4232)
GO
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Default Passwords and Accounts', 4229)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Defense-in-Depth', 102)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Defensive Strategy', 103)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Delivery and Removal', 1773)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Denial of Service Protection', 735)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Denial-of-Service', 105)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Detect Cybersecurity Events', 1754)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Detonation Chambers', 4032)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Develop Cybersecurity Workforce', 1762)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Develop/Maintain Secure Systems Policies and Procedures', 4233)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Developer Configuration Management', 448)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Developer Screening', 734)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Developer Security Architecture and Design', 732)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Developer Security Testing', 449)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Developer Security Testing and Evaluation', 1781)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Developer-Provided Training', 731)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Development Process, Standards, and Tools', 730)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Development Test Documentation', 450)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Device Access Control', 451)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Device Configuration', 3854)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Device ID & Authentication', 112)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Device Identification And Authentication', 3791)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Disaster Recovery', 452)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Disaster Recovery Plan', 113)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Disk Encryption', 4230)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Dissemination of Privacy Program Information', 1191)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Distributed Processing and Storage', 739)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'DMZ', 453)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Document Classification', 454)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Document Management', 455)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Documentation', 118)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Domain Authentication', 119)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Electronic Security Perimeter', 1624)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Electronic Security Perimeters Around SCSZ and FLSZ', 4148)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Email and Web Browser Protections', 1931)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Emergency Lighting', 3805)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Emergency Power', 122)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Emergency Shutoff', 3992)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Encryption', 124)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Encryption Key Management', 4235)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Encryption Key Protection', 4234)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Engineering Principles', 125)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Enterprise Architecture', 3815)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Error Handling', 127)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Escalate Cybersecurity Events and Declare Incidents', 1755)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Establish and Maintain a Common Operating Picture', 1752)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Establish and Maintain Cybersecurity Architecture', 1766)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Establish and Maintain Identities', 1746)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Establish Cybersecurity Program Strategy', 1764)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Exceptions', 129)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Execution Modification Prevention', 456)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'External ICS', 131)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'External Information System Services', 729)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'External Information Systems', 3829)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'External System Services', 132)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Factory Default Settings Management', 1563)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Factory Defaults', 133)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Fail In Known State', 4001)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Fail-Safe Procedures', 4035)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Fail-Safe Response', 135)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Failure Detection and Reporting', 4238)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Failure Management', 458)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Failure Prevention', 136)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Failure State', 137)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Fault Management', 459)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Feedback', 139)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'FICAM', 753)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Fire Protection', 141)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Firewall', 142)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Firewall and Router Configuration Management', 4236)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Firewall Policies', 511)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Firewall Policies and Procedures', 4237)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Firewall Rules', 146)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Firmware', 3846)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Flaw Remediation', 148)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Forensic Device for SCSZ Controller, Audit Trail', 4166)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Frequency of Audits', 460)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Function Isolation', 152)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Functional Verification', 461)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Communication Protection', 462)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Configuration Management', 463)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Cyber Security Measures', 1531)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Environmental Security', 510)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Firewall', 464)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Information Protection', 465)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Maintenance', 466)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Practices', 467)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Procedures', 468)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Software', 469)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General System Integrity', 470)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General System Protection', 471)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'General Training', 472)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Governance', 1614)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Governance and Privacy Program', 1159)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Hardware Config', 153)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Heterogeneity', 4003)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'HIDS', 155)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Honeypots', 157)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Https', 3855)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'ICS/IT Cybersecurity Team', 473)
GO
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identification and Authentication', 708)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identification And Authentication (Non-Organizational Users)', 3794)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identification And Authentication (Organizational Users)', 3790)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identification and Authentication Policies and Procedures', 4240)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identification And Authentication Policy And Procedures', 3789)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identifier Management', 162)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identify and Respond to Threats', 1748)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identify Dependencies', 1758)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identify Security Vulnerabilities', 4239)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Identity Management, Authentication and Access Control', 5294)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'IDS/IPS', 164)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Improvements', 1620)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Handling', 166)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Monitoring', 3796)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Reporting', 168)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Reporting & Response', 1626)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response', 1824)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response and Management', 1943)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response Assistance', 3797)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response General', 474)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response Plan', 475)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response Plan Review', 4287)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response Plan Testing', 4288)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response Policy And Procedures', 3795)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response Support', 476)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response Testing', 170)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Incident Response Training', 477)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Increase Cybersecurity Awareness', 1763)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Individual Access', 1181)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Individual Participation and Redress', 4024)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Info Protection', 179)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Info System Recovery', 707)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information and Document Management Policy and Procedures', 1566)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Disclosure', 754)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Flow Enforcement', 478)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Handling And Retention', 3841)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information In Shared Resources', 4006)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Input Validation', 747)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Leakage', 3994)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Output Filtering', 1790)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Protection Processes and Procedures', 1616)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Protection Program', 4289)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Security Architecture', 3808)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Security Coordination and Responsibilities', 1535)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Security Measures Of Performance', 3814)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Security Program Plan', 3809)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Security Resources', 3811)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Security Responsibilities', 4277)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Security Workforce', 724)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Sharing', 3985)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Sharing With Third Parties', 1193)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Spillage', 757)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information Spillage Response', 3798)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information System Backup', 3787)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information System Component Inventory', 3784)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information System Documentation', 3828)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information System Inventory', 3813)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information System Monitoring', 744)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information System Partitioning', 4005)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Information System Recovery And Reconstitution', 3788)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Input Restrictions', 187)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Insecure and Rogue Connections', 1573)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Insider Threat Program', 723)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Integrated Info Security', 717)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Integrated Information Security Analysis Team', 4025)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Internal System Connections', 698)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Internal Use', 1192)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Intrusion Detection & Response', 1547)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Intrusion-Detection/ Intrusion-Prevention', 4241)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Inventory', 3852)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Inventory of Authorized and Unauthorized Devices', 1925)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Inventory of Authorized and Unauthorized Software', 1926)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Inventory of Personally Identifiable Information', 1185)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Items Protected', 194)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Least Functionality', 197)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Least Privilege', 198)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Licensee/Applicant Tests', 200)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Limitation and Control of Network Ports', 1933)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Locate/Remove/Redact/Anonymize PII', 1174)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Location Of Information System Components', 3993)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Log Retention', 202)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Logical Access Control to Control Systems and Control Networks', 1550)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Logon Handling', 203)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance', 1825)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance Account Management', 4196)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance and Testing', 207)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance Documentation', 4195)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance Personnel', 208)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance Policies', 479)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance Providers', 4192)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance Tools', 480)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Maintenance, Monitoring, and Analysis of Audit Logs', 1930)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Malicious Code Protect', 210)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Malicious Code Protection', 211)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Malware', 3856)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Malware Defenses', 1932)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Manage Asset Configuration', 1743)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Manage Asset Inventory', 1690)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Manage Changes to Assets', 1744)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Manage Dependency Risk', 1759)
GO
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Management Activities', 1745)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Management Policies', 481)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Management Practices', 1676)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Management Responsibility', 4151)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Mechanisms Supporting Itemized or Tiered Consent', 1180)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Access', 214)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Disposal', 482)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Distribution', 4243)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Downgrading', 720)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Marking', 216)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Protection', 1826)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Protection Policies and Procedures', 1571)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Protection Policy And Procedures', 3802)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Sanitization', 217)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Storage', 219)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Storage and Accessibility', 4244)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Transport', 220)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Media Use', 719)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Memory Protection', 750)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Mesh/Field Wireless', 221)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Minimization of Personally Identifiable Information', 1173)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Minimization of PII Used In Testing, Training, and Research', 1177)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Mission/Business Process Definition', 3818)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Mitigation', 1619)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Mobile Code', 225)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Mobile Device Management MDM ', 3851)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Modems', 226)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Monitor and Evaluation', 509)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Monitor Physical Access', 483)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Monitoring', 3857)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Monitoring & Malware', 230)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Monitoring Configuration Changes', 1561)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Monitoring For Information Disclosure', 3987)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Monitoring Physical Access', 722)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Monitoring Tools', 232)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Multi-Factor Authentication', 4242)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Network Access', 238)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Network Disconnect', 4000)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Network Protocols', 239)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Non-Modifiable Executable Programs', 1788)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Non-Persistence', 749)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Non-Repudiation', 241)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Nonauthenticated HMI', 242)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Nonlocal Maintenance', 3801)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Operations Control Center Alternate', 4161)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Operations Security', 3837)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Organizational', 244)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Organizational Requirements', 1946)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Out-of-Band Channels', 740)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'PAN data', 4247)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Password', 1677)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Passwords', 249)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Patch Management', 250)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'PED', 4179)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'PED/PMD', 4208)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Penetration Testing', 697)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Penetration Tests and Red Team Exercises', 1944)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Perform Logging', 1750)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Perform Monitoring', 1751)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Perform Secure Software Development', 1767)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Perimeter Firewalls', 4245)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Periodic Cyber Asset Criticality Review and Reassessment', 1534)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Permitted Actions Without Identification Or Authentication', 3762)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personally Owned Information', 484)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel Accountability', 485)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel and Training', 1623)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel Follow Policies and Procedures', 4252)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel Policy And Procedures', 4193)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel Sanctions', 3822)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel Screening', 257)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel Security Policy And Procedures', 3819)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel Termination', 258)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel Transfer', 260)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Personnel/Asset Tracking', 261)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Access', 1678)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Access Authorizations', 3803)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Access Control
', 5297)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Access Control', 264)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Access Control to Control Systems and Control Networks', 1549)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Access Protection', 3858)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Access to Cardholder Data Policies and Procedures', 4250)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Access to the CDE', 4248)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical and Environmental Protection', 3996)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical and Environmental Protection Policy and Procedures', 1556)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Protection', 508)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Safeguards', 1947)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Security', 266)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Security Attachments', 4157)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Security Plan', 486)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Security Plan Review', 4291)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Security Plans', 4292)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Physical Separation for SCSZ Data Transmission', 4150)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Plan', 267)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Plan Contents', 268)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Plan for Continuity', 1757)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Plan of Action', 269)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Plan Of Action And Milestones', 3779)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Plan Of Action And Milestones Process', 3812)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Planning', 3998)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Platform-Independent Applications', 4002)
GO
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Polices and Procedures and Documentation Requirements', 1948)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Policies & Procedures General', 759)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Policy', 270)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Policy & Procedures', 1575)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Port And I/O Device Access', 4031)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Port Partitioning', 272)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Portable Computing Devices', 4246)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Portable Devices', 274)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Portable Media', 275)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Portable/Mobile/Wireless', 763)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Position Risk Designation', 3820)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Power Equip/Cabling', 277)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Power Equipment And Cabling', 3997)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Power Equipment and Power Cabling', 751)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Predictable Failure Prevention', 748)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Previous Logon (Access) Notification', 3986)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Previous Logon Notification', 278)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy Awareness and Training', 1163)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy Impact and Risk Assessment', 1160)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy Impact Assessment', 279)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy Incident Response', 1186)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy Monitoring and Auditing', 1162)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy Notice', 1187)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy Reporting', 1164)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy Requirements for Contractors and Service Providers', 1161)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Privacy-Enhanced System Design and Development', 1165)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Procedure', 280)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Procedures', 281)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Procedures for Service Providers with Access to Cardholder Data', 4251)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Process Isolation', 741)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Procurement Standards', 1537)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Proprietary Application Development', 3853)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Protect Card Payment Devices', 4249)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Protection of Audit Information', 487)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Protection of Information at Rest', 736)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Protective Technology', 5296)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Provenance Policy And Procedures', 1800)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Public Access Access Protections', 1569)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Public Key Infrastructure Certificates', 3832)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Public Website Publication', 1190)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Publicly Accessible', 288)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Publicly Accessible Content', 3766)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Publish Agreements on Website', 1172)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Purpose Specification', 1158)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Re-Authentication', 4022)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Re-Validate PII', 1170)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Real-time or Layered Notice', 1188)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Recover', 1680)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Recovery Plan', 4295)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Recovery Plan Review', 4296)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Recovery Plan Testing', 4297)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Recovery Plans', 1627)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Redress', 1182)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Reduce Cybersecurity Vulnerabilities', 1749)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Reference Monitor', 694)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Remote Access', 293)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Remote Access Control', 294)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Remote Maintenance', 488)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Remote Network Connection Monitoring and Periodic Review', 1598)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Remote Session Termination', 489)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Removable Media', 3859)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Removal Verification', 490)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Resource Allocation', 491)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Resource Availability', 4007)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Resource Priority', 299)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Respond to Incidents and Escalated Cybersecurity Events', 1756)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Response Assistance', 300)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Response Times', 1184)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Response To Audit Processing Failures', 3775)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Responsibility for Security of Cardholder Data', 4254)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Responsibility Vendor Product Management', 4164)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Assessment', 1776)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Assessment Identification', 4298)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Assessment Policy And Procedures', 3823)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Assessment Verification', 4299)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Based Assessment Consideration', 492)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Management', 303)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Management Strategy', 493)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Minimization Techniques', 1178)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk Mitigation', 305)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Risk-assessment ', 4253)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Role-Based Security Training', 3769)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Roles & Responsibilities', 308)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Roles, Responsibilities and Lines of Communication Definition', 1536)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Rule Set', 310)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Rules Of Behavior', 3807)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Safe Mode', 4017)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Safety System', 312)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Secure Audit Trails', 4261)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Secure Configurations for Hardware and Software', 1927)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Secure Configurations for Network Devices', 1935)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Secure Equipment and Media Disposal', 1604)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Secure Media', 4260)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Secure Name / Address Resolution Service (Authoritative Source)', 3834)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Secure Name / Address Resolution Service (Recursive Or Caching Resolver)', 3835)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Secure Software Development', 4258)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Securing Audit Logs', 4286)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security - Inventory of Personally Identifiable Information', 4033)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security - Privacy Incident Response', 4034)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Alerts', 322)
GO
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Alerts, Advisories, And Directives', 3839)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Assessment and Authorization Policy and Procedures', 1770)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Assessments', 323)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Attributes', 324)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Authorization', 3780)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Authorization Process', 3817)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Authorization to Operate', 1771)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Awareness', 326)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Awareness And Training Policy And Procedures', 3767)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Awareness Program', 4265)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Awareness Training', 3768)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Boundaries', 327)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Capabilities', 329)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Categorization', 494)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Compliance Validation', 4162)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Concept Of Operations', 4027)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Design and Operation of Cyber System', 1539)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Design of Cyber System', 1540)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Engineering Principles', 1777)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Event Logging', 4194)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Func Isolation', 330)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Function Isolation', 4004)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Function Verification', 4008)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Groups', 331)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Impact Analysis', 3782)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Impact Level', 1775)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security in Procurement', 4156)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Management', 1622)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Management Responsibilities', 4264)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Monitoring and Testing Policies and Procedures', 4262)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Operation of Cyber System', 1541)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Patches', 4257)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Plan', 334)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Planning Policy And Procedures', 3806)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Policies', 4263)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Policy', 335)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Skills Assessment and Appropriate Training to Fill Gaps', 1941)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Training', 341)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Training Records', 3770)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security Vulnerability Assessment', 1551)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Security-Related Activity Planning', 1774)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Senior Information Security Officer', 3810)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Senior Management Accountability', 495)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Sensor Capability and Data', 752)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Separation of Duties', 342)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Separation of Functions', 343)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Service Identification And Authentication', 4023)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Services Procurement Standards', 1601)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Session Audit', 345)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Session Authenticity', 346)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Session Lock', 347)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Session Termination', 4010)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Share Cybersecurity Information', 1753)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Shared Hosting', 4256)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Shared Resources', 348)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Shared/Generic Passwords', 4259)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Simple Firewall Config.', 349)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'SIS', 766)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Situation Awareness', 351)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Smart Grid Information System Recovery and Reconstitution', 1772)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software', 4168)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software and Information Integrity', 745)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software Documentation Management', 496)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software Information Integrity', 497)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software Patches and Updates', 1603)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software Removal', 498)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software Usage', 701)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software Usage Restrictions', 3785)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software, Firmware and Information Integrity', 1789)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Software, Firmware, And Information Integrity', 3840)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Spam Protect', 358)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Spam Protection', 746)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Specialized Training', 359)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Specific Plans', 499)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Sponsor Cybersecurity Program', 1765)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Supply Chain Protection', 500)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Supply Chain Risk Management', 5293)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Sys Asset Location', 364)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System and Communications Protection', 1679)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System And Communications Protection Policy And Procedures', 3830)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System and Information Integrity', 1555)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System And Information Integrity Policy And Procedures', 3838)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System and Services Acquisition', 1559)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System And Services Acquisition Policy And Procedures', 3824)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Backup', 367)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Categorization', 1621)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Component Identification', 501)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Configuration', 1176)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Connections', 368)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Development Life Cycle', 3826)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Hardening', 1543)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Integrity', 370)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Interconnections', 3778)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Inventory', 4255)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Level Least Priviledges', 502)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Lifecycle', 1602)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Maintenance Policy And Procedures', 3799)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Monitoring', 371)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System of Records Notices and Privacy Act Statements', 1189)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Procurement Standards', 1538)
GO
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Restoration and Recovery', 1605)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Security Plan', 372)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'System Use Notification', 373)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Systems Security Management', 1625)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Tamper Resistance and Detection', 1782)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Technical Safeguards', 1949)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Technical Surveillance Countermeasures Survey', 728)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Technical Training', 374)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Telecom Services', 705)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Telecommunications Services', 3991)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Telnet', 375)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Temperature and Humidity Controls', 503)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Test Facility', 378)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Testing, Training, and Monitoring', 725)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Thin Nodes', 380)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Third-Party Personnel Security', 3821)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Third-Party Security', 383)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Threat and Vulnerability Management', 504)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Threat Awareness Program', 727)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Time Stamps', 386)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Time-Synchronization ', 4266)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Timely Maintenance', 718)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Tracking Provenance And Developing A Baseline', 1801)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Traffic & Services', 388)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Training', 3860)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Training Requirements', 391)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Training Program', 4152)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Training Records', 393)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transient Assets & Removable Media', 4300)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transmission Confidentiality', 4009)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transmission Confidentiality and Integrity', 1784)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transmission Integrity', 394)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transmission Medium', 395)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transmission Of Security Attributes', 4030)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transparency - Dissemination of Privacy Program Information', 4038)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transparency - Privacy Notice', 4036)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Transparency - System of Records Notices and Privacy Act Statements', 4037)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Trusted Path', 1785)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Trustworthiness', 397)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Tx Prep Integrity', 398)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Unauthorized Devices Detection', 4158)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Unauthorized Software Compliance', 4159)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Universal_Sub_Category', 4267)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Unsuccessful Login Attempts', 1568)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Unsuccessful Logon Attempts', 3761)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Unsupported System Components', 1783)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Usage Policies for Critical Technology', 4270)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Usage Restrictions', 400)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Use Limitation - Information Sharing With Third Parties', 4040)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Use Limitation - Internal Use', 4039)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Use Of External Information Systems', 3764)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Use of External Systems', 402)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Use of Malware Protection', 403)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Use of NIST Approved Cryptography', 1780)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'User Authentication', 4269)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'User ID & Authentication', 404)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'User Identification Management', 4268)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'User Installed Soft', 702)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'User-Installed Software', 3786)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Validate PII', 1169)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Validate PLC and Controller Integrity', 4167)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Vendor Defaults Policies and Procedures', 4271)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Virtualization Tech', 407)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Virtualization Technology', 507)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Visitor Access Records', 3804)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Visitor Authorization', 4273)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Visitor Control', 408)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Visitor Identification', 4272)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Visitor Records', 409)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Visitors', 4290)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'VLANs', 410)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Voice Over Internet Protocol', 3833)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'VoIP', 411)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'VPNs', 412)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Vulnerability Assessment', 4301)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Vulnerability Scanning', 415)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Vulnerability Scans', 4274)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Water Damage Protection', 1570)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Web Application Vulnerabilities', 4275)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Web Protocols', 506)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Wireless', 417)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Wireless Access', 418)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Wireless Access Control', 1939)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Wireless Access Points', 4276)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Wireless Link Protection', 742)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Wireless Network Risk Assessment', 1533)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Wireless Risk', 419)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Wireless Security', 4165)
INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] ([Universal_Sub_Category], [Universal_Sub_Category_Id]) VALUES (N'Workstation and Host Specific Policies', 1572)
SET IDENTITY_INSERT [dbo].[UNIVERSAL_SUB_CATEGORIES] OFF
/****** Object: Index [IX_UNIVERSAL_SUB_CATEGORIES] Script Date: 11/14/2018 3:57:31 PM ******/
ALTER TABLE [dbo].[UNIVERSAL_SUB_CATEGORIES] ADD CONSTRAINT [IX_UNIVERSAL_SUB_CATEGORIES] UNIQUE NONCLUSTERED
(
[Universal_Sub_Category_Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The Universal Sub Category is used to' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UNIVERSAL_SUB_CATEGORIES', @level2type=N'COLUMN',@level2name=N'Universal_Sub_Category'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The Universal Sub Category Id is used to' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UNIVERSAL_SUB_CATEGORIES', @level2type=N'COLUMN',@level2name=N'Universal_Sub_Category_Id'
GO
EXEC sys.sp_addextendedproperty @name=N'BELONGS_IN_EA', @value=N'YES' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UNIVERSAL_SUB_CATEGORIES'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'UNIVERSAL_SUB_CATEGORIES'
GO
|
<reponame>sy3kic/nZEDb<filename>resources/db/patches/mysql/0113~tmux.sql
ALTER TABLE nzbs change `article-number` articlenumber varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0';
UPDATE site SET value = '113' WHERE setting = 'sqlpatch';
|
CREATE TABLE IF NOT EXISTS dns_pc (
id bigint(20) NOT NULL AUTO_INCREMENT,
pc varchar(50) NOT NULL,
ip varchar(15) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY pc (pc)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
<filename>src/main/resources/data.sql
-- USER
-- hashed password: <PASSWORD>
INSERT INTO USER (id, name, email, password, last_login, token, is_active, created, modified) VALUES
('1cb2a08a-1bca-479d-9e3e-15b869cda8c5', '<NAME>', '<EMAIL>', <PASSWORD>', '2021-09-24T15:28:03.123456789', '<KEY>', true, '2021-09-24T15:28:03.123456789', null);
-- PHONES
INSERT INTO PHONE (id, user_id, number, city_code, country_code) VALUES
('1793d30f-8a77-46bc-8100-1469b48b9c28', '1cb2a08a-1bca-479d-9e3e-15b869cda8c5', '84990165', 'MNG', 'NIC'),
('71f83f32-101b-42a2-b3a2-efb6a903ffad', '1cb2a08a-1bca-479d-9e3e-15b86<PASSWORD>', '85778128', 'MNG', 'NIC');
-- ROLES
INSERT INTO USRROLE (id, role_name, description) VALUES (1, 'ROLE_ADMIN', 'Administrator');
-- USER WITH ROLE
INSERT INTO USER_ROLE(id, user_id, usrrole_id) VALUES (1, '1cb2a08a-1bca-479d-9e3e-15b869cda8c5', 1); -- give admin ROLE_ADMIN
|
CREATE TABLE TIME
(
ID SERIAL PRIMARY KEY,
STARTDATE date NOT NULL,
ENDDATE date NOT NULL,
TYPE varchar(50) NOT NULL,
ORDINAL int NOT NULL
);
CREATE TABLE DAYOFF
(
ID SERIAL PRIMARY KEY,
CODE varchar(50) NOT NULL,
NAME varchar(50) NOT NULL,
MICS varchar(50) NOT NULL,
COUNTRY varchar(50) NOT NULL,
CURRENCY varchar(50) NOT NULL,
TIMEZONE varchar(50) NOT NULL,
DATE date NOT NULL,
HOLIDAY varchar(50) NOT NULL
);
|
-- TEST0009 Change Statement secured party transfer on TEST0001.
INSERT INTO draft(draft_id, document_number, account_id, create_ts, registration_type_cl, registration_type_cd,
registration_number, update_ts, draft)
VALUES(200000013, 'D-T-00C9', 'PS12345', sysdate, 'CHANGE', 'ST', 'TEST0001', null, '{}');
INSERT INTO registration(registration_id, financing_id, registration_number, base_reg_number, registration_type_cd,
registration_type_cl, registration_ts, document_number, life, lien_value,
surrender_date, account_id, client_reference_id, pay_invoice_id, pay_path)
VALUES(200000010, 200000000, 'TEST0009', 'TEST0001', 'ST', 'CHANGE', sysdate + 15/1440, 'D-T-00C9', null,
null, null, 'PS12345', 'TEST-CH-0009', null, null)
;
INSERT INTO address_ppr(address_id, street_line_1, street_line_2, city, province_type_cd, postal_cd, country_type_cd)
VALUES(200000012, 'TEST-00C9', 'line 2', 'city', 'BC', 'V8R3A5', 'CA')
;
INSERT INTO party(party_id, party_type_cd, registration_id, financing_id, registration_id_end, branch_id, first_name,
middle_name, last_name, business_name, birth_date, address_id)
VALUES(200000025, 'RG', 200000010, 200000000, null, null, 'TEST-CHANGE-DT', '9', 'REGISTERING', null,
null, 200000012)
;
INSERT INTO party(party_id, party_type_cd, registration_id, financing_id, registration_id_end, branch_id, first_name,
middle_name, last_name, business_name, birth_date, address_id)
VALUES(200000026, 'SP', 200000010, 200000000, null, null, null, null, null, 'TEST 9 CHANGE TRANSFER SECURED PARTY',
null, 200000012)
;
UPDATE party
SET registration_id_end = 200000010
WHERE party_id = 200000022
AND party_type_cd = 'SP'
;
UPDATE draft
SET registration_id = 200000010
WHERE draft_id = 200000013
;
-- TEST0009 end
|
<reponame>abhisheks008/Design-and-Analysis-Algorithm-Lab-4th-Semester<gh_stars>1-10
-- ASSIGNMENT : 5 [CONTINUED FROM LAB 5]
-- Q2. a) Create a table Depart with the columns dept_id, dept_name, location_name where dept_id is primary key.
-- b) Create another table Employ with the columns empid, name, salary, address, hire_date, department_no where empid is primary key.
-- ► Make a referential integrity between department_no and dept_id. Also make sure that salary must contain some values in all rows and each department’s name is different.
-- ► Give appropriate names to all the constraints being imposed on both the tables. Insert at least 3 rows in departments table. Insert at least 5 rows in the employees table with different department names.
CREATE TABLE DEPART ( DEPT_ID NUMBER PRIMARY KEY,
DEPT_NAME VARCHAR2(20),
LOCATION_NAME VARCHAR2(20));
CREATE TABLE EMPLOY (EMPID NUMBER PRIMARY KEY,
NAME VARCHAR2 (20),
SALARY NUMBER(5,2),
ADDRESS VARCHAR2(30),
HIRE_DATE DATE,
DEPARTMENT_NO NUMBER);
ALTER TABLE EMPLOY
ADD CONSTRAINT EMPLOY_FK FOREIGN KEY (DEPARTMENT_NO) REFERENCES DEPART (DEPT_ID);
ALTER TABLE EMPLOY MODIFY SALARY NOT NULL;
INSERT INTO DEPART VALUES (123, 'SALES', 'KOLKATA');
INSERT INTO DEPART VALUES (456, 'MANAGER', 'DELHI');
INSERT INTO DEPART VALUES (987, 'CUSTOMER', 'BANGALORE');
INSERT INTO EMPLOY VALUES (1, 'RAM', 560, 'KOLKATA', '02-DEC-1987', 123);
INSERT INTO EMPLOY VALUES (2, 'SHYAM', 300, 'DELHI', '05-JUN-1988', 456);
INSERT INTO EMPLOY VALUES (3, 'RAJA', 500, 'DELHI', '05-AUG-2000', 456);
INSERT INTO EMPLOY VALUES (4, 'ABHI', 580, 'DELHI', '05-AUG-2000', 456);
INSERT INTO EMPLOY VALUES (5, 'SAYAN', 700, 'BANGALORE', '25-AUG-2002', 987);
-- Q3. a) Create a table Departments with the columns dept_id, dept_name, loc_name where dept_id is primary key.
-- b) Create other table locations with the columns location_id, location_name, area where location_id is primary key.
-- ► Ensure that location_name acts as another candidate key of the locations table. Make a referential integrity between loc_name of departments table and location_name of locations table.
-- ► Ensure that dept_name should starts with ‘C’
-- ► Give appropriate names to all the constraints being imposed on the tables. Insert at least three rows in both the tables.
CREATE TABLE DEPARTMENTS (DEPTID NUMBER PRIMARY KEY, DEPT_NAME VARCHAR2(20), LOC_NAME VARCHAR2(30));
CREATE TABLE LOCATIONS (LOCATION_ID NUMBER PRIMARY KEY, LOCATION_NAME VARCHAR2(20), AREA NUMBER(8,2));
ALTER TABLE LOCATIONS
MODIFY LOCATION_NAME NOT NULL;
ALTER TABLE LOCATIONS
ADD CONSTRAINT LOC_NAME_CAN UNIQUE (LOCATION_NAME);
ALTER TABLE DEPARTMENTS
ADD CONSTRAINT DEPARTMENTS_FK FOREIGN KEY (LOC_NAME) REFERENCES LOCATIONS (LOCATION_NAME);
ALTER TABLE DEPARTMENTS
ADD CONSTRAINT DEPT_NAME_UPDATE CHECK (DEPT_NAME LIKE 'C%');
INSERT INTO LOCATIONS VALUES (56, 'KOLKATA', 5600);
INSERT INTO LOCATIONS VALUES (98, 'DELHI', 7800);
INSERT INTO LOCATIONS VALUES (101, 'CHENNAI', 9800);
INSERT INTO DEPARTMENTS VALUES (1, 'CASH', 'KOLKATA');
INSERT INTO DEPARTMENTS VALUES (2, 'CIVIC', 'DELHI');
INSERT INTO DEPARTMENTS VALUES (3, 'CENTRAL', 'CHENNAI');
-- Q4. a) Create a table Employees with the columns empid, name, salary, address, hire_date, mgr_no,dept_name where empid is primary key.
-- ► Make a referential integrity between emp_id and mgr_no.
-- ► Give appropriate names to all the constraints being imposed on the tables. Insert at least 10 rows in the employees table with different department names (Make one department name BCA).
CREATE TABLE EMPLOYEES (EMPID NUMBER, NAME VARCHAR2(20), SALARY NUMBER(10,2), ADDRESS VARCHAR2(30), HIRE_DATE DATE, MGR_NO NUMBER, DEPT_NAME VARCHAR2(20),
CONSTRAINT EMP_PK PRIMARY KEY(EMPID));
ALTER TABLE EMPLOYEES
ADD CONSTRAINT EMP_FK FOREIGN KEY (MGR_NO) REFERENCES EMPLOYEES (EMPID);
INSERT INTO EMPLOYEES VALUES (56, 'ABHISHEK', 56000, 'KOLKATA', '05-JUN-2001', 56, 'SALES');
INSERT INTO EMPLOYEES VALUES (58, 'SAYAN', 56000, 'KOLKATA', '05-JUL-2001', 58, 'CURRENCY');
INSERT INTO EMPLOYEES VALUES (60, 'NABARUN', 60000, 'DELHI', '06-AUG-2002', 60, 'SALES');
INSERT INTO EMPLOYEES VALUES (62, 'SUBHA', 75000, 'BANGALORE', '06-AUG-2001', 62, 'BCA');
INSERT INTO EMPLOYEES VALUES (64, 'RUPAM', 56000, 'DELHI', '26-JAN-1999', 64, 'BCA');
INSERT INTO EMPLOYEES VALUES (66, 'RAJA', 68000, 'KOLKATA', '15-FEB-2000', 66, 'BCA');
INSERT INTO EMPLOYEES VALUES (68, 'SAM', 70000, 'DELHI', '14-FEB-2000', 68, 'BTECH');
INSERT INTO EMPLOYEES VALUES (70, 'SUNNY', 56120, 'KOLKATA', '15-MAR-2002', 70, 'BCA');
INSERT INTO EMPLOYEES VALUES (72, 'NIL', 45800, 'BANGALORE', '17-JAN-2005', 72, 'BCA');
INSERT INTO EMPLOYEES VALUES (74, 'RAJENDRA', 48555, 'KOLKATA', '27-MAR-2002', 74, 'CASH');
SELECT * FROM EMPLOYEES;
-- ****************************************************************************************************************************************************************************
-- ASSIGNMENT : 6
-- Q1. Create the tables and add the constraints.
CREATE TABLE SAILOR (SID VARCHAR2(4), SNAME VARCHAR2(15), MNAME VARCHAR2(15), SURNAME VARCHAR2(15) NOT NULL, RATING NUMBER(2) DEFAULT 0, AGE NUMBER(3,1) NOT NULL,
CONSTRAINT SAILOR_PK PRIMARY KEY(SID),
CONSTRAINT SAILOR_SID_NAME CHECK (SID LIKE 's%'),
CONSTRAINT SAILOR_SID_SNAME CHECK (SNAME = INITCAP (SNAME)));
DESC SAILOR;
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = 'SAILOR';
CREATE TABLE BOAT (BID VARCHAR2(5), BNAME VARCHAR2(10), COLOR VARCHAR2(6),
CONSTRAINT BOAT_PK PRIMARY KEY (BID),
CONSTRAINT BOAT_BID_START CHECK (BID LIKE 'b%'),
CONSTRAINT BOAT_BNAME_UPPER CHECK (BNAME = UPPER(BNAME)),
CONSTRAINT BOAT_COLOR CHECK (COLOR IN ('RED','GREEN','BLUE')));
DESC BOAT;
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = 'BOAT';
CREATE TABLE RESERVE (SID VARCHAR2(4), BID VARCHAR2(5), DAY DATE,
CONSTRAINT RESERVE_PK PRIMARY KEY(SID, BID),
CONSTRAINT RESERVE_FK_SID FOREIGN KEY (SID) REFERENCES SAILOR(SID),
CONSTRAINT RESERVE_FK_BID FOREIGN KEY (BID) REFERENCES BOAT (BID),
CONSTRAINT DATE_CHECK CHECK (DAY < '01-JAN-2000'));
DESC RESERVE;
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = 'RESERVE';
-- Q2. Insert the values in the table so that it can satisfy the above constraints.
INSERT INTO SAILOR VALUES ('s1', 'Rammy', '', 'FRED', 1, 45);
INSERT INTO SAILOR VALUES ('s2', 'Sam', 'BENJAMIN', 'HENRY', 5, 26);
INSERT INTO SAILOR VALUES ('s3', 'Sachin', 'RAMESH', 'TENDULKAR', 8, 41);
INSERT INTO SAILOR VALUES ('s4', 'Mahendra', 'SINGH', 'DHONI', '', 52);
INSERT INTO SAILOR VALUES ('s5', 'Ajay', '', 'JADEJA', 0, 52);
SELECT * FROM SAILOR;
INSERT INTO BOAT VALUES ('b1', 'SAM', 'RED');
INSERT INTO BOAT VALUES ('b2', 'SUNNY', 'GREEN');
INSERT INTO BOAT VALUES ('b3', 'HENRY', 'BLUE');
SELECT * FROM BOAT;
INSERT INTO RESERVE VALUES ('s1', 'b1', '05-AUG-1998');
INSERT INTO RESERVE VALUES ('s2', 'b2', '12-SEP-1995');
INSERT INTO RESERVE VALUES ('s3', 'b3', '11-OCT-1997');
SELECT * FROM RESERVE;
-- Q3. Show names under the heading of names_of_sailors and add 2 to age.
SELECT SNAME AS NAME_OF_SAILORS, (AGE+2) AS NEW_AGE
FROM SAILOR;
-- Q4. Select all records from sailors in ascending order by name
SELECT * FROM SAILOR ORDER BY SNAME ASC;
-- Q5. Show all sailors name.
SELECT SNAME||' '||MNAME||' '||SURNAME "NAMES" FROM SAILOR;
-- Q6. Select all distinct sailors name.
SELECT DISTINCT SNAME FROM SAILOR;
-- Q7. Show all distinct sailors names, ratings that have rating between 5 and 10.
SELECT DISTINCT SNAME, RATING FROM SAILOR WHERE RATING BETWEEN 5 AND 10;
-- Q8. Select all records from sailors in ascending order by rating and descending order by age.
SELECT * FROM SAILOR ORDER BY RATING ASC;
SELECT * FROM SAILOR ORDER BY AGE DESC;
-- Q9. Select all records from sailors whose rating>7.
SELECT * FROM SAILOR WHERE RATING>7;
-- Q10. Find records for sailor name Horatio and age=35.4.
SELECT * FROM SAILOR WHERE SNAME = 'HORATIO' AND AGE = 35.4;
-- Q11. Select records for name beginning with 'S'.
SELECT * FROM SAILOR WHERE SNAME LIKE 'S%';
-- Q12. Select records for name containing 'a'/'A'.
SELECT * FROM SAILOR WHERE SNAME LIKE '%A%' OR SNAME LIKE '%a%';
-- Q13. Select names for rating present
SELECT * FROM SAILOR WHERE RATING IS NOT NULL;
-- Q14. Select names for rating absent.
SELECT * FROM SAILOR WHERE RATING IS NULL;
-- Q15. Find sid of sailor who has reserved boat ‘b1’.
SELECT SAILOR.SID FROM SAILOR, BOAT
WHERE BOAT.BID = 'b1';
-- Code Contributed By, <NAME>, 2021, @abhisheks008
|
<filename>tagcloud_package/examples/TagCloud.sql
\set textCorpus '\''`pwd`'/examples/text_corpus.txt\''
\set htmlFile '\''`pwd`'/output.html\''
\echo ***************** Search 'vertica' in the small text_corpus.txt *****************
select RelevantWordsNoLoad('vertica', :textCorpus) over() order by weight desc limit 20;
\echo ***************** Load text_corpus.txt into a table first, and then search 'vertica' in it *****************
create table alltext(line varchar(64000));
copy alltext(line) from :textCorpus DELIMITER E'\n';
select RelevantWords('vertica', line) over() from alltext order by weight desc limit 20;
drop table alltext cascade;
\echo ****************************** Generate HTML to show the graphical effect *************************
\echo ****** This generates output.html in current direcotry, use your favoriate browser to see it ******
drop table words cascade;
create table words(weight float, word varchar);
insert into words select RelevantWordsNoLoad('vertica', :textCorpus) over() order by weight desc limit 50;
select GenerateTagCloud(weight, word, :htmlFile) over () from words;
|
<reponame>muntaza/Open_Persediaan
DROP VIEW IF EXISTS view_buku_penerimaan_setda;
CREATE VIEW view_buku_penerimaan_setda AS
SELECT
*
FROM
view_buku_penerimaan_kabupaten
WHERE
1 = 1 AND
id_skpd = 2;
GRANT ALL PRIVILEGES ON view_buku_penerimaan_setda TO lap_setda;
REVOKE INSERT, UPDATE, DELETE ON view_buku_penerimaan_setda FROM lap_setda;
|
create table t1 (i1 int,d1 double);
insert into t1 values(1,1.2);
insert into t1 values(2,2.5);
insert into t1 values(2,2.5);
insert into t1 values(10,1.2e1);
insert into t1 values(20,2.5e1);
select * from t1 order by 1,2;
prepare st from 'select distinct(i1+?) from t1 order by 1'
execute st using 3;
prepare st from 'select distinct(i1+?) from t1 order by 1'
execute st using 3.2;
prepare st from 'select distinct(? - d1) from t1 order by 1'
execute st using 3;
prepare st from 'select distinct(? - d1) from t1 order by 1'
execute st using 3.2;
drop table t1;
-- first values NULL
create table t1 (i1 int,d1 double);
insert into t1 values(NULL, NULL);
insert into t1 values(1,1.2);
insert into t1 values(2,2.5);
insert into t1 values(2,2.5);
insert into t1 values(10,1.2e1);
insert into t1 values(20,2.5e1);
insert into t1 values(NULL, NULL);
select * from t1 order by 1,2;
prepare st from 'select distinct(i1+?) from t1 order by 1'
execute st using 3.2;
prepare st from 'select distinct(? - d1) from t1 order by 1'
execute st using 3;
drop table t1;
-- all values NULL
create table t1 (i1 int,d1 double);
insert into t1 values(NULL, NULL);
insert into t1 values(NULL, NULL);
insert into t1 values(NULL, NULL);
select * from t1 order by 1,2;
prepare st from 'select distinct(i1+?) from t1 order by 1'
execute st using 3.2;
prepare st from 'select distinct(? - d1) from t1 order by 1'
execute st using 3;
drop table t1;
|
-- @testpoint:opengauss关键字current_user(保留),作为游标名
--前置条件
drop table if exists current_user_test cascade;
create table current_user_test(cid int,fid int);
--关键字不带引号-失败
start transaction;
cursor current_user for select * from current_user_test order by 1;
close current_user;
end;
--关键字带双引号-成功
start transaction;
cursor "current_user" for select * from current_user_test order by 1;
close "current_user";
end;
--关键字带单引号-合理报错
start transaction;
cursor 'current_user' for select * from current_user_test order by 1;
close 'current_user';
end;
--关键字带反引号-合理报错
start transaction;
cursor `current_user` for select * from current_user_test order by 1;
close `current_user`;
end;
--清理环境
drop table current_user_test cascade;
|
<reponame>hmatsu47/kuso-code-samples
CREATE DATABASE `picture`;
CREATE TABLE `picture`.`access_count` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`picture_id` int(11) NOT NULL,
`access_count` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `picture`.`picture` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(20) NOT NULL,
`description` varchar(50) NOT NULL,
`image` longblob NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
<filename>dbv-3/data/revisions/4.14/fusionpbx_api.sql
USE RMCDR3;
CREATE TABLE IF NOT EXISTS `tblUCall` (
`UID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`UUID` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`UID`),
KEY `UUID` (`UUID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
DROP PROCEDURE IF EXISTS `prc_UniqueIDCallID`;
DELIMITER |
CREATE PROCEDURE `prc_UniqueIDCallID`(
IN `p_CompanyID` INT,
IN `p_CompanyGatewayID` INT,
IN `p_ProcessID` VARCHAR(200),
IN `p_tbltempusagedetail_name` VARCHAR(200)
)
BEGIN
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SET @stm1 = CONCAT('
INSERT INTO tblUCall (UUID)
SELECT DISTINCT tud.UUID FROM `' , p_tbltempusagedetail_name , '` tud
LEFT JOIN tblUCall ON tud.UUID = tblUCall.UUID
WHERE UID IS NULL
AND tblUCall.UUID IS NOT NULL
AND tud.CompanyID = "' , p_CompanyID , '"
AND tud.CompanyGatewayID = "' , p_CompanyGatewayID , '"
AND tud.ProcessID = "' , p_processId , '";
');
PREPARE stmt1 FROM @stm1;
EXECUTE stmt1;
DEALLOCATE PREPARE stmt1;
SET @stm2 = CONCAT('
UPDATE `' , p_tbltempusagedetail_name , '` tud
INNER JOIN tblUCall ON tud.UUID = tblUCall.UUID
SET tud.ID = tblUCall.UID
WHERE tud.CompanyID = "' , p_CompanyID , '"
AND tblUCall.UUID IS NOT NULL
AND tud.CompanyGatewayID = "' , p_CompanyGatewayID , '"
AND tud.ProcessID = "' , p_processId , '";
');
PREPARE stmt2 FROM @stm2;
EXECUTE stmt2;
DEALLOCATE PREPARE stmt2;
SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ;
END|
DELIMITER ;
|
--use [ObservationDB]
Declare @TimUserId UniqueIdentifier = (Select UserId from aspnet_Users where LoweredUserName = 'tim')
Declare @StatusID UniqueIdentifier = (Select ID from Status where Code = 'QA-98')
Declare @StatusReasonID UniqueIdentifier = (Select ID from StatusReason where Code = 'QAR-38')
-- Import batch
Update ImportBatch
Set StatusID = @StatusID, StatusReasonID = @StatusReasonID
from
ImportBatch
inner join DataSource
on (ImportBatch.DataSourceID = DataSource.ID)
where
(ImportBatch.StatusID is null) and
((DataSource.Name like '%CSIR%') or (DataSource.Name like '%ACSYS%'))
Checkpoint
-- Observation
Update Observation
Set StatusID = @StatusID, StatusReasonID = @StatusReasonID
from
Observation
inner join Sensor
on (Observation.SensorID = Sensor.ID)
inner join Station
on (Sensor.StationID = Station.ID)
inner join ProjectSite
on (Station.ProjectSiteID = ProjectSite.ID)
where
(Observation.StatusID is null) and
((Station.Name like '%CSIR%') or (Station.Name like '%ACSYS%') or
(ProjectSite.Name like '%CSIR%') or (ProjectSite.Name like '%ACSYS%'))
Checkpoint
Update Observation
Set StatusID = @StatusID, StatusReasonID = @StatusReasonID
from
Observation
inner join ImportBatch
on (Observation.ImportBatchID = ImportBatch.ID)
inner join DataSource
on (ImportBatch.DataSourceID = DataSource.ID)
where
(Observation.StatusID is null) and
((DataSource.Name like '%CSIR%') or (DataSource.Name like '%ACSYS%'))
Checkpoint
/*
Declare @BatchSize int = 100000
Declare @BatchNum int
-- Import batch
Set @BatchNum = 1
WHILE (1 = 1)
BEGIN
Print @BatchNum * @BatchSize
BEGIN TRANSACTION
-- Update
Update top(@BatchSize) ImportBatch
Set StatusID = @StatusID, StatusReasonID = @StatusReasonID
from
ImportBatch
inner join DataSource
on (ImportBatch.DataSourceID = DataSource.ID)
where
(ImportBatch.StatusID is null) and
((DataSource.Name like '%CSIR%') or (DataSource.Name like '%ACSYS%'))
-- no more records to update
IF @@ROWCOUNT = 0
BEGIN
COMMIT TRANSACTION
BREAK
END
COMMIT TRANSACTION
CheckPoint
set @BatchNum = @BatchNum + 1
WAITFOR DELAY '00:00:01'
END
CheckPoint
-- Observation via Station
Set @BatchNum = 1
WHILE (1 = 1)
BEGIN
Print @BatchNum * @BatchSize
BEGIN TRANSACTION
-- Update
Update top(@BatchSize) Observation
Set StatusID = @StatusID, StatusReasonID = @StatusReasonID
from
Observation
inner join Sensor
on (Observation.SensorID = Sensor.ID)
inner join Station
on (Sensor.StationID = Station.ID)
inner join ProjectSite
on (Station.ProjectSiteID = ProjectSite.ID)
where
(Observation.StatusID is null) and
((Station.Name like '%CSIR%') or (Station.Name like '%ACSYS%') or
(ProjectSite.Name like '%CSIR%') or (ProjectSite.Name like '%ACSYS%'))
-- no more records to update
IF @@ROWCOUNT = 0
BEGIN
COMMIT TRANSACTION
BREAK
END
COMMIT TRANSACTION
CheckPoint
set @BatchNum = @BatchNum + 1
WAITFOR DELAY '00:00:01'
END
CheckPoint
-- Observation via ImportBatch
Set @BatchNum = 1
WHILE (1 = 1)
BEGIN
Print @BatchNum * @BatchSize
BEGIN TRANSACTION
-- Update
Update top(@BatchSize) Observation
Set StatusID = @StatusID, StatusReasonID = @StatusReasonID
from
Observation
inner join ImportBatch
on (Observation.ImportBatchID = ImportBatch.ID)
inner join DataSource
on (ImportBatch.DataSourceID = DataSource.ID)
where
(Observation.StatusID is null) and
((DataSource.Name like '%CSIR%') or (DataSource.Name like '%ACSYS%'))
-- no more records to update
IF @@ROWCOUNT = 0
BEGIN
COMMIT TRANSACTION
BREAK
END
COMMIT TRANSACTION
CheckPoint
set @BatchNum = @BatchNum + 1
WAITFOR DELAY '00:00:01'
END
CheckPoint
*/
|
SELECT "MedPayment2_1"."hcpcs_code" AS "hcpcs_code", "MedPayment2_1"."hcpcs_description" AS "hcpcs_description", "MedPayment2_1"."nppes_provider_state" AS "nppes_provider_state", SUM("MedPayment2_1"."Calculation_0820513143749095") AS "sum:Calculation_0820513143749095:ok", SUM("MedPayment2_1"."average_submitted_chrg_amt") AS "sum:average_submitted_chrg_amt:ok" FROM "MedPayment2_1" WHERE (("MedPayment2_1"."hcpcs_code" = '27447') AND ("MedPayment2_1"."hcpcs_description" = 'Total knee arthroplasty')) GROUP BY 1, 2, 3
|
-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64)
--
-- Host: 192.168.77.195 Database: zadmin_banco
-- ------------------------------------------------------
-- Server version 5.5.52-0+deb8u1
/*!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 `USER`
--
DROP TABLE IF EXISTS `USER`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `USER` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`PESSOA_id` int(11) NOT NULL,
`login` varchar(50) NOT NULL,
`senha` varchar(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `USER_PESSOA` (`PESSOA_id`),
CONSTRAINT `USER_PESSOA` FOREIGN KEY (`PESSOA_id`) REFERENCES `PESSOA` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 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 */;
INSERT INTO `USER` VALUES (1,1,'maxwellcravo','123456'),(2,2,'iagogabriel','123456'),(3,3,'elielsonbs','123456'),(4,4,'gabi','123456'),(5,2,'ygorkrs','MTIzNDU2'),(7,10,'lyendio','123456'),(8,11,'mariane','123456'),(9,12,'jescocard','123456'),(10,14,'abnerbf','123456'),(11,16,'raphael','123456'),(12,15,'thaynascimento','123456'),(17,40,'clecle','123456');
/*!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-12-04 18:16:50
|
<gh_stars>0
alter table inventory_item_list
add version int;
|
CREATE PROCEDURE [dbo].[page_templates_sel]
@pt_id int =null
,@page_name varchar(50) =null
,@search_page_name varchar(50) =null
,@pt_content varchar(max)=null
,@self_backup int=null
,@user_id int
as
BEGIN
SET NOCOUNT ON
DECLARE @stmt NVARCHAR(MAX) = '';
SET @stmt = 'select * from dbo.page_templates_v WHERE 1=1 '
IF NOT @self_backup IS NULL
BEGIN
IF @self_backup = 0
BEGIN
SET @stmt = @stmt + ' AND NOT page_name like ''%test%'''
END
ELSE IF @self_backup = 1
BEGIN
select a.*,b.page_name,b.page_title from dbo.page_templates a inner join dbo.pages b on a.page_id=b.page_id
WHERE a.updated_by= @user_id and not b.page_name like '%test%'
OR (a.created_by= @user_id and a.updated_by is null and not b.page_name like '%test%')
RETURN;
END
END
IF(@page_name IS NOT NULL )
BEGIN
select top 1 p.page_name,p.page_title,p.page_id, pt.* from dbo.pages p
left join dbo.page_templates pt on pt.page_id = p.page_id
where lower(p.page_name) =lower(@page_name)
RETURN;
END
IF(@pt_id IS NOT NULL)
SET @stmt = @stmt + ' AND pt_id =' + CAST(@pt_id AS VARCHAR(20))
IF(@page_name IS NOT NULL)
SET @stmt = @stmt + ' AND page_name =''' + @page_name + ''''
IF(@search_page_name IS NOT NULL)
SET @stmt = @stmt + ' AND page_name like ''%' + @search_page_name + '%'''
IF(@pt_content IS NOT NULL)
SET @stmt = @stmt + ' AND pt_content like ''%' + @pt_content + '%'''
print @stmt;
EXEC(@stmt);
END
|
INSERT INTO ims.product_details (id, created_at, updated_at, pr_id, grn_id, qty, rem_qty, sold_qty, warranty, warranty_status, discount, purchase_price) VALUES (2, '2018-11-15 02:27:03', '2018-11-15 02:27:03', 1, 1, 3, 3, 0, 0, 0, 0, 63000);
INSERT INTO ims.product_details (id, created_at, updated_at, pr_id, grn_id, qty, rem_qty, sold_qty, warranty, warranty_status, discount, purchase_price) VALUES (3, '2018-11-15 02:35:09', '2018-11-15 02:35:09', 1, 1, 15, 13, 2, 0, 0, 0, 61000);
INSERT INTO ims.product_details (id, created_at, updated_at, pr_id, grn_id, qty, rem_qty, sold_qty, warranty, warranty_status, discount, purchase_price) VALUES (4, '2018-11-15 02:35:24', '2018-11-15 02:35:24', 6, 1, 5, 5, 0, 0, 0, 0, 42350);
INSERT INTO ims.product_details (id, created_at, updated_at, pr_id, grn_id, qty, rem_qty, sold_qty, warranty, warranty_status, discount, purchase_price) VALUES (5, '2018-11-15 02:35:40', '2018-11-15 02:35:40', 2, 1, 6, 2, 4, 0, 0, 0, 49000);
INSERT INTO ims.product_details (id, created_at, updated_at, pr_id, grn_id, qty, rem_qty, sold_qty, warranty, warranty_status, discount, purchase_price) VALUES (6, '2018-11-17 17:50:57', '2018-11-17 17:50:57', 7, 1, 3, 3, 0, 0, 0, 0, 38500);
|
<filename>08-1-Numeric-Examples.sql
--The example shows the number who responded for:
--question 1
--at 'Edinburgh Napier University'
--studying '(8) Computer Science'
--Show the the percentage who STRONGLY AGREE
SELECT A_STRONGLY_AGREE
FROM nss
WHERE question='Q01'
AND institution='Edinburgh Napier University'
AND subject='(8) Computer Science';
--Show the institution and subject where the score is at least 100 for question 15.
SELECT institution, subject
FROM nss
WHERE question='Q15' AND score >= 100;
--Show the institution and score where the score for '(8) Computer Science' is
--less than 50 for question 'Q15'
SELECT institution,score
FROM nss
WHERE question='Q15'
AND subject='(8) Computer Science'
AND score < 50;
--Show the subject and total number of students who responded to question 22 for each
--of the subjects '(8) Computer Science' and '(H) Creative Arts and Design'.
SELECT subject, SUM(response)
FROM nss
WHERE question='Q22'
AND (subject='(8) Computer Science'
OR subject='(H) Creative Arts and Design')
GROUP BY subject;
--Show the subject and total number of students who A_STRONGLY_AGREE to question 22
--for each of the subjects '(8) Computer Science' and '(H) Creative Arts and Design'.
SELECT subject, SUM((response*A_STRONGLY_AGREE)/100)
FROM nss
WHERE question='Q22'
AND (subject='(8) Computer Science'
OR subject='(H) Creative Arts and Design')
GROUP BY subject;
--Show the percentage of students who A_STRONGLY_AGREE to question 22 for the subject
--'(8) Computer Science' show the same figure for the subject '(H) Creative Arts and Design'.
SELECT subject, ROUND((SUM(response*A_STRONGLY_AGREE)/100) / SUM(response) *100)
FROM nss
WHERE question='Q22'
AND (subject='(8) Computer Science'
OR subject='(H) Creative Arts and Design')
GROUP BY subject;
--Show the average scores for question 'Q22' for each institution that include
--'Manchester' in the name.
SELECT institution, ROUND(SUM(response * score)/SUM(response))
FROM nss
WHERE question='Q22'
AND (institution LIKE '%Manchester%')
GROUP BY institution;
--Show the institution, the total sample size and the number of computing students
--for institutions in Manchester for 'Q01'.
SELECT institution, SUM(sample), SUM(CASE WHEN subject='(8) Computer Science' THEN sample END)
FROM nss
WHERE question='Q01'
AND (institution LIKE '%Manchester%')
GROUP BY institution;
|
<filename>queries/22.sql
-- using 1433771997 as a seed to the RNG
select
cntrycode,
count(*) as numcust,
sum(c_acctbal) as totacctbal
from
(
select
substr(c_phone, 1, 2) as cntrycode,
c_acctbal
from
customer
where
substr(c_phone, 1, 2) in
('20', '14', '21', '28', '15', '24', '27')
and c_acctbal > (
select
avg(c_acctbal)
from
customer
where
c_acctbal > 0.00
and substr(c_phone, 1, 2) in
('20', '14', '21', '28', '15', '24', '27')
)
and not exists (
select
*
from
orders
where
o_custkey = c_custkey
)
) as custsale
group by
cntrycode
order by
cntrycode;
|
<reponame>DeyanDanailov/MS-SQL-Server
SELECT CONCAT(m.FirstName, ' ', m.LastName) AS Mechanic,
AVG(DATEDIFF(DAY, j.IssueDate, j.FinishDate)) AS [Average Days]
FROM Mechanics m
JOIN Jobs j ON j.MechanicId = m.MechanicId
WHERE j.Status LIKE 'Finished'
GROUP BY m.FirstName, m.LastName, m.MechanicId
ORDER BY m.MechanicId
|
<reponame>yuweijun/spring-boot-examples
--liquibase formatted sql
--changeset yuweijun:4 date:2016-06-11
DROP TABLE IF EXISTS `hotel`;
CREATE TABLE `hotel` (
`city` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`address` varchar(255) DEFAULT NULL,
`zip` varchar(20) DEFAULT NULL,
PRIMARY KEY (`city`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
LOCK TABLES `hotel` WRITE;
INSERT INTO `hotel` (city, name, address, zip) VALUES (1, 'Conrad Treasury Place', 'William & George Streets', '4001');
UNLOCK TABLES;
--rollback drop table hotel;
|
<gh_stars>1-10
INSERT INTO `modelos` (`id`, `name`, `marca`, `host_type_id`, `comentario`, `created_at`, `updated_at`, `marca_id`) VALUES (NULL, '', '123', '', NULL, NULL, NULL, NULL), (NULL, '123', '', '', NULL, NULL, NULL, NULL);
|
<gh_stars>10-100
CREATE VIEW [Test].[vwTestQuery]
AS
/*
* This is automatically generated; any changes will be lost.
*/
SELECT
[t].[TableId],
[t].[Name],
[t].[Count],
[t].[Amount],
[t].[Other],
[t].[GenderCode],
[t].[OrgUnitId],
[t].[RowVersion],
[t].[CreatedDate],
[t].[UpdatedDate],
[p].[PersonId],
[p].[FirstName],
[p].[LastName],
[p].[Birthday],
[p].[GenderId],
[p].[Street],
[p].[City],
[p].[RowVersion] AS [RowVersionP],
[p].[CreatedBy],
[p].[UpdatedBy],
[p].[UniqueCode],
[p].[EyeColorCode]
FROM [Test].[Table] AS [t]
INNER JOIN [Sec].[fnGetUserOrgUnits]() AS [orgunits] ON ([t].[OrgUnitId] = [orgunits].[OrgUnitId])
INNER JOIN [Demo].[Person] AS [p] ON ([p].[PersonId] = [t].[TableId])
WHERE [t].[TenantId] = dbo.fnGetTenantId(NULL)
AND ([t].[IsDeleted] IS NULL OR [t].[IsDeleted] = 0)
AND [Sec].[fnGetUserHasPermission](NULL, NULL, 'TESTSEC.READ', NULL) = 1
|
/* bi-11 */
|
<reponame>d-bytebase/bytebase<filename>store/demo/prod/10060__instance.sql
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6001,
101,
101,
5001,
'Localhost Dev MySQL',
'MYSQL',
'8.0.19',
'127.0.0.1',
'3306',
'bytebase.com/database/mysql'
);
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6002,
101,
101,
5002,
'On-premises Integration MySQL',
'MYSQL',
'8.0.19',
'mysql.integration.example.com',
'3306',
'bytebase.com/database/mysql'
);
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6003,
101,
101,
5003,
'On-premises Staging MySQL',
'MYSQL',
'8.0.19',
'mysql.staging.example.com',
'3306',
'bytebase.com/database/mysql'
);
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6004,
101,
101,
5004,
'On-premises Prod MySQL',
'MYSQL',
'8.0.19',
'mysql.prod.example.com',
'3306',
'bytebase.com/database/mysql'
);
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6005,
101,
101,
5001,
'Localhost Dev PostgreSQL',
'POSTGRES',
'13.0',
'127.0.0.1',
'5432',
'bytebase.com/database/postgres'
);
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6006,
101,
101,
5001,
'Demo PostgreSQL on Render',
'POSTGRES',
'13.0',
'dpg-c8a7pcd0mal7gtod05p0',
'5432',
'postgres://postgre_demo_user:3QixNmRMGhklX6B1lmCZ3ZsHFPIE5EgG@dpg-c8a7pcd0mal7gtod05p0/postgre_demo'
);
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6007,
101,
101,
5001,
'Localhost Dev TiDB',
'TIDB',
'5.7.25-TiDB-v5.2.1',
'127.0.0.1',
'4000',
'bytebase.com/database/tidb'
);
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6008,
101,
101,
5001,
'Localhost Dev ClickHouse',
'CLICKHOUSE',
'192.168.127.12',
'127.0.0.1',
'9000',
'bytebase.com/database/clickhouse'
);
INSERT INTO
instance (
id,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6009,
101,
101,
5001,
'Localhost Dev Snowflake',
'SNOWFLAKE',
'192.168.127.12',
'127.0.0.1',
'',
'bytebase.com/database/snowflake'
);
INSERT INTO
instance (
id,
row_status,
creator_id,
updater_id,
environment_id,
name,
engine,
engine_version,
host,
port,
external_link
)
VALUES
(
6010,
'ARCHIVED',
101,
101,
5004,
'Retired Prod MySQL',
'MYSQL',
'5.7.25',
'mysql.retired.example.com',
'3306',
'bytebase.com/database/mysql'
);
ALTER SEQUENCE instance_id_seq RESTART WITH 6011;
|
<reponame>dram/metasfresh
-- 17.07.2015 16:27:15
-- URL zum Konzept
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,DisplayLogic,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,ReadOnlyLogic,SeqNo,Updated,UpdatedBy) VALUES (0,0,540589,540723,20,'M_Material_Tracking_CreateOrUpdate_ID.CHANGE_HUs',TO_TIMESTAMP('2015-07-17 16:27:15','YYYY-MM-DD HH24:MI:SS'),100,'Y','''N''','de.metas.handlingunits',0,'Y','N','Y','N','Y','N','Handlingunits aktualiseren','''N''',30,TO_TIMESTAMP('2015-07-17 16:27:15','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 17.07.2015 16:27:15
-- URL zum Konzept
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_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_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=540723 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 20.07.2015 08:12
-- URL zum Konzept
-- Neve display
UPDATE AD_Process_Para SET DisplayLogic='''N''=''Y''', ReadOnlyLogic=NULL,Updated=TO_TIMESTAMP('2015-07-20 08:12:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=540723
;
|
<reponame>davidbhon/dpc-app<gh_stars>10-100
CREATE TABLE "group" (
id uuid DEFAULT gen_random_uuid() PRIMARY KEY,
organization_id uuid NOT NULL,
version bigint DEFAULT 0,
created_at timestamp with time zone DEFAULT now(),
updated_at timestamp with time zone DEFAULT now(),
info jsonb NOT NULL,
CONSTRAINT fk_organization
FOREIGN KEY(organization_id)
REFERENCES organization(id)
);
|
<reponame>apavlo/benchbase<filename>src/main/resources/benchmarks/epinions/ddl-postgres.sql
-- WARNING!!!
-- All of the indexes were removed for the 15-799 project. Do not use this for real benchmarking!
-- https://15799.courses.cs.cmu.edu/spring2022/project1.html
DROP TABLE IF EXISTS review CASCADE;
DROP TABLE IF EXISTS review_rating CASCADE;
DROP TABLE IF EXISTS trust CASCADE;
DROP TABLE IF EXISTS useracct CASCADE;
DROP TABLE IF EXISTS item CASCADE;
CREATE TABLE useracct (
u_id int NOT NULL,
name varchar(128) NOT NULL,
email varchar(128) NOT NULL,
creation_date timestamp DEFAULT NULL
);
CREATE TABLE item (
i_id int NOT NULL,
title varchar(128) NOT NULL,
description varchar(512) DEFAULT NULL,
creation_date timestamp DEFAULT NULL
);
CREATE TABLE review (
a_id int NOT NULL,
u_id int NOT NULL,
i_id int NOT NULL,
rating int DEFAULT NULL,
rank int DEFAULT NULL,
comment varchar(256) DEFAULT NULL,
creation_date timestamp DEFAULT NULL
);
CREATE TABLE review_rating (
u_id int NOT NULL,
a_id int NOT NULL,
rating int NOT NULL,
status int NOT NULL,
creation_date timestamp DEFAULT NULL,
last_mod_date timestamp DEFAULT NULL,
type int DEFAULT NULL,
vertical_id int DEFAULT NULL
);
CREATE TABLE trust (
source_u_id int NOT NULL,
target_u_id int NOT NULL,
trust int NOT NULL,
creation_date timestamp DEFAULT NULL
);
|
/*CREATE database scrinia*/
CREATE TABLE usuarios (
idUsuario INTEGER PRIMARY KEY,
email varchar(64),
senha varchar(64),
nome varchar(64)
);
CREATE TABLE leitor (
ddi INTEGER,
ddd INTEGER,
numero INTEGER,
tipo varchar(64),
idLeitor INTEGER PRIMARY KEY,
cpf varchar(14),
nascimento datetime,
nascionalidade varchar(64),
idEndereco INTEGER,
idSexo INTEGER
);
CREATE TABLE bibliotecario (
idBibliotecario INTEGER PRIMARY KEY
);
CREATE TABLE bibliotecas (
idBiblioteca INTEGER PRIMARY KEY,
nome varchar(64),
idEndereco INTEGER
);
CREATE TABLE livros (
idlivro INTEGER PRIMARY KEY,
nome varchar(64),
genero varchar(64),
idAutor INTEGER
);
CREATE TABLE exemplar (
idIExemplar INTEGER PRIMARY KEY,
idBiblioteca INTEGER,
idlivro INTEGER,
idEditora INTEGER,
FOREIGN KEY(idBiblioteca) REFERENCES bibliotecas (idBiblioteca),
FOREIGN KEY(idlivro) REFERENCES livros (idlivro)
);
CREATE TABLE endereco (
idEndereco INTEGER PRIMARY KEY,
logradouro varchar(64),
tipo varchar(64),
complemento varchar(64),
cep varchar(9)
);
CREATE TABLE editoras (
idEditora INTEGER PRIMARY KEY,
nome varchar(64),
datapublicacao DATETIME,
numeroEdicao INTEGER
);
CREATE TABLE autor (
nome varchar(64),
idAutor INTEGER PRIMARY KEY,
idSexo INTEGER
);
CREATE TABLE sexo (
idSexo INTEGER PRIMARY KEY,
genero varchar(64)
);
CREATE TABLE pertence (
idLeitor INTEGER,
idUsuario INTEGER,
idBibliotecario INTEGER,
PRIMARY KEY(idLeitor,idUsuario,idBibliotecario)
);
CREATE TABLE trabalha (
idBiblioteca INTEGER,
idBibliotecario INTEGER,
FOREIGN KEY(idBiblioteca) REFERENCES bibliotecas (idBiblioteca),
FOREIGN KEY(idBibliotecario) REFERENCES bibliotecario (idBibliotecario)
);
CREATE TABLE emprestiomo (
dataemprestimo DATETIME,
datadevolucao DATETIME,
idLeitor INTEGER,
idIExemplar INTEGER,
FOREIGN KEY(idLeitor) REFERENCES leitor (idLeitor),
FOREIGN KEY(idIExemplar) REFERENCES exemplar (idIExemplar)
);
ALTER TABLE leitor ADD FOREIGN KEY(idEndereco) REFERENCES endereco (idEndereco);
ALTER TABLE leitor ADD FOREIGN KEY(idSexo) REFERENCES sexo (idSexo);
ALTER TABLE bibliotecas ADD FOREIGN KEY(idEndereco) REFERENCES endereco (idEndereco);
ALTER TABLE livros ADD FOREIGN KEY(idAutor) REFERENCES autor (idAutor);
ALTER TABLE exemplar ADD FOREIGN KEY(idEditora) REFERENCES editoras (idEditora);
ALTER TABLE autor ADD FOREIGN KEY(idSexo) REFERENCES sexo (idSexo);
insert into usuarios (idUsuario, email, nome, senha) VALUES (1, '<EMAIL>', 'admin',sha1('gebi2015175'))
/* Atualização BD */
INSERT INTO `sexo` (`idSexo`, `genero`) VALUES ('1', 'masculino'), ('2', 'feminino');
ALTER TABLE `autor` ADD `img` VARCHAR(100) NOT NULL AFTER `idSexo`;
ALTER TABLE `autor` ADD `descricao` VARCHAR(250) NOT NULL AFTER `idSexo`;
INSERT INTO `autor` (`nome`, `idAutor`, `idSexo`, `descricao`, `img`) VALUES ('<NAME>', '1', '1', '<NAME> foi um premiado escritor, professor universitário e filólogo britânico, doutor em Letras e Filologia pela Universidade de Liège e Dublin, em 1954, e autor das obras como O Hobbit, O Senhor dos Anéis e O Silmarillion', ''), ('<NAME>', '2', '2', '<NAME> foi uma escritora britânica nascida na Inglaterra que atuou como romancista, contista, dramaturga e poetista. Se destacou no subgênero romance policial.', '');
INSERT INTO `autor` (`nome`, `idAutor`, `idSexo`, `descricao`, `img`) VALUES ('<NAME>', '3', '1', '<NAME> é um físico teórico e cosmólogo britânico e um dos mais consagrados cientistas da atualidade.', ''), ('<NAME>', '4', '1', '<NAME> "Tom" Clancy, Jr. foi um escritor e historiador americano conhecido pelos seus enredos detalhados de espionagem e de ciência militar que ocorrem durante e depois da Guerra Fria.', '');
ALTER TABLE `livros` ADD `descricao` VARCHAR(250) NOT NULL AFTER `idAutor`;
INSERT INTO `livros` (`idlivro`, `nome`, `genero`, `idAutor`, `descricao`) VALUES ('1', 'O Hobbit', 'fantasia', '1', 'The Hobbit é um livro infanto-juvenil publicado originalmente em 21 de setembro de 1937, foi aclamado pela crítica, sendo nomeado à Medalha Carnegie e recebendo um prêmio do jornal norte-americano New York Herald Tribune de melhor ficção juvenil.');
INSERT INTO `livros` (`idlivro`, `nome`, `genero`, `idAutor`, `descricao`) VALUES ('2', 'O Senhor dos Anéis - A Sociedade do Anel ', 'fantasia ', '1', 'O Senhor dos Anéis - A Sociedade do Anel narra o início da história do Um Anel, tendo como principal aspecto a formação de uma Sociedade que deveria levar o Anel para a Montanha da Perdição a fim de destrui-lo.'), ('3', 'O Senhor dos Anéis - As Duas Torres', 'fantasia', '1', 'O Senhor dos Anéis - As Duas Torres Narra a continuação da história desde o rompimento da Sociedade do Anel.'), ('4', 'O Senhor dos Anéis - O Retorno do Rei', NULL, NULL, 'O Senhor dos Anéis - O Retorno do Rei é o terceiro e último volume de O Senhor dos Anéis, de <NAME>, seguindo A Sociedade do Anel e As Duas Torres. ');
ALTER TABLE `exemplar` ADD `datapublicacao` DATETIME NOT NULL AFTER `idEditora`, ADD `numeroEdicao` INT(11) NOT NULL AFTER `datapublicacao`;
|
<reponame>Dobrynin91/jepria-showcase
begin
pkg_JepRiaShowcaseTest.testFeatureOperator();
end;
/
|
<gh_stars>1-10
CREATE TABLE provider_url_domain (
provider_url VARCHAR,
domain_name VARCHAR,
PRIMARY KEY (provider_url, domain_name));
--//@UNDO
DROP TABLE provider_url_domain;
|
CREATE TABLE VIEWERHASH (
ViewerHashKey INT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY ,
StudyKey INT NOT NULL,
PoolKey INT NOT NULL,
Hash VARCHAR(2048),
Expires TIMESTAMP
);
CREATE INDEX ViewerHash_UNIQUE on VIEWERHASH (Hash);
CREATE INDEX ViewerHash_Expires on VIEWERHASH (Expires);
|
DROP TABLE IF EXISTS "overviewbuildgroups";
CREATE TABLE "overview_components" (
"projectid" bigint NOT NULL,
"buildgroupid" bigint NOT NULL,
"position" bigint NOT NULL,
"type" text DEFAULT 'build' NOT NULL
);
CREATE INDEX "overview_components_projectid" on "overview_components" ("projectid");
CREATE INDEX "overview_components_buildgroupid" on "overview_components" ("buildgroupid");
CREATE TABLE "buildfile" (
"buildid" bigint NOT NULL,
"filename" character varying(255) NOT NULL,
"md5" character varying(40) NOT NULL,
"type" character varying(32) NOT NULL
);
CREATE INDEX "buildfile_buildid" on "buildfile" ("buildid");
CREATE INDEX "buildfile_filename" on "buildfile" ("filename");
CREATE INDEX "buildfile_type" on "buildfile" ("type");
CREATE INDEX "buildfile_md5" on "buildfile" ("md5");
|
CREATE TABLE IF NOT EXISTS `customer` (
`customer_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
`first_name` VARCHAR(45) NOT NULL,
`last_name` VARCHAR(45) NOT NULL,
`birth_date` DATE,
`email` VARCHAR(50) NULL DEFAULT NULL,
`active` TINYINT(1) NOT NULL DEFAULT TRUE,
`create_date` DATETIME NOT NULL,
PRIMARY KEY (`customer_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (1,'MARY','SMITH','1980-02-11','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (2,'PATRICIA','JOHNSON','2001-10-03','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (3,'LINDA','WILLIAMS','1969-03-28','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (4,'BARBARA','JONES','1994-05-01','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (5,'ELIZABETH','BROWN','1985-06-15','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (6,'JENNIFER','DAVIS','1988-12-19','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (7,'MARIA','MILLER','1979-08-23','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (8,'SUSAN','WILSON','1978-02-28','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (9,'MARGARET','MOORE','1982-03-09','<EMAIL>',1,'2006-02-14 22:04:36');
INSERT INTO `customer` (`customer_id`,`first_name`,`last_name`,`birth_date`,`email`,`active`,`create_date`) VALUES (10,'DOROTHY','TAYLOR','1972-09-16','<EMAIL>',1,'2006-02-14 22:04:36');
COMMIT;
|
<reponame>guibv/sqlp
-- MODULE DML044
-- SQL Test Suite, V6.0, Interactive SQL, dml044.sql
-- 59-byte ID
-- TEd Version #
-- AUTHORIZATION HU
SELECT USER FROM HU.ECCO;
-- RERUN if USER value does not match preceding AUTHORIZATION comment
-- date_time print
-- TEST:0215 FIPS sizing -- 6 columns in a UNIQUE constraint!
-- FIPS sizing TEST
-- setup
INSERT INTO T8
VALUES('th','seco','third3','fourth_4','fifth_colu',
'sixth_column','seventh_column','last_column_of_t');
-- PASS:0215 If 1 row is inserted?
INSERT INTO T8
VALUES('th','seco','third3','fourth_4','fifth_colu',
'sixth_column','column_seventh','column_eighth_la');
-- PASS:0215 If ERROR, unique constraint, 0 rows inserted?
SELECT COL1,COL2,COL3,COL4,COL5,COL6,COL7,COL8
FROM T8;
-- PASS:0215 If COL1 = 'th'?
-- restore
ROLLBACK WORK;
-- END TEST >>> 0215 <<< END TEST
-- **************************************************************
-- TEST:0216 FIPS sizing -- 120 bytes in a UNIQUE constraint!
-- FIPS sizing TEST
-- setup
DELETE FROM T4;
-- Making sure the table is empty
-- setup
INSERT INTO T4 VALUES (
'This test is trying to test the limit on the total length of an index',
-123456, 'which is','not less than 120');
-- PASS:0216 If 1 row is inserted?
INSERT INTO T4 VALUES (
'This test is trying to test the limit on the total length of an index',
-123456,'which is','not less than 120');
-- PASS:0216 If ERROR, unique constraint, 0 rows inserted?
SELECT STR110
FROM T4;
-- PASS:0216 If STR110 starts with 'This test is trying to test the '?
-- PASS:0216 and ends with 'limit on the total length of an index'?
-- restore
ROLLBACK WORK;
-- END TEST >>> 0216 <<< END TEST
-- *************************************************////END-OF-MODULE
|
<reponame>jackiedong168/wuid<filename>mysql/db.sql
CREATE TABLE IF NOT EXISTS `wuid` (
`h` int(10) NOT NULL AUTO_INCREMENT,
`x` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`x`),
UNIQUE KEY `h` (`h`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2017-09-30',@EPS = N'-0.59',@EPSDeduct = N'0',@Revenue = N'22.07亿',@RevenueYoy = N'9.91',@RevenueQoq = N'22.91',@Profit = N'-9.46亿',@ProfitYoy = N'-56.24',@ProfiltQoq = N'25.97',@NAVPerUnit = N'0.8796',@ROE = N'-58.99',@CashPerUnit = N'0.1917',@GrossProfitRate = N'15.12',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2017-09-30',@EPS = N'-0.59',@EPSDeduct = N'0',@Revenue = N'22.07亿',@RevenueYoy = N'9.91',@RevenueQoq = N'22.91',@Profit = N'-9.46亿',@ProfitYoy = N'-56.24',@ProfiltQoq = N'25.97',@NAVPerUnit = N'0.8796',@ROE = N'-58.99',@CashPerUnit = N'0.1917',@GrossProfitRate = N'15.12',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2016-09-30',@EPS = N'-0.38',@EPSDeduct = N'0',@Revenue = N'20.08亿',@RevenueYoy = N'-31.19',@RevenueQoq = N'18.98',@Profit = N'-6.05亿',@ProfitYoy = N'6.51',@ProfiltQoq = N'73.49',@NAVPerUnit = N'2.9109',@ROE = N'-12.26',@CashPerUnit = N'0.1917',@GrossProfitRate = N'8.17',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2016-06-30',@EPS = N'-0.32',@EPSDeduct = N'-0.33',@Revenue = N'12.25亿',@RevenueYoy = N'-45.60',@RevenueQoq = N'15.89',@Profit = N'-5.20亿',@ProfitYoy = N'-48.43',@ProfiltQoq = N'-65.26',@NAVPerUnit = N'2.9471',@ROE = N'-10.45',@CashPerUnit = N'0.1614',@GrossProfitRate = N'6.11',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2016-03-31',@EPS = N'-0.12',@EPSDeduct = N'0',@Revenue = N'5.68亿',@RevenueYoy = N'-55.11',@RevenueQoq = N'104.31',@Profit = N'-1.96亿',@ProfitYoy = N'-31.35',@ProfiltQoq = N'91.19',@NAVPerUnit = N'3.1460',@ROE = N'-3.82',@CashPerUnit = N'0.1393',@GrossProfitRate = N'10.20',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2015-12-31',@EPS = N'-1.79',@EPSDeduct = N'-1.81',@Revenue = N'31.96亿',@RevenueYoy = N'-9.66',@RevenueQoq = N'-58.26',@Profit = N'-28.70亿',@ProfitYoy = N'-432.95',@ProfiltQoq = N'-647.02',@NAVPerUnit = N'3.2593',@ROE = N'-42.42',@CashPerUnit = N'0.4753',@GrossProfitRate = N'-10.81',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2015-09-30',@EPS = N'-0.4',@EPSDeduct = N'0',@Revenue = N'29.18亿',@RevenueYoy = N'21.05',@RevenueQoq = N'-32.66',@Profit = N'-6.47亿',@ProfitYoy = N'-4420.50',@ProfiltQoq = N'-48.06',@NAVPerUnit = N'4.5713',@ROE = N'-8.22',@CashPerUnit = N'0.2800',@GrossProfitRate = N'5.61',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-10-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2015-06-30',@EPS = N'-0.22',@EPSDeduct = N'-0.22',@Revenue = N'22.52亿',@RevenueYoy = N'58.08',@RevenueQoq = N'-21.82',@Profit = N'-3.50亿',@ProfitYoy = N'-9206.11',@ProfiltQoq = N'-34.74',@NAVPerUnit = N'4.8824',@ROE = N'-4.36',@CashPerUnit = N'0.1146',@GrossProfitRate = N'9.51',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2015-03-31',@EPS = N'-0.09',@EPSDeduct = N'0',@Revenue = N'12.64亿',@RevenueYoy = N'209.54',@RevenueQoq = N'12.18',@Profit = N'-1.49亿',@ProfitYoy = N'-10373.70',@ProfiltQoq = N'71.55',@NAVPerUnit = N'4.9984',@ROE = N'-1.83',@CashPerUnit = N'-0.0024',@GrossProfitRate = N'8.24',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2014-12-31',@EPS = N'-0.53',@EPSDeduct = N'-0.54',@Revenue = N'35.37亿',@RevenueYoy = N'49.29',@RevenueQoq = N'14.33',@Profit = N'-5.38亿',@ProfitYoy = N'-768.69',@ProfiltQoq = N'-2784.99',@NAVPerUnit = N'5.1135',@ROE = N'-13.02',@CashPerUnit = N'-0.4370',@GrossProfitRate = N'18.97',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2014-09-30',@EPS = N'-0.02',@EPSDeduct = N'0',@Revenue = N'24.10亿',@RevenueYoy = N'78.03',@RevenueQoq = N'-3.03',@Profit = N'-1432.29万',@ProfitYoy = N'59.39',@ProfiltQoq = N'-859.37',@NAVPerUnit = N'5.2019',@ROE = N'-0.49',@CashPerUnit = N'-0.0396',@GrossProfitRate = N'23.90',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2014-06-30',@EPS = N'0.005',@EPSDeduct = N'0.004',@Revenue = N'14.25亿',@RevenueYoy = N'90.54',@RevenueQoq = N'148.89',@Profit = N'384.37万',@ProfitYoy = N'105.73',@ProfiltQoq = N'64.84',@NAVPerUnit = N'3.5334',@ROE = N'0.13',@CashPerUnit = N'-0.1071',@GrossProfitRate = N'19.38',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-08-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2014-03-31',@EPS = N'0.002',@EPSDeduct = N'0',@Revenue = N'4.08亿',@RevenueYoy = N'4.28',@RevenueQoq = N'-59.78',@Profit = N'145.13万',@ProfitYoy = N'107.74',@ProfiltQoq = N'-98.92',@NAVPerUnit = N'3.4588',@ROE = N'0.05',@CashPerUnit = N'0.1655',@GrossProfitRate = N'26.68',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2013-12-31',@EPS = N'0.1',@EPSDeduct = N'-0.15',@Revenue = N'23.69亿',@RevenueYoy = N'-5.06',@RevenueQoq = N'67.52',@Profit = N'8051.93万',@ProfitYoy = N'577.59',@ProfiltQoq = N'320.90',@NAVPerUnit = N'3.6561',@ROE = N'2.46',@CashPerUnit = N'0.1019',@GrossProfitRate = N'21.08',@Distribution = N'10派0.5',@DividenRate = N'0.33',@AnnounceDate = N'2015-04-03'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2013-09-30',@EPS = N'-0.04',@EPSDeduct = N'0',@Revenue = N'13.54亿',@RevenueYoy = N'10.59',@RevenueQoq = N'70.19',@Profit = N'-3526.86万',@ProfitYoy = N'88.53',@ProfiltQoq = N'165.82',@NAVPerUnit = N'3.8742',@ROE = N'-1.11',@CashPerUnit = N'-0.4201',@GrossProfitRate = N'16.26',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-10-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2013-06-30',@EPS = N'-0.08',@EPSDeduct = N'-0.09',@Revenue = N'7.48亿',@RevenueYoy = N'-1.67',@RevenueQoq = N'-9.05',@Profit = N'-6705.96万',@ProfitYoy = N'78.95',@ProfiltQoq = N'-157.40',@NAVPerUnit = N'3.8149',@ROE = N'-2.12',@CashPerUnit = N'-0.4584',@GrossProfitRate = N'18.16',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-08-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2013-03-31',@EPS = N'-0.02',@EPSDeduct = N'-0.03',@Revenue = N'3.92亿',@RevenueYoy = N'25.33',@RevenueQoq = N'-69.20',@Profit = N'-1876.31万',@ProfitYoy = N'89.39',@ProfiltQoq = N'-106.54',@NAVPerUnit = N'3.9329',@ROE = N'-0.58',@CashPerUnit = N'-0.3510',@GrossProfitRate = N'23.60',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2012-12-31',@EPS = N'-0.03',@EPSDeduct = N'-0.43',@Revenue = N'24.96亿',@RevenueYoy = N'-10.63',@RevenueQoq = N'174.08',@Profit = N'-2063.29万',@ProfitYoy = N'-163.58',@ProfiltQoq = N'2450.02',@NAVPerUnit = N'3.9821',@ROE = N'-0.62',@CashPerUnit = N'0.7035',@GrossProfitRate = N'11.58',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-04-02'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2012-09-30',@EPS = N'-0.38',@EPSDeduct = N'-0.39',@Revenue = N'12.24亿',@RevenueYoy = N'-30.07',@RevenueQoq = N'3.54',@Profit = N'-3.07亿',@ProfitYoy = N'-29347.62',@ProfiltQoq = N'107.93',@NAVPerUnit = N'3.8010',@ROE = N'-10.49',@CashPerUnit = N'-0.3355',@GrossProfitRate = N'0.36',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2012-06-30',@EPS = N'-0.39',@EPSDeduct = N'-0.39',@Revenue = N'7.60亿',@RevenueYoy = N'-32.85',@RevenueQoq = N'43.38',@Profit = N'-3.19亿',@ProfitYoy = N'-873.71',@ProfiltQoq = N'19.80',@NAVPerUnit = N'3.7498',@ROE = N'-9.28',@CashPerUnit = N'-0.2682',@GrossProfitRate = N'-11.56',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-08-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2012-03-31',@EPS = N'-0.22',@EPSDeduct = N'-0.22',@Revenue = N'3.12亿',@RevenueYoy = N'-44.58',@RevenueQoq = N'-70.01',@Profit = N'-1.77亿',@ProfitYoy = N'-665.37',@ProfiltQoq = N'-663.08',@NAVPerUnit = N'4.2210',@ROE = N'-5.05',@CashPerUnit = N'-0.1301',@GrossProfitRate = N'-9.98',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-04-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2011-12-31',@EPS = N'0.04',@EPSDeduct = N'0.03',@Revenue = N'27.93亿',@RevenueYoy = N'24.14',@RevenueQoq = N'68.51',@Profit = N'3244.96万',@ProfitYoy = N'-69.73',@ProfiltQoq = N'178.25',@NAVPerUnit = N'4.4275',@ROE = N'0.89',@CashPerUnit = N'0.4867',@GrossProfitRate = N'18.10',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-04-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2011-09-30',@EPS = N'0.0013',@EPSDeduct = N'-0.0007',@Revenue = N'17.51亿',@RevenueYoy = N'34.98',@RevenueQoq = N'8.71',@Profit = N'105.09万',@ProfitYoy = N'-99.11',@ProfiltQoq = N'-505.07',@NAVPerUnit = N'4.4100',@ROE = N'0.03',@CashPerUnit = N'0.3104',@GrossProfitRate = N'22.02',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2011-06-30',@EPS = N'0.05',@EPSDeduct = N'0.05',@Revenue = N'11.33亿',@RevenueYoy = N'40.11',@RevenueQoq = N'0.88',@Profit = N'4117.76万',@ProfitYoy = N'-47.12',@ProfiltQoq = N'-68.32',@NAVPerUnit = N'4.5200',@ROE = N'1.12',@CashPerUnit = N'0.3319',@GrossProfitRate = N'23.44',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2010-12-31',@EPS = N'0.14',@EPSDeduct = N'0.11',@Revenue = N'22.50亿',@RevenueYoy = N'99.74',@RevenueQoq = N'94.88',@Profit = N'1.07亿',@ProfitYoy = N'-6.12',@ProfiltQoq = N'-127.80',@NAVPerUnit = N'4.5220',@ROE = N'3.35',@CashPerUnit = N'-0.6387',@GrossProfitRate = N'29.80',@Distribution = N'10派1',@DividenRate = N'0.44',@AnnounceDate = N'2012-04-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2011-03-31',@EPS = N'0.04',@EPSDeduct = N'0.04',@Revenue = N'5.64亿',@RevenueYoy = N'81.17',@RevenueQoq = N'-40.81',@Profit = N'3127.14万',@ProfitYoy = N'-32.51',@ProfiltQoq = N'376.89',@NAVPerUnit = N'4.5400',@ROE = N'0.85',@CashPerUnit = N'0.0651',@GrossProfitRate = N'25.79',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-04-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2010-06-30',@EPS = N'0.1',@EPSDeduct = N'0.07',@Revenue = N'8.08亿',@RevenueYoy = N'85.66',@RevenueQoq = N'59.74',@Profit = N'7786.79万',@ProfitYoy = N'303.32',@ProfiltQoq = N'-31.95',@NAVPerUnit = N'4.3800',@ROE = N'2.74',@CashPerUnit = N'-0.1465',@GrossProfitRate = N'28.05',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2010-09-30',@EPS = N'0.15',@EPSDeduct = N'0.12',@Revenue = N'12.97亿',@RevenueYoy = N'87.80',@RevenueQoq = N'-1.67',@Profit = N'1.18亿',@ProfitYoy = N'53.77',@ProfiltQoq = N'28.83',@NAVPerUnit = N'4.4500',@ROE = N'3.83',@CashPerUnit = N'-0.3924',@GrossProfitRate = N'32.19',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2010-03-31',@EPS = N'0.06',@EPSDeduct = N'0.03',@Revenue = N'3.11亿',@RevenueYoy = N'112.26',@RevenueQoq = N'-28.50',@Profit = N'4633.64万',@ProfitYoy = N'335.09',@ProfiltQoq = N'10.46',@NAVPerUnit = N'3.7800',@ROE = N'1.63',@CashPerUnit = N'-0.0623',@GrossProfitRate = N'28.65',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2009-12-31',@EPS = N'0.15',@EPSDeduct = N'0.12',@Revenue = N'11.26亿',@RevenueYoy = N'-38.22',@RevenueQoq = N'70.47',@Profit = N'1.14亿',@ProfitYoy = N'-48.44',@ProfiltQoq = N'-27.36',@NAVPerUnit = N'3.7000',@ROE = N'4.38',@CashPerUnit = N'0.1234',@GrossProfitRate = N'36.67',@Distribution = N'10派1',@DividenRate = N'0.47',@AnnounceDate = N'2011-04-15'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2017-06-30',@EPS = N'-0.38',@EPSDeduct = N'-0.38',@Revenue = N'13.45亿',@RevenueYoy = N'9.75',@RevenueQoq = N'9.00',@Profit = N'-6.13亿',@ProfitYoy = N'-17.92',@ProfiltQoq = N'-176.81',@NAVPerUnit = N'0.9851',@ROE = N'-34.46',@CashPerUnit = N'0.1260',@GrossProfitRate = N'13.55',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2009-06-30',@EPS = N'0.03',@EPSDeduct = N'0.02',@Revenue = N'4.35亿',@RevenueYoy = N'-69.40',@RevenueQoq = N'96.95',@Profit = N'1930.65万',@ProfitYoy = N'-94.42',@ProfiltQoq = N'299.12',@NAVPerUnit = N'3.5100',@ROE = N'0.72',@CashPerUnit = N'0.1230',@GrossProfitRate = N'18.90',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2010-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2009-03-31',@EPS = N'-0.03',@EPSDeduct = N'-0.04',@Revenue = N'1.47亿',@RevenueYoy = N'-78.97',@RevenueQoq = N'1324.10',@Profit = N'-1971.02万',@ProfitYoy = N'-110.16',@ProfiltQoq = N'86.70',@NAVPerUnit = N'5.2400',@ROE = N'-',@CashPerUnit = N'-0.0262',@GrossProfitRate = N'5.51',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2008-12-31',@EPS = N'0.3',@EPSDeduct = N'0.46',@Revenue = N'18.22亿',@RevenueYoy = N'-31.72',@RevenueQoq = N'-102.91',@Profit = N'2.31亿',@ProfitYoy = N'-72.44',@ProfiltQoq = N'-494.92',@NAVPerUnit = N'5.2700',@ROE = N'8.75',@CashPerUnit = N'0.9452',@GrossProfitRate = N'39.00',@Distribution = N'10送5派1',@DividenRate = N'0.52',@AnnounceDate = N'2010-04-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2008-09-30',@EPS = N'0.5',@EPSDeduct = N'0.75',@Revenue = N'18.34亿',@RevenueYoy = N'-7.97',@RevenueQoq = N'-43.27',@Profit = N'3.82亿',@ProfitYoy = N'-29.55',@ProfiltQoq = N'-75.73',@NAVPerUnit = N'5.6400',@ROE = N'-',@CashPerUnit = N'-0.1203',@GrossProfitRate = N'39.91',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2008-03-31',@EPS = N'0.38',@EPSDeduct = N'0.75',@Revenue = N'6.97亿',@RevenueYoy = N'14.78',@RevenueQoq = N'3.11',@Profit = N'1.92亿',@ProfitYoy = N'16.98',@ProfiltQoq = N'-40.71',@NAVPerUnit = N'10.7400',@ROE = N'-',@CashPerUnit = N'-0.2888',@GrossProfitRate = N'46.69',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-04-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2008-06-30',@EPS = N'0.45',@EPSDeduct = N'0.68',@Revenue = N'14.23亿',@RevenueYoy = N'10.60',@RevenueQoq = N'4.11',@Profit = N'3.46亿',@ProfitYoy = N'-8.04',@ProfiltQoq = N'-19.61',@NAVPerUnit = N'5.5700',@ROE = N'12.67',@CashPerUnit = N'0.0335',@GrossProfitRate = N'42.28',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2009-08-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2007-12-31',@EPS = N'1.7',@EPSDeduct = N'3.26',@Revenue = N'26.69亿',@RevenueYoy = N'68.72',@RevenueQoq = N'-4.36',@Profit = N'8.47亿',@ProfitYoy = N'184.32',@ProfiltQoq = N'89.85',@NAVPerUnit = N'9.9900',@ROE = N'54.23',@CashPerUnit = N'1.3754',@GrossProfitRate = N'44.83',@Distribution = N'10转6送4派2',@DividenRate = N'0.51',@AnnounceDate = N'2009-03-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2007-09-30',@EPS = N'2.18',@EPSDeduct = N'2.07',@Revenue = N'19.93亿',@RevenueYoy = N'95.56',@RevenueQoq = N'9.42',@Profit = N'5.39亿',@ProfitYoy = N'211.33',@ProfiltQoq = N'1.74',@NAVPerUnit = N'6.0800',@ROE = N'-',@CashPerUnit = N'0.6949',@GrossProfitRate = N'48.41',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2007-06-30',@EPS = N'1.63',@EPSDeduct = N'1.43',@Revenue = N'12.86亿',@RevenueYoy = N'101.94',@RevenueQoq = N'8.02',@Profit = N'3.73亿',@ProfitYoy = N'261.42',@ProfiltQoq = N'3.71',@NAVPerUnit = N'5.4300',@ROE = N'26.30',@CashPerUnit = N'0.5412',@GrossProfitRate = N'51.56',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2008-08-12'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2007-03-31',@EPS = N'0.71',@EPSDeduct = N'0',@Revenue = N'6.07亿',@RevenueYoy = N'117.92',@RevenueQoq = N'6.27',@Profit = N'1.62亿',@ProfitYoy = N'288.20',@ProfiltQoq = N'23.84',@NAVPerUnit = N'4.9600',@ROE = N'-',@CashPerUnit = N'0.3908',@GrossProfitRate = N'46.01',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-04-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2016-12-31',@EPS = N'-1.36',@EPSDeduct = N'-1.58',@Revenue = N'27.60亿',@RevenueYoy = N'-13.62',@RevenueQoq = N'-3.82',@Profit = N'-21.86亿',@ProfitYoy = N'23.82',@ProfiltQoq = N'-1742.06',@NAVPerUnit = N'1.2961',@ROE = N'-52.61',@CashPerUnit = N'0.2337',@GrossProfitRate = N'1.41',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2017-03-31',@EPS = N'-0.1',@EPSDeduct = N'0',@Revenue = N'6.43亿',@RevenueYoy = N'13.37',@RevenueQoq = N'-14.51',@Profit = N'-1.63亿',@ProfitYoy = N'16.99',@ProfiltQoq = N'89.71',@NAVPerUnit = N'1.2301',@ROE = N'-8.13',@CashPerUnit = N'0.0848',@GrossProfitRate = N'13.35',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2006-09-30',@EPS = N'0.7',@EPSDeduct = N'0',@Revenue = N'10.19亿',@RevenueYoy = N'31.62',@RevenueQoq = N'15.91',@Profit = N'1.73亿',@ProfitYoy = N'39.56',@ProfiltQoq = N'47.54',@NAVPerUnit = N'3.8100',@ROE = N'-',@CashPerUnit = N'0.3186',@GrossProfitRate = N'43.24',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2006-06-30',@EPS = N'0.47',@EPSDeduct = N'0',@Revenue = N'6.16亿',@RevenueYoy = N'30.70',@RevenueQoq = N'21.39',@Profit = N'9016.29万',@ProfitYoy = N'7.67',@ProfiltQoq = N'23.34',@NAVPerUnit = N'4.2000',@ROE = N'12.09',@CashPerUnit = N'0.2423',@GrossProfitRate = N'40.52',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2007-08-14'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2006-03-31',@EPS = N'0.22',@EPSDeduct = N'0',@Revenue = N'2.74亿',@RevenueYoy = N'57.94',@RevenueQoq = N'3.98',@Profit = N'4120.68万',@ProfitYoy = N'5.77',@ProfiltQoq = N'7.44',@NAVPerUnit = N'4.0100',@ROE = N'-',@CashPerUnit = N'0.0244',@GrossProfitRate = N'37.64',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-04-26'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2005-12-31',@EPS = N'0.85',@EPSDeduct = N'0',@Revenue = N'10.38亿',@RevenueYoy = N'13.89',@RevenueQoq = N'-15.93',@Profit = N'1.62亿',@ProfitYoy = N'15.53',@ProfiltQoq = N'-0.69',@NAVPerUnit = N'3.8100',@ROE = N'24.45',@CashPerUnit = N'0.9314',@GrossProfitRate = N'33.09',@Distribution = N'10转2派1',@DividenRate = N'0.56',@AnnounceDate = N'2007-02-14'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2005-09-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'7.74亿',@RevenueYoy = N'16.74',@RevenueQoq = N'9.53',@Profit = N'1.24亿',@ProfitYoy = N'34.95',@ProfiltQoq = N'-16.96',@NAVPerUnit = N'3.6000',@ROE = N'-',@CashPerUnit = N'0.2901',@GrossProfitRate = N'40.71',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2006-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2005-06-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'4.62亿',@RevenueYoy = N'16.15',@RevenueQoq = N'64.96',@Profit = N'8547.04万',@ProfitYoy = N'55.35',@ProfiltQoq = N'19.38',@NAVPerUnit = N'3.4000',@ROE = N'13.55',@CashPerUnit = N'0.2459',@GrossProfitRate = N'45.97',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2006-08-04'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2006-12-31',@EPS = N'1.31',@EPSDeduct = N'1.14',@Revenue = N'15.82亿',@RevenueYoy = N'52.36',@RevenueQoq = N'45.74',@Profit = N'3.02亿',@ProfitYoy = N'86.12',@ProfiltQoq = N'72.26',@NAVPerUnit = N'4.2200',@ROE = N'30.51',@CashPerUnit = N'1.2076',@GrossProfitRate = N'38.77',@Distribution = N'10派2.5',@DividenRate = N'0.48',@AnnounceDate = N'2008-03-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600432',@CutoffDate = N'2009-09-30',@EPS = N'0.1',@EPSDeduct = N'0.1',@Revenue = N'6.91亿',@RevenueYoy = N'-62.35',@RevenueQoq = N'-11.58',@Profit = N'7705.58万',@ProfitYoy = N'-79.83',@ProfiltQoq = N'48.90',@NAVPerUnit = N'3.6000',@ROE = N'-',@CashPerUnit = N'0.0057',@GrossProfitRate = N'30.52',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-10-30'
|
-- Create a new table called oscars
CREATE TABLE oscars (
title VARCHAR,
award VARCHAR
);
-- Insert the data into the oscars table
INSERT INTO oscars (title, award)
VALUES
('TRANSLATION SUMMER', 'Best Film'),
('<NAME>', 'Best Film'),
('<NAME>', 'Best Film'),
('CUP<NAME>', 'Best Film'),
('LONELY ELEPHANT', 'Best Film');
-- Confirm the table was created and is populated
SELECT *
FROM oscars;
-- Create a new table named family_films (based on existing data in the db)
CREATE TABLE family_films AS
SELECT *
FROM film
WHERE rating IN ('G', 'PG');
|
CREATE PROCEDURE [dbo].[P_F_G_GET_LEDGER_OPEN_PERIOD] AS
BEGIN
SET NOCOUNT ON
SELECT * FROM OpenPeriods
SET NOCOUNT OFF
END;
|
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 27 Bulan Mei 2021 pada 07.32
-- Versi server: 10.4.11-MariaDB
-- Versi PHP: 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: `emagang`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `admins`
--
CREATE TABLE `admins` (
`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;
--
-- Dumping data untuk tabel `admins`
--
INSERT INTO `admins` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'aziz', '<EMAIL>', NULL, '$2y$10$3EkvJ9LfiFSi7idoNPw2wuzv672CED264iq7vkZokW4hWacz1/asq', 'RGTU5J96UtnM5crsES6UdD8YlnLoYhkhX7GLqOO5doERGUrb5Ki7JyJmy6xJ', '2021-04-18 22:58:42', '2021-04-18 22:58:42');
-- --------------------------------------------------------
--
-- Struktur dari tabel `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;
-- --------------------------------------------------------
--
-- Struktur dari tabel `laporan`
--
CREATE TABLE `laporan` (
`id` int(11) NOT NULL,
`nama` varchar(255) NOT NULL,
`laporan` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `laporan`
--
INSERT INTO `laporan` (`id`, `nama`, `laporan`, `created_at`, `updated_at`) VALUES
(3, 'Mumtaaz', 'public/Z9J2hvmGEpdq3Ns1tmqLiF8yGviOBTqFnTu36DsV.jpg', '2021-05-06 08:51:21', '2021-05-06 15:51:21'),
(4, 'Mumtaaz', 'public/J1Yq6geevPSM0RHCaldmJlsscGtM2xWpCvawfDsw.docx', '2021-05-06 09:09:59', '2021-05-06 16:09:59');
-- --------------------------------------------------------
--
-- Struktur dari tabel `magang`
--
CREATE TABLE `magang` (
`id` int(10) UNSIGNED NOT NULL,
`nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama_perusahaan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lokasi_magang` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(10) UNSIGNED NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `magang`
--
INSERT INTO `magang` (`id`, `nama`, `nama_perusahaan`, `lokasi_magang`, `status`, `created_at`, `updated_at`) VALUES
(1, 'gurimbull', 'Marga', 'Jawa', 2, '2021-05-26 10:38:09', '2021-05-26 19:54:56');
-- --------------------------------------------------------
--
-- Struktur dari tabel `magang_pembimbing`
--
CREATE TABLE `magang_pembimbing` (
`id` int(11) NOT NULL,
`magang_id` int(11) NOT NULL,
`pembimbing_id` int(11) NOT NULL,
`nilai` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `magang_pembimbing`
--
INSERT INTO `magang_pembimbing` (`id`, `magang_id`, `pembimbing_id`, `nilai`, `created_at`, `updated_at`) VALUES
(1, 2, 1, 50, '2021-05-05 15:13:52', '2021-05-05 15:57:16'),
(3, 3, 1, 60, '2021-05-05 08:55:42', '2021-05-05 15:55:47'),
(4, 12, 1, 50, '2021-05-19 22:15:42', '2021-05-20 05:15:55');
-- --------------------------------------------------------
--
-- Struktur dari tabel `magang_penguji`
--
CREATE TABLE `magang_penguji` (
`id` int(11) NOT NULL,
`magang_id` int(11) NOT NULL,
`penguji_id` int(11) NOT NULL,
`nilai` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `magang_penguji`
--
INSERT INTO `magang_penguji` (`id`, `magang_id`, `penguji_id`, `nilai`, `created_at`, `updated_at`) VALUES
(1, 2, 1, 70, '2021-05-05 10:33:55', '2021-05-19 07:41:46'),
(4, 12, 1, 90, '2021-05-19 22:18:42', '2021-05-20 05:18:42');
-- --------------------------------------------------------
--
-- Struktur dari tabel `magang_penilaian`
--
CREATE TABLE `magang_penilaian` (
`id` int(13) NOT NULL,
`magang_id` int(11) DEFAULT NULL,
`penilaian_id` int(11) NOT NULL,
`nilai` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `magang_penilaian`
--
INSERT INTO `magang_penilaian` (`id`, `magang_id`, `penilaian_id`, `nilai`, `created_at`, `updated_at`) VALUES
(4, 1, 4, 70, '2021-04-22 06:57:07', '0000-00-00 00:00:00'),
(6, 2, 3, 80, '2021-04-27 03:44:23', '2021-04-27 10:44:23'),
(7, 2, 2, 50, '2021-04-27 05:07:44', '2021-04-27 12:07:44'),
(8, 5, 1, 70, '2021-05-04 13:15:08', '2021-05-04 20:15:56'),
(9, 2, 4, 90, '2021-05-19 00:43:32', '2021-05-19 07:43:32'),
(10, 12, 1, 50, '2021-05-19 13:37:28', '2021-05-19 20:38:06'),
(11, 12, 3, 90, '2021-05-19 22:20:05', '2021-05-20 05:20:18');
-- --------------------------------------------------------
--
-- Struktur dari tabel `mahasiswa`
--
CREATE TABLE `mahasiswa` (
`id` int(11) NOT NULL,
`nama` varchar(255) NOT NULL,
`nim` char(11) NOT NULL,
`email` varchar(255) NOT NULL,
`jurusan` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `mahasiswa`
--
INSERT INTO `mahasiswa` (`id`, `nama`, `nim`, `email`, `jurusan`) VALUES
(1, '<NAME>', '19051397030', '<EMAIL>', 'Teknik Informatika'),
(2, '<NAME>', '19051397017', '<EMAIL>', 'Teknik Informatika'),
(3, '<NAME>', '19051397005', '<EMAIL>', 'Teknik Mesin');
-- --------------------------------------------------------
--
-- Struktur dari tabel `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 untuk tabel `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(8, '2021_03_23_223158_create_students_table', 2),
(9, '2021_04_06_054824_create_users_table', 2),
(10, '2021_04_18_153056_create_admins_table', 3),
(11, '2021_04_28_063900_table_magang', 4),
(12, '2021_04_28_114322_m_status', 5),
(13, '2021_04_28_121959_create_table_magang', 6),
(19, '2021_05_05_100037_create_presensis_table', 7),
(20, '2021_05_19_103327_create_rating', 8),
(22, '2021_05_19_142934_create_kepuasan', 9),
(24, '2021_05_19_143613_create_rating', 10),
(26, '2021_05_26_173354_create_table_magang', 11);
-- --------------------------------------------------------
--
-- Struktur dari tabel `m_status`
--
CREATE TABLE `m_status` (
`id` int(10) UNSIGNED NOT NULL,
`nama` varchar(255) 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 untuk tabel `m_status`
--
INSERT INTO `m_status` (`id`, `nama`, `created_at`, `updated_at`) VALUES
(1, 'Pending', NULL, NULL),
(2, 'Complete', NULL, NULL),
(3, 'cancel', NULL, NULL);
-- --------------------------------------------------------
--
-- Struktur dari tabel `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;
--
-- Dumping data untuk tabel `password_resets`
--
INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES
('<EMAIL>', '<KEY>', '2021-03-31 11:05:02'),
('<EMAIL>', 'Eadmv4Eq5yydX8tVa1tj9QYmjoXHlod2Wpzs3uq8UCvxKjQggB7OsuU6iiGx', '2021-03-31 11:06:59'),
('<EMAIL>', 'gX0cqxVvYU7tqGNq455AzLaAxVsW8uWNsElYgRhtLmGnVu8VhfUDMSCNMA2N', '2021-03-31 11:12:52'),
('azi<EMAIL>aja<EMAIL>', '02jyBIVdKxKKukE0Aro9uxOHseku42heMWnV8rWwaaV7mXsTPqGm03FcVUul', '2021-04-18 08:17:14'),
('<EMAIL>', 'IEXeeFhoMHRWDpHWUZHmRGY3HJENiNMmxUtMuhvPYSNb7kyXiXaRdWl4hy6g', '2021-05-05 22:43:06'),
('<EMAIL>', 'QGg0FOd5VneQ1zlkaaGzGAndPqGFJYHTg6fuMHxBE18hBuZUtGhEOHvzMps5', '2021-05-26 07:46:37');
-- --------------------------------------------------------
--
-- Struktur dari tabel `pembimbing`
--
CREATE TABLE `pembimbing` (
`id` int(11) NOT NULL,
`kode` varchar(255) NOT NULL,
`nama` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `pembimbing`
--
INSERT INTO `pembimbing` (`id`, `kode`, `nama`, `created_at`, `updated_at`) VALUES
(1, 'M-001', 'Penilaian Laporan', '2021-05-05 15:12:03', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Struktur dari tabel `penguji`
--
CREATE TABLE `penguji` (
`id` int(11) NOT NULL,
`kode` varchar(255) NOT NULL,
`nama` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `penguji`
--
INSERT INTO `penguji` (`id`, `kode`, `nama`, `created_at`, `updated_at`) VALUES
(1, 'B-001', 'Penilaian Laporan', '2021-05-05 17:16:32', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Struktur dari tabel `penilaian`
--
CREATE TABLE `penilaian` (
`id` int(13) NOT NULL,
`kode` varchar(255) NOT NULL,
`nama` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `penilaian`
--
INSERT INTO `penilaian` (`id`, `kode`, `nama`, `created_at`, `updated_at`) VALUES
(1, 'K-001', 'Penilaian Etika', '2021-04-22 06:54:49', '0000-00-00 00:00:00'),
(2, 'K-002', 'Penilaian Praktek', '2021-04-22 06:54:49', '0000-00-00 00:00:00'),
(3, 'K-003', 'Penilaian Kedisiplinan', '2021-04-22 06:54:49', '0000-00-00 00:00:00'),
(4, 'K-004', 'Penilaian Laporan', '2021-04-22 06:54:49', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Struktur dari tabel `presensi`
--
CREATE TABLE `presensi` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) NOT NULL,
`tgl` date NOT NULL,
`jammasuk` time DEFAULT NULL,
`jamkeluar` time DEFAULT NULL,
`jamkerja` time DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `presensi`
--
INSERT INTO `presensi` (`id`, `user_id`, `tgl`, `jammasuk`, `jamkeluar`, `jamkerja`, `created_at`, `updated_at`) VALUES
(1, 12, '2021-05-05', '19:22:27', '19:22:46', '00:00:19', '2021-05-05 05:22:27', '2021-05-05 05:22:46'),
(2, 4, '2021-05-06', '02:14:18', '02:15:41', '00:01:23', '2021-05-05 12:14:18', '2021-05-05 12:15:41'),
(3, 4, '2021-05-06', '02:14:35', NULL, NULL, '2021-05-05 12:14:35', '2021-05-05 12:14:35'),
(4, 4, '2021-05-06', '04:11:00', NULL, NULL, '2021-05-05 14:11:00', '2021-05-05 14:11:00'),
(5, 4, '2021-05-06', '04:11:51', NULL, NULL, '2021-05-05 14:11:51', '2021-05-05 14:11:51'),
(6, 4, '2021-05-06', '12:03:40', NULL, NULL, '2021-05-05 22:03:40', '2021-05-05 22:03:40'),
(7, 4, '2021-05-19', '14:39:51', NULL, NULL, '2021-05-19 00:39:51', '2021-05-19 00:39:51'),
(8, 4, '2021-05-20', '12:13:30', NULL, NULL, '2021-05-19 22:13:30', '2021-05-19 22:13:30'),
(9, 14, '2021-05-26', '22:00:01', NULL, NULL, '2021-05-26 08:00:01', '2021-05-26 08:00:01'),
(10, 18, '2021-05-27', '09:47:13', NULL, NULL, '2021-05-26 19:47:13', '2021-05-26 19:47:13');
-- --------------------------------------------------------
--
-- Struktur dari tabel `rating`
--
CREATE TABLE `rating` (
`id` int(10) UNSIGNED NOT NULL,
`nilai` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED 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 untuk tabel `rating`
--
INSERT INTO `rating` (`id`, `nilai`, `user_id`, `created_at`, `updated_at`) VALUES
(1, 'puas', 4, '2021-05-19 08:35:44', '2021-05-19 08:35:44'),
(2, 'puas', 9, '2021-05-19 08:37:06', '2021-05-19 08:37:06'),
(3, 'tidak puas', 12, NULL, NULL),
(4, 'puas', 7, '2021-05-19 13:23:44', '2021-05-19 13:23:44');
-- --------------------------------------------------------
--
-- Struktur dari tabel `students`
--
CREATE TABLE `students` (
`id` bigint(20) UNSIGNED NOT NULL,
`nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nim` char(11) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`jurusan` varchar(255) 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 untuk tabel `students`
--
INSERT INTO `students` (`id`, `nama`, `nim`, `email`, `jurusan`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '19051397030', '<EMAIL>', 'teknik informatika', '2021-04-07 06:03:10', '2021-04-07 06:03:10'),
(2, '<NAME>', '19051397005', '<EMAIL>', 'Teknik Informatika', '2021-04-26 07:52:51', '2021-04-26 07:52:51');
-- --------------------------------------------------------
--
-- Struktur dari tabel `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,
`level` 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;
--
-- Dumping data untuk tabel `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `level`, `remember_token`, `created_at`, `updated_at`) VALUES
(2, '<NAME>', '<EMAIL>', NULL, '$2y$10$inWviUdz54uezVItTRSFiukkRV83W4TUVGUZ399mT8ki/6sR7Q/qq', 'peserta', NULL, '2021-04-05 23:33:15', '2021-04-05 23:33:15'),
(4, 'Mumtaaz', '<EMAIL>', NULL, '$2y$10$Svf3z3Hpb2RBygmDIOL1Hu9EF65hD6sa4KVW.8AgYOjDPzjbI46Am', 'peserta', NULL, '2021-04-07 05:55:18', '2021-04-07 19:16:53'),
(7, 'Aldebaran', '<EMAIL>', NULL, '$2y$10$3/1GS5YRGDe1sJfveaQTFu3Hl4rR4r7AaZnwstiVzuGCWGjPP6kt2', 'pembimbing', NULL, '2021-04-19 08:04:57', '2021-04-19 08:04:57'),
(8, 'Starla', '<EMAIL>', NULL, '$2y$10$9fv36BY5c7W4ttmDRj7sAuG.QuZRDPwefF79nw3xREC6jUbK.cIci', 'penguji', NULL, '2021-04-19 08:07:18', '2021-04-19 08:07:18'),
(9, 'Marga', '<EMAIL>', NULL, '$2y$10$NaVUgJDsQFtYa8v1KnMJzuYniYMHBAHJK30bd069WVG4L6asmcczu', 'industri', NULL, '2021-04-19 08:09:29', '2021-04-19 08:09:29'),
(10, '<NAME>', '<EMAIL>', NULL, '$2y$10$4dZsucuWIyaNpS2dZwwgDe2z8eVu4w57cQ6DksnDZaJVMuI9.qRcq', 'peserta', NULL, '2021-04-28 22:56:14', '2021-04-28 22:56:14'),
(11, '<NAME>', '<EMAIL>', NULL, '$2y$10$.v8wVnfg9J7UTOJvgmYmxOkgU8qwOQm7msepSBT3yAedFgR0pBY5G', 'peserta', NULL, '2021-05-04 13:19:02', '2021-05-04 13:19:02'),
(12, '<NAME>', '<EMAIL>', NULL, '$2y$10$jr1fJnOFc8OwbZmn.Ie5le/mz0pyvDxZOePtQWTKdaxTwl8Xyhm8C', 'peserta', NULL, '2021-05-05 03:57:29', '2021-05-05 03:57:29'),
(13, 'Google', '<EMAIL>', NULL, '$2y$10$pcVgdHZoHZOq9iOsiOdXM.vMmDNa3ggc5y5lDj2BVPGPmavkLfhya', 'industri', NULL, '2021-05-19 00:51:00', '2021-05-19 00:51:00'),
(14, 'haidar123', '<EMAIL>', NULL, '$2y$10$TrDM2wb.qkxXUZnC09u3Uu1dOy6blabBOMpugElFjsAqls6dCkfxa', 'peserta', NULL, '2021-05-26 06:46:38', '2021-05-26 06:46:38'),
(18, 'gurimbull', '<EMAIL>', NULL, '$2y$10$NocGzUIXwCEuVYtrOMHkhuTBjSxP/5N6itQDNZOxB/fhrLAioV3ym', 'peserta', NULL, '2021-05-26 10:26:04', '2021-05-26 10:26:04');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `admins`
--
ALTER TABLE `admins`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `admins_email_unique` (`email`);
--
-- Indeks untuk tabel `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indeks untuk tabel `laporan`
--
ALTER TABLE `laporan`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `magang`
--
ALTER TABLE `magang`
ADD PRIMARY KEY (`id`),
ADD KEY `magang_status_foreign` (`status`);
--
-- Indeks untuk tabel `magang_pembimbing`
--
ALTER TABLE `magang_pembimbing`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `magang_penguji`
--
ALTER TABLE `magang_penguji`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `magang_penilaian`
--
ALTER TABLE `magang_penilaian`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `mahasiswa`
--
ALTER TABLE `mahasiswa`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `m_status`
--
ALTER TABLE `m_status`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indeks untuk tabel `pembimbing`
--
ALTER TABLE `pembimbing`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `penguji`
--
ALTER TABLE `penguji`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `penilaian`
--
ALTER TABLE `penilaian`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `presensi`
--
ALTER TABLE `presensi`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `rating`
--
ALTER TABLE `rating`
ADD PRIMARY KEY (`id`),
ADD KEY `rating_user_id_foreign` (`user_id`);
--
-- Indeks untuk tabel `students`
--
ALTER TABLE `students`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `students_nim_unique` (`nim`);
--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `admins`
--
ALTER TABLE `admins`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `laporan`
--
ALTER TABLE `laporan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT untuk tabel `magang`
--
ALTER TABLE `magang`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `magang_pembimbing`
--
ALTER TABLE `magang_pembimbing`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT untuk tabel `magang_penguji`
--
ALTER TABLE `magang_penguji`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT untuk tabel `magang_penilaian`
--
ALTER TABLE `magang_penilaian`
MODIFY `id` int(13) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT untuk tabel `mahasiswa`
--
ALTER TABLE `mahasiswa`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT untuk tabel `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
--
-- AUTO_INCREMENT untuk tabel `m_status`
--
ALTER TABLE `m_status`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT untuk tabel `pembimbing`
--
ALTER TABLE `pembimbing`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `penguji`
--
ALTER TABLE `penguji`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `penilaian`
--
ALTER TABLE `penilaian`
MODIFY `id` int(13) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT untuk tabel `presensi`
--
ALTER TABLE `presensi`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT untuk tabel `rating`
--
ALTER TABLE `rating`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT untuk tabel `students`
--
ALTER TABLE `students`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `magang`
--
ALTER TABLE `magang`
ADD CONSTRAINT `magang_status_foreign` FOREIGN KEY (`status`) REFERENCES `m_status` (`id`);
--
-- Ketidakleluasaan untuk tabel `rating`
--
ALTER TABLE `rating`
ADD CONSTRAINT `rating_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
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 */;
|
<reponame>NorthKing2812/Sistema-de-Votacion
/*
SQLyog Community v13.1.2 (32 bit)
MySQL - 10.1.38-MariaDB : Database - db_votacion
*********************************************************************
*/
/*!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*/`db_votacion` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `db_votacion`;
/*Table structure for table `candidato` */
DROP TABLE IF EXISTS `candidato`;
CREATE TABLE `candidato` (
`id_candidato` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(100) NOT NULL,
`apellido` varchar(100) NOT NULL,
`id_partido` int(11) NOT NULL,
`puesto` int(100) NOT NULL,
`foto` varchar(500) NOT NULL,
`id_provincia` int(11) DEFAULT '0',
`id_municipio` int(11) DEFAULT '0',
`estado` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id_candidato`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4;
/*Data for the table `candidato` */
insert into `candidato`(`id_candidato`,`nombre`,`apellido`,`id_partido`,`puesto`,`foto`,`id_provincia`,`id_municipio`,`estado`) values
(1,'Leonel','Fernandez',1,1,'ejemplo',NULL,NULL,1),
(2,'Pedro ','Santana',1,1,'1245191.jpg',NULL,NULL,1),
(3,'Pedro ','dsds',1,3,'1245192.jpg',10,NULL,1),
(4,'Gonzalo','Castillo',1,1,'Gonzalo_Foto_Campaña-1-1.jpg',NULL,NULL,1),
(5,'<NAME>','Liriano',2,3,'Compare.jpg',27,NULL,1),
(6,'fadf','fasdf',4,1,'Do_While_con_Switch.jpg',NULL,NULL,1),
(7,'<NAME>','afdsf',1,3,'Compare1.jpg',16,NULL,1),
(8,'Ramfis','<NAME>',10,1,'ramfis.jpg',0,0,1),
(9,'Leonel','Fernandez',3,1,'leonel.jpg',0,0,1),
(10,'Gonzalo','Castillo',3,1,'gonzalo.jpg',0,0,1),
(11,'Luis','Abinader',5,1,'abinader.jpg',0,0,1),
(12,'Kendall','Lewis',3,4,'hombre1.jpg',3,21,1),
(13,'Madaline','Carrillo',8,2,'mujer1.jpg',21,3,1),
(14,'Chantale','Cantu',10,2,'mujer2.jpg',1,9,1),
(15,'Brendan','Cotton',8,4,'mujer3.jpg',24,24,1),
(16,'Ira','Atkinson',2,4,'mujer4.jpg',3,25,1),
(17,'Clare','Harper',10,5,'mujer5.jpg',2,20,1),
(18,'Harlan','Wade',6,2,'hombre2.jpg',5,17,1),
(19,'Carlos','Richmond',2,2,'hombre3.jpg',17,18,1),
(20,'Noelle','Ruiz',7,3,'mujer6.jpg',3,10,1),
(21,'Jesus','<NAME>',5,4,'hombre3.jpg',NULL,10,1),
(22,'Jesus','<NAME>',11,4,'4.jpg',NULL,16,1),
(23,'Adei','Almodovar',6,2,'5.jpg',14,NULL,1),
(24,'Frederic','Sanjuan',1,5,'6.jpg',NULL,9,1),
(25,'Francisco','<NAME>',8,4,'8.jpg',NULL,13,1),
(26,'Olmo','Morro',3,5,'10.jpg',NULL,1,1),
(27,'Francis','<NAME>',3,2,'11.jpg',16,NULL,1),
(28,'Isabelino','Albiñana',10,4,'12.jpg',NULL,1,1),
(29,'Rosa','<NAME>',1,5,'mujer4.jpg',NULL,1,1),
(30,'Maria','Castro',3,3,'mujer5.jpg',16,NULL,1),
(31,'Sonsoles','Escolar',1,3,'mujer6.jpg',15,NULL,1),
(32,'Noralba','<NAME>',2,4,'mujer7.jpg',NULL,1,1),
(33,'Benita','<NAME>',7,4,'mujer9.jpg',NULL,16,1),
(34,'Maria ','<NAME>',6,3,'mujer10.jpg',5,NULL,1),
(35,'Adaia','Fonseca',10,3,'mujer11.jpg',19,NULL,1),
(36,'Yana ','<NAME>',1,5,'mujer12.jpg',NULL,17,1),
(37,'Fernando ','<NAME>',1,2,'13.jpg',1,NULL,1),
(38,'David ','<NAME>',8,2,'131.jpg',1,NULL,1),
(39,'<NAME>','<NAME>',8,2,'mujer13.jpg',2,NULL,1),
(40,'Samuel','<NAME>',1,2,'14.jpg',2,NULL,1),
(41,'Mario ','<NAME>',7,2,'15.jpg',4,NULL,1),
(42,'<NAME> ','<NAME>',1,2,'mujer15.jpg',4,NULL,1),
(43,'<NAME> ','<NAME>',11,2,'16.jpg',4,NULL,1),
(44,'<NAME> ','<NAME>',6,2,'mujer17.jpg',5,NULL,1),
(45,'Ramon','<NAME>',1,2,'30.jpg',5,NULL,1),
(46,'Enrique ','<NAME>',10,2,'19.jpg',5,NULL,1),
(47,'<NAME>','<NAME>',8,2,'mujer30.jpg',14,NULL,1),
(48,'Cristina ','<NAME>',7,2,'mujer29.jpg',14,NULL,1),
(49,'<NAME>','Bernabeu',1,2,'18.jpg',29,NULL,1),
(50,'Julian ','<NAME>',3,2,'191.jpg',29,NULL,1),
(51,'Eva ','<NAME>',1,2,'mujer28.jpg',29,NULL,1),
(52,'<NAME>','Padin',10,3,'20.jpg',1,NULL,1),
(53,'Victoria','<NAME>',6,3,'mujer27.jpg',1,NULL,1),
(54,'<NAME>','Puebla',1,3,'21.jpg',5,NULL,1),
(55,'Carolina','<NAME>',11,3,'mujer25.jpg',5,NULL,1),
(56,'Sebastian ','Campoy Polando',1,3,'28.jpg',5,NULL,1),
(57,'Sebastian ','Campoy Polanco',7,4,'23.jpg',NULL,1,1),
(58,'Josefina','<NAME>',1,4,'mujer26.jpg',NULL,1,1),
(59,'Angeles ','<NAME>',5,5,'mujer21.jpg',NULL,1,1),
(60,'Cristian ','Portelano Patiño',11,4,'25.jpg',NULL,2,1),
(61,'Lidia ','Barrena Pacual',6,4,'mujer20.jpg',NULL,2,1),
(62,'Lidia','Barrena Pacual',1,5,'mujer23.jpg',NULL,2,1),
(63,'Patricia ','<NAME>',5,5,'mujer22.jpg',NULL,2,1),
(64,'<NAME> ','<NAME>',1,4,'281.jpg',NULL,146,1),
(65,'Rosa','<NAME>',10,4,'mujer19.jpg',NULL,146,1);
/*Table structure for table `candidaturas` */
DROP TABLE IF EXISTS `candidaturas`;
CREATE TABLE `candidaturas` (
`id_candidato` int(11) NOT NULL,
`id_municipio` int(11) DEFAULT NULL,
`id_provincia` int(11) DEFAULT NULL,
UNIQUE KEY `id_candidato` (`id_candidato`),
KEY `id_municipio` (`id_municipio`),
KEY `id_provincia` (`id_provincia`),
CONSTRAINT `candidaturas_ibfk_1` FOREIGN KEY (`id_candidato`) REFERENCES `candidato` (`id_candidato`) ON UPDATE CASCADE,
CONSTRAINT `candidaturas_ibfk_2` FOREIGN KEY (`id_municipio`) REFERENCES `municipio` (`id_municipio`) ON UPDATE CASCADE,
CONSTRAINT `candidaturas_ibfk_3` FOREIGN KEY (`id_provincia`) REFERENCES `provincia` (`id_provincia`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `candidaturas` */
/*Table structure for table `colegio` */
DROP TABLE IF EXISTS `colegio`;
CREATE TABLE `colegio` (
`codigo_colegio` int(11) NOT NULL,
`nombre` varchar(200) NOT NULL,
`director` varchar(100) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`tel` varchar(100) NOT NULL DEFAULT '0',
`id_sector` int(11) DEFAULT NULL,
`direccion` text NOT NULL,
`latitud` varchar(30) DEFAULT NULL,
`longitud` varchar(30) DEFAULT NULL,
`estado` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`codigo_colegio`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*Data for the table `colegio` */
insert into `colegio`(`codigo_colegio`,`nombre`,`director`,`email`,`tel`,`id_sector`,`direccion`,`latitud`,`longitud`,`estado`) values
(0,'Liceo Lilian Portalatin Sosa','<NAME>','-70.24500','8093458723',229,'18.02000',NULL,NULL,0),
(2221,'Politecnico','Valenciano medina','cl<EMAIL>','0',1,'hola bro','','',0),
(2222,'<NAME>','<NAME>','<EMAIL>','0',10,'calle tal tal tal','-69.08900','18.43560',1),
(2225,'Liceo <NAME>','<NAME>','<EMAIL>','(809) 345-5678',34,' Calle Pedro Mir MZ 4689, Santo Domingo Este','-69.82360','18.50810',1),
(2251,'Liceo Prof. <NAME>',NULL,NULL,'',NULL,'\r\nCalle Prof. <NAME>','-70.16','18.73',0);
/*Table structure for table `mesa` */
DROP TABLE IF EXISTS `mesa`;
CREATE TABLE `mesa` (
`id_mesa` int(11) NOT NULL AUTO_INCREMENT,
`encargado` varchar(200) DEFAULT NULL,
`codigo_colegio` int(11) NOT NULL,
`Computada` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id_mesa`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*Data for the table `mesa` */
insert into `mesa`(`id_mesa`,`encargado`,`codigo_colegio`,`Computada`) values
(3,'<NAME>',2225,1);
/*Table structure for table `municipio` */
DROP TABLE IF EXISTS `municipio`;
CREATE TABLE `municipio` (
`id_municipio` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(100) NOT NULL,
`id_provincia` int(11) NOT NULL,
PRIMARY KEY (`id_municipio`)
) ENGINE=InnoDB AUTO_INCREMENT=156 DEFAULT CHARSET=utf8mb4;
/*Data for the table `municipio` */
insert into `municipio`(`id_municipio`,`nombre`,`id_provincia`) values
(1,'Distrito Nacional',5),
(2,'Azua de Compostela',1),
(3,'Estebanía',1),
(4,'Guayabal',1),
(5,'<NAME>',1),
(6,'<NAME>',1),
(7,'Padre Las Casas',1),
(8,'Peralta',1),
(9,'<NAME>',1),
(10,'<NAME>',1),
(11,'<NAME>',1),
(12,'Neiba',2),
(13,'Galván',2),
(14,'<NAME>íos',2),
(15,'Tamayo',2),
(16,'<NAME>',2),
(17,'Barahona',3),
(18,'Cabral',3),
(19,'<NAME>',3),
(20,'Enriquillo',3),
(21,'Fundación',3),
(22,'Jaquimeyes',3),
(23,'<NAME>',3),
(24,'<NAME>',3),
(25,'Paraíso',3),
(26,'Polo',3),
(27,'<NAME>',3),
(28,'Dajabón',4),
(29,'<NAME>',4),
(30,'<NAME>',4),
(31,'Partido',4),
(32,'Restauración',4),
(33,'<NAME>',6),
(34,'Arenoso',6),
(35,'Castillo',6),
(36,'<NAME>',6),
(37,'<NAME>',6),
(38,'Pimentel',6),
(39,'<NAME>',6),
(40,'<NAME>',8),
(41,'Miches',8),
(42,'Comendador',7),
(43,'Bánica',7),
(44,'<NAME>',7),
(45,'<NAME>',7),
(46,'<NAME>',7),
(47,'<NAME>',7),
(48,'Moca',9),
(49,'<NAME>',9),
(50,'<NAME>',9),
(51,'<NAME>',9),
(52,'<NAME>',10),
(53,'<NAME>',10),
(54,'<NAME>',10),
(55,'Salcedo',11),
(56,'Tenares',11),
(57,'<NAME>',11),
(58,'Jimaní',12),
(59,'Cristóbal',12),
(60,'Duvergé',12),
(61,'<NAME>',12),
(62,'Mella',12),
(63,'<NAME>',12),
(64,'Higüey',13),
(65,'<NAME>',13),
(66,'<NAME>',14),
(67,'Guaymate',14),
(68,'<NAME>',14),
(69,'La Concepción de La Vega',15),
(70,'Constanza',15),
(71,'Jarabacoa',15),
(72,'<NAME>',15),
(73,'Nagua',16),
(74,'Cabrera',16),
(75,'<NAME>',16),
(76,'<NAME>',16),
(77,'Bonao',17),
(78,'Maimón',17),
(79,'<NAME>',17),
(80,'Montecristi',18),
(81,'Castañuela',18),
(82,'Guayubín',18),
(83,'<NAME>',18),
(84,'<NAME>',18),
(85,'<NAME>',18),
(86,'<NAME>',19),
(87,'Bayaguana',19),
(88,'Peralvillo',19),
(89,'<NAME>',19),
(90,'Yamasá',19),
(91,'Pedernales',20),
(92,'Oviedo',20),
(93,'Baní',21),
(94,'Nizao',21),
(95,'<NAME>',22),
(96,'Altamira',22),
(97,'Guananico',22),
(98,'Imbert',22),
(99,'<NAME>',22),
(100,'Luperón',22),
(101,'Sosúa',22),
(102,'<NAME>',22),
(103,'<NAME>',22),
(104,'Samaná',23),
(105,'<NAME>',23),
(106,'Sánchez',23),
(107,'<NAME>',25),
(108,'<NAME>',25),
(109,'<NAME>',25),
(110,'<NAME>',25),
(111,'<NAME>',25),
(112,'San Gregorio de Nigua',25),
(113,'<NAME>',25),
(114,'Yaguate',25),
(115,'<NAME>',26),
(116,'<NAME>',26),
(117,'<NAME>',26),
(118,'<NAME>',27),
(119,'Bohechío',27),
(120,'<NAME>',27),
(121,'<NAME>',27),
(122,'<NAME>',27),
(123,'Vallejuelo',27),
(124,'<NAME>',28),
(125,'Consuelo',28),
(126,'Guayacanes',28),
(127,'Quisqueya',28),
(128,'<NAME>',28),
(129,'<NAME>',28),
(130,'Cotuí',24),
(131,'Cevicos',24),
(132,'Fantino',24),
(133,'<NAME>',24),
(134,'Santiago',29),
(135,'Bisonó',29),
(136,'Jánico',29),
(137,'<NAME>',29),
(138,'Puñal',29),
(139,'<NAME>',29),
(140,'<NAME>',29),
(141,'Tamboril',29),
(142,'<NAME>',29),
(143,'<NAME>',30),
(144,'Los Almácigos',30),
(145,'Monción',30),
(146,'<NAME>',31),
(147,'<NAME>',31),
(148,'Los Alcarrizos',31),
(149,'<NAME>',31),
(150,'San <NAME>',31),
(151,'Santo Domingo Norte',31),
(152,'Santo Domingo Oeste',31),
(153,'Mao',32),
(154,'Esperanza',32),
(155,'Laguna Salada',32);
/*Table structure for table `partido` */
DROP TABLE IF EXISTS `partido`;
CREATE TABLE `partido` (
`id_partido` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(100) NOT NULL,
`siglas` varchar(30) NOT NULL,
`Presidente` varchar(100) DEFAULT NULL,
`logo` varchar(1000) NOT NULL,
`HexaColor1` varchar(10) DEFAULT NULL,
`HexaColor2` varchar(10) DEFAULT NULL,
PRIMARY KEY (`id_partido`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4;
/*Data for the table `partido` */
insert into `partido`(`id_partido`,`nombre`,`siglas`,`Presidente`,`logo`,`HexaColor1`,`HexaColor2`) values
(1,'Partido de la Liberacion Dominicana','PLD','Danilo Medina','foto','#8000FF','#FFFF00'),
(2,'Partido Democrata Institucional','PDI','Ismael Reyes','PDI','#FF8000','#0040FF'),
(3,'Partido de la Liberacion Dominicana','PLD','Danilo Medina','Icono_estrellaPLD-12.png','#790168','#790168'),
(5,'Partido Revolucionario Moderno','PRM','Abinader','PRM.jpg','#F5F5F5','#130063'),
(6,'Partido Revolucionario Social Cristiano','PRSC','Balaguer','PRSC.jpg','#E70D0D','#EFE9E9'),
(7,'Partido Revolucionario Social Democrata','PRSD','<NAME>','PRSD.jpg','#BE2F2F','#2E07D6'),
(8,'Partido Revolucionario Dominicano','PRD','Hipolito Mejia','PRD.jpg','#FDF5F5','#E3F534'),
(10,'Partido Nacional Voluntad Ciudadana','PNVC','<NAME>','PNVC1.jpg','#2A00E1','#FD0000'),
(11,'Partido Socialista Verda','PASOVE','Lenin','PASOVE.jpg','#3FDA00','#BE1B1B');
/*Table structure for table `provincia` */
DROP TABLE IF EXISTS `provincia`;
CREATE TABLE `provincia` (
`id_provincia` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(100) NOT NULL,
PRIMARY KEY (`id_provincia`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4;
/*Data for the table `provincia` */
insert into `provincia`(`id_provincia`,`nombre`) values
(1,'Azua'),
(2,'Bahoruco'),
(3,'Barahona'),
(4,'Dajabón'),
(5,'Distrito Nacional'),
(6,'Duarte'),
(7,'<NAME>'),
(8,'El Seibo'),
(9,'Espaillat'),
(10,'H<NAME>'),
(11,'<NAME>'),
(12,'Independencia'),
(13,'La Altagracia'),
(14,'La Romana'),
(15,'La Vega'),
(16,'<NAME>'),
(17,'<NAME>'),
(18,'<NAME>'),
(19,'<NAME>ata'),
(20,'Pedernales'),
(21,'Peravia'),
(22,'Puerto Plata'),
(23,'Samaná'),
(24,'<NAME>'),
(25,'<NAME>'),
(26,'<NAME>'),
(27,'<NAME>'),
(28,'<NAME>'),
(29,'Santiago'),
(30,'<NAME>'),
(31,'<NAME>'),
(32,'Valverde');
/*Table structure for table `puesto` */
DROP TABLE IF EXISTS `puesto`;
CREATE TABLE `puesto` (
`id_puesto` int(3) NOT NULL,
`descripcion` varchar(80) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `puesto` */
insert into `puesto`(`id_puesto`,`descripcion`) values
(1,'Presidente'),
(2,'Diputado'),
(3,'Senador'),
(4,'Alcalde'),
(5,'ViceAlcalde');
/*Table structure for table `sector` */
DROP TABLE IF EXISTS `sector`;
CREATE TABLE `sector` (
`id_sector` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(100) NOT NULL,
`id_municipio` int(11) NOT NULL,
PRIMARY KEY (`id_sector`)
) ENGINE=InnoDB AUTO_INCREMENT=230 DEFAULT CHARSET=utf8mb4;
/*Data for the table `sector` */
insert into `sector`(`id_sector`,`nombre`,`id_municipio`) values
(1,'Barreras',2),
(2,'<NAME>',2),
(3,'Clavellina',2),
(4,'<NAME>',2),
(5,'<NAME>-La Estancia',2),
(6,'<NAME>',2),
(7,'<NAME>',2),
(8,'<NAME>',2),
(9,'Hatillo',5),
(10,'<NAME>',5),
(11,'Villarpando',6),
(12,'<NAME>-Cortés',6),
(13,'La Siembra',7),
(14,'<NAME>',7),
(15,'<NAME>os',7),
(16,'El Rosario',9),
(17,'Proyecto 4',10),
(18,'Ganadero',10),
(19,'Proyecto 2-C',10),
(20,'<NAME>',11),
(21,'<NAME>',11),
(22,'<NAME>',11),
(23,'<NAME>',12),
(24,'El Salado',13),
(25,'<NAME>',14),
(26,'<NAME>',15),
(27,'Mena',15),
(28,'Monserrat',15),
(29,'<NAME>-El 6',15),
(30,'Santana',15),
(31,'Uvilla',15),
(32,'<NAME>',17),
(33,'<NAME>',17),
(34,'Villa Central',17),
(35,'<NAME>',20),
(36,'Pescadería',21),
(37,'<NAME>',22),
(38,'Bahoruco',23),
(39,'<NAME>',25),
(40,'Canoa',27),
(41,'<NAME>',27),
(42,'<NAME>',27),
(43,'Cañongo',28),
(44,'<NAME>',4),
(45,'Capotillo',30),
(46,'<NAME>',30),
(47,'Cenoví',33),
(48,'Jaya',33),
(49,'La Peña',33),
(50,'Presidente <NAME>',33),
(51,'Aguacate',34),
(52,'<NAME>',34),
(53,'<NAME>',36),
(54,'<NAME>',39),
(55,'Barraquito',39),
(56,'<NAME>',39),
(57,'<NAME>',39),
(58,'<NAME>',40),
(59,'San Francisco-Vicentillo',40),
(60,'<NAME>',41),
(61,'El Cedro',41),
(62,'<NAME>',41),
(63,'Guayabo',42),
(64,'<NAME>',42),
(65,'<NAME>',43),
(66,'<NAME>',43),
(67,'Guanito',44),
(68,'<NAME>',45),
(69,'<NAME>',47),
(70,'<NAME>',48),
(71,'El Higüerito',48),
(72,'<NAME>',48),
(73,'<NAME>',48),
(74,'<NAME>',48),
(75,'<NAME>',48),
(76,'<NAME>',48),
(77,'<NAME>',48),
(78,'<NAME>',50),
(79,'Veragua',50),
(80,'<NAME>',50),
(81,'<NAME>',52),
(82,'<NAME>',52),
(83,'<NAME>',52),
(84,'<NAME>',54),
(85,'<NAME>',55),
(86,'Blanco',56),
(87,'<NAME>',58),
(88,'<NAME>',58),
(89,'<NAME>',59),
(90,'<NAME>',60),
(91,'La Colonia',62),
(92,'Guayabal',63),
(93,'La Otra Banda',64),
(94,'<NAME>',64),
(95,'Verón-<NAME>',64),
(96,'Bayahibe',65),
(97,'<NAME>',65),
(98,'Caleta',66),
(99,'Cumayasa',68),
(100,'El Ranchito',69),
(101,'<NAME>',69),
(102,'La Sabina',70),
(103,'Tireo',70),
(104,'<NAME>',70),
(105,'Manabao',71),
(106,'Rincón',72),
(107,'<NAME>',73),
(108,'<NAME>',73),
(109,'<NAME>',73),
(110,'<NAME>',74),
(111,'La Entrada',74),
(112,'<NAME>',75),
(113,'<NAME>-Masipedro',77),
(114,'La Salvia-Los Quemados',77),
(115,'Jayaco',77),
(116,'<NAME>',77),
(117,'Sabana del Puerto',77),
(118,'<NAME>',79),
(119,'<NAME>',79),
(120,'<NAME>',81),
(121,'<NAME>',82),
(122,'<NAME>',82),
(123,'<NAME>',82),
(124,'Boyá',86),
(125,'Chirino',86),
(126,'<NAME>',86),
(127,'Gonzalo',89),
(128,'Majagual',89),
(129,'<NAME>',90),
(130,'<NAME>',91),
(131,'Juancho',91),
(132,'Catalina',93),
(133,'<NAME>',93),
(134,'<NAME>',93),
(135,'<NAME>',93),
(136,'Matanzas',93),
(137,'Paya',93),
(138,'<NAME>',93),
(139,'<NAME>',93),
(140,'<NAME>',93),
(141,'Pizarrete',94),
(142,'Santana',94),
(143,'Maimón',86),
(144,'<NAME>',86),
(145,'<NAME>',96),
(146,'Navas',99),
(147,'Belloso',100),
(148,'Estrecho',100),
(149,'<NAME>',100),
(150,'Cabarete',101),
(151,'<NAME>',101),
(152,'<NAME>',102),
(153,'Gualete',102),
(154,'<NAME>',102),
(155,'<NAME>',104),
(156,'<NAME>',104),
(157,'<NAME>',104),
(158,'<NAME>',107),
(159,'<NAME>',108),
(160,'<NAME>',109),
(161,'<NAME>',113),
(162,'Medina',113),
(163,'<NAME>',113),
(164,'<NAME>',115),
(165,'<NAME>',115),
(166,'<NAME>',115),
(167,'Nizao-<NAME>',115),
(168,'<NAME>',118),
(169,'Guanito',118),
(170,'<NAME>',118),
(171,'<NAME>',118),
(172,'<NAME>',118),
(173,'<NAME>',118),
(174,'<NAME>',118),
(175,'<NAME>',118),
(176,'Sabaneta',118),
(177,'<NAME>',119),
(178,'Yaque',119),
(179,'Batista',120),
(180,'Derrumbadero',120),
(181,'Jínova',121),
(182,'<NAME>',122),
(183,'Matayaya',122),
(184,'Jorjillo',123),
(185,'El Puerto',129),
(186,'Gautier',129),
(187,'Caballero',130),
(188,'<NAME>',130),
(189,'<NAME>',130),
(190,'La Cueva',131),
(191,'Platanal',131),
(192,'Angelina',133),
(193,'<NAME>',133),
(194,'<NAME>',133),
(195,'Baitoa',134),
(196,'<NAME>',134),
(197,'<NAME>',134),
(198,'<NAME>',134),
(199,'<NAME>',134),
(200,'<NAME>',136),
(201,'Juncalito',136),
(202,'<NAME>',137),
(203,'Canabacoa',137),
(204,'Guayabal',137),
(205,'<NAME>',140),
(206,'<NAME>',140),
(207,'<NAME>',140),
(208,'<NAME>',141),
(209,'<NAME>',142),
(210,'<NAME>',142),
(211,'<NAME>',146),
(212,'<NAME>',147),
(213,'<NAME>',148),
(214,'Pantoja',148),
(215,'<NAME>',149),
(216,'<NAME>',149),
(217,'<NAME>',150),
(218,'<NAME>',151),
(219,'Ámina',153),
(220,'Guatapanal',153),
(221,'Jaibón (Pueblo Nuevo)',153),
(222,'<NAME>',154),
(223,'Jicomé',154),
(224,'Maizal',154),
(225,'Paradero',154),
(226,'<NAME>',155),
(227,'Jaibón',155),
(228,'<NAME>',155),
(229,'Invivienda',146);
/*Table structure for table `usuarios` */
DROP TABLE IF EXISTS `usuarios`;
CREATE TABLE `usuarios` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombres` varchar(100) DEFAULT NULL,
`apellidos` varchar(100) DEFAULT NULL,
`telefono` varchar(20) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`username` varchar(45) DEFAULT NULL,
`password` varchar(100) DEFAULT NULL,
`rol_id` int(11) DEFAULT NULL,
`estado` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username_UNIQUE` (`username`),
UNIQUE KEY `email_UNIQUE` (`email`),
KEY `fk_rol_usuarios_idx` (`rol_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;
/*Data for the table `usuarios` */
insert into `usuarios`(`id`,`nombres`,`apellidos`,`telefono`,`email`,`username`,`password`,`rol_id`,`estado`) values
(2,'jose2','perez','8090','809','admin','<PASSWORD>',1,1),
(9,'Juan ','Sanchez','(849) 473-5263','<EMAIL>','<EMAIL>','<PASSWORD>',NULL,1);
/*Table structure for table `votante` */
DROP TABLE IF EXISTS `votante`;
CREATE TABLE `votante` (
`id_votante` int(11) NOT NULL AUTO_INCREMENT,
`cedula` varchar(100) NOT NULL,
`CodColegio` int(11) DEFAULT NULL,
PRIMARY KEY (`id_votante`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4;
/*Data for the table `votante` */
insert into `votante`(`id_votante`,`cedula`,`CodColegio`) values
(29,'444-4333222-2',NULL);
/*Table structure for table `votante_voto` */
DROP TABLE IF EXISTS `votante_voto`;
CREATE TABLE `votante_voto` (
`id_voto` int(11) NOT NULL AUTO_INCREMENT,
`id_votante` int(11) NOT NULL,
`id_mesa` int(11) NOT NULL,
`id_candidato` int(11) NOT NULL,
`fecha_voto` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id_voto`)
) ENGINE=InnoDB AUTO_INCREMENT=2802 DEFAULT CHARSET=latin1;
/*Data for the table `votante_voto` */
insert into `votante_voto`(`id_voto`,`id_votante`,`id_mesa`,`id_candidato`,`fecha_voto`) values
(1,1,3,1,'2019-12-05 02:31:57'),
(2,1,1,3,'2019-12-12 09:52:22'),
(3,19,3,2,'2019-12-05 21:13:17'),
(4,19,3,3,'2019-12-05 21:13:21'),
(5,19,3,5,'2019-12-05 21:13:23'),
(6,20,3,4,'2019-12-05 21:19:58'),
(7,20,3,3,'2019-12-05 21:20:13'),
(8,20,3,5,'2019-12-05 21:20:28'),
(9,26,3,0,'2019-12-05 22:53:54'),
(10,26,3,3,'2019-12-05 22:53:59'),
(11,26,3,0,'2019-12-05 22:54:01'),
(12,26,3,5,'2019-12-05 22:54:07'),
(13,27,3,2,'2019-12-05 22:54:27'),
(14,27,3,0,'2019-12-05 22:54:30'),
(15,27,3,0,'2019-12-05 22:54:35'),
(16,27,3,0,'2019-12-05 22:54:41'),
(17,28,3,0,'2019-12-05 22:55:49'),
(18,28,3,0,'2019-12-05 22:55:53'),
(19,28,3,0,'2019-12-05 22:55:55'),
(20,29,3,0,'2019-12-05 22:57:39'),
(21,29,3,3,'2019-12-05 22:57:42'),
(22,29,3,0,'2019-12-05 22:57:45'),
(1304,8,3,3,'2019-12-05 06:19:16'),
(1305,7,4,65,'2019-12-05 18:30:30'),
(1306,5,3,26,'2019-12-05 15:10:53'),
(1307,4,4,48,'2019-12-05 14:31:42'),
(1308,7,4,59,'2019-12-05 01:55:08'),
(1309,4,4,28,'2019-12-05 09:04:32'),
(1310,6,3,45,'2019-12-05 11:55:48'),
(1311,9,4,30,'2019-12-05 04:12:41'),
(1312,6,3,9,'2019-12-05 08:09:04'),
(1313,6,4,7,'2019-12-05 01:19:36'),
(1314,4,3,39,'2019-12-05 20:32:38'),
(1315,3,3,29,'2019-12-05 21:14:11'),
(1316,5,3,15,'2019-12-05 22:19:22'),
(1317,8,3,5,'2019-12-05 17:49:03'),
(1318,7,4,59,'2019-12-05 09:23:12'),
(1319,4,4,55,'2019-12-05 01:48:45'),
(1320,3,3,35,'2019-12-05 06:24:20'),
(1321,8,4,45,'2019-12-05 18:55:10'),
(1322,5,3,25,'2019-12-05 15:06:02'),
(1323,3,3,23,'2019-12-05 10:45:56'),
(1324,9,3,22,'2019-12-05 13:13:07'),
(1325,6,3,23,'2019-12-05 11:37:39'),
(1326,2,3,51,'2019-12-05 05:13:28'),
(1327,2,4,55,'2019-12-05 22:54:18'),
(1328,5,3,59,'2019-12-05 10:47:12'),
(1329,3,4,60,'2019-12-05 13:38:28'),
(1330,9,4,12,'2019-12-05 06:48:45'),
(1331,5,4,39,'2019-12-05 10:33:27'),
(1332,10,3,6,'2019-12-05 22:33:42'),
(1333,5,4,5,'2019-12-05 03:20:22'),
(1334,9,4,14,'2019-12-05 08:31:10'),
(1335,4,3,5,'2019-12-05 08:52:26'),
(1336,10,4,8,'2019-12-05 05:49:34'),
(1337,2,3,65,'2019-12-05 08:11:51'),
(1338,4,3,41,'2019-12-05 10:48:52'),
(1339,4,4,32,'2019-12-05 23:03:25'),
(1340,7,3,2,'2019-12-05 16:19:07'),
(1341,4,4,45,'2019-12-05 05:46:45'),
(1342,8,4,3,'2019-12-05 12:03:22'),
(1343,9,3,13,'2019-12-05 11:05:02'),
(1344,7,3,51,'2019-12-05 09:52:19'),
(1345,1,3,28,'2019-12-05 03:51:27'),
(1346,3,4,6,'2019-12-05 18:15:34'),
(1347,9,4,6,'2019-12-05 07:30:25'),
(1348,2,3,42,'2019-12-05 11:27:16'),
(1349,7,4,9,'2019-12-05 15:40:30'),
(1350,4,3,27,'2019-12-05 22:32:24'),
(1351,3,3,38,'2019-12-05 04:59:03'),
(1352,4,3,12,'2019-12-05 14:41:26'),
(1353,7,4,4,'2019-12-05 04:10:30'),
(1354,5,3,60,'2019-12-05 21:02:48'),
(1355,3,3,21,'2019-12-05 09:34:28'),
(1356,4,3,38,'2019-12-05 19:31:39'),
(1357,3,4,58,'2019-12-05 15:09:47'),
(1358,3,3,45,'2019-12-05 17:47:48'),
(1359,2,3,64,'2019-12-05 20:04:52'),
(1360,1,3,54,'2019-12-05 23:43:41'),
(1361,1,4,24,'2019-12-05 08:46:14'),
(1362,10,3,51,'2019-12-05 17:43:24'),
(1363,3,3,11,'2019-12-05 07:57:50'),
(1364,3,3,61,'2019-12-05 17:49:36'),
(1365,5,4,38,'2019-12-05 10:03:26'),
(1366,6,4,54,'2019-12-05 12:04:04'),
(1367,10,3,63,'2019-12-05 22:18:23'),
(1368,1,4,8,'2019-12-05 18:38:37'),
(1369,10,4,15,'2019-12-05 17:32:24'),
(1370,3,4,24,'2019-12-05 14:29:13'),
(1371,2,4,59,'2019-12-05 11:22:01'),
(1372,7,3,61,'2019-12-05 21:34:01'),
(1373,3,4,37,'2019-12-05 17:47:41'),
(1374,4,4,1,'2019-12-05 16:45:38'),
(1375,8,3,13,'2019-12-05 12:55:12'),
(1376,8,4,58,'2019-12-05 08:12:37'),
(1377,5,4,38,'2019-12-05 11:20:57'),
(1378,2,3,31,'2019-12-05 18:21:25'),
(1379,7,3,59,'2019-12-05 22:28:36'),
(1380,10,3,47,'2019-12-05 23:47:09'),
(1381,5,4,2,'2019-12-05 10:49:34'),
(1382,9,4,61,'2019-12-05 05:36:22'),
(1383,10,4,21,'2019-12-05 19:17:40'),
(1384,6,4,29,'2019-12-05 03:37:52'),
(1385,10,3,42,'2019-12-05 03:53:23'),
(1386,2,3,61,'2019-12-05 23:41:17'),
(1387,5,3,42,'2019-12-05 08:49:03'),
(1388,3,3,52,'2019-12-05 09:39:01'),
(1389,1,4,32,'2019-12-05 19:05:45'),
(1390,1,4,22,'2019-12-05 07:11:37'),
(1391,5,3,27,'2019-12-05 22:55:48'),
(1392,6,4,21,'2019-12-05 23:03:16'),
(1393,9,3,18,'2019-12-05 23:43:43'),
(1394,6,3,8,'2019-12-05 14:42:45'),
(1395,2,4,42,'2019-12-05 07:10:30'),
(1396,6,3,39,'2019-12-05 01:02:28'),
(1397,6,4,14,'2019-12-05 00:06:02'),
(1398,1,4,7,'2019-12-05 12:26:05'),
(1399,6,4,51,'2019-12-05 21:03:23'),
(1400,1,4,38,'2019-12-05 06:23:20'),
(1401,8,4,15,'2019-12-05 08:40:16'),
(1402,3,4,36,'2019-12-05 09:27:43'),
(1403,3,4,39,'2019-12-05 13:50:50'),
(1404,2,3,25,'2019-12-05 07:10:49'),
(1405,9,3,49,'2019-12-05 04:30:39'),
(1406,4,4,4,'2019-12-05 23:22:54'),
(1407,1,4,6,'2019-12-05 04:18:41'),
(1408,5,4,6,'2019-12-05 05:16:19'),
(1409,7,3,65,'2019-12-05 05:56:16'),
(1410,1,3,41,'2019-12-05 17:48:42'),
(1411,4,4,5,'2019-12-05 22:58:36'),
(1412,1,4,25,'2019-12-05 05:13:06'),
(1413,8,4,19,'2019-12-05 20:10:25'),
(1414,2,4,54,'2019-12-05 15:28:54'),
(1415,7,3,57,'2019-12-05 16:24:23'),
(1416,4,3,53,'2019-12-05 17:03:35'),
(1417,1,4,45,'2019-12-05 19:26:45'),
(1418,10,4,22,'2019-12-05 15:26:03'),
(1419,7,3,4,'2019-12-05 04:13:57'),
(1420,3,3,44,'2019-12-05 04:26:20'),
(1421,4,3,28,'2019-12-05 00:00:57'),
(1422,2,3,47,'2019-12-05 13:14:11'),
(1423,10,4,39,'2019-12-05 12:46:20'),
(1424,3,3,55,'2019-12-05 17:17:28'),
(1425,4,3,43,'2019-12-05 12:12:27'),
(1426,7,4,3,'2019-12-05 17:08:05'),
(1427,10,3,62,'2019-12-05 19:03:11'),
(1428,10,4,16,'2019-12-05 11:07:09'),
(1429,10,3,15,'2019-12-05 02:26:35'),
(1430,6,3,9,'2019-12-05 16:08:11'),
(1431,7,3,14,'2019-12-05 07:14:14'),
(1432,3,3,64,'2019-12-05 12:38:07'),
(1433,6,4,57,'2019-12-05 22:41:02'),
(1434,1,3,18,'2019-12-05 18:41:31'),
(1435,7,4,3,'2019-12-05 17:08:34'),
(1436,1,4,51,'2019-12-05 21:40:32'),
(1437,2,4,36,'2019-12-05 10:22:03'),
(1438,5,3,60,'2019-12-05 19:23:44'),
(1439,6,4,39,'2019-12-05 21:48:59'),
(1440,10,4,17,'2019-12-05 13:18:14'),
(1441,2,3,30,'2019-12-05 02:39:54'),
(1442,2,3,55,'2019-12-05 13:20:38'),
(1443,10,4,31,'2019-12-05 14:39:51'),
(1444,6,3,61,'2019-12-05 04:19:13'),
(1445,7,4,18,'2019-12-05 00:53:28'),
(1446,6,3,47,'2019-12-05 22:07:36'),
(1447,10,4,22,'2019-12-05 08:42:04'),
(1448,7,4,60,'2019-12-05 22:09:47'),
(1449,10,3,62,'2019-12-05 18:17:24'),
(1450,9,4,6,'2019-12-05 19:41:03'),
(1451,7,3,53,'2019-12-05 10:17:22'),
(1452,6,4,12,'2019-12-05 10:05:26'),
(1453,5,3,3,'2019-12-05 01:10:36'),
(1454,1,3,18,'2019-12-05 09:21:55'),
(1455,6,3,49,'2019-12-05 11:19:33'),
(1456,8,4,9,'2019-12-05 00:25:19'),
(1457,8,3,54,'2019-12-05 21:31:20'),
(1458,5,3,24,'2019-12-05 03:36:17'),
(1459,6,4,44,'2019-12-05 23:27:50'),
(1460,4,4,54,'2019-12-05 00:42:16'),
(1461,2,3,25,'2019-12-05 11:16:50'),
(1462,2,3,54,'2019-12-05 13:39:11'),
(1463,9,3,37,'2019-12-05 07:56:55'),
(1464,1,3,56,'2019-12-05 20:45:11'),
(1465,10,4,36,'2019-12-05 08:05:34'),
(1466,3,4,10,'2019-12-05 11:58:47'),
(1467,7,3,31,'2019-12-05 13:44:54'),
(1468,7,4,33,'2019-12-05 23:58:30'),
(1469,2,4,41,'2019-12-05 10:12:05'),
(1470,3,4,30,'2019-12-05 11:49:21'),
(1471,7,4,51,'2019-12-05 16:32:17'),
(1472,10,3,39,'2019-12-05 11:06:49'),
(1473,5,4,8,'2019-12-05 22:27:06'),
(1474,8,4,46,'2019-12-05 09:00:10'),
(1475,8,3,1,'2019-12-05 16:08:50'),
(1476,3,4,15,'2019-12-05 09:44:51'),
(1477,8,4,62,'2019-12-05 11:43:48'),
(1478,3,4,6,'2019-12-05 04:39:49'),
(1479,9,3,29,'2019-12-05 20:48:01'),
(1480,5,3,27,'2019-12-05 02:48:25'),
(1481,2,4,5,'2019-12-05 00:08:03'),
(1482,4,4,53,'2019-12-05 19:56:21'),
(1483,9,3,45,'2019-12-05 16:19:29'),
(1484,2,3,64,'2019-12-05 05:42:52'),
(1485,4,3,26,'2019-12-05 17:34:37'),
(1486,10,4,19,'2019-12-05 09:46:14'),
(1487,1,3,41,'2019-12-05 03:30:29'),
(1488,10,3,26,'2019-12-05 16:21:46'),
(1489,8,4,18,'2019-12-05 16:07:45'),
(1490,6,4,62,'2019-12-05 13:05:10'),
(1491,8,3,18,'2019-12-05 01:46:46'),
(1492,10,4,47,'2019-12-05 22:26:00'),
(1493,6,3,1,'2019-12-05 22:23:55'),
(1494,7,3,57,'2019-12-05 19:22:32'),
(1495,6,3,56,'2019-12-05 02:42:53'),
(1496,6,3,56,'2019-12-05 23:02:21'),
(1497,5,3,48,'2019-12-05 22:33:58'),
(1498,2,4,53,'2019-12-05 01:18:36'),
(1499,2,3,40,'2019-12-05 13:03:18'),
(1500,1,3,31,'2019-12-05 18:09:27'),
(1501,5,4,23,'2019-12-05 06:30:16'),
(1502,6,4,55,'2019-12-05 07:39:53'),
(1503,6,4,53,'2019-12-05 03:04:59'),
(1504,2,4,36,'2019-12-05 12:32:14'),
(1505,3,3,60,'2019-12-05 22:53:43'),
(1506,9,3,21,'2019-12-05 10:43:44'),
(1507,5,3,35,'2019-12-05 17:13:50'),
(1508,10,4,46,'2019-12-05 15:58:35'),
(1509,9,4,3,'2019-12-05 18:05:48'),
(1510,2,3,49,'2019-12-05 07:29:18'),
(1511,10,4,25,'2019-12-05 21:07:30'),
(1512,6,3,7,'2019-12-05 19:13:50'),
(1513,6,3,17,'2019-12-05 06:39:38'),
(1514,2,3,24,'2019-12-05 09:52:47'),
(1515,4,4,33,'2019-12-05 04:07:03'),
(1516,7,3,52,'2019-12-05 16:36:31'),
(1517,8,3,63,'2019-12-05 23:29:08'),
(1518,3,3,62,'2019-12-05 21:04:24'),
(1519,6,3,43,'2019-12-05 12:24:04'),
(1520,7,3,39,'2019-12-05 20:28:05'),
(1521,9,4,9,'2019-12-05 12:51:09'),
(1522,4,4,26,'2019-12-05 17:01:10'),
(1523,8,4,36,'2019-12-05 01:43:58'),
(1524,5,3,12,'2019-12-05 12:25:47'),
(1525,4,4,51,'2019-12-05 06:39:27'),
(1526,7,4,1,'2019-12-05 11:08:28'),
(1527,2,4,62,'2019-12-05 11:53:38'),
(1528,9,3,58,'2019-12-05 11:12:57'),
(1529,2,3,63,'2019-12-05 07:08:06'),
(1530,2,4,41,'2019-12-05 03:31:34'),
(1531,9,4,65,'2019-12-05 18:39:09'),
(1532,9,3,42,'2019-12-05 14:09:48'),
(1533,9,4,8,'2019-12-05 19:52:43'),
(1534,9,3,63,'2019-12-05 05:55:12'),
(1535,4,3,27,'2019-12-05 10:46:58'),
(1536,8,3,43,'2019-12-05 13:41:07'),
(1537,1,4,1,'2019-12-05 13:04:10'),
(1538,7,4,19,'2019-12-05 07:07:43'),
(1539,2,4,38,'2019-12-05 22:11:22'),
(1540,1,3,12,'2019-12-05 06:46:42'),
(1541,9,3,21,'2019-12-05 09:15:03'),
(1542,1,4,5,'2019-12-05 18:15:53'),
(1543,1,4,40,'2019-12-05 23:23:54'),
(1544,6,3,56,'2019-12-05 04:24:35'),
(1545,8,3,32,'2019-12-05 09:51:55'),
(1546,9,3,19,'2019-12-05 00:12:44'),
(1547,3,3,34,'2019-12-05 12:39:38'),
(1548,7,3,13,'2019-12-05 13:30:06'),
(1549,4,3,55,'2019-12-05 01:58:10'),
(1550,9,3,53,'2019-12-05 04:55:49'),
(1551,9,4,37,'2019-12-05 17:04:39'),
(1552,3,3,27,'2019-12-05 08:12:55'),
(1553,4,4,54,'2019-12-05 03:56:23'),
(1554,3,3,40,'2019-12-05 04:08:35'),
(1555,5,4,25,'2019-12-05 15:22:27'),
(1556,1,4,23,'2019-12-05 06:43:04'),
(1557,7,4,1,'2019-12-05 08:18:15'),
(1558,9,4,10,'2019-12-05 16:28:25'),
(1559,10,4,33,'2019-12-05 19:17:36'),
(1560,8,3,51,'2019-12-05 08:08:54'),
(1561,7,4,59,'2019-12-05 17:31:20'),
(1562,9,3,38,'2019-12-05 11:57:15'),
(1563,6,3,20,'2019-12-05 19:17:45'),
(1564,7,3,37,'2019-12-05 07:04:06'),
(1565,9,3,53,'2019-12-05 15:52:48'),
(1566,1,3,57,'2019-12-05 13:37:02'),
(1567,8,3,48,'2019-12-05 01:48:16'),
(1568,8,4,29,'2019-12-05 21:27:19'),
(1569,10,3,49,'2019-12-05 09:51:31'),
(1570,5,4,20,'2019-12-05 04:05:11'),
(1571,6,4,31,'2019-12-05 17:00:51'),
(1572,5,4,30,'2019-12-05 02:19:20'),
(1573,4,4,14,'2019-12-05 04:46:26'),
(1574,9,4,4,'2019-12-05 12:20:24'),
(1575,8,3,35,'2019-12-05 13:00:45'),
(1576,5,3,44,'2019-12-05 13:46:47'),
(1577,7,3,24,'2019-12-05 05:30:31'),
(1578,9,3,54,'2019-12-05 02:34:12'),
(1579,3,4,15,'2019-12-05 16:46:17'),
(1580,8,3,14,'2019-12-05 11:45:37'),
(1581,6,4,10,'2019-12-05 09:27:36'),
(1582,4,3,23,'2019-12-05 10:29:30'),
(1583,8,3,10,'2019-12-05 10:31:17'),
(1584,9,3,21,'2019-12-05 16:08:26'),
(1585,2,4,6,'2019-12-05 21:21:58'),
(1586,2,3,43,'2019-12-05 21:25:27'),
(1587,1,3,60,'2019-12-05 04:51:48'),
(1588,1,4,22,'2019-12-05 08:47:47'),
(1589,1,4,25,'2019-12-05 22:20:53'),
(1590,6,3,24,'2019-12-05 10:51:43'),
(1591,9,3,5,'2019-12-05 04:29:20'),
(1592,5,4,64,'2019-12-05 16:04:01'),
(1593,7,3,37,'2019-12-05 22:45:27'),
(1594,5,4,20,'2019-12-05 17:20:56'),
(1595,10,3,1,'2019-12-05 09:31:05'),
(1596,6,4,7,'2019-12-05 15:43:44'),
(1597,9,3,21,'2019-12-05 23:01:41'),
(1598,2,3,39,'2019-12-05 09:26:50'),
(1599,3,4,6,'2019-12-05 22:53:40'),
(1600,5,4,22,'2019-12-05 08:22:24'),
(1601,5,4,50,'2019-12-05 23:52:50'),
(1602,1,4,30,'2019-12-05 10:48:06'),
(1603,10,4,14,'2019-12-05 06:20:46'),
(1604,2,3,52,'2019-12-05 16:40:36'),
(1605,2,4,43,'2019-12-05 00:56:47'),
(1606,9,4,45,'2019-12-05 01:51:35'),
(1607,6,4,38,'2019-12-05 11:43:51'),
(1608,10,3,5,'2019-12-05 12:22:45'),
(1609,3,3,13,'2019-12-05 06:31:19'),
(1610,3,4,30,'2019-12-05 23:30:32'),
(1611,1,4,43,'2019-12-05 18:06:58'),
(1612,9,3,1,'2019-12-05 04:38:45'),
(1613,3,4,48,'2019-12-05 06:05:09'),
(1614,9,4,52,'2019-12-05 18:16:21'),
(1615,4,4,31,'2019-12-05 08:59:21'),
(1616,2,3,12,'2019-12-05 11:40:27'),
(1617,9,3,40,'2019-12-05 06:55:29'),
(1618,8,4,39,'2019-12-05 04:49:33'),
(1619,4,3,27,'2019-12-05 01:59:58'),
(1620,7,3,31,'2019-12-05 17:45:07'),
(1621,5,4,62,'2019-12-05 09:44:03'),
(1622,6,4,6,'2019-12-05 16:51:30'),
(1623,5,4,32,'2019-12-05 17:26:55'),
(1624,8,3,59,'2019-12-05 14:38:03'),
(1625,1,4,22,'2019-12-05 17:10:36'),
(1626,1,3,22,'2019-12-05 21:19:51'),
(1627,5,4,41,'2019-12-05 05:23:44'),
(1628,5,3,56,'2019-12-05 22:05:16'),
(1629,10,3,60,'2019-12-05 14:04:14'),
(1630,10,3,57,'2019-12-05 19:14:24'),
(1631,10,3,55,'2019-12-05 13:47:46'),
(1632,4,4,8,'2019-12-05 20:14:01'),
(1633,2,3,24,'2019-12-05 16:58:27'),
(1634,10,4,39,'2019-12-05 10:26:38'),
(1635,10,4,46,'2019-12-05 02:47:04'),
(1636,6,4,11,'2019-12-05 23:07:54'),
(1637,8,4,45,'2019-12-05 14:17:28'),
(1638,10,3,2,'2019-12-05 16:54:04'),
(1639,2,3,16,'2019-12-05 18:03:29'),
(1640,1,3,11,'2019-12-05 15:27:18'),
(1641,8,3,40,'2019-12-05 11:06:08'),
(1642,7,3,29,'2019-12-05 22:02:56'),
(1643,7,3,56,'2019-12-05 03:13:40'),
(1644,10,4,29,'2019-12-05 12:54:26'),
(1645,9,3,20,'2019-12-05 08:02:24'),
(1646,8,3,27,'2019-12-05 02:12:24'),
(1647,3,3,49,'2019-12-05 11:44:27'),
(1648,7,3,59,'2019-12-05 17:48:04'),
(1649,5,4,54,'2019-12-05 05:32:41'),
(1650,6,3,46,'2019-12-05 07:59:49'),
(1651,10,3,26,'2019-12-05 17:42:22'),
(1652,8,3,48,'2019-12-05 23:57:49'),
(1653,1,3,36,'2019-12-05 21:42:08'),
(1654,10,4,46,'2019-12-05 06:54:57'),
(1655,8,4,9,'2019-12-05 02:18:50'),
(1656,2,4,45,'2019-12-05 18:39:35'),
(1657,9,3,34,'2019-12-05 15:15:32'),
(1658,8,3,58,'2019-12-05 21:07:46'),
(1659,5,4,52,'2019-12-05 11:18:00'),
(1660,6,3,27,'2019-12-05 13:51:21'),
(1661,1,3,32,'2019-12-05 07:08:23'),
(1662,10,3,48,'2019-12-05 11:42:25'),
(1663,3,4,63,'2019-12-05 07:54:34'),
(1664,9,3,19,'2019-12-05 08:44:15'),
(1665,9,3,60,'2019-12-05 22:16:14'),
(1666,4,3,53,'2019-12-05 22:06:11'),
(1667,4,3,61,'2019-12-05 14:19:11'),
(1668,5,4,47,'2019-12-05 10:59:06'),
(1669,6,3,8,'2019-12-05 00:04:49'),
(1670,6,4,6,'2019-12-05 03:52:01'),
(1671,2,4,58,'2019-12-05 15:28:28'),
(1672,5,4,40,'2019-12-05 00:37:14'),
(1673,6,3,44,'2019-12-05 14:32:59'),
(1674,9,3,13,'2019-12-05 20:04:48'),
(1675,10,3,26,'2019-12-05 11:22:23'),
(1676,4,3,56,'2019-12-05 12:22:18'),
(1677,4,4,62,'2019-12-05 23:48:57'),
(1678,9,4,29,'2019-12-05 18:43:56'),
(1679,6,3,25,'2019-12-05 18:31:49'),
(1680,7,4,57,'2019-12-05 16:51:22'),
(1681,5,4,42,'2019-12-05 08:36:13'),
(1682,8,3,15,'2019-12-05 10:22:59'),
(1683,5,3,37,'2019-12-05 01:03:42'),
(1684,7,3,60,'2019-12-05 17:10:53'),
(1685,9,4,12,'2019-12-05 23:29:35'),
(1686,1,3,28,'2019-12-05 08:42:04'),
(1687,9,4,34,'2019-12-05 11:54:57'),
(1688,2,3,57,'2019-12-05 02:26:03'),
(1689,2,3,39,'2019-12-05 09:44:47'),
(1690,3,3,8,'2019-12-05 11:17:40'),
(1691,6,3,7,'2019-12-05 13:57:46'),
(1692,9,3,16,'2019-12-05 17:24:28'),
(1693,10,3,51,'2019-12-05 13:37:12'),
(1694,5,4,15,'2019-12-05 11:14:28'),
(1695,7,3,50,'2019-12-05 23:58:15'),
(1696,10,4,22,'2019-12-05 01:01:44'),
(1697,10,3,33,'2019-12-05 02:44:30'),
(1698,7,3,42,'2019-12-05 07:31:27'),
(1699,6,3,46,'2019-12-05 00:44:54'),
(1700,6,3,9,'2019-12-05 04:48:54'),
(1701,4,3,57,'2019-12-05 21:04:35'),
(1702,7,3,45,'2019-12-05 09:36:49'),
(1703,2,4,50,'2019-12-05 00:58:57'),
(1704,1,4,30,'2019-12-05 00:58:00'),
(1705,10,4,52,'2019-12-05 20:07:14'),
(1706,5,3,18,'2019-12-05 15:12:46'),
(1707,2,4,46,'2019-12-05 18:03:50'),
(1708,4,4,10,'2019-12-05 23:17:22'),
(1709,2,4,63,'2019-12-05 01:39:38'),
(1710,4,3,41,'2019-12-05 03:58:40'),
(1711,2,3,54,'2019-12-05 15:12:15'),
(1712,7,3,39,'2019-12-05 15:28:28'),
(1713,9,4,39,'2019-12-05 09:08:13'),
(1714,6,4,48,'2019-12-05 01:53:41'),
(1715,3,4,32,'2019-12-05 20:32:21'),
(1716,2,3,29,'2019-12-05 15:49:13'),
(1717,9,4,58,'2019-12-05 00:22:21'),
(1718,5,3,48,'2019-12-05 14:23:20'),
(1719,3,3,6,'2019-12-05 07:44:51'),
(1720,1,4,65,'2019-12-05 07:56:13'),
(1721,8,4,61,'2019-12-05 09:10:56'),
(1722,8,4,53,'2019-12-05 08:14:36'),
(1723,10,4,37,'2019-12-05 16:21:36'),
(1724,6,4,39,'2019-12-05 00:49:30'),
(1725,6,3,33,'2019-12-05 04:24:43'),
(1726,6,4,55,'2019-12-05 22:09:11'),
(1727,5,3,17,'2019-12-05 18:32:03'),
(1728,5,4,12,'2019-12-05 21:39:32'),
(1729,2,4,22,'2019-12-05 10:54:58'),
(1730,10,3,52,'2019-12-05 10:20:39'),
(1731,4,4,3,'2019-12-05 21:07:42'),
(1732,7,3,5,'2019-12-05 17:29:51'),
(1733,8,4,52,'2019-12-05 06:21:01'),
(1734,10,4,28,'2019-12-05 22:01:19'),
(1735,6,3,53,'2019-12-05 18:16:22'),
(1736,9,3,60,'2019-12-05 16:22:01'),
(1737,1,4,25,'2019-12-05 01:27:57'),
(1738,6,3,12,'2019-12-05 20:16:14'),
(1739,8,4,17,'2019-12-05 04:09:08'),
(1740,2,3,22,'2019-12-05 07:05:08'),
(1741,3,4,47,'2019-12-05 06:07:42'),
(1742,2,4,54,'2019-12-05 10:55:10'),
(1743,3,3,18,'2019-12-05 19:17:09'),
(1744,7,3,8,'2019-12-05 21:21:40'),
(1745,4,4,4,'2019-12-05 10:56:15'),
(1746,5,3,39,'2019-12-05 20:49:24'),
(1747,1,3,3,'2019-12-05 02:12:28'),
(1748,7,3,2,'2019-12-05 05:10:43'),
(1749,1,4,51,'2019-12-05 22:40:38'),
(1750,4,4,54,'2019-12-05 16:00:33'),
(1751,9,3,44,'2019-12-05 05:11:15'),
(1752,3,4,51,'2019-12-05 02:48:50'),
(1753,9,4,5,'2019-12-05 07:44:44'),
(1754,1,3,4,'2019-12-05 20:08:46'),
(1755,4,3,17,'2019-12-05 07:15:06'),
(1756,2,4,18,'2019-12-05 00:36:12'),
(1757,7,3,34,'2019-12-05 13:33:54'),
(1758,9,3,62,'2019-12-05 15:10:16'),
(1759,8,3,6,'2019-12-05 08:52:10'),
(1760,4,4,30,'2019-12-05 20:58:29'),
(1761,2,4,58,'2019-12-05 03:33:17'),
(1762,1,4,45,'2019-12-05 20:08:24'),
(1763,4,4,56,'2019-12-05 09:52:49'),
(1764,10,4,58,'2019-12-05 10:02:01'),
(1765,4,3,14,'2019-12-05 04:14:44'),
(1766,2,3,5,'2019-12-05 17:24:59'),
(1767,10,3,19,'2019-12-05 08:26:08'),
(1768,5,4,3,'2019-12-05 12:27:23'),
(1769,10,4,47,'2019-12-05 15:32:15'),
(1770,5,3,46,'2019-12-05 00:42:02'),
(1771,2,4,17,'2019-12-05 07:29:30'),
(1772,9,3,65,'2019-12-05 17:34:12'),
(1773,3,3,30,'2019-12-05 17:01:51'),
(1774,1,3,45,'2019-12-05 04:09:26'),
(1775,6,4,53,'2019-12-05 20:33:46'),
(1776,10,4,19,'2019-12-05 08:03:46'),
(1777,4,3,40,'2019-12-05 18:47:35'),
(1778,8,4,29,'2019-12-05 00:37:45'),
(1779,1,4,7,'2019-12-05 21:46:21'),
(1780,10,3,63,'2019-12-05 00:12:35'),
(1781,4,4,10,'2019-12-05 11:49:02'),
(1782,6,3,1,'2019-12-05 23:45:40'),
(1783,9,4,8,'2019-12-05 11:44:09'),
(1784,7,3,47,'2019-12-05 12:38:26'),
(1785,3,4,22,'2019-12-05 21:58:56'),
(1786,10,3,41,'2019-12-05 03:50:24'),
(1787,5,4,60,'2019-12-05 00:35:12'),
(1788,2,3,38,'2019-12-05 05:50:34'),
(1789,5,3,46,'2019-12-05 13:23:25'),
(1790,6,3,44,'2019-12-05 13:07:16'),
(1791,3,4,60,'2019-12-05 15:05:27'),
(1792,1,3,62,'2019-12-05 16:25:58'),
(1793,2,4,14,'2019-12-05 02:16:02'),
(1794,7,4,44,'2019-12-05 16:32:33'),
(1795,8,4,11,'2019-12-05 18:22:06'),
(1796,7,3,24,'2019-12-05 23:06:55'),
(1797,7,4,8,'2019-12-05 12:28:31'),
(1798,6,3,20,'2019-12-05 08:53:17'),
(1799,8,3,14,'2019-12-05 08:51:10'),
(1800,3,3,50,'2019-12-05 10:05:25'),
(1801,8,3,55,'2019-12-05 18:32:48'),
(1802,3,4,32,'2019-12-05 22:14:36'),
(1803,2,4,11,'2019-12-05 14:31:53'),
(1804,6,4,8,'2019-12-05 19:21:21'),
(1805,10,4,19,'2019-12-05 10:02:06'),
(1806,2,4,2,'2019-12-05 16:51:02'),
(1807,4,3,44,'2019-12-05 14:07:32'),
(1808,5,3,9,'2019-12-05 00:58:34'),
(1809,7,3,43,'2019-12-05 20:49:08'),
(1810,3,4,55,'2019-12-05 10:20:59'),
(1811,5,4,22,'2019-12-05 23:36:07'),
(1812,4,4,4,'2019-12-05 11:53:06'),
(1813,4,3,7,'2019-12-05 04:04:34'),
(1814,3,4,1,'2019-12-05 17:41:41'),
(1815,2,3,32,'2019-12-05 15:04:56'),
(1816,1,3,59,'2019-12-05 13:55:02'),
(1817,4,4,63,'2019-12-05 02:40:19'),
(1818,2,3,40,'2019-12-05 13:49:49'),
(1819,5,3,10,'2019-12-05 13:41:21'),
(1820,8,4,47,'2019-12-05 10:00:10'),
(1821,4,4,11,'2019-12-05 07:48:55'),
(1822,1,4,52,'2019-12-05 14:44:32'),
(1823,7,4,43,'2019-12-05 02:07:13'),
(1824,1,4,38,'2019-12-05 06:21:12'),
(1825,10,4,55,'2019-12-05 18:15:11'),
(1826,7,4,62,'2019-12-05 16:57:24'),
(1827,1,4,34,'2019-12-05 13:27:58'),
(1828,6,4,48,'2019-12-05 12:00:13'),
(1829,4,3,64,'2019-12-05 05:22:34'),
(1830,6,4,18,'2019-12-05 11:16:00'),
(1831,1,4,53,'2019-12-05 08:53:18'),
(1832,3,4,47,'2019-12-05 01:05:45'),
(1833,10,3,17,'2019-12-05 06:36:06'),
(1834,4,3,7,'2019-12-05 10:46:18'),
(1835,9,3,52,'2019-12-05 16:38:09'),
(1836,4,3,63,'2019-12-05 23:58:55'),
(1837,3,4,23,'2019-12-05 21:45:30'),
(1838,7,4,13,'2019-12-05 10:13:13'),
(1839,9,4,60,'2019-12-05 16:06:18'),
(1840,4,3,61,'2019-12-05 22:38:13'),
(1841,2,4,59,'2019-12-05 18:29:17'),
(1842,2,3,43,'2019-12-05 08:49:00'),
(1843,5,3,34,'2019-12-05 21:40:33'),
(1844,4,4,55,'2019-12-05 01:45:42'),
(1845,6,3,33,'2019-12-05 18:25:19'),
(1846,10,4,19,'2019-12-05 04:43:32'),
(1847,4,3,55,'2019-12-05 16:12:13'),
(1848,4,3,62,'2019-12-05 11:18:39'),
(1849,7,3,48,'2019-12-05 21:42:14'),
(1850,4,4,42,'2019-12-05 11:54:33'),
(1851,2,3,48,'2019-12-05 00:23:01'),
(1852,1,4,1,'2019-12-05 10:01:03'),
(1853,5,4,12,'2019-12-05 19:33:53'),
(1854,1,3,5,'2019-12-05 17:07:43'),
(1855,7,4,17,'2019-12-05 23:02:41'),
(1856,3,4,59,'2019-12-05 20:31:11'),
(1857,9,4,45,'2019-12-05 05:43:25'),
(1858,3,4,21,'2019-12-05 04:57:12'),
(1859,9,3,64,'2019-12-05 19:05:42'),
(1860,9,3,35,'2019-12-05 10:23:15'),
(1861,4,4,47,'2019-12-05 19:46:54'),
(1862,9,3,37,'2019-12-05 17:22:42'),
(1863,1,3,36,'2019-12-05 07:51:43'),
(1864,6,3,12,'2019-12-05 04:04:03'),
(1865,10,4,26,'2019-12-05 00:30:42'),
(1866,7,4,57,'2019-12-05 20:41:46'),
(1867,3,4,54,'2019-12-05 11:27:31'),
(1868,10,3,60,'2019-12-05 16:40:19'),
(1869,8,4,49,'2019-12-05 00:54:51'),
(1870,4,4,34,'2019-12-05 09:28:53'),
(1871,2,4,63,'2019-12-05 17:45:52'),
(1872,10,4,40,'2019-12-05 19:53:43'),
(1873,7,4,42,'2019-12-05 19:51:24'),
(1874,7,3,16,'2019-12-05 07:25:17'),
(1875,9,4,28,'2019-12-05 21:23:48'),
(1876,5,4,63,'2019-12-05 20:01:57'),
(1877,2,3,49,'2019-12-05 08:36:28'),
(1878,1,3,42,'2019-12-05 03:53:27'),
(1879,4,4,6,'2019-12-05 14:49:40'),
(1880,4,4,23,'2019-12-05 15:14:02'),
(1881,3,3,33,'2019-12-05 21:41:59'),
(1882,4,3,59,'2019-12-05 19:11:16'),
(1883,1,4,1,'2019-12-05 04:19:35'),
(1884,2,4,33,'2019-12-05 09:41:21'),
(1885,3,4,34,'2019-12-05 03:01:41'),
(1886,3,4,19,'2019-12-05 05:33:00'),
(1887,1,4,32,'2019-12-05 03:20:27'),
(1888,8,4,11,'2019-12-05 22:51:16'),
(1889,6,4,27,'2019-12-05 22:09:32'),
(1890,7,4,43,'2019-12-05 00:02:11'),
(1891,9,3,25,'2019-12-05 21:43:15'),
(1892,5,3,3,'2019-12-05 14:14:57'),
(1893,8,3,10,'2019-12-05 14:52:25'),
(1894,1,3,15,'2019-12-05 22:07:51'),
(1895,10,3,32,'2019-12-05 03:16:16'),
(1896,7,3,43,'2019-12-05 08:22:09'),
(1897,9,4,38,'2019-12-05 18:07:23'),
(1898,3,3,31,'2019-12-05 04:24:55'),
(1899,1,3,17,'2019-12-05 21:58:35'),
(1900,3,3,5,'2019-12-05 07:48:31'),
(1901,6,4,54,'2019-12-05 23:16:22'),
(1902,2,3,48,'2019-12-05 00:19:49'),
(1903,6,4,2,'2019-12-05 16:05:23'),
(1904,1,3,28,'2019-12-05 14:06:02'),
(1905,10,3,40,'2019-12-05 01:05:29'),
(1906,10,4,18,'2019-12-05 07:07:57'),
(1907,2,3,47,'2019-12-05 05:56:48'),
(1908,6,3,19,'2019-12-05 05:31:49'),
(1909,4,4,4,'2019-12-05 21:30:32'),
(1910,4,3,5,'2019-12-05 16:06:12'),
(1911,3,4,32,'2019-12-05 06:00:19'),
(1912,3,3,7,'2019-12-05 10:16:52'),
(1913,4,3,5,'2019-12-05 21:01:13'),
(1914,5,4,61,'2019-12-05 08:25:00'),
(1915,1,4,4,'2019-12-05 11:24:55'),
(1916,5,4,22,'2019-12-05 12:41:03'),
(1917,8,4,11,'2019-12-05 08:27:40'),
(1918,7,4,42,'2019-12-05 03:22:29'),
(1919,9,3,46,'2019-12-05 17:13:12'),
(1920,9,3,48,'2019-12-05 08:02:02'),
(1921,4,4,29,'2019-12-05 13:05:30'),
(1922,4,4,57,'2019-12-05 01:09:57'),
(1923,3,3,21,'2019-12-05 01:34:37'),
(1924,3,3,57,'2019-12-05 01:26:12'),
(1925,3,3,38,'2019-12-05 03:56:21'),
(1926,6,4,24,'2019-12-05 21:29:44'),
(1927,5,3,49,'2019-12-05 03:59:16'),
(1928,9,3,2,'2019-12-05 00:09:07'),
(1929,8,4,5,'2019-12-05 14:27:31'),
(1930,4,4,19,'2019-12-05 22:39:13'),
(1931,9,3,62,'2019-12-05 01:45:06'),
(1932,6,4,19,'2019-12-05 01:03:00'),
(1933,8,3,28,'2019-12-05 09:12:07'),
(1934,4,4,58,'2019-12-05 20:18:56'),
(1935,6,4,12,'2019-12-05 08:38:36'),
(1936,7,3,22,'2019-12-05 10:52:00'),
(1937,2,4,49,'2019-12-05 07:58:51'),
(1938,9,3,22,'2019-12-05 21:05:43'),
(1939,6,3,63,'2019-12-05 19:02:07'),
(1940,9,3,11,'2019-12-05 11:08:55'),
(1941,2,4,63,'2019-12-05 03:18:44'),
(1942,8,3,48,'2019-12-05 06:30:00'),
(1943,5,3,45,'2019-12-05 01:37:27'),
(1944,7,4,30,'2019-12-05 12:25:17'),
(1945,2,4,45,'2019-12-05 20:10:40'),
(1946,8,3,3,'2019-12-05 12:07:36'),
(1947,9,3,53,'2019-12-05 22:20:14'),
(1948,4,3,57,'2019-12-05 19:10:24'),
(1949,7,4,57,'2019-12-05 09:42:21'),
(1950,1,3,60,'2019-12-05 07:04:26'),
(1951,3,3,37,'2019-12-05 09:17:50'),
(1952,1,3,53,'2019-12-05 14:04:00'),
(1953,5,4,52,'2019-12-05 08:00:55'),
(1954,5,4,20,'2019-12-05 09:24:09'),
(1955,10,3,13,'2019-12-05 20:15:22'),
(1956,6,3,2,'2019-12-05 21:28:57'),
(1957,8,4,19,'2019-12-05 17:48:59'),
(1958,3,3,60,'2019-12-05 12:20:36'),
(1959,8,4,15,'2019-12-05 08:02:03'),
(1960,10,3,59,'2019-12-05 00:57:57'),
(1961,9,3,28,'2019-12-05 16:54:20'),
(1962,5,4,35,'2019-12-05 15:40:35'),
(1963,8,4,51,'2019-12-05 09:22:39'),
(1964,6,4,19,'2019-12-05 20:03:39'),
(1965,9,4,44,'2019-12-05 02:51:05'),
(1966,4,3,47,'2019-12-05 17:55:05'),
(1967,5,4,54,'2019-12-05 11:18:34'),
(1968,1,3,7,'2019-12-05 17:08:30'),
(1969,6,3,9,'2019-12-05 12:47:27'),
(1970,1,3,43,'2019-12-05 04:52:30'),
(1971,10,4,42,'2019-12-05 05:57:50'),
(1972,2,3,12,'2019-12-05 21:07:16'),
(1973,9,4,44,'2019-12-05 13:16:52'),
(1974,1,4,3,'2019-12-05 14:19:13'),
(1975,9,3,17,'2019-12-05 21:54:30'),
(1976,4,4,11,'2019-12-05 12:33:08'),
(1977,9,4,38,'2019-12-05 21:04:56'),
(1978,5,3,3,'2019-12-05 11:03:08'),
(1979,6,3,43,'2019-12-05 06:22:54'),
(1980,10,3,62,'2019-12-05 18:17:55'),
(1981,2,3,33,'2019-12-05 01:59:15'),
(1982,5,3,63,'2019-12-05 03:52:01'),
(1983,1,4,15,'2019-12-05 16:59:39'),
(1984,4,4,41,'2019-12-05 03:20:19'),
(1985,5,4,29,'2019-12-05 10:53:54'),
(1986,3,3,34,'2019-12-05 11:38:56'),
(1987,4,4,44,'2019-12-05 19:00:04'),
(1988,2,3,36,'2019-12-05 02:18:14'),
(1989,2,4,6,'2019-12-05 09:24:41'),
(1990,2,3,2,'2019-12-05 03:46:10'),
(1991,8,4,64,'2019-12-05 19:51:33'),
(1992,8,4,13,'2019-12-05 09:23:23'),
(1993,8,3,36,'2019-12-05 15:43:19'),
(1994,7,4,7,'2019-12-05 22:05:21'),
(1995,2,4,5,'2019-12-05 11:12:26'),
(1996,3,4,26,'2019-12-05 01:49:47'),
(1997,9,4,34,'2019-12-05 05:09:53'),
(1998,8,3,42,'2019-12-05 11:58:33'),
(1999,6,4,43,'2019-12-05 04:06:26'),
(2000,2,4,25,'2019-12-05 22:49:52'),
(2001,6,3,30,'2019-12-05 14:29:00'),
(2002,5,4,16,'2019-12-05 02:51:18'),
(2003,2,3,20,'2019-12-05 23:56:40'),
(2004,4,3,13,'2019-12-05 22:14:39'),
(2005,1,3,19,'2019-12-05 06:10:50'),
(2006,4,4,33,'2019-12-05 06:13:06'),
(2007,4,4,21,'2019-12-05 19:52:32'),
(2008,2,3,14,'2019-12-05 03:35:09'),
(2009,7,3,27,'2019-12-05 16:18:43'),
(2010,9,4,18,'2019-12-05 23:26:21'),
(2011,4,4,52,'2019-12-05 23:48:35'),
(2012,6,4,24,'2019-12-05 15:30:04'),
(2013,5,4,51,'2019-12-05 06:21:06'),
(2014,5,4,42,'2019-12-05 16:44:02'),
(2015,5,3,20,'2019-12-05 11:32:00'),
(2016,2,3,45,'2019-12-05 20:11:30'),
(2017,9,3,34,'2019-12-05 10:40:20'),
(2018,2,4,55,'2019-12-05 23:45:46'),
(2019,10,3,16,'2019-12-05 09:48:00'),
(2020,2,3,55,'2019-12-05 13:48:58'),
(2021,2,4,56,'2019-12-05 00:50:40'),
(2022,6,3,1,'2019-12-05 00:56:11'),
(2023,5,4,17,'2019-12-05 04:45:26'),
(2024,5,3,40,'2019-12-05 22:32:06'),
(2025,9,3,49,'2019-12-05 00:34:07'),
(2026,6,3,61,'2019-12-05 09:14:00'),
(2027,7,4,35,'2019-12-05 09:33:52'),
(2028,4,4,15,'2019-12-05 13:16:25'),
(2029,5,3,65,'2019-12-05 18:16:48'),
(2030,2,4,47,'2019-12-05 05:06:22'),
(2031,2,3,14,'2019-12-05 06:10:00'),
(2032,5,4,27,'2019-12-05 01:45:34'),
(2033,9,3,17,'2019-12-05 14:14:01'),
(2034,1,4,56,'2019-12-05 21:52:49'),
(2035,4,4,51,'2019-12-05 05:14:21'),
(2036,9,4,9,'2019-12-05 13:43:22'),
(2037,8,4,1,'2019-12-05 15:39:59'),
(2038,1,3,46,'2019-12-05 10:32:57'),
(2039,6,3,13,'2019-12-05 09:38:23'),
(2040,2,3,48,'2019-12-05 15:07:33'),
(2041,2,3,52,'2019-12-05 05:19:08'),
(2042,5,4,63,'2019-12-05 02:27:31'),
(2043,4,3,4,'2019-12-05 01:32:12'),
(2044,5,3,1,'2019-12-05 05:43:51'),
(2045,10,3,64,'2019-12-05 15:35:34'),
(2046,5,4,61,'2019-12-05 13:23:25'),
(2047,7,3,64,'2019-12-05 20:07:01'),
(2048,3,3,33,'2019-12-05 06:29:58'),
(2049,2,3,25,'2019-12-05 23:50:13'),
(2050,10,3,4,'2019-12-05 09:42:44'),
(2051,10,4,29,'2019-12-05 08:21:05'),
(2052,10,3,21,'2019-12-05 10:13:04'),
(2053,7,3,22,'2019-12-05 12:34:07'),
(2054,7,3,32,'2019-12-05 01:24:09'),
(2055,8,4,23,'2019-12-05 13:47:57'),
(2056,8,3,50,'2019-12-05 21:32:07'),
(2057,2,4,55,'2019-12-05 18:51:57'),
(2058,6,4,28,'2019-12-05 06:20:29'),
(2059,1,3,3,'2019-12-05 00:39:39'),
(2060,6,4,62,'2019-12-05 11:57:54'),
(2061,6,3,10,'2019-12-05 22:40:07'),
(2062,3,4,43,'2019-12-05 05:39:44'),
(2063,1,3,37,'2019-12-05 21:23:28'),
(2064,8,4,42,'2019-12-05 15:20:57'),
(2065,10,3,39,'2019-12-05 07:20:21'),
(2066,9,4,11,'2019-12-05 14:46:15'),
(2067,6,4,49,'2019-12-05 21:21:58'),
(2068,6,4,41,'2019-12-05 13:07:59'),
(2069,6,3,13,'2019-12-05 22:55:39'),
(2070,7,3,41,'2019-12-05 17:40:10'),
(2071,1,4,6,'2019-12-05 01:56:14'),
(2072,8,4,42,'2019-12-05 00:41:24'),
(2073,6,4,5,'2019-12-05 19:59:52'),
(2074,4,3,57,'2019-12-05 14:46:50'),
(2075,7,4,32,'2019-12-05 00:34:22'),
(2076,5,4,8,'2019-12-05 04:21:13'),
(2077,3,3,50,'2019-12-05 05:29:24'),
(2078,10,3,10,'2019-12-05 10:50:55'),
(2079,7,4,4,'2019-12-05 22:13:07'),
(2080,3,3,43,'2019-12-05 07:30:15'),
(2081,9,3,33,'2019-12-05 18:00:09'),
(2082,9,4,62,'2019-12-05 05:22:50'),
(2083,3,3,21,'2019-12-05 23:36:02'),
(2084,7,3,9,'2019-12-05 11:50:10'),
(2085,6,4,11,'2019-12-05 03:34:21'),
(2086,1,3,4,'2019-12-05 05:46:30'),
(2087,4,4,58,'2019-12-05 05:53:17'),
(2088,6,4,9,'2019-12-05 06:58:17'),
(2089,3,3,50,'2019-12-05 08:37:21'),
(2090,3,3,9,'2019-12-05 19:16:15'),
(2091,1,4,46,'2019-12-05 06:06:50'),
(2092,5,3,24,'2019-12-05 03:56:43'),
(2093,9,4,31,'2019-12-05 11:20:53'),
(2094,1,3,3,'2019-12-05 19:56:21'),
(2095,3,3,52,'2019-12-05 04:01:44'),
(2096,5,4,36,'2019-12-05 08:43:40'),
(2097,10,4,46,'2019-12-05 04:16:30'),
(2098,10,3,34,'2019-12-05 08:45:55'),
(2099,7,3,43,'2019-12-05 02:27:56'),
(2100,6,4,59,'2019-12-05 10:32:48'),
(2101,7,3,32,'2019-12-05 07:31:28'),
(2102,7,4,44,'2019-12-05 12:01:09'),
(2103,4,3,51,'2019-12-05 10:23:42'),
(2104,4,3,17,'2019-12-05 23:43:25'),
(2105,6,3,11,'2019-12-05 22:54:00'),
(2106,2,4,2,'2019-12-05 10:20:01'),
(2107,10,3,6,'2019-12-05 13:38:36'),
(2108,1,3,54,'2019-12-05 11:59:08'),
(2109,10,4,27,'2019-12-05 02:38:46'),
(2110,10,3,52,'2019-12-05 06:43:16'),
(2111,3,3,32,'2019-12-05 03:11:26'),
(2112,9,3,49,'2019-12-05 13:09:00'),
(2113,4,3,16,'2019-12-05 08:21:50'),
(2114,8,4,47,'2019-12-05 01:53:06'),
(2115,10,4,16,'2019-12-05 16:53:59'),
(2116,4,3,46,'2019-12-05 18:34:51'),
(2117,2,4,22,'2019-12-05 07:38:30'),
(2118,4,3,28,'2019-12-05 03:31:25'),
(2119,2,4,40,'2019-12-05 05:35:03'),
(2120,1,3,18,'2019-12-05 02:50:54'),
(2121,8,4,58,'2019-12-05 06:41:52'),
(2122,4,3,27,'2019-12-05 10:45:04'),
(2123,8,3,32,'2019-12-05 14:10:46'),
(2124,7,4,15,'2019-12-05 08:31:06'),
(2125,1,3,33,'2019-12-05 20:41:39'),
(2126,8,3,28,'2019-12-05 06:54:06'),
(2127,1,4,63,'2019-12-05 02:54:45'),
(2128,8,3,35,'2019-12-05 23:27:29'),
(2129,5,4,17,'2019-12-05 07:07:58'),
(2130,3,3,17,'2019-12-05 08:41:15'),
(2131,3,4,9,'2019-12-05 22:22:27'),
(2132,3,3,6,'2019-12-05 09:07:44'),
(2133,8,4,60,'2019-12-05 16:09:23'),
(2134,1,4,12,'2019-12-05 13:09:56'),
(2135,9,4,37,'2019-12-05 13:52:01'),
(2136,6,3,34,'2019-12-05 14:35:54'),
(2137,10,3,23,'2019-12-05 05:12:38'),
(2138,9,4,12,'2019-12-05 15:59:14'),
(2139,8,3,29,'2019-12-05 03:03:57'),
(2140,7,3,32,'2019-12-05 00:36:52'),
(2141,9,4,20,'2019-12-05 05:48:14'),
(2142,5,3,21,'2019-12-05 02:21:15'),
(2143,6,4,38,'2019-12-05 06:41:45'),
(2144,3,3,44,'2019-12-05 04:40:37'),
(2145,3,3,29,'2019-12-05 11:27:26'),
(2146,10,3,45,'2019-12-05 20:48:50'),
(2147,1,4,52,'2019-12-05 08:56:16'),
(2148,8,3,45,'2019-12-05 19:22:24'),
(2149,5,4,25,'2019-12-05 23:41:09'),
(2150,2,4,5,'2019-12-05 10:41:55'),
(2151,9,4,52,'2019-12-05 19:52:31'),
(2152,10,3,34,'2019-12-05 05:45:19'),
(2153,2,3,30,'2019-12-05 11:55:03'),
(2154,8,3,18,'2019-12-05 03:19:58'),
(2155,10,3,51,'2019-12-05 07:49:54'),
(2156,9,3,32,'2019-12-05 00:56:57'),
(2157,9,3,12,'2019-12-05 14:55:26'),
(2158,3,4,46,'2019-12-05 05:09:48'),
(2159,7,4,5,'2019-12-05 21:17:44'),
(2160,10,4,33,'2019-12-05 00:45:00'),
(2161,9,4,60,'2019-12-05 14:32:02'),
(2162,4,4,11,'2019-12-05 02:02:50'),
(2163,8,4,63,'2019-12-05 19:46:28'),
(2164,6,4,38,'2019-12-05 12:59:52'),
(2165,3,4,58,'2019-12-05 14:44:46'),
(2166,6,4,30,'2019-12-05 23:23:58'),
(2167,3,3,20,'2019-12-05 18:48:14'),
(2168,2,3,42,'2019-12-05 03:25:16'),
(2169,3,3,54,'2019-12-05 00:24:48'),
(2170,2,4,44,'2019-12-05 02:52:33'),
(2171,6,4,35,'2019-12-05 06:25:41'),
(2172,3,3,30,'2019-12-05 18:21:47'),
(2173,7,3,12,'2019-12-05 11:04:14'),
(2174,4,3,59,'2019-12-05 08:31:46'),
(2175,4,3,34,'2019-12-05 05:33:20'),
(2176,7,3,59,'2019-12-05 10:04:20'),
(2177,9,4,51,'2019-12-05 23:17:43'),
(2178,9,3,17,'2019-12-05 06:31:59'),
(2179,7,4,7,'2019-12-05 16:49:00'),
(2180,1,4,35,'2019-12-05 21:54:48'),
(2181,6,4,9,'2019-12-05 17:59:16'),
(2182,10,4,27,'2019-12-05 12:45:03'),
(2183,10,4,51,'2019-12-05 19:45:26'),
(2184,6,4,48,'2019-12-05 18:32:31'),
(2185,8,3,63,'2019-12-05 08:35:38'),
(2186,1,3,24,'2019-12-05 23:16:04'),
(2187,10,3,20,'2019-12-05 04:29:20'),
(2188,7,4,59,'2019-12-05 20:51:40'),
(2189,4,4,5,'2019-12-05 20:57:04'),
(2190,10,3,27,'2019-12-05 16:03:26'),
(2191,4,4,4,'2019-12-05 09:05:56'),
(2192,5,4,64,'2019-12-05 13:01:19'),
(2193,3,3,57,'2019-12-05 17:38:10'),
(2194,1,4,13,'2019-12-05 00:28:28'),
(2195,10,4,62,'2019-12-05 12:13:12'),
(2196,5,3,2,'2019-12-05 19:40:12'),
(2197,8,4,25,'2019-12-05 05:07:41'),
(2198,1,4,4,'2019-12-05 21:12:19'),
(2199,4,4,24,'2019-12-05 10:48:04'),
(2200,4,4,54,'2019-12-05 00:00:16'),
(2201,1,3,50,'2019-12-05 21:13:45'),
(2202,5,4,46,'2019-12-05 10:10:57'),
(2203,4,4,37,'2019-12-05 17:41:26'),
(2204,9,4,65,'2019-12-05 15:05:02'),
(2205,5,3,29,'2019-12-05 04:17:41'),
(2206,7,3,21,'2019-12-05 14:17:28'),
(2207,3,3,33,'2019-12-05 03:01:25'),
(2208,3,4,65,'2019-12-05 05:27:14'),
(2209,1,3,36,'2019-12-05 22:48:26'),
(2210,4,4,42,'2019-12-05 02:03:01'),
(2211,5,3,32,'2019-12-05 05:23:27'),
(2212,7,4,8,'2019-12-05 17:34:07'),
(2213,2,3,26,'2019-12-05 05:45:35'),
(2214,1,4,28,'2019-12-05 00:34:08'),
(2215,4,3,16,'2019-12-05 20:52:15'),
(2216,1,4,36,'2019-12-05 19:04:43'),
(2217,1,3,37,'2019-12-05 10:44:49'),
(2218,6,3,33,'2019-12-05 21:32:56'),
(2219,6,4,57,'2019-12-05 23:48:05'),
(2220,3,4,21,'2019-12-05 21:34:11'),
(2221,2,3,55,'2019-12-05 07:45:15'),
(2222,4,4,28,'2019-12-05 01:40:19'),
(2223,10,3,11,'2019-12-05 17:44:56'),
(2224,5,3,36,'2019-12-05 19:15:19'),
(2225,7,3,54,'2019-12-05 04:54:02'),
(2226,1,4,18,'2019-12-05 17:20:24'),
(2227,2,3,13,'2019-12-05 01:45:44'),
(2228,9,3,10,'2019-12-05 13:54:15'),
(2229,10,3,2,'2019-12-05 14:17:24'),
(2230,1,4,44,'2019-12-05 06:39:23'),
(2231,5,4,55,'2019-12-05 23:54:11'),
(2232,7,4,18,'2019-12-05 16:53:20'),
(2233,5,4,52,'2019-12-05 01:39:24'),
(2234,4,3,14,'2019-12-05 20:50:41'),
(2235,4,3,63,'2019-12-05 23:13:05'),
(2236,6,4,59,'2019-12-05 09:14:05'),
(2237,1,3,14,'2019-12-05 06:00:35'),
(2238,8,4,41,'2019-12-05 19:50:02'),
(2239,6,4,47,'2019-12-05 02:09:56'),
(2240,10,3,14,'2019-12-05 13:56:22'),
(2241,4,4,2,'2019-12-05 05:06:47'),
(2242,6,3,6,'2019-12-05 16:01:14'),
(2243,8,4,64,'2019-12-05 09:52:13'),
(2244,7,3,56,'2019-12-05 23:03:58'),
(2245,1,3,37,'2019-12-05 16:00:01'),
(2246,1,3,22,'2019-12-05 23:39:47'),
(2247,2,3,49,'2019-12-05 08:06:29'),
(2248,1,3,5,'2019-12-05 04:59:06'),
(2249,10,4,37,'2019-12-05 14:47:53'),
(2250,8,4,61,'2019-12-05 00:11:32'),
(2251,7,3,38,'2019-12-05 08:01:37'),
(2252,4,3,46,'2019-12-05 12:24:05'),
(2253,4,3,46,'2019-12-05 05:50:50'),
(2254,8,4,23,'2019-12-05 07:35:30'),
(2255,4,4,38,'2019-12-05 19:17:34'),
(2256,1,4,29,'2019-12-05 03:02:17'),
(2257,5,3,2,'2019-12-05 23:25:22'),
(2258,3,3,56,'2019-12-05 05:34:34'),
(2259,5,4,65,'2019-12-05 23:26:19'),
(2260,4,3,2,'2019-12-05 23:40:54'),
(2261,8,4,49,'2019-12-05 23:22:24'),
(2262,5,4,28,'2019-12-05 09:02:54'),
(2263,1,4,33,'2019-12-05 08:08:02'),
(2264,10,4,59,'2019-12-05 07:02:50'),
(2265,7,4,55,'2019-12-05 22:24:38'),
(2266,1,3,47,'2019-12-05 10:31:40'),
(2267,1,3,10,'2019-12-05 05:10:45'),
(2268,3,3,49,'2019-12-05 17:32:41'),
(2269,2,3,28,'2019-12-05 13:49:56'),
(2270,4,4,34,'2019-12-05 19:58:30'),
(2271,2,3,46,'2019-12-05 22:37:15'),
(2272,1,3,25,'2019-12-05 15:20:03'),
(2273,10,3,30,'2019-12-05 07:52:34'),
(2274,3,3,35,'2019-12-05 11:26:07'),
(2275,3,3,33,'2019-12-05 12:41:26'),
(2276,5,3,52,'2019-12-05 20:03:34'),
(2277,1,3,44,'2019-12-05 18:20:06'),
(2278,7,3,56,'2019-12-05 12:38:00'),
(2279,8,4,8,'2019-12-05 21:06:13'),
(2280,2,3,19,'2019-12-05 21:34:27'),
(2281,6,3,60,'2019-12-05 21:47:32'),
(2282,6,3,28,'2019-12-05 00:28:20'),
(2283,7,3,31,'2019-12-05 04:02:29'),
(2284,1,3,29,'2019-12-05 11:29:44'),
(2285,6,3,45,'2019-12-05 08:02:37'),
(2286,1,4,24,'2019-12-05 11:12:03'),
(2287,9,4,55,'2019-12-05 12:05:07'),
(2288,3,3,32,'2019-12-05 09:38:40'),
(2289,1,4,59,'2019-12-05 00:18:24'),
(2290,8,3,6,'2019-12-05 20:51:47'),
(2291,5,4,2,'2019-12-05 13:46:01'),
(2292,4,3,9,'2019-12-05 11:42:24'),
(2293,7,4,18,'2019-12-05 01:32:19'),
(2294,7,4,27,'2019-12-05 13:22:20'),
(2295,7,4,60,'2019-12-05 11:50:31'),
(2296,7,4,30,'2019-12-05 17:50:24'),
(2297,2,3,23,'2019-12-05 07:06:08'),
(2298,5,3,15,'2019-12-05 12:43:22'),
(2299,8,4,50,'2019-12-05 22:28:51'),
(2300,5,3,65,'2019-12-05 23:40:07'),
(2301,2,4,4,'2019-12-05 08:12:40'),
(2302,5,3,43,'2019-12-05 08:02:49'),
(2303,4,4,57,'2019-12-05 21:28:37'),
(2304,5,4,44,'2019-12-05 07:35:55'),
(2305,9,3,52,'2019-12-05 03:37:33'),
(2306,9,4,62,'2019-12-05 23:41:29'),
(2307,8,4,41,'2019-12-05 22:40:46'),
(2308,4,4,57,'2019-12-05 15:30:03'),
(2309,5,3,63,'2019-12-05 12:31:16'),
(2310,1,3,51,'2019-12-05 09:40:36'),
(2311,4,3,31,'2019-12-05 19:17:15'),
(2312,5,3,30,'2019-12-05 03:12:24'),
(2313,2,3,56,'2019-12-05 10:49:08'),
(2314,8,3,43,'2019-12-05 01:44:20'),
(2315,10,3,61,'2019-12-05 20:39:36'),
(2316,7,4,43,'2019-12-05 02:22:22'),
(2317,5,3,30,'2019-12-05 12:34:27'),
(2318,4,4,45,'2019-12-05 15:23:10'),
(2319,7,3,49,'2019-12-05 17:24:03'),
(2320,9,3,31,'2019-12-05 00:00:26'),
(2321,4,4,59,'2019-12-05 04:31:52'),
(2322,6,3,58,'2019-12-05 05:22:53'),
(2323,2,4,32,'2019-12-05 01:04:49'),
(2324,7,3,35,'2019-12-05 06:16:34'),
(2325,7,3,41,'2019-12-05 20:42:48'),
(2326,7,4,57,'2019-12-05 07:38:01'),
(2327,8,4,64,'2019-12-05 10:03:32'),
(2328,7,4,62,'2019-12-05 12:01:09'),
(2329,3,4,31,'2019-12-05 01:03:24'),
(2330,7,3,33,'2019-12-05 15:17:23'),
(2331,9,3,35,'2019-12-05 15:29:37'),
(2332,8,4,52,'2019-12-05 03:42:03'),
(2333,4,3,49,'2019-12-05 12:47:17'),
(2334,8,3,51,'2019-12-05 16:53:15'),
(2335,1,3,39,'2019-12-05 22:04:39'),
(2336,3,3,47,'2019-12-05 17:28:16'),
(2337,4,4,64,'2019-12-05 06:37:10'),
(2338,6,4,47,'2019-12-05 19:12:54'),
(2339,2,3,64,'2019-12-05 21:18:11'),
(2340,7,4,41,'2019-12-05 16:09:54'),
(2341,9,3,30,'2019-12-05 15:49:35'),
(2342,3,4,40,'2019-12-05 14:09:45'),
(2343,5,3,49,'2019-12-05 04:38:49'),
(2344,9,3,64,'2019-12-05 08:58:44'),
(2345,3,4,48,'2019-12-05 10:51:18'),
(2346,7,4,64,'2019-12-05 10:17:56'),
(2347,4,4,60,'2019-12-05 21:39:30'),
(2348,4,3,37,'2019-12-05 07:05:16'),
(2349,1,4,48,'2019-12-05 00:11:38'),
(2350,2,3,56,'2019-12-05 10:56:01'),
(2351,7,3,58,'2019-12-05 01:20:05'),
(2352,5,4,61,'2019-12-05 08:02:32'),
(2353,4,3,38,'2019-12-05 06:19:37'),
(2354,8,3,45,'2019-12-05 03:31:24'),
(2355,6,4,41,'2019-12-05 12:55:56'),
(2356,5,4,45,'2019-12-05 07:26:24'),
(2357,7,4,31,'2019-12-05 22:50:24'),
(2358,5,4,53,'2019-12-05 16:33:56'),
(2359,10,3,53,'2019-12-05 02:13:36'),
(2360,7,3,41,'2019-12-05 18:35:30'),
(2361,9,3,63,'2019-12-05 20:28:58'),
(2362,6,4,43,'2019-12-05 00:12:52'),
(2363,3,3,40,'2019-12-05 07:51:09'),
(2364,6,4,59,'2019-12-05 04:59:20'),
(2365,8,3,50,'2019-12-05 06:18:54'),
(2366,3,3,57,'2019-12-05 18:08:13'),
(2367,7,4,37,'2019-12-05 14:05:33'),
(2368,9,4,38,'2019-12-05 17:00:01'),
(2369,1,4,38,'2019-12-05 20:25:31'),
(2370,3,4,46,'2019-12-05 05:39:59'),
(2371,2,4,55,'2019-12-05 02:28:17'),
(2372,9,3,41,'2019-12-05 07:22:26'),
(2373,8,4,59,'2019-12-05 00:28:46'),
(2374,6,3,45,'2019-12-05 16:46:07'),
(2375,10,3,59,'2019-12-05 05:08:38'),
(2376,4,3,57,'2019-12-05 04:07:10'),
(2377,3,4,57,'2019-12-05 18:29:49'),
(2378,3,4,30,'2019-12-05 21:21:11'),
(2379,9,3,41,'2019-12-05 17:26:11'),
(2380,1,4,45,'2019-12-05 20:13:04'),
(2381,4,4,41,'2019-12-05 13:10:26'),
(2382,3,3,48,'2019-12-05 11:53:44'),
(2383,5,3,32,'2019-12-05 17:41:49'),
(2384,8,3,49,'2019-12-05 16:38:34'),
(2385,8,4,40,'2019-12-05 04:48:00'),
(2386,5,3,30,'2019-12-05 18:19:27'),
(2387,4,4,36,'2019-12-05 12:11:27'),
(2388,3,3,49,'2019-12-05 19:35:17'),
(2389,7,4,41,'2019-12-05 08:09:14'),
(2390,3,3,32,'2019-12-05 12:52:58'),
(2391,4,4,63,'2019-12-05 02:38:54'),
(2392,7,4,63,'2019-12-05 11:53:11'),
(2393,5,3,53,'2019-12-05 20:11:56'),
(2394,7,4,36,'2019-12-05 04:15:43'),
(2395,7,4,44,'2019-12-05 06:33:33'),
(2396,9,4,36,'2019-12-05 08:55:01'),
(2397,1,4,64,'2019-12-05 16:44:27'),
(2398,7,3,38,'2019-12-05 20:18:20'),
(2399,8,4,30,'2019-12-05 07:47:42'),
(2400,10,4,49,'2019-12-05 07:07:29'),
(2401,1,3,49,'2019-12-05 20:45:50'),
(2402,8,4,56,'2019-12-05 14:04:43'),
(2403,1,4,53,'2019-12-05 02:28:47'),
(2404,8,3,41,'2019-12-05 21:10:45'),
(2405,9,3,34,'2019-12-05 03:56:08'),
(2406,4,3,31,'2019-12-05 12:02:44'),
(2407,2,3,61,'2019-12-05 06:03:21'),
(2408,4,4,34,'2019-12-05 14:00:34'),
(2409,6,4,40,'2019-12-05 13:21:54'),
(2410,6,4,46,'2019-12-05 09:21:38'),
(2411,1,3,58,'2019-12-05 08:35:08'),
(2412,6,3,55,'2019-12-05 08:38:12'),
(2413,4,4,34,'2019-12-05 02:07:16'),
(2414,1,3,52,'2019-12-05 09:34:53'),
(2415,6,4,53,'2019-12-05 09:50:38'),
(2416,3,3,43,'2019-12-05 10:07:20'),
(2417,8,3,61,'2019-12-05 11:27:02'),
(2418,6,3,31,'2019-12-05 00:57:06'),
(2419,10,4,48,'2019-12-05 03:03:57'),
(2420,6,3,53,'2019-12-05 13:55:42'),
(2421,8,4,31,'2019-12-05 12:21:51'),
(2422,9,4,60,'2019-12-05 20:33:03'),
(2423,1,4,57,'2019-12-05 15:02:00'),
(2424,3,3,59,'2019-12-05 18:02:08'),
(2425,9,3,30,'2019-12-05 20:35:40'),
(2426,9,3,42,'2019-12-05 16:16:30'),
(2427,1,4,30,'2019-12-05 16:38:12'),
(2428,10,4,39,'2019-12-05 07:21:39'),
(2429,9,3,33,'2019-12-05 21:07:13'),
(2430,4,3,58,'2019-12-05 16:22:13'),
(2431,10,4,61,'2019-12-05 16:25:53'),
(2432,1,3,44,'2019-12-05 17:45:11'),
(2433,8,4,62,'2019-12-05 03:11:17'),
(2434,8,3,57,'2019-12-05 18:46:30'),
(2435,1,4,30,'2019-12-05 09:04:53'),
(2436,10,3,46,'2019-12-05 03:32:07'),
(2437,2,3,53,'2019-12-05 11:02:40'),
(2438,3,4,58,'2019-12-05 04:27:32'),
(2439,10,4,61,'2019-12-05 16:44:42'),
(2440,2,3,39,'2019-12-05 22:02:44'),
(2441,5,4,52,'2019-12-05 23:16:30'),
(2442,1,4,46,'2019-12-05 02:19:54'),
(2443,8,3,38,'2019-12-05 16:10:24'),
(2444,9,3,47,'2019-12-05 09:52:20'),
(2445,7,3,51,'2019-12-05 22:51:22'),
(2446,1,3,41,'2019-12-05 14:13:24'),
(2447,1,4,32,'2019-12-05 02:46:57'),
(2448,9,4,59,'2019-12-05 19:39:02'),
(2449,2,3,51,'2019-12-05 21:04:00'),
(2450,1,3,38,'2019-12-05 10:00:19'),
(2451,5,4,58,'2019-12-05 00:18:09'),
(2452,3,4,48,'2019-12-05 05:35:00'),
(2453,1,3,38,'2019-12-05 23:09:48'),
(2454,2,4,65,'2019-12-05 07:56:59'),
(2455,10,3,43,'2019-12-05 06:12:07'),
(2456,8,4,47,'2019-12-05 15:00:13'),
(2457,6,3,43,'2019-12-05 08:45:21'),
(2458,9,3,44,'2019-12-05 05:41:24'),
(2459,7,4,48,'2019-12-05 02:45:31'),
(2460,9,3,37,'2019-12-05 17:59:07'),
(2461,6,3,33,'2019-12-05 15:26:41'),
(2462,10,4,44,'2019-12-05 02:06:51'),
(2463,9,3,50,'2019-12-05 13:00:06'),
(2464,6,3,56,'2019-12-05 10:39:58'),
(2465,8,4,63,'2019-12-05 10:48:15'),
(2466,2,3,51,'2019-12-05 20:34:51'),
(2467,2,3,31,'2019-12-05 14:10:22'),
(2468,4,4,47,'2019-12-05 02:38:16'),
(2469,1,3,51,'2019-12-05 07:09:13'),
(2470,5,3,40,'2019-12-05 14:51:18'),
(2471,2,4,50,'2019-12-05 04:36:12'),
(2472,10,4,50,'2019-12-05 19:22:28'),
(2473,9,4,44,'2019-12-05 09:22:57'),
(2474,10,4,43,'2019-12-05 02:34:01'),
(2475,2,3,41,'2019-12-05 15:28:54'),
(2476,8,4,39,'2019-12-05 22:38:11'),
(2477,8,3,56,'2019-12-05 02:55:43'),
(2478,4,3,54,'2019-12-05 21:15:58'),
(2479,2,4,47,'2019-12-05 10:03:10'),
(2480,4,3,40,'2019-12-05 05:26:09'),
(2481,3,3,34,'2019-12-05 13:52:38'),
(2482,3,3,45,'2019-12-05 01:52:46'),
(2483,3,4,39,'2019-12-05 20:22:58'),
(2484,9,3,54,'2019-12-05 20:49:20'),
(2485,8,3,64,'2019-12-05 03:21:48'),
(2486,5,3,46,'2019-12-05 08:26:05'),
(2487,8,3,45,'2019-12-05 06:31:42'),
(2488,7,4,32,'2019-12-05 14:00:34'),
(2489,6,3,40,'2019-12-05 19:30:00'),
(2490,2,4,59,'2019-12-05 19:40:01'),
(2491,3,4,33,'2019-12-05 08:07:32'),
(2492,1,4,31,'2019-12-05 07:23:21'),
(2493,1,4,50,'2019-12-05 23:22:16'),
(2494,10,3,52,'2019-12-05 08:28:18'),
(2495,4,4,65,'2019-12-05 04:13:48'),
(2496,9,3,47,'2019-12-05 09:17:09'),
(2497,8,4,40,'2019-12-05 21:18:03'),
(2498,3,4,37,'2019-12-05 13:31:55'),
(2499,7,4,39,'2019-12-05 21:21:18'),
(2500,10,4,44,'2019-12-05 16:30:24'),
(2501,7,3,64,'2019-12-05 16:44:53'),
(2502,2,4,56,'2019-12-05 06:07:29'),
(2503,2,4,49,'2019-12-05 09:36:19'),
(2504,2,4,32,'2019-12-05 07:14:22'),
(2505,1,3,33,'2019-12-05 22:08:17'),
(2506,3,4,39,'2019-12-05 17:43:14'),
(2507,5,3,46,'2019-12-05 06:17:05'),
(2508,9,3,36,'2019-12-05 21:51:42'),
(2509,9,4,58,'2019-12-05 03:47:22'),
(2510,3,4,38,'2019-12-05 01:28:08'),
(2511,2,4,62,'2019-12-05 07:34:42'),
(2512,4,4,56,'2019-12-05 17:20:30'),
(2513,5,4,34,'2019-12-05 15:22:51'),
(2514,9,4,46,'2019-12-05 05:59:29'),
(2515,8,4,31,'2019-12-05 16:14:07'),
(2516,6,3,35,'2019-12-05 02:29:56'),
(2517,8,4,43,'2019-12-05 22:54:31'),
(2518,9,4,55,'2019-12-05 06:57:43'),
(2519,8,4,39,'2019-12-05 07:46:36'),
(2520,4,3,64,'2019-12-05 21:18:46'),
(2521,5,4,45,'2019-12-05 11:23:03'),
(2522,7,4,45,'2019-12-05 11:15:01'),
(2523,10,3,65,'2019-12-05 01:59:18'),
(2524,9,3,47,'2019-12-05 23:20:40'),
(2525,4,4,53,'2019-12-05 14:42:32'),
(2526,8,3,60,'2019-12-05 04:16:23'),
(2527,9,4,47,'2019-12-05 10:42:22'),
(2528,10,3,48,'2019-12-05 19:09:06'),
(2529,5,4,60,'2019-12-05 04:51:23'),
(2530,6,3,46,'2019-12-05 12:34:46'),
(2531,8,4,55,'2019-12-05 11:53:40'),
(2532,7,3,36,'2019-12-05 03:53:11'),
(2533,2,4,59,'2019-12-05 01:44:16'),
(2534,3,3,52,'2019-12-05 11:20:03'),
(2535,7,3,30,'2019-12-05 20:06:13'),
(2536,3,4,60,'2019-12-05 22:08:15'),
(2537,7,4,58,'2019-12-05 16:13:25'),
(2538,1,3,35,'2019-12-05 03:04:30'),
(2539,4,3,48,'2019-12-05 03:53:48'),
(2540,6,3,61,'2019-12-05 22:36:40'),
(2541,9,4,64,'2019-12-05 08:59:18'),
(2542,4,3,33,'2019-12-05 02:30:26'),
(2543,2,4,62,'2019-12-05 23:39:58'),
(2544,9,3,43,'2019-12-05 00:24:49'),
(2545,2,4,32,'2019-12-05 14:57:59'),
(2546,9,4,31,'2019-12-05 03:31:11'),
(2547,10,3,57,'2019-12-05 23:02:26'),
(2548,7,3,33,'2019-12-05 11:15:17'),
(2549,9,4,40,'2019-12-05 03:11:33'),
(2550,10,4,31,'2019-12-05 11:19:37'),
(2551,5,4,43,'2019-12-05 15:57:21'),
(2552,9,3,60,'2019-12-05 09:38:58'),
(2553,1,3,55,'2019-12-05 16:31:21'),
(2554,2,4,33,'2019-12-05 08:12:31'),
(2555,2,3,52,'2019-12-05 22:33:29'),
(2556,9,4,41,'2019-12-05 11:25:55'),
(2557,9,4,52,'2019-12-05 13:52:26'),
(2558,10,3,42,'2019-12-05 19:33:35'),
(2559,7,3,50,'2019-12-05 07:48:12'),
(2560,5,4,58,'2019-12-05 06:07:49'),
(2561,6,4,63,'2019-12-05 12:07:53'),
(2562,1,3,59,'2019-12-05 02:48:15'),
(2563,1,3,52,'2019-12-05 21:11:42'),
(2564,9,4,50,'2019-12-05 09:26:36'),
(2565,4,4,42,'2019-12-05 03:19:57'),
(2566,7,3,44,'2019-12-05 03:23:44'),
(2567,3,4,46,'2019-12-05 23:27:49'),
(2568,3,3,62,'2019-12-05 22:18:10'),
(2569,1,4,42,'2019-12-05 03:27:23'),
(2570,6,3,65,'2019-12-05 04:45:13'),
(2571,1,4,41,'2019-12-05 18:39:13'),
(2572,8,3,36,'2019-12-05 20:50:43'),
(2573,8,4,55,'2019-12-05 12:25:31'),
(2574,7,3,64,'2019-12-05 01:28:25'),
(2575,3,4,59,'2019-12-05 23:28:47'),
(2576,6,4,51,'2019-12-05 14:25:35'),
(2577,9,3,60,'2019-12-05 21:58:17'),
(2578,6,3,41,'2019-12-05 03:40:42'),
(2579,7,4,35,'2019-12-05 22:12:17'),
(2580,4,4,32,'2019-12-05 14:17:08'),
(2581,3,3,51,'2019-12-05 08:27:56'),
(2582,7,3,43,'2019-12-05 12:28:43'),
(2583,1,3,36,'2019-12-05 07:02:00'),
(2584,2,4,50,'2019-12-05 02:10:56'),
(2585,2,4,39,'2019-12-05 15:59:37'),
(2586,9,3,46,'2019-12-05 16:36:02'),
(2587,3,4,52,'2019-12-05 14:46:19'),
(2588,8,3,45,'2019-12-05 17:51:11'),
(2589,9,4,62,'2019-12-05 23:25:54'),
(2590,9,4,34,'2019-12-05 16:23:46'),
(2591,9,4,40,'2019-12-05 01:35:49'),
(2592,3,3,59,'2019-12-05 02:28:35'),
(2593,8,3,57,'2019-12-05 08:54:25'),
(2594,9,3,61,'2019-12-05 05:13:18'),
(2595,8,4,32,'2019-12-05 02:44:14'),
(2596,3,4,62,'2019-12-05 07:34:23'),
(2597,7,4,52,'2019-12-05 22:19:12'),
(2598,3,3,51,'2019-12-05 10:09:26'),
(2599,7,3,43,'2019-12-05 03:42:56'),
(2600,8,3,48,'2019-12-05 15:00:58'),
(2601,1,4,52,'2019-12-05 23:09:04'),
(2602,1,3,42,'2019-12-05 14:00:30'),
(2603,1,4,33,'2019-12-05 08:15:22'),
(2604,8,4,63,'2019-12-05 23:17:39'),
(2605,5,3,64,'2019-12-05 05:13:32'),
(2606,4,4,61,'2019-12-05 05:23:10'),
(2607,10,3,59,'2019-12-05 17:34:02'),
(2608,5,4,47,'2019-12-05 13:37:16'),
(2609,6,4,36,'2019-12-05 19:17:17'),
(2610,1,3,39,'2019-12-05 09:55:04'),
(2611,6,3,34,'2019-12-05 04:23:52'),
(2612,3,4,30,'2019-12-05 15:32:06'),
(2613,3,4,58,'2019-12-05 20:48:02'),
(2614,10,3,46,'2019-12-05 05:47:52'),
(2615,10,4,33,'2019-12-05 10:51:29'),
(2616,4,3,49,'2019-12-05 05:58:02'),
(2617,6,3,44,'2019-12-05 18:48:26'),
(2618,4,3,56,'2019-12-05 09:19:02'),
(2619,5,4,59,'2019-12-05 20:11:14'),
(2620,5,4,57,'2019-12-05 09:16:33'),
(2621,7,3,47,'2019-12-05 09:26:53'),
(2622,9,4,58,'2019-12-05 05:17:10'),
(2623,10,3,34,'2019-12-05 11:59:53'),
(2624,8,3,52,'2019-12-05 18:57:35'),
(2625,4,3,42,'2019-12-05 12:16:38'),
(2626,5,4,55,'2019-12-05 02:07:09'),
(2627,9,4,36,'2019-12-05 23:44:37'),
(2628,8,4,38,'2019-12-05 20:48:07'),
(2629,10,4,47,'2019-12-05 19:02:43'),
(2630,1,3,63,'2019-12-05 15:43:16'),
(2631,7,3,38,'2019-12-05 18:47:54'),
(2632,1,4,39,'2019-12-05 01:17:30'),
(2633,7,3,61,'2019-12-05 02:17:33'),
(2634,7,3,44,'2019-12-05 21:18:58'),
(2635,7,3,63,'2019-12-05 08:24:25'),
(2636,2,3,51,'2019-12-05 19:04:22'),
(2637,3,4,31,'2019-12-05 21:59:05'),
(2638,5,3,39,'2019-12-05 02:08:30'),
(2639,1,3,60,'2019-12-05 13:12:34'),
(2640,6,4,38,'2019-12-05 06:12:05'),
(2641,3,4,63,'2019-12-05 19:06:49'),
(2642,2,3,32,'2019-12-05 08:52:44'),
(2643,10,3,40,'2019-12-05 02:01:08'),
(2644,7,3,53,'2019-12-05 01:11:21'),
(2645,2,3,30,'2019-12-05 04:39:56'),
(2646,10,4,63,'2019-12-05 23:37:06'),
(2647,7,3,43,'2019-12-05 12:57:23'),
(2648,5,3,38,'2019-12-05 16:48:11'),
(2649,9,4,45,'2019-12-05 18:19:34'),
(2650,7,3,56,'2019-12-05 03:26:08'),
(2651,7,3,40,'2019-12-05 03:34:39'),
(2652,3,3,44,'2019-12-05 20:51:21'),
(2653,1,4,33,'2019-12-05 00:03:27'),
(2654,10,4,61,'2019-12-05 12:07:48'),
(2655,4,3,34,'2019-12-05 20:05:44'),
(2656,10,3,33,'2019-12-05 01:30:33'),
(2657,9,4,48,'2019-12-05 22:35:49'),
(2658,6,3,39,'2019-12-05 20:39:29'),
(2659,7,4,34,'2019-12-05 11:03:24'),
(2660,4,3,43,'2019-12-05 01:46:15'),
(2661,9,3,55,'2019-12-05 15:06:55'),
(2662,10,4,55,'2019-12-05 11:00:54'),
(2663,6,4,39,'2019-12-05 12:00:20'),
(2664,3,3,60,'2019-12-05 20:12:38'),
(2665,3,3,42,'2019-12-05 22:16:11'),
(2666,5,4,65,'2019-12-05 17:22:54'),
(2667,5,4,36,'2019-12-05 06:21:23'),
(2668,10,4,59,'2019-12-05 19:14:59'),
(2669,4,3,37,'2019-12-05 13:08:18'),
(2670,2,4,32,'2019-12-05 20:00:39'),
(2671,9,4,64,'2019-12-05 14:47:51'),
(2672,5,4,43,'2019-12-05 11:09:33'),
(2673,9,3,57,'2019-12-05 14:30:40'),
(2674,1,3,62,'2019-12-05 14:53:46'),
(2675,7,4,50,'2019-12-05 16:17:25'),
(2676,4,4,51,'2019-12-05 03:00:49'),
(2677,5,4,40,'2019-12-05 00:22:38'),
(2678,7,3,59,'2019-12-05 19:36:43'),
(2679,4,3,53,'2019-12-05 18:08:36'),
(2680,9,3,44,'2019-12-05 19:14:30'),
(2681,3,3,55,'2019-12-05 16:28:59'),
(2682,3,4,63,'2019-12-05 12:32:19'),
(2683,7,4,31,'2019-12-05 13:06:23'),
(2684,8,3,47,'2019-12-05 13:55:06'),
(2685,8,4,47,'2019-12-05 23:23:28'),
(2686,3,3,54,'2019-12-05 04:37:56'),
(2687,9,3,62,'2019-12-05 21:06:24'),
(2688,6,4,47,'2019-12-05 03:11:28'),
(2689,6,3,52,'2019-12-05 21:23:31'),
(2690,6,4,44,'2019-12-05 13:49:15'),
(2691,10,3,63,'2019-12-05 08:21:51'),
(2692,8,3,31,'2019-12-05 23:36:29'),
(2693,9,3,65,'2019-12-05 21:42:25'),
(2694,10,4,34,'2019-12-05 22:11:22'),
(2695,6,4,42,'2019-12-05 11:00:22'),
(2696,9,4,43,'2019-12-05 05:17:49'),
(2697,4,3,31,'2019-12-05 13:55:56'),
(2698,7,4,35,'2019-12-05 16:22:03'),
(2699,6,3,37,'2019-12-05 11:25:24'),
(2700,1,3,64,'2019-12-05 00:05:00'),
(2701,3,3,54,'2019-12-05 22:34:56'),
(2702,5,3,48,'2019-12-05 06:19:17'),
(2703,7,3,49,'2019-12-05 16:42:35'),
(2704,5,4,38,'2019-12-05 21:56:08'),
(2705,7,3,39,'2019-12-05 13:35:05'),
(2706,5,3,34,'2019-12-05 16:55:45'),
(2707,9,3,54,'2019-12-05 17:22:42'),
(2708,10,3,47,'2019-12-05 14:29:55'),
(2709,1,3,52,'2019-12-05 22:43:18'),
(2710,2,4,59,'2019-12-05 21:24:23'),
(2711,6,3,55,'2019-12-05 04:41:45'),
(2712,3,4,50,'2019-12-05 13:25:28'),
(2713,3,3,41,'2019-12-05 15:20:40'),
(2714,4,4,41,'2019-12-05 20:37:34'),
(2715,9,4,45,'2019-12-05 10:07:58'),
(2716,1,4,32,'2019-12-05 04:51:53'),
(2717,3,4,37,'2019-12-05 18:45:56'),
(2718,4,3,49,'2019-12-05 05:27:58'),
(2719,10,4,42,'2019-12-05 00:21:33'),
(2720,1,4,49,'2019-12-05 06:47:39'),
(2721,6,4,50,'2019-12-05 05:05:33'),
(2722,5,3,63,'2019-12-05 23:48:50'),
(2723,6,3,36,'2019-12-05 06:07:25'),
(2724,8,4,43,'2019-12-05 23:02:44'),
(2725,1,4,48,'2019-12-05 07:17:04'),
(2726,9,3,43,'2019-12-05 19:44:11'),
(2727,2,4,61,'2019-12-05 17:51:53'),
(2728,2,3,47,'2019-12-05 10:32:55'),
(2729,1,4,54,'2019-12-05 01:24:37'),
(2730,5,4,59,'2019-12-05 13:52:49'),
(2731,2,4,33,'2019-12-05 14:24:00'),
(2732,6,3,55,'2019-12-05 00:26:34'),
(2733,2,4,31,'2019-12-05 15:59:40'),
(2734,7,4,49,'2019-12-05 22:23:51'),
(2735,1,4,62,'2019-12-05 13:04:50'),
(2736,8,4,64,'2019-12-05 01:59:19'),
(2737,6,4,31,'2019-12-05 07:04:04'),
(2738,3,3,44,'2019-12-05 09:32:15'),
(2739,7,4,56,'2019-12-05 02:28:20'),
(2740,4,3,60,'2019-12-05 09:46:49'),
(2741,1,3,57,'2019-12-05 20:32:08'),
(2742,1,3,48,'2019-12-05 08:36:31'),
(2743,8,3,63,'2019-12-05 13:28:28'),
(2744,9,4,33,'2019-12-05 08:52:43'),
(2745,4,4,46,'2019-12-05 23:27:05'),
(2746,3,4,55,'2019-12-05 13:22:49'),
(2747,6,4,51,'2019-12-05 12:20:34'),
(2748,3,4,65,'2019-12-05 16:44:46'),
(2749,7,3,56,'2019-12-05 21:54:29'),
(2750,6,4,42,'2019-12-05 22:47:58'),
(2751,5,4,46,'2019-12-05 10:42:59'),
(2752,8,4,31,'2019-12-05 02:27:28'),
(2753,9,3,56,'2019-12-05 17:15:44'),
(2754,6,3,42,'2019-12-05 19:27:13'),
(2755,7,4,49,'2019-12-05 12:29:15'),
(2756,5,3,36,'2019-12-05 03:49:20'),
(2757,5,3,60,'2019-12-05 17:14:52'),
(2758,1,4,50,'2019-12-05 08:13:42'),
(2759,4,3,63,'2019-12-05 20:32:02'),
(2760,7,3,50,'2019-12-05 23:06:25'),
(2761,4,4,58,'2019-12-05 12:53:35'),
(2762,9,4,62,'2019-12-05 22:26:19'),
(2763,8,3,56,'2019-12-05 21:46:01'),
(2764,4,3,41,'2019-12-05 03:05:38'),
(2765,2,3,39,'2019-12-05 19:51:05'),
(2766,8,4,56,'2019-12-05 22:30:22'),
(2767,5,4,61,'2019-12-05 02:59:22'),
(2768,3,3,44,'2019-12-05 07:36:37'),
(2769,3,3,30,'2019-12-05 15:19:50'),
(2770,10,4,65,'2019-12-05 13:03:37'),
(2771,2,4,33,'2019-12-05 11:39:37'),
(2772,6,3,43,'2019-12-05 16:46:03'),
(2773,5,3,34,'2019-12-05 23:17:21'),
(2774,4,4,32,'2019-12-05 02:24:08'),
(2775,1,4,54,'2019-12-05 10:23:06'),
(2776,9,4,48,'2019-12-05 18:16:49'),
(2777,5,4,40,'2019-12-05 00:04:53'),
(2778,8,3,51,'2019-12-05 16:29:38'),
(2779,5,4,58,'2019-12-05 17:32:14'),
(2780,1,3,30,'2019-12-05 15:40:08'),
(2781,10,3,34,'2019-12-05 17:00:57'),
(2782,3,4,53,'2019-12-05 03:16:43'),
(2783,5,3,34,'2019-12-05 18:22:15'),
(2784,6,4,55,'2019-12-05 21:51:39'),
(2785,10,4,41,'2019-12-05 16:42:16'),
(2786,3,4,30,'2019-12-05 07:15:38'),
(2787,5,4,65,'2019-12-05 10:05:59'),
(2788,8,4,59,'2019-12-05 21:20:02'),
(2789,4,4,31,'2019-12-05 05:23:09'),
(2790,6,3,40,'2019-12-05 06:42:25'),
(2791,1,4,58,'2019-12-05 03:22:27'),
(2792,9,4,64,'2019-12-05 02:19:43'),
(2793,6,4,61,'2019-12-05 19:20:36'),
(2794,6,4,34,'2019-12-05 08:46:32'),
(2795,7,4,53,'2019-12-05 11:53:23'),
(2796,3,4,40,'2019-12-05 07:48:32'),
(2797,6,4,65,'2019-12-05 08:14:54'),
(2798,3,4,65,'2019-12-05 11:08:52'),
(2799,4,4,54,'2019-12-05 04:33:49'),
(2800,10,4,44,'2019-12-05 00:14:22'),
(2801,8,3,53,'2019-12-05 06:17:21');
/*!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 */;
|
CREATE TABLE usuarios (
id SERIAL,
login VARCHAR(40),
senha VARCHAR(8),
email VARCHAR(40)
);
INSERT INTO usuarios (login, senha, email) VALUES ('laura', '1234', '<EMAIL>');
|
<filename>app/database/migrations/2016.08.28.11.05.alpha_ncategory.sql
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 28, 2016 at 06:05 AM
-- Server version: 5.5.39
-- PHP Version: 5.4.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `dbsugarcrm`
--
-- --------------------------------------------------------
--
-- Table structure for table `alpha_ncategory`
--
CREATE TABLE IF NOT EXISTS `alpha_ncategory` (
`nid` int(11) NOT NULL,
`ccontents` varchar(300) COLLATE utf8_unicode_ci NOT NULL,
`cdelete` smallint(6) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;
--
-- Dumping data for table `alpha_ncategory`
--
INSERT INTO `alpha_ncategory` (`nid`, `ccontents`, `cdelete`) VALUES
(1, 'Cách Đăng Ký', 0),
(2, 'Tin cho phụ huynh', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `alpha_ncategory`
--
ALTER TABLE `alpha_ncategory`
ADD PRIMARY KEY (`nid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `alpha_ncategory`
--
ALTER TABLE `alpha_ncategory`
MODIFY `nid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
/*!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 name, COUNT(*)
FROM customers INNER JOIN orders on customers.cid = orders.cid
GROUP BY name
ORDER BY name
|
<gh_stars>1-10
insert into MEPages_datatablecelltissuetype values(301,1,1,0);
insert into MEPages_datatablecelltissuetype values(302,1,2,0);
insert into MEPages_datatablecelltissuetype values(303,2,1,0);
insert into MEPages_datatablecelltissuetype values(304,2,2,0);
insert into MEPages_datatablecelltissuetype values(305,3,1,0);
insert into MEPages_datatablecelltissuetype values(306,3,2,0);
insert into MEPages_datatablecelltissuetype values(307,4,1,0);
insert into MEPages_datatablecelltissuetype values(308,4,2,0);
insert into MEPages_datatablecelltissuetype values(309,5,1,0);
insert into MEPages_datatablecelltissuetype values(310,5,2,0);
insert into MEPages_datatablecelltissuetype values(311,6,1,0);
insert into MEPages_datatablecelltissuetype values(312,6,2,0);
insert into MEPages_datatablecelltissuetype values(313,7,1,0);
insert into MEPages_datatablecelltissuetype values(314,7,2,0);
insert into MEPages_datatablecelltissuetype values(315,8,1,0);
insert into MEPages_datatablecelltissuetype values(316,8,2,0);
insert into MEPages_datatablecelltissuetype values(317,9,1,0);
insert into MEPages_datatablecelltissuetype values(318,9,2,0);
insert into MEPages_datatablecelltissuetype values(319,10,1,0);
insert into MEPages_datatablecelltissuetype values(320,10,2,0);
insert into MEPages_datatablecelltissuetype values(321,11,1,0);
insert into MEPages_datatablecelltissuetype values(322,11,2,0);
insert into MEPages_datatablecelltissuetype values(323,12,1,0);
insert into MEPages_datatablecelltissuetype values(324,12,2,0);
insert into MEPages_datatablecelltissuetype values(325,13,1,0);
insert into MEPages_datatablecelltissuetype values(326,13,2,0);
insert into MEPages_datatablecelltissuetype values(327,14,1,0);
insert into MEPages_datatablecelltissuetype values(328,14,2,0);
insert into MEPages_datatablecelltissuetype values(329,15,1,0);
insert into MEPages_datatablecelltissuetype values(330,15,2,0);
insert into MEPages_datatablecelltissuetype values(331,16,1,0);
insert into MEPages_datatablecelltissuetype values(332,16,2,0);
insert into MEPages_datatablecelltissuetype values(333,17,1,0);
insert into MEPages_datatablecelltissuetype values(334,17,2,0);
insert into MEPages_datatablecelltissuetype values(335,18,1,0);
insert into MEPages_datatablecelltissuetype values(336,18,2,0);
insert into MEPages_datatablecelltissuetype values(337,19,1,0);
insert into MEPages_datatablecelltissuetype values(338,19,2,0);
insert into MEPages_datatablecelltissuetype values(339,20,1,0);
insert into MEPages_datatablecelltissuetype values(340,20,2,0);
insert into MEPages_datatablecelltissuetype values(341,21,1,0);
insert into MEPages_datatablecelltissuetype values(342,21,2,0);
insert into MEPages_datatablecelltissuetype values(343,22,1,0);
insert into MEPages_datatablecelltissuetype values(344,22,2,0);
insert into MEPages_datatablecelltissuetype values(345,23,1,0);
insert into MEPages_datatablecelltissuetype values(346,23,2,0);
insert into MEPages_datatablecelltissuetype values(347,24,1,0);
insert into MEPages_datatablecelltissuetype values(348,24,2,0);
insert into MEPages_datatablecelltissuetype values(349,25,1,0);
insert into MEPages_datatablecelltissuetype values(350,25,2,0);
insert into MEPages_datatablecelltissuetype values(351,26,1,0);
insert into MEPages_datatablecelltissuetype values(352,26,2,0);
insert into MEPages_datatablecelltissuetype values(353,27,1,0);
insert into MEPages_datatablecelltissuetype values(354,27,2,0);
insert into MEPages_datatablecelltissuetype values(355,28,1,0);
insert into MEPages_datatablecelltissuetype values(356,28,2,0);
insert into MEPages_datatablecelltissuetype values(357,29,1,0);
insert into MEPages_datatablecelltissuetype values(358,29,2,0);
insert into MEPages_datatablecelltissuetype values(359,30,1,0);
insert into MEPages_datatablecelltissuetype values(360,30,2,0);
insert into MEPages_datatablecelltissuetype values(361,31,1,0);
insert into MEPages_datatablecelltissuetype values(362,31,2,0);
insert into MEPages_datatablecelltissuetype values(363,32,1,0);
insert into MEPages_datatablecelltissuetype values(364,32,2,0);
insert into MEPages_datatablecelltissuetype values(365,33,1,0);
insert into MEPages_datatablecelltissuetype values(366,33,2,0);
insert into MEPages_datatablecelltissuetype values(367,34,1,0);
insert into MEPages_datatablecelltissuetype values(368,34,2,0);
insert into MEPages_datatablecelltissuetype values(369,35,1,0);
insert into MEPages_datatablecelltissuetype values(370,35,2,0);
insert into MEPages_datatablecelltissuetype values(371,36,1,0);
insert into MEPages_datatablecelltissuetype values(372,36,2,0);
insert into MEPages_datatablecelltissuetype values(373,37,1,0);
insert into MEPages_datatablecelltissuetype values(374,37,2,0);
insert into MEPages_datatablecelltissuetype values(375,38,1,0);
insert into MEPages_datatablecelltissuetype values(376,38,2,0);
insert into MEPages_datatablecelltissuetype values(377,39,1,0);
insert into MEPages_datatablecelltissuetype values(378,39,2,0);
insert into MEPages_datatablecelltissuetype values(379,40,1,0);
insert into MEPages_datatablecelltissuetype values(380,40,2,0);
insert into MEPages_datatablecelltissuetype values(381,41,1,0);
insert into MEPages_datatablecelltissuetype values(382,41,2,0);
insert into MEPages_datatablecelltissuetype values(383,42,1,0);
insert into MEPages_datatablecelltissuetype values(384,42,2,0);
insert into MEPages_datatablecelltissuetype values(385,43,1,0);
insert into MEPages_datatablecelltissuetype values(386,43,2,0);
insert into MEPages_datatablecelltissuetype values(387,44,1,0);
insert into MEPages_datatablecelltissuetype values(388,44,2,0);
insert into MEPages_datatablecelltissuetype values(389,45,1,0);
insert into MEPages_datatablecelltissuetype values(390,45,2,0);
insert into MEPages_datatablecelltissuetype values(391,46,1,0);
insert into MEPages_datatablecelltissuetype values(392,46,2,0);
insert into MEPages_datatablecelltissuetype values(393,47,1,0);
insert into MEPages_datatablecelltissuetype values(394,47,2,0);
insert into MEPages_datatablecelltissuetype values(395,48,1,0);
insert into MEPages_datatablecelltissuetype values(396,48,2,0);
insert into MEPages_datatablecelltissuetype values(397,49,1,0);
insert into MEPages_datatablecelltissuetype values(398,49,2,0);
insert into MEPages_datatablecelltissuetype values(399,50,1,0);
insert into MEPages_datatablecelltissuetype values(400,50,2,0);
insert into MEPages_datatablecelltissuetype values(401,51,1,0);
insert into MEPages_datatablecelltissuetype values(402,51,2,0);
insert into MEPages_datatablecelltissuetype values(403,52,1,0);
insert into MEPages_datatablecelltissuetype values(404,52,2,0);
insert into MEPages_datatablecelltissuetype values(405,53,1,0);
insert into MEPages_datatablecelltissuetype values(406,53,2,0);
insert into MEPages_datatablecelltissuetype values(407,54,1,0);
insert into MEPages_datatablecelltissuetype values(408,54,2,0);
insert into MEPages_datatablecelltissuetype values(409,55,1,0);
insert into MEPages_datatablecelltissuetype values(410,55,2,0);
insert into MEPages_datatablecelltissuetype values(411,56,1,0);
insert into MEPages_datatablecelltissuetype values(412,56,2,0);
insert into MEPages_datatablecelltissuetype values(413,57,1,0);
insert into MEPages_datatablecelltissuetype values(414,57,2,0);
insert into MEPages_datatablecelltissuetype values(415,58,1,0);
insert into MEPages_datatablecelltissuetype values(416,58,2,0);
insert into MEPages_datatablecelltissuetype values(417,59,1,0);
insert into MEPages_datatablecelltissuetype values(418,59,2,0);
insert into MEPages_datatablecelltissuetype values(419,60,1,0);
insert into MEPages_datatablecelltissuetype values(420,60,2,0);
insert into MEPages_datatablecelltissuetype values(421,61,1,0);
insert into MEPages_datatablecelltissuetype values(422,61,2,0);
insert into MEPages_datatablecelltissuetype values(423,62,1,0);
insert into MEPages_datatablecelltissuetype values(424,62,2,0);
insert into MEPages_datatablecelltissuetype values(425,63,1,0);
insert into MEPages_datatablecelltissuetype values(426,63,2,0);
insert into MEPages_datatablecelltissuetype values(427,64,1,0);
insert into MEPages_datatablecelltissuetype values(428,64,2,0);
insert into MEPages_datatablecelltissuetype values(429,65,1,0);
insert into MEPages_datatablecelltissuetype values(430,65,2,0);
insert into MEPages_datatablecelltissuetype values(431,66,1,0);
insert into MEPages_datatablecelltissuetype values(432,66,2,0);
insert into MEPages_datatablecelltissuetype values(433,67,1,0);
insert into MEPages_datatablecelltissuetype values(434,67,2,0);
insert into MEPages_datatablecelltissuetype values(435,68,1,0);
insert into MEPages_datatablecelltissuetype values(436,68,2,0);
insert into MEPages_datatablecelltissuetype values(437,69,1,0);
insert into MEPages_datatablecelltissuetype values(438,69,2,0);
insert into MEPages_datatablecelltissuetype values(439,70,1,0);
insert into MEPages_datatablecelltissuetype values(440,70,2,0);
insert into MEPages_datatablecelltissuetype values(441,71,1,0);
insert into MEPages_datatablecelltissuetype values(442,71,2,0);
insert into MEPages_datatablecelltissuetype values(443,72,1,0);
insert into MEPages_datatablecelltissuetype values(444,72,2,0);
insert into MEPages_datatablecelltissuetype values(445,73,1,0);
insert into MEPages_datatablecelltissuetype values(446,73,2,0);
insert into MEPages_datatablecelltissuetype values(447,74,1,0);
insert into MEPages_datatablecelltissuetype values(448,74,2,0);
insert into MEPages_datatablecelltissuetype values(449,75,1,0);
insert into MEPages_datatablecelltissuetype values(450,75,2,0);
insert into MEPages_datatablecelltissuetype values(451,76,1,0);
insert into MEPages_datatablecelltissuetype values(452,76,2,0);
insert into MEPages_datatablecelltissuetype values(453,77,1,0);
insert into MEPages_datatablecelltissuetype values(454,77,2,0);
insert into MEPages_datatablecelltissuetype values(455,78,1,0);
insert into MEPages_datatablecelltissuetype values(456,78,2,0);
insert into MEPages_datatablecelltissuetype values(457,79,1,0);
insert into MEPages_datatablecelltissuetype values(458,79,2,0);
insert into MEPages_datatablecelltissuetype values(459,80,1,0);
insert into MEPages_datatablecelltissuetype values(460,80,2,0);
insert into MEPages_datatablecelltissuetype values(461,81,1,0);
insert into MEPages_datatablecelltissuetype values(462,81,2,0);
insert into MEPages_datatablecelltissuetype values(463,82,1,0);
insert into MEPages_datatablecelltissuetype values(464,82,2,0);
insert into MEPages_datatablecelltissuetype values(465,83,1,0);
insert into MEPages_datatablecelltissuetype values(466,83,2,0);
insert into MEPages_datatablecelltissuetype values(467,84,1,0);
insert into MEPages_datatablecelltissuetype values(468,84,2,0);
insert into MEPages_datatablecelltissuetype values(469,85,1,0);
insert into MEPages_datatablecelltissuetype values(470,85,2,0);
insert into MEPages_datatablecelltissuetype values(471,86,1,0);
insert into MEPages_datatablecelltissuetype values(472,86,2,0);
insert into MEPages_datatablecelltissuetype values(473,1,3,0);
insert into MEPages_datatablecelltissuetype values(474,2,3,0);
insert into MEPages_datatablecelltissuetype values(475,3,3,0);
insert into MEPages_datatablecelltissuetype values(476,4,3,0);
insert into MEPages_datatablecelltissuetype values(477,5,3,0);
insert into MEPages_datatablecelltissuetype values(488,6,3,0);
insert into MEPages_datatablecelltissuetype values(489,7,3,0);
insert into MEPages_datatablecelltissuetype values(490,8,3,0);
insert into MEPages_datatablecelltissuetype values(491,9,3,0);
insert into MEPages_datatablecelltissuetype values(492,10,3,0);
insert into MEPages_datatablecelltissuetype values(493,11,3,0);
insert into MEPages_datatablecelltissuetype values(494,12,3,0);
insert into MEPages_datatablecelltissuetype values(495,13,3,0);
insert into MEPages_datatablecelltissuetype values(496,14,3,0);
insert into MEPages_datatablecelltissuetype values(497,15,3,0);
insert into MEPages_datatablecelltissuetype values(498,16,3,0);
insert into MEPages_datatablecelltissuetype values(499,17,3,0);
insert into MEPages_datatablecelltissuetype values(500,18,3,0);
insert into MEPages_datatablecelltissuetype values(501,19,3,0);
insert into MEPages_datatablecelltissuetype values(502,20,3,0);
insert into MEPages_datatablecelltissuetype values(503,21,3,0);
insert into MEPages_datatablecelltissuetype values(504,22,3,0);
insert into MEPages_datatablecelltissuetype values(505,23,3,0);
insert into MEPages_datatablecelltissuetype values(506,24,3,0);
insert into MEPages_datatablecelltissuetype values(507,25,3,0);
insert into MEPages_datatablecelltissuetype values(508,26,3,0);
insert into MEPages_datatablecelltissuetype values(509,27,3,0);
insert into MEPages_datatablecelltissuetype values(510,28,3,0);
insert into MEPages_datatablecelltissuetype values(511,29,3,0);
insert into MEPages_datatablecelltissuetype values(512,30,3,0);
insert into MEPages_datatablecelltissuetype values(513,31,3,0);
insert into MEPages_datatablecelltissuetype values(514,32,3,0);
insert into MEPages_datatablecelltissuetype values(515,33,3,0);
insert into MEPages_datatablecelltissuetype values(516,34,3,0);
insert into MEPages_datatablecelltissuetype values(517,35,3,0);
insert into MEPages_datatablecelltissuetype values(518,36,3,0);
insert into MEPages_datatablecelltissuetype values(519,37,3,0);
insert into MEPages_datatablecelltissuetype values(520,38,3,0);
insert into MEPages_datatablecelltissuetype values(521,39,3,0);
insert into MEPages_datatablecelltissuetype values(522,40,3,0);
insert into MEPages_datatablecelltissuetype values(523,41,3,0);
insert into MEPages_datatablecelltissuetype values(524,42,3,0);
insert into MEPages_datatablecelltissuetype values(526,43,3,0);
insert into MEPages_datatablecelltissuetype values(527,44,3,0);
insert into MEPages_datatablecelltissuetype values(528,45,3,0);
insert into MEPages_datatablecelltissuetype values(529,46,3,0);
insert into MEPages_datatablecelltissuetype values(530,47,3,0);
insert into MEPages_datatablecelltissuetype values(531,48,3,0);
insert into MEPages_datatablecelltissuetype values(532,49,3,0);
insert into MEPages_datatablecelltissuetype values(533,50,3,0);
insert into MEPages_datatablecelltissuetype values(534,51,3,0);
insert into MEPages_datatablecelltissuetype values(535,52,3,0);
insert into MEPages_datatablecelltissuetype values(536,53,3,0);
insert into MEPages_datatablecelltissuetype values(537,54,3,0);
insert into MEPages_datatablecelltissuetype values(538,55,3,0);
insert into MEPages_datatablecelltissuetype values(539,56,3,0);
insert into MEPages_datatablecelltissuetype values(540,57,3,0);
insert into MEPages_datatablecelltissuetype values(541,58,3,0);
insert into MEPages_datatablecelltissuetype values(542,59,3,0);
insert into MEPages_datatablecelltissuetype values(543,60,3,0);
insert into MEPages_datatablecelltissuetype values(544,61,3,0);
insert into MEPages_datatablecelltissuetype values(545,62,3,0);
insert into MEPages_datatablecelltissuetype values(546,63,3,0);
insert into MEPages_datatablecelltissuetype values(547,64,3,0);
insert into MEPages_datatablecelltissuetype values(548,65,3,0);
insert into MEPages_datatablecelltissuetype values(549,66,3,0);
insert into MEPages_datatablecelltissuetype values(550,67,3,0);
insert into MEPages_datatablecelltissuetype values(551,68,3,0);
insert into MEPages_datatablecelltissuetype values(552,69,3,0);
insert into MEPages_datatablecelltissuetype values(553,70,3,0);
insert into MEPages_datatablecelltissuetype values(554,71,3,0);
insert into MEPages_datatablecelltissuetype values(555,72,3,0);
insert into MEPages_datatablecelltissuetype values(556,73,3,0);
insert into MEPages_datatablecelltissuetype values(557,74,3,0);
insert into MEPages_datatablecelltissuetype values(558,75,3,0);
insert into MEPages_datatablecelltissuetype values(559,76,3,0);
insert into MEPages_datatablecelltissuetype values(560,77,3,0);
insert into MEPages_datatablecelltissuetype values(561,78,3,0);
insert into MEPages_datatablecelltissuetype values(562,79,3,0);
insert into MEPages_datatablecelltissuetype values(563,80,3,0);
insert into MEPages_datatablecelltissuetype values(564,81,3,0);
insert into MEPages_datatablecelltissuetype values(565,82,3,0);
insert into MEPages_datatablecelltissuetype values(566,83,3,0);
insert into MEPages_datatablecelltissuetype values(567,84,3,0);
insert into MEPages_datatablecelltissuetype values(568,85,3,0);
insert into MEPages_datatablecelltissuetype values(569,86,3,0);
|
<filename>CMC030/tv/open/tv_copy_instr.ddl
DEFINE RECORD CDD$TOP.TV.TV_COPY_INSTR
DESCRIPTION IS /*TV Copy Instructions*/.
TV_COPY_INSTR_CDD STRUCTURE.
/* Element =
Description = Form number */
FRMNUM DATATYPE IS TEXT SIZE IS 8.
/* Element =
Description = Sequence number */
SEQNUM DATATYPE IS TEXT SIZE IS 2.
/* Element =
Description = From date */
FROM_DATE DATATYPE IS TEXT SIZE IS 8.
/* Element =
Description = To date */
TO_DATE DATATYPE IS TEXT SIZE IS 8.
/* Element =
Description = Length */
LENGTH DATATYPE IS TEXT SIZE IS 6.
/* Element =
Description = From time */
FROM_TIME DATATYPE IS TEXT SIZE IS 6.
/* Element =
Description = To time */
TO_TIME DATATYPE IS TEXT SIZE IS 6.
/* Element =
Description = Spot rotations */
SPOT_ROTATION DATATYPE IS TEXT SIZE IS 30.
/* Element =
Description = Current Rotation */
CURRENT_ROTATION DATATYPE IS SIGNED WORD.
END TV_COPY_INSTR_CDD STRUCTURE.
END TV_COPY_INSTR.
|
<reponame>goyoambrosio/RobotAtHome2
select
home_session_id, rh_home_sessions.name,
rh2_sensor_observations.home_id, rh_homes.name,
rh2_sensor_observations.room_id, rh_rooms.name,
rh2_sensor_observations.home_subsession_id,
rh2_sensor_observations.sensor_id, rh_sensors.name,
count(rh2_sensor_observations.id) as counter
from rh2_sensor_observations
inner join rh_home_sessions on home_session_id = rh_home_sessions.id
inner join rh_homes on rh2_sensor_observations.home_id = rh_homes.id
inner join rh_rooms on rh2_sensor_observations.room_id = rh_rooms.id
inner join rh_sensors on rh2_sensor_observations.sensor_id = rh_sensors.id
-- where --examples
-- rh2_sensor_observations.home_id = 2 and
-- rh2_sensor_observations.home_subsession_id = 0 and
-- rh2_sensor_observations.sensor_id > 0
group by
home_session_id,
rh2_sensor_observations.home_id,
rh2_sensor_observations.room_id,
rh2_sensor_observations.home_subsession_id,
rh2_sensor_observations.sensor_id
|
<reponame>dram/metasfresh<gh_stars>1000+
-- 18.05.2016 09:09
-- URL zum Konzept
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-05-18 09:09:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551018
;
-- 18.05.2016 09:09
-- URL zum Konzept
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-05-18 09:09:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551017
;
-- 18.05.2016 09:17
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543079,0,'FullPaymentString',TO_TIMESTAMP('2016-05-18 09:17:51','YYYY-MM-DD HH24:MI:SS'),100,'Im Fall von ESR oder anderen von Zahlschein gelesenen Zahlungsaufforderungen ist dies der komplette vom Schein eingelesene String','de.metas.payment','Y','Eingelesene Zeichenkette','Eingelesene Zeichenkette',TO_TIMESTAMP('2016-05-18 09:17:51','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 18.05.2016 09:17
-- URL zum Konzept
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543079 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 18.05.2016 09:18
-- URL zum Konzept
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,554397,543079,0,14,540608,'N','FullPaymentString',TO_TIMESTAMP('2016-05-18 09:18:10','YYYY-MM-DD HH24:MI:SS'),100,'N','Im Fall von ESR oder anderen von Zahlschein gelesenen Zahlungsaufforderungen ist dies der komplette vom Schein eingelesene String','de.metas.payment',2000,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Eingelesene Zeichenkette',0,TO_TIMESTAMP('2016-05-18 09:18:10','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 18.05.2016 09:18
-- URL zum Konzept
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=554397 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 18.05.2016 12:07
-- URL zum Konzept
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,Description,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,554397,556934,0,540658,0,TO_TIMESTAMP('2016-05-18 12:07:00','YYYY-MM-DD HH24:MI:SS'),100,'Im Fall von ESR oder anderen von Zahlschein gelesenen Zahlungsaufforderungen ist dies der komplette vom Schein eingelesene String',0,'U',0,'Y','Y','Y','Y','N','N','N','N','N','Eingelesene Zeichenkette',70,70,0,1,1,TO_TIMESTAMP('2016-05-18 12:07:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 18.05.2016 12:07
-- URL zum Konzept
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=556934 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 18.05.2016 12:08
-- URL zum Konzept
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2016-05-18 12:08:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555332
;
-- 18.05.2016 12:08
-- URL zum Konzept
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2016-05-18 12:08:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555331
;
-- 18.05.2016 12:08
-- URL zum Konzept
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2016-05-18 12:08:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555334
;
-- 18.05.2016 12:08
-- URL zum Konzept
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2016-05-18 12:08:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555335
;
-- 18.05.2016 12:08
-- URL zum Konzept
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2016-05-18 12:08:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555336
;
-- 18.05.2016 12:08
-- URL zum Konzept
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2016-05-18 12:08:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555336
;
-- 18.05.2016 12:08
-- URL zum Konzept
UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2016-05-18 12:08:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555337
;
-- 18.05.2016 12:08
-- URL zum Konzept
UPDATE AD_Field SET EntityType='de.metas.payment', IsReadOnly='Y',Updated=TO_TIMESTAMP('2016-05-18 12:08:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556934
;
-- 18.05.2016 12:09
-- URL zum Konzept
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2016-05-18 12:09:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555336
;
-- 18.05.2016 12:09
-- URL zum Konzept
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2016-05-18 12:09:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555335
;
COMMIT;
--------------
-- DDL
-- 18.05.2016 09:18
-- URL zum Konzept
ALTER TABLE C_Payment_Request ADD FullPaymentString VARCHAR(2000) DEFAULT NULL
;
|
CREATE TABLE cartrulelang (
id CHAVE NOT NULL,
id_cart_rule CHAVE NOT NULL,
id_lang CHAVE NOT NULL,
name CHARACTER VARYING(254) NOT NULL,
CONSTRAINT pk_cartrulelang PRIMARY KEY (id)
);
|
<reponame>AndreyKaBelka/MoneySaver
CREATE TABLE IF NOT EXISTS `moneysaver`.`users`
(
`user_id` INT UNSIGNED NOT NULL,
`user_bank` DOUBLE NOT NULL DEFAULT 0,
PRIMARY KEY (`user_id`),
UNIQUE INDEX `user_id_UNIQUE` (`user_id` ASC) VISIBLE
)
COMMENT = 'User database';
|
CREATE SCHEMA [CMS]
|
<reponame>qiankunshe/sharding-jdbc<filename>sharding-jdbc/src/test/resources/integrate/schema/table/drop/tbl.sql
DROP TABLE t_order_0 ;
DROP TABLE t_order_1 ;
DROP TABLE t_order_2 ;
DROP TABLE t_order_3 ;
DROP TABLE t_order_4 ;
DROP TABLE t_order_5 ;
DROP TABLE t_order_6 ;
DROP TABLE t_order_7 ;
DROP TABLE t_order_8 ;
DROP TABLE t_order_9 ;
DROP TABLE t_order_item_0 ;
DROP TABLE t_order_item_1 ;
DROP TABLE t_order_item_2 ;
DROP TABLE t_order_item_3 ;
DROP TABLE t_order_item_4 ;
DROP TABLE t_order_item_5 ;
DROP TABLE t_order_item_6 ;
DROP TABLE t_order_item_7 ;
DROP TABLE t_order_item_8 ;
DROP TABLE t_order_item_9 ;
DROP TABLE t_config ;
|
<reponame>scala-steward/switchmap<filename>src/main/resources/db/migration/V2__IP_to_string.sql
ALTER TABLE switches
ALTER COLUMN ip TYPE VARCHAR(15);
|
<reponame>arifng/spring-webservice-oauth2
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.18-log - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!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' */;
-- Dumping database structure for employeedatabase
DROP DATABASE IF EXISTS `employeedatabase`;
CREATE DATABASE IF NOT EXISTS `employeedatabase` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `employeedatabase`;
-- Dumping structure for table employeedatabase.employee
DROP TABLE IF EXISTS `employee`;
CREATE TABLE IF NOT EXISTS `employee` (
`username` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`firstname` varchar(50) DEFAULT NULL,
`lastname` varchar(50) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`address` varchar(250) DEFAULT NULL,
`phone` int(11) DEFAULT NULL,
`enabled` tinyint(1) NOT NULL DEFAULT '1',
`role` char(50) NOT NULL DEFAULT 'ROLE_ADMIN',
PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table employeedatabase.employee: ~5 rows (approximately)
DELETE FROM `employee`;
/*!40000 ALTER TABLE `employee` DISABLE KEYS */;
INSERT INTO `employee` (`username`, `password`, `firstname`, `lastname`, `email`, `address`, `phone`, `enabled`, `role`) VALUES
('rana', 'rana', 'Arif', 'Rana', '<EMAIL>', 'Dhaka', 456866522, 1, 'ROLE_ADMIN'),
('test', 'test', 'firstname', 'lastname', '<EMAIL>', 'test', 5656565, 1, 'ROLE_ADMIN');
/*!40000 ALTER TABLE `employee` ENABLE KEYS */;
/*!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 */;
|
<reponame>dbt-labs/dbt-slack
with messages as (
select * from {{ ref('fct_slack_messages') }}
),
replies as (
select * from {{ ref('fct_slack_replies') }}
),
post_replies as (
select
parent_message_id,
count(*) as number_of_replies,
min(sent_at) as first_reply_at
from replies
group by 1
),
posts as (
select
message_id,
channel_id,
channel_name,
user_id,
text,
reactions,
number_of_reactions,
sent_at
from messages
where is_post
),
joined as (
select
posts.message_id,
posts.channel_id,
posts.channel_name,
posts.user_id,
posts.text,
posts.reactions,
posts.sent_at,
coalesce(post_replies.number_of_replies, 0) as number_of_replies,
coalesce(post_replies.number_of_replies, 0) > 0 as has_replies,
post_replies.first_reply_at,
datediff('minute', posts.sent_at, post_replies.first_reply_at) as minutes_to_first_reply
from posts
left join post_replies
on posts.message_id = post_replies.parent_message_id
)
select * from joined
|
DROP TABLE IF EXISTS incomplete_blocks;
ALTER TABLE block_metadata ADD CONSTRAINT block_metadata_block_number_fkey
FOREIGN KEY (block_number) REFERENCES blocks(number) ON DELETE CASCADE;
|
<gh_stars>0
DROP SCHEMA mystuff CASCADE;
|
<filename>sql/_04_operator_function/_02_type_conversion/_003_to_time/cases/1011.sql
--test to_time function with int value 360
select to_time(360) from db_root order by 1;
|
-- @testpoint: pg_stat_get_backend_userid(integer),给定服务器进程的用户ID,当入参为无效值时,合理报错
--入参为有效值时
select pg_stat_get_backend_userid(1);
--当入参为无效值(为空、字母、特殊字符、多参)时
select pg_stat_get_backend_userid();
select pg_stat_get_backend_userid('abc');
select pg_stat_get_backend_userid('@#%');
select pg_stat_get_backend_userid(1,2);
|
CREATE TABLE melding
(
id BIGSERIAL PRIMARY KEY,
type VARCHAR(32) NOT NULL,
fnr VARCHAR(32) NOT NULL,
opprettet TIMESTAMP NOT NULL,
duplikatkontroll CHAR(128) NOT NULL,
data JSONB NOT NULL
);
CREATE INDEX melding_opprettet_idx ON melding USING BTREE (opprettet);
CREATE INDEX melding_fnr_idx ON melding USING BTREE (fnr);
CREATE INDEX melding_type_idx ON melding USING BTREE (type);
CREATE UNIQUE INDEX melding_duplikatkontroll_idx ON melding (duplikatkontroll);
|
<reponame>Club2014/Symfony
-- phpMyAdmin SQL Dump
-- version 4.2.9.1
-- http://www.phpmyadmin.net
--
-- Client : 127.0.0.1
-- Généré le : Mar 03 Mars 2015 à 19:29
-- Version du serveur : 5.6.17
-- Version de PHP : 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de données : `symfony`
--
CREATE DATABASE IF NOT EXISTS `symfony` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `symfony`;
-- --------------------------------------------------------
--
-- Structure de la table `article`
--
DROP TABLE IF EXISTS `article`;
CREATE TABLE IF NOT EXISTS `article` (
`id` int(11) NOT NULL,
`date` datetime NOT NULL,
`titre` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auteur` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`contenu` longtext COLLATE utf8_unicode_ci NOT NULL,
`publication` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Index pour les tables exportées
--
--
-- Index pour la table `article`
--
ALTER TABLE `article`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT pour les tables exportées
--
--
-- AUTO_INCREMENT pour la table `article`
--
ALTER TABLE `article`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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>MalangDeveloper/tataruan<filename>skripsifix.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 14 Jul 2020 pada 08.14
-- Versi server: 10.1.30-MariaDB
-- Versi PHP: 7.2.2
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: `skripsifix`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `basis_kasus`
--
CREATE TABLE `basis_kasus` (
`id_kasus` int(11) NOT NULL,
`kd_kasus` char(8) NOT NULL,
`fk_penyakit` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `basis_kasus`
--
INSERT INTO `basis_kasus` (`id_kasus`, `kd_kasus`, `fk_penyakit`) VALUES
(1, 'K001', 1),
(2, 'K002', 2),
(4, 'K004', 4),
(5, 'K005', 5),
(6, 'K006', 6),
(28, 'K014', 4);
-- --------------------------------------------------------
--
-- Struktur dari tabel `detail_kasus`
--
CREATE TABLE `detail_kasus` (
`id_detail` int(11) NOT NULL,
`fk_gejala` int(11) NOT NULL,
`fk_kasus` int(11) NOT NULL,
`bobot` enum('1','3','5') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `detail_kasus`
--
INSERT INTO `detail_kasus` (`id_detail`, `fk_gejala`, `fk_kasus`, `bobot`) VALUES
(1, 1, 1, '3'),
(2, 2, 1, '5'),
(3, 3, 1, '3'),
(4, 4, 1, '3'),
(5, 5, 2, '5'),
(6, 1, 2, '3'),
(7, 4, 2, '3'),
(12, 8, 4, '5'),
(13, 1, 4, '5'),
(14, 3, 5, '5'),
(15, 10, 5, '3'),
(16, 11, 5, '3'),
(17, 12, 5, '3'),
(18, 13, 5, '5'),
(19, 14, 5, '5'),
(20, 15, 5, '5'),
(24, 17, 6, '5'),
(25, 6, 6, '1'),
(26, 1, 6, '1'),
(27, 18, 6, '5'),
(80, 2, 28, '5'),
(81, 6, 28, '3'),
(82, 14, 28, '1');
-- --------------------------------------------------------
--
-- Struktur dari tabel `detail_pemeriksaan`
--
CREATE TABLE `detail_pemeriksaan` (
`id_detail` int(11) NOT NULL,
`fk_pemeriksaan` int(11) NOT NULL,
`fk_gejala` int(11) NOT NULL,
`cetak` char(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `gejala`
--
CREATE TABLE `gejala` (
`id_gejala` int(11) NOT NULL,
`kd_gejala` varchar(8) NOT NULL,
`nm_gejala` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `gejala`
--
INSERT INTO `gejala` (`id_gejala`, `kd_gejala`, `nm_gejala`) VALUES
(1, 'G001', 'Rasa terbakar atau gatal dan ada kemerahan disekitar alat kelamin'),
(2, 'G002', 'Timbul bintil berkelompok seperti anggur yang sangat nyeri pada kemaluan'),
(3, 'G003', 'Pembengkakan kelenjar getah bening di selangkangan'),
(4, 'G004', 'Nyeri atau panas saat buang air kecil'),
(5, 'G005', 'Keluar cairan dari alat kelamin, encer, dan baunya busuk'),
(6, 'G006', 'Pendarahan setelah berhubungan seksual'),
(7, 'G007', 'Nyeri di perut bagian bawah'),
(8, 'G008', 'Keluarnya cairan dari alat kelamin berwana putih atau abu-abu'),
(9, 'G009', 'Pembesaran kelenjar getah bening diseluruh tubuh'),
(10, 'G010', 'Sariawan yang berlebih dan tidak segera sembuh, mual, lemas'),
(11, 'G011', 'Ruam di kulit'),
(12, 'G012', 'Diare yang sering'),
(13, 'G013', 'Kehilangan berat badan dengan cepat'),
(14, 'G014', 'Penurunan kekebalan tubuh'),
(15, 'G015', 'Demam berkepanjangan'),
(16, 'G016', 'Luka disekitar alat kelamin, lebih dari satu dengan diameter +- 2 cm, cekung, dan pinggirnya tidak teratur'),
(17, 'G017', 'Terdapat benjolan menyerupai bunga kol'),
(18, 'G018', 'Kutil disekitar alat kelamin');
-- --------------------------------------------------------
--
-- Struktur dari tabel `komentar`
--
CREATE TABLE `komentar` (
`id_komen` int(11) NOT NULL,
`komen` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `pemeriksaan`
--
CREATE TABLE `pemeriksaan` (
`id_pemeriksaan` int(11) NOT NULL,
`tgl_pemeriksaan` date NOT NULL,
`status` enum('1','2','3','4') NOT NULL,
`fk_penyakit` int(11) DEFAULT NULL,
`hasil` int(11) DEFAULT NULL,
`fk_user` int(11) DEFAULT NULL,
`tgl_direvisi` date DEFAULT NULL,
`cetak` char(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `penyakit`
--
CREATE TABLE `penyakit` (
`id_penyakit` int(11) NOT NULL,
`kd_penyakit` char(5) NOT NULL,
`nm_penyakit` varchar(100) NOT NULL,
`detail` text NOT NULL,
`solusi` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `penyakit`
--
INSERT INTO `penyakit` (`id_penyakit`, `kd_penyakit`, `nm_penyakit`, `detail`, `solusi`) VALUES
(1, 'P001', 'Herpes Genital / HSV-2', 'Herpes genital atau herpes simplex adalah suatu infeksi menular seksual yang disebabkan oleh virus herpes simplex (HSV). Setelah pengidap terinfeksi, virus menetap secara dorman dalam tubuh dan dapat terjadi reaktivasi hingga beberapa kali dalam setahun. Penyakit infeksi ini juga dapat ditularkan melalui luka kecil yang tidak tampak. Herpes kelamin atau herpes genital sering kali tidak disadari, karena bisa tanpa gejala. Jika muncul gejala, biasanya berupa luka lepuh di kelamin yang terasa sakit dan gatal. Luka lepuh ini dapat muncul 2 hari sampai 2 bulan sejak tertular. Virus herpes simpleks (HSV) adalah penyebab dari penyakit herpes genital atau herpes kelamin.', 'Upaya untuk mencegah penularan herpes genital adalah senantiasa melakukan hubungan seksual yang aman dengan tidak bergonta-ganti pasangan. Jika pernah mengalami herpes genital, sebaiknya bicarakan kondisi ini kepada pasangan dan sarankan pasangan untuk melakukan pemeriksaan agar dapat segera diobati jika tertular. Menggunakan kondom saat melakukan hubungan intim dengan pasangan yang tidak jelas status infeksi menular seksualnya.'),
(2, 'P002', 'Trikomoniasis', 'Trikomoniasis adalah penyakit menular seksual yang disebabkan oleh parasit Trichomonas vaginalis. Trikomoniasis menular melalui hubungan seksual. Selain hubungan seksual, berbagi pakai alat bantu seks dengan penderita trikomoniasis juga dapat menularkan penyakit ini. Penyakit trikomoniasis sering kali tidak menimbulkan gejala. Walaupun tanpa gejala, seseorang yang menderita trikomoniasis tetap dapat menularkannya kepada orang lain.', 'Tidak bergonta-ganti pasangan seksual, menggunakan kondom saat berhubungan intim, serta tidak berbagi pakai alat bantu seks, dan membersihkannya setiap selesai digunakan.\r\n'),
(4, 'P004', 'Bacterial Vaginosis (BV)', 'Vaginosis bakterialis adalah infeksi vagina yang disebabkan oleh terganggunya keseimbangan flora normal di dalam vagina. Umumnya, tubuh memiliki bakteri baik yang berfungsi melindungi tubuh dari bakteri jahat yang dapat menyebabkan infeksi. Namun pada penderita vaginosis bakterialis, jumlah bakteri baik di dalam vagina berkurang sehingga tidak mampu melawan infeksi. Vaginosis bakterialis dapat dialami oleh wanita pada segala usia. Namun, sebagian besar vaginosis bakterialis terjadi ketika wanita dalam masa reproduksi, yaitu usia 15-44 tahun. Vaginosis bakterialis termasuk infeksi ringan, namun jika dibiarkan tanpa pengobatan dapat menyebabkan infeksi menular seksual. Bila infeksi bakteri vagina terjadi saat hamil, risiko mengalami komplikasi kehamilan menjadi lebih tinggi.', 'Langkah utama untuk mencegah vaginosis bakterialis adalah menjaga keseimbangan bakteri di dalam vagina. Beberapa cara yang dapat dilakukan untuk menjaga keseimbangan bakteri tersebut, antara lain : Jangan menyiram atau membersihkan vagina dengan semprotan air, Hindari penggunaan sabun dengan kandungan pewangi untuk membersihkan bagian luar vagina, Gunakan celana dalam berbahan katun dan jangan mencuci celana dalam menggunakan sabun cuci dengan kandungan kimia keras, Gunakan pembalut tanpa kandungan pewangi, serta Melakukan hubungan seksual yang aman.'),
(5, 'P005', 'HIV / AIDS', 'HIV (human immunodeficiency virus) adalah virus yang merusak sistem kekebalan tubuh, dengan menginfeksi dan menghancurkan sel CD4. Semakin banyak sel CD4 yang dihancurkan, kekebalan tubuh akan semakin lemah, sehingga rentan diserang berbagai penyakit. Infeksi HIV yang tidak segera ditangani akan berkembang menjadi kondisi serius yang disebut AIDS (Acquired Immune Deficiency Syndrome). AIDS adalah stadium akhir dari infeksi virus HIV. Pada tahap ini, kemampuan tubuh untuk melawan infeksi sudah hilang sepenuhnya. Sampai saat ini belum ada obat untuk menangani HIV dan AIDS. Akan tetapi, ada obat untuk memperlambat perkembangan penyakit tersebut, dan dapat meningkatkan harapan hidup penderita. Penularan HIV terjadi saat darah, sperma, atau cairan vagina dari seseorang yang terinfeksi masuk ke dalam tubuh orang lain. Perlu diketahui, HIV tidak menyebar melalui kontak kulit seperti berjabat tangan atau berpelukan dengan penderita HIV. Penularan juga tidak terjadi melalui ludah, kecuali bila penderita mengalami sariawan, gusi berdarah, atau terdapat luka terbuka di mulut.', 'Gunakan kondom yang baru setiap berhubungan intim, baik hubungan intim vaginal maupun anal. Hindari berhubungan intim dengan lebih dari satu pasangan. Bersikap jujur kepada pasangan jika mengidap positif HIV, agar pasangan juga menjalani tes HIV. Jika menduga baru saja terinfeksi atau tertular virus HIV, seperti setelah melakukan hubungan intim dengan pengidap HIV, maka harus segera ke dokter. Agar bisa mendapatkan obat post-exposure prophylaxis (PEP) yang dikonsumsi selama 28 hari dan terdiri dari 3 obat antiretroviral.\r\n'),
(6, 'P006', 'Kondiloma Akuminata / Kutil Kelamin', 'Kondiloma akuminata disebut juga dengan istilah kutil kelamin. Kutil ini disebabkan oleh virus human papillomavirus (HPV) dan biasanya ditularkan lewat hubungan seks tanpa kondom. Kondiloma akuminata berupa benjolan daging yang menyerupai bunga kol, sehingga sering dikira sebagai tumor atau kanker. Namun dalam banyak kasus, kondiloma akuminata bisa berukuran kecil, sehingga sering tidak terlihat. Selain muncul di area kelamin, kutil ini juga bisa muncul di mulut atau tenggorokan. Kondisi tersebut terjadi karena penularan melalui seks oral. Kondiloma akuminata memang jarang menyebabkan rasa sakit dan dapat sembuh dengan baik dengan penanganan yang tepat. Walau begitu, kondisi ini perlu diwaspadai karena infeksi HPV meningkatkan risiko kanker serviks dan kanker anus.', 'Untuk mencegah kondiloma akuminata, penting untuk menghindari perilaku seks berisiko, misalnya berhubungan seks tanpa kondom atau berhubungan seks dengan lebih dari satu orang. Selain itu, vaksinasi kanker serviks juga dapat mencegah kondiloma akuminata. Vaksin ini bisa diberikan untuk pria dan wanita. Segera periksakan diri ke dokter agar bisa mendapatkan diagnosis dan penanganan yang tepat.'),
(7, 'P007', 'Chancroid / Syankroid / Ulkus Mole', 'Ulkus mole (cancroid) adalah infeksi bakteri yang terjadi di area genitalia, baik pada laki-laki maupun perempuan. Bakteri penyebab infeksi ini adalah Haemophilus ducreyi. Bakteri tersebut menyerang jaringan-jaringan di bagian luar vagina dan penis sehingga menimbulkan luka atau bintil-bintil kecil. Penyakit ini juga dikenal dengan istilah kankroid. Umumnya akan muncul empat benjolan merah atau lebih pada labia, di antara labia dan anus, atau pada paha. Labia adalah lipatan kulit yang menutupi alat kelamin wanita. Setelah benjolan “matang” menjadi luka terbuka, wanita dapat mengalami sensasi terbakar atau nyeri selama buang air kecil atau besar.', 'Untuk mempercepat penyembuhan dan mencegah penyakit ulkus mole datang lagi, sebaiknya hindari gonta-ganti pasangan seksual atau berhubungan seks tanpa kondom. Bila Anda sudah memutuskan untuk tak pakai kondom dengan pasangan, pastikan Anda berdua sama-sama sudah dites bersih dari penyakit menular seksual.');
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`id_users` int(11) NOT NULL,
`username` varchar(200) NOT NULL,
`password` varchar(100) NOT NULL,
`nama` varchar(200) NOT NULL,
`alamat` varchar(255) NOT NULL,
`noWa` char(15) NOT NULL,
`level` enum('Admin','Pakar') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `users`
--
INSERT INTO `users` (`id_users`, `username`, `password`, `nama`, `alamat`, `noWa`, `level`) VALUES
(1, 'admin', '<PASSWORD>', 'Admin', 'Malang', '0812322755031', 'Admin'),
(7, 'pakar', '<PASSWORD>', 'Pakar', 'Malang', '0341-587271', 'Pakar');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `basis_kasus`
--
ALTER TABLE `basis_kasus`
ADD PRIMARY KEY (`id_kasus`),
ADD KEY `fk_penyakit` (`fk_penyakit`);
--
-- Indeks untuk tabel `detail_kasus`
--
ALTER TABLE `detail_kasus`
ADD PRIMARY KEY (`id_detail`),
ADD KEY `fk_gejala` (`fk_gejala`),
ADD KEY `fk_penyakit` (`fk_kasus`);
--
-- Indeks untuk tabel `detail_pemeriksaan`
--
ALTER TABLE `detail_pemeriksaan`
ADD PRIMARY KEY (`id_detail`),
ADD KEY `fk_pemeriksaan` (`fk_pemeriksaan`),
ADD KEY `fk_gejala` (`fk_gejala`);
--
-- Indeks untuk tabel `gejala`
--
ALTER TABLE `gejala`
ADD PRIMARY KEY (`id_gejala`);
--
-- Indeks untuk tabel `komentar`
--
ALTER TABLE `komentar`
ADD PRIMARY KEY (`id_komen`);
--
-- Indeks untuk tabel `pemeriksaan`
--
ALTER TABLE `pemeriksaan`
ADD PRIMARY KEY (`id_pemeriksaan`),
ADD KEY `fk_penyakit` (`fk_penyakit`),
ADD KEY `fk_user` (`fk_user`);
--
-- Indeks untuk tabel `penyakit`
--
ALTER TABLE `penyakit`
ADD PRIMARY KEY (`id_penyakit`);
--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id_users`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `basis_kasus`
--
ALTER TABLE `basis_kasus`
MODIFY `id_kasus` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT untuk tabel `detail_kasus`
--
ALTER TABLE `detail_kasus`
MODIFY `id_detail` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=91;
--
-- AUTO_INCREMENT untuk tabel `detail_pemeriksaan`
--
ALTER TABLE `detail_pemeriksaan`
MODIFY `id_detail` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT untuk tabel `gejala`
--
ALTER TABLE `gejala`
MODIFY `id_gejala` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT untuk tabel `komentar`
--
ALTER TABLE `komentar`
MODIFY `id_komen` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `pemeriksaan`
--
ALTER TABLE `pemeriksaan`
MODIFY `id_pemeriksaan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT untuk tabel `penyakit`
--
ALTER TABLE `penyakit`
MODIFY `id_penyakit` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
MODIFY `id_users` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `basis_kasus`
--
ALTER TABLE `basis_kasus`
ADD CONSTRAINT `basis_kasus_ibfk_1` FOREIGN KEY (`fk_penyakit`) REFERENCES `penyakit` (`id_penyakit`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `detail_kasus`
--
ALTER TABLE `detail_kasus`
ADD CONSTRAINT `detail_kasus_ibfk_1` FOREIGN KEY (`fk_gejala`) REFERENCES `gejala` (`id_gejala`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `detail_kasus_ibfk_2` FOREIGN KEY (`fk_kasus`) REFERENCES `basis_kasus` (`id_kasus`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `detail_pemeriksaan`
--
ALTER TABLE `detail_pemeriksaan`
ADD CONSTRAINT `detail_pemeriksaan_ibfk_1` FOREIGN KEY (`fk_pemeriksaan`) REFERENCES `pemeriksaan` (`id_pemeriksaan`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `detail_pemeriksaan_ibfk_2` FOREIGN KEY (`fk_gejala`) REFERENCES `gejala` (`id_gejala`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `pemeriksaan`
--
ALTER TABLE `pemeriksaan`
ADD CONSTRAINT `pemeriksaan_ibfk_2` FOREIGN KEY (`fk_user`) REFERENCES `users` (`id_users`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `pemeriksaan_ibfk_3` FOREIGN KEY (`fk_penyakit`) REFERENCES `penyakit` (`id_penyakit`) ON DELETE CASCADE ON UPDATE CASCADE;
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 */;
|
#h2 in memory database test setup
INSERT INTO PERSON (ID, FIRSTNAME, LASTNAME, MODIFIED_AT, MODIFIED_BY) VALUES (10, ' basic ', 'test ', TIMESTAMP '2019-12-22 15:02:09.567', 'testname');
INSERT INTO ACCOUNT(EMAIL, ACCNAME, MODIFIED_AT, MODIFIED_BY, PERSON_ID) VALUES ('<EMAIL>', 'testname', TIMESTAMP '2019-12-22 15:02:09.588', 'testname',10);
commit;
|
use plagekom;
CREATE TABLE personnel (
Matricule varchar(10) Primary key,
Date_d_embauche date,
Nom varchar(250) ,
Prenom varchar(250) ,
Date_de_naissance date,
Lieu_de_naissance varchar(50),
Sexe varchar(10),
Situation_Matrimoniale varchar(10),
Nombre_d_enfant int(2),
Cin_personnel varchar(15),
Date_cin_personnel date,
Lieu_delivrance_du_cin_personnel varchar(100),
Date_duplicata_cin_personnel date ,
Lieu_de_dupliacata_cin_personnel varchar(100),
Adresse_du_personnel varchar(100),
Contact_du_personnel varchar(10),
Nom_et_prenom_du_tuteur varchar(250),
Lien_de_parente varchar(50),
Cin_du_tuteur varchar(15),
Date_de_delivrance_cin_tuteur date,
Adresse_du_tuteur varchar(100),
Contact_du_tuteur varchar(10),
Fonction_a_l_embauche int(3),
Fonction_actuelle int(3),
Mode_de_pass_login varchar(11),
statut varchar(50)
);
CREATE TABLE fonction (
id INT Primary KEY,
designation varchar(250) NOT NULL
);
|
<filename>MISC__SQL/READING_STORED_PROCEDURES.sql<gh_stars>0
/* Retrieve all data and return the result */
CREATE PROCEDURE PROC_GET_ALL_DATA
AS
BEGIN
SET NOCOUNT ON;
SELECT s.sensorName
,r.[messageDate]
,r.[rawData]
,r.[dataValue]
,dt.[dataType]
,r.[plotValue]
,pl.[plotLabel]
FROM [salfordMove].[dbo].[READINGS] AS r
JOIN [salfordMOVE].[dbo].SENSORS AS s
ON (r.sensorID = s.sensorID)
JOIN [salfordMOVE].[dbo].PLOT_LABELS as pl
ON (r.plotLabelID = pl.plotLabelID)
JOIN [salfordMOVE].[dbo].DATA_TYPES as dt
ON (r.dataTypeID = dt.dataTypeID)
ORDER BY messageDate DESC
END
GO
|
<reponame>dave-007/RML-Utilities-Demo
USE tempdb
GO
/*
PURPOSE: Compare trace on Baseline environment versus replay and trace on Comparison environment,
Looking at unique batches and comparing key metrics.
For use with RML Utilities(https://support.microsoft.com/en-us/kb/944837/) , Performance Analysis databases generated with Readtrace.exe
See Apeendix I of RML Help.pdf (part of RML Utilities) for Performance Analysis database schema
AUTHOR: <NAME> (<EMAIL>)
HISTORY:
2015-05-20 Initial version
*/
-----------------
-- Replace the values in the next two lines with the name of the analysis database
--for the baseline and comparision PerfAnalysis databases created with ReadTrace
----------------
DECLARE @BaselineAnalysisDB sysname = 'PerfAnalysis_run01_1'
DECLARE @CompareAnalysisDB sysname = 'PerfAnalysis_run01_replay01'
EXEC('CREATE SYNONYM sn_Base_vwBatchUtilization FOR ' + @BaselineAnalysisDB + '.[ReadTrace].[vwBatchUtilization]')
EXEC('CREATE SYNONYM sn_Base_tblUniqueBatches FOR ' + @BaselineAnalysisDB + '.[ReadTrace].[tblUniqueBatches]')
EXEC('CREATE SYNONYM sn_Compare_vwBatchUtilization FOR ' + @CompareAnalysisDB + '.[ReadTrace].[vwBatchUtilization]')
EXEC('CREATE SYNONYM sn_Compare_tblUniqueBatches FOR ' + @CompareAnalysisDB + '.[ReadTrace].[tblUniqueBatches]')
GO
DECLARE @BatchDisplayCharacters int = 500;
WITH compare1 AS
(
SELECT TOP 100000
LEFT(baseB.NormText,@BatchDisplayCharacters) AS NormalizedBatchText
--, baseB.SpecialProcID
--, compareB.NormText
, LEN(baseB.NormText) AS BatchCharLength
--, LEN(compareB.NormText) AS Test_BatchCharLength
, baseBU.StartingEvents AS Prod_StartingEvents
, compareBU.StartingEvents AS Test_StartingEvents
, compareBU.StartingEvents - baseBU.StartingEvents AS StartingEventsDelta
, baseBU.CompletedEvents AS Prod_CompletedEvents
, compareBU.CompletedEvents AS Test_CompletedEvents
, compareBU.CompletedEvents - baseBU.CompletedEvents AS CompletedEventsDelta
, baseBU.AttentionEvents AS Prod_AttentionEvents
, compareBU.AttentionEvents AS Test_AttentionEvents
, compareBU.AttentionEvents - baseBU.AttentionEvents AS AttentionEventsDelta
, baseBU.AvgDuration/1000000 AS Prod_AvgDuration_Seconds
, compareBU.AvgDuration/1000000 AS Test_AvgDuration_Seconds
, (compareBU.AvgDuration - baseBU.AvgDuration) / 1000000 AS AvgDurationDelta_Seconds
, CASE WHEN baseBU.AvgDuration = 0 THEN 0 ELSE (compareBU.AvgDuration - baseBU.AvgDuration) / baseBU.AvgDuration * 100 END AS AvgDurationDelta_Percent
, baseBU.AvgCPU AS Prod_AvgCPU
, compareBU.AvgCPU AS Test_AvgCPU
, compareBU.AvgCPU - baseBU.AvgCPU AS AvgCPUDelta
, baseBU.AvgReads AS Prod_AvgRead
, compareBU.AvgReads AS Test_AvgRead
, compareBU.AvgReads - baseBU.AvgReads AS AvgReadDelta
, baseBU.AvgWrites AS Prod_AvgWrite
, compareBU.AvgWrites AS Test_AvgWrite
, compareBU.AvgWrites - baseBU.AvgWrites AS AvgWriteDelta
FROM dbo.sn_Base_vwBatchUtilization baseBU
JOIN dbo.sn_Base_tblUniqueBatches baseB ON baseBU.HashID = baseB.HashID
JOIN dbo.sn_Compare_tblUniqueBatches compareB ON baseBU.HashID = compareB.HashID
LEFT JOIN dbo.sn_Compare_vwBatchUtilization compareBU ON baseBU.HashID = compareBU.HashID
WHERE compareBU.HashID IS NOT NULL
), analysis as
(
SELECT
(SELECT COUNT(*)
FROM compare1
WHERE compare1.AvgDurationDelta_Seconds <= 0
) AS Batches_AWS_FasterOrEqual,
(SELECT COUNT(*)
FROM compare1
WHERE compare1.AvgDurationDelta_Seconds > 0
) AS Batches_Prod__Faster
)
SELECT *
FROM compare1;
GO
DROP SYNONYM dbo.sn_Base_vwBatchUtilization
DROP SYNONYM dbo.sn_Base_tblUniqueBatches
DROP SYNONYM dbo.sn_Compare_vwBatchUtilization
DROP SYNONYM dbo.sn_Compare_tblUniqueBatches
|
<reponame>JelF/rest-psql-web-server<filename>objects/app/forms/utils.sql
DROP TYPE IF EXISTS app.forms__error CASCADE;
CREATE TYPE app.forms__error AS (
field text,
error text
);
CREATE OR REPLACE FUNCTION app.forms__error(field text, error text)
RETURNS app.forms__error AS 'SELECT field, error;' LANGUAGE SQL
|
<reponame>CanonTino/javadesdecero
CREATE DATABASE IF NOT EXISTS `banco` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `banco`;
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64)
--
-- Host: localhost Database: banco
-- ------------------------------------------------------
-- Server version 5.7.31-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 */;
/*!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 `banco`
--
DROP TABLE IF EXISTS `banco`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `banco` (
`clave` char(5) NOT NULL,
`nombre` varchar(45) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`clave`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `banco`
--
LOCK TABLES `banco` WRITE;
/*!40000 ALTER TABLE `banco` DISABLE KEYS */;
INSERT INTO `banco` VALUES ('AZTEC','Banco Azteca',0),('BANOR','Banorte',1),('BBVAB','BBVA Bancomer',1),('INBUR','Inbursa',1);
/*!40000 ALTER TABLE `banco` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cliente`
--
DROP TABLE IF EXISTS `cliente`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cliente` (
`numero_cliente` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(45) NOT NULL,
`apellido_paterno` varchar(45) NOT NULL,
`apellido_materno` varchar(45) NOT NULL,
`fecha_nacimiento` date NOT NULL,
`clave_banco` char(5) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`numero_cliente`),
KEY `cliente_banco_idx` (`clave_banco`),
CONSTRAINT `cliente_banco` FOREIGN KEY (`clave_banco`) REFERENCES `banco` (`clave`) ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=256874119 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cliente`
--
LOCK TABLES `cliente` WRITE;
/*!40000 ALTER TABLE `cliente` DISABLE KEYS */;
INSERT INTO `cliente` VALUES (114125630,'Juan','Perez','Sanchez','1980-05-09','BBVAB',1),(256874110,'Marta','Magana','Diaz','1979-06-22','BANOR',1),(256874117,'<NAME>','Olmedi','Smith','2020-09-01','INBUR',0),(256874118,'Pedro','Paramo','Llano','1986-11-24','INBUR',1);
/*!40000 ALTER TABLE `cliente` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cuenta`
--
DROP TABLE IF EXISTS `cuenta`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cuenta` (
`numero_cuenta` varchar(15) NOT NULL,
`clave_tipo_cuenta` char(5) NOT NULL,
`numero_cliente` int(11) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`numero_cuenta`),
KEY `cuenta_tipo_cuenta_idx` (`clave_tipo_cuenta`),
KEY `cuenta_cliente_idx` (`numero_cliente`),
CONSTRAINT `cuenta_cliente` FOREIGN KEY (`numero_cliente`) REFERENCES `cliente` (`numero_cliente`) ON UPDATE NO ACTION,
CONSTRAINT `cuenta_tipo_cuenta` FOREIGN KEY (`clave_tipo_cuenta`) REFERENCES `tipo_cuenta` (`clave`) ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cuenta`
--
LOCK TABLES `cuenta` WRITE;
/*!40000 ALTER TABLE `cuenta` DISABLE KEYS */;
/*!40000 ALTER TABLE `cuenta` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `movimiento`
--
DROP TABLE IF EXISTS `movimiento`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `movimiento` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cuenta_origen` varchar(15) DEFAULT NULL,
`cuenta_destino` varchar(15) NOT NULL,
`clave_tipo_movimiento` char(5) NOT NULL,
`monto` decimal(9,4) NOT NULL,
`fecha` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` varchar(45) NOT NULL DEFAULT 'Pendiente',
PRIMARY KEY (`id`),
KEY `movimiento_cuenta_origen_idx` (`cuenta_origen`),
KEY `movimiento_cuenta_destino_idx` (`cuenta_destino`),
KEY `movimiento_clave_tipo_movimiento_idx` (`clave_tipo_movimiento`),
CONSTRAINT `movimiento_clave_tipo_movimiento` FOREIGN KEY (`clave_tipo_movimiento`) REFERENCES `tipo_movimiento` (`clave`) ON UPDATE NO ACTION,
CONSTRAINT `movimiento_cuenta_destino` FOREIGN KEY (`cuenta_destino`) REFERENCES `cuenta` (`numero_cuenta`) ON UPDATE NO ACTION,
CONSTRAINT `movimiento_cuenta_origen` FOREIGN KEY (`cuenta_origen`) REFERENCES `cuenta` (`numero_cuenta`) ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `movimiento`
--
LOCK TABLES `movimiento` WRITE;
/*!40000 ALTER TABLE `movimiento` DISABLE KEYS */;
/*!40000 ALTER TABLE `movimiento` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `perfil`
--
DROP TABLE IF EXISTS `perfil`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `perfil` (
`id` int(11) NOT NULL,
`descripcion` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `perfil`
--
LOCK TABLES `perfil` WRITE;
/*!40000 ALTER TABLE `perfil` DISABLE KEYS */;
INSERT INTO `perfil` VALUES (1,'Administrador'),(2,'Cajero'),(3,'Secretaria');
/*!40000 ALTER TABLE `perfil` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tipo_cuenta`
--
DROP TABLE IF EXISTS `tipo_cuenta`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tipo_cuenta` (
`clave` char(5) NOT NULL,
`descripcion` varchar(45) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`clave`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tipo_cuenta`
--
LOCK TABLES `tipo_cuenta` WRITE;
/*!40000 ALTER TABLE `tipo_cuenta` DISABLE KEYS */;
/*!40000 ALTER TABLE `tipo_cuenta` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tipo_movimiento`
--
DROP TABLE IF EXISTS `tipo_movimiento`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tipo_movimiento` (
`clave` char(5) NOT NULL,
`descripcion` varchar(45) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`clave`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tipo_movimiento`
--
LOCK TABLES `tipo_movimiento` WRITE;
/*!40000 ALTER TABLE `tipo_movimiento` DISABLE KEYS */;
/*!40000 ALTER TABLE `tipo_movimiento` ENABLE KEYS */;
UNLOCK TABLES;
--
-- 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` (
`usuario` varchar(15) NOT NULL,
`password` varchar(45) NOT NULL,
`nombre` varchar(45) NOT NULL,
`apellido_paterno` varchar(45) NOT NULL,
`apellido_materno` varchar(45) NOT NULL,
`id_perfil` int(11) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`usuario`),
UNIQUE KEY `usuario_UNIQUE` (`usuario`),
KEY `usuario_perfil_idx` (`id_perfil`),
CONSTRAINT `usuario_perfil` FOREIGN KEY (`id_perfil`) REFERENCES `perfil` (`id`) ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `usuario`
--
LOCK TABLES `usuario` WRITE;
/*!40000 ALTER TABLE `usuario` DISABLE KEYS */;
INSERT INTO `usuario` VALUES ('ana','ana','<NAME>','Antúnez','Díaz',2,1),('sandra','sandra','Sandra','Pérez','Camacho',3,1),('tino','tino','Florentino','Salazar','García',1,1);
/*!40000 ALTER TABLE `usuario` 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 2020-09-19 8:50:03
|
/*******************************************************************************
Create Tables
********************************************************************************/
CREATE TABLE `Album`
(
`AlbumId` INT NOT NULL AUTO_INCREMENT,
`Title` NVARCHAR(160) NOT NULL,
`ArtistId` INT NOT NULL,
CONSTRAINT `PK_Album` PRIMARY KEY (`AlbumId`)
);
CREATE TABLE `Artist`
(
`ArtistId` INT NOT NULL AUTO_INCREMENT,
`Name` NVARCHAR(120),
CONSTRAINT `PK_Artist` PRIMARY KEY (`ArtistId`)
);
CREATE TABLE `Customer`
(
`CustomerId` INT NOT NULL AUTO_INCREMENT,
`FirstName` NVARCHAR(40) NOT NULL,
`LastName` NVARCHAR(20) NOT NULL,
`Company` NVARCHAR(80),
`Address` NVARCHAR(70),
`City` NVARCHAR(40),
`State` NVARCHAR(40),
`Country` NVARCHAR(40),
`PostalCode` NVARCHAR(10),
`Phone` NVARCHAR(24),
`Fax` NVARCHAR(24),
`Email` NVARCHAR(60) NOT NULL,
`SupportRepId` INT,
CONSTRAINT `PK_Customer` PRIMARY KEY (`CustomerId`)
);
CREATE TABLE `Employee`
(
`EmployeeId` INT NOT NULL AUTO_INCREMENT,
`LastName` NVARCHAR(20) NOT NULL,
`FirstName` NVARCHAR(20) NOT NULL,
`Title` NVARCHAR(30),
`ReportsTo` INT,
`BirthDate` DATETIME,
`HireDate` DATETIME,
`Address` NVARCHAR(70),
`City` NVARCHAR(40),
`State` NVARCHAR(40),
`Country` NVARCHAR(40),
`PostalCode` NVARCHAR(10),
`Phone` NVARCHAR(24),
`Fax` NVARCHAR(24),
`Email` NVARCHAR(60),
CONSTRAINT `PK_Employee` PRIMARY KEY (`EmployeeId`)
);
CREATE TABLE `Genre`
(
`GenreId` INT NOT NULL AUTO_INCREMENT,
`Name` NVARCHAR(120),
CONSTRAINT `PK_Genre` PRIMARY KEY (`GenreId`)
);
CREATE TABLE `Invoice`
(
`InvoiceId` INT NOT NULL AUTO_INCREMENT,
`CustomerId` INT NOT NULL,
`InvoiceDate` DATETIME NOT NULL,
`BillingAddress` NVARCHAR(70),
`BillingCity` NVARCHAR(40),
`BillingState` NVARCHAR(40),
`BillingCountry` NVARCHAR(40),
`BillingPostalCode` NVARCHAR(10),
`Total` NUMERIC(10,2) NOT NULL,
CONSTRAINT `PK_Invoice` PRIMARY KEY (`InvoiceId`)
);
CREATE TABLE `InvoiceLine`
(
`InvoiceLineId` INT NOT NULL AUTO_INCREMENT,
`InvoiceId` INT NOT NULL,
`TrackId` INT NOT NULL,
`UnitPrice` NUMERIC(10,2) NOT NULL,
`Quantity` INT NOT NULL,
CONSTRAINT `PK_InvoiceLine` PRIMARY KEY (`InvoiceLineId`)
);
CREATE TABLE `MediaType`
(
`MediaTypeId` INT NOT NULL AUTO_INCREMENT,
`Name` NVARCHAR(120),
CONSTRAINT `PK_MediaType` PRIMARY KEY (`MediaTypeId`)
);
CREATE TABLE `Playlist`
(
`PlaylistId` INT NOT NULL AUTO_INCREMENT,
`Name` NVARCHAR(120),
CONSTRAINT `PK_Playlist` PRIMARY KEY (`PlaylistId`)
);
CREATE TABLE `PlaylistTrack`
(
`PlaylistId` INT NOT NULL,
`TrackId` INT NOT NULL,
CONSTRAINT `PK_PlaylistTrack` PRIMARY KEY (`PlaylistId`, `TrackId`)
);
CREATE TABLE `Track`
(
`TrackId` INT NOT NULL AUTO_INCREMENT,
`Name` NVARCHAR(200) NOT NULL,
`AlbumId` INT,
`MediaTypeId` INT NOT NULL,
`GenreId` INT,
`Composer` NVARCHAR(220),
`Milliseconds` INT NOT NULL,
`Bytes` INT,
`UnitPrice` NUMERIC(10,2) NOT NULL,
CONSTRAINT `PK_Track` PRIMARY KEY (`TrackId`)
);
|
CREATE SEQUENCE character_character_id_seq
INCREMENT 1
START 1
MINVALUE 1
MAXVALUE 9223372036854775807
CACHE 1;
CREATE TABLE character_profile
(
character_id integer NOT NULL DEFAULT nextval('character_character_id_seq'::regclass),
name character varying(50) COLLATE pg_catalog."default" NOT NULL,
state json,
account_2_product_id integer NOT NULL,
CONSTRAINT character_pkey PRIMARY KEY (character_id),
CONSTRAINT character_profile_account_2_product_id_fkey FOREIGN KEY (account_2_product_id)
REFERENCES public.account_2_product (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION
);
|
<gh_stars>1-10
SET DEFINE OFF;
CREATE INDEX AFW_11_UTILS_FK2 ON AFW_11_UTILS
(REF_UTILS)
LOGGING
/
|
<reponame>coco-help/backend
ALTER TABLE helper
ADD COLUMN last_called TIMESTAMP;
UPDATE helper
SET last_called = current_timestamp;
ALTER TABLE helper
ALTER COLUMN last_called SET NOT NULL;
|
<reponame>Emmyn5600/SQLZOO-Database<filename>tutorial09.sql<gh_stars>1-10
-- SQL tasks from https://sqlzoo.net/wiki/SQL_Tutorial
/*
***************************************************************
** **
***** ***** TUTORIAL - 9 - Window functions ***** ***** **
** **
***************************************************************
*/
-- 1-Task solution: Show the lastName, party and votes for the constituency 'S14000024' in 2017.
SELECT lastName, party, votes
FROM ge
WHERE constituency = 'S14000024' AND yr = 2017
ORDER BY votes DESC
-- 2-Task solution: Show the party and RANK for constituency S14000024 in 2017. List the output by party
SELECT party, votes,
RANK() OVER (ORDER BY votes DESC) as posn
FROM ge
WHERE constituency = 'S14000024' AND yr = 2017
ORDER BY party
-- 3-Task solution: Use PARTITION to show the ranking of each party in S14000021 in each year. Include yr, party, votes and ranking (the party with the most votes is 1).
SELECT yr,party, votes,
RANK() OVER (PARTITION BY yr ORDER BY votes DESC) as posn
FROM ge
WHERE constituency = 'S14000021'
ORDER BY party,yr
-- 4-Task solution: Use PARTITION BY constituency to show the ranking of each party in Edinburgh in 2017. Order your results so the winners are shown first, then ordered by constituency.
SELECT constituency,party, votes,
RANK() OVER (PARTITION BY constituency ORDER BY votes DESC) as posn
FROM ge
WHERE constituency BETWEEN 'S14000021' AND 'S14000026'
AND yr = 2017
ORDER BY posn, constituency
-- 5-Task solution: Show the parties that won for each Edinburgh constituency in 2017.
select constituency,party from
(
SELECT constituency,party, votes ,
rank() OVER (PARTITION BY constituency order by votes desc) rn
FROM ge
WHERE constituency BETWEEN 'S14000021' AND 'S14000026'
AND yr = 2017
ORDER BY constituency,votes DESC
) TAB WHERE rn =1
-- 6-Task solution: You can use COUNT and GROUP BY to see how each party did in Scotland. Scottish constituencies start with 'S'
SELECT party , COUNT(*)
FROM ge x
WHERE constituency like 'S%'
AND yr = 2017 AND votes >= ALL(SELECT votes FROM ge y WHERE x.constituency = y. constituency AND y.yr = 2017)
GROUP BY party
|
<gh_stars>10-100
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Afghanistan', 'أفغانستان', 'AF', 'AFG', '93');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Åland Islands', 'جزر أولاند', 'AX', 'ALA', '358');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Albania', 'ألبانيا', 'AL', 'ALB', '355');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Algeria', 'الجزائر', 'DZ', 'DZA', '213');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('American Samoa', 'ساموا الأمريكية', 'AS', 'ASM', '684');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Andorra', 'أندورا', 'AD', 'AND', '376');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Angola', 'أنغولا', 'AO', 'AGO', '244');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Anguilla', 'أنغويلا', 'AI', 'AIA', '264');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Antarctica', 'القارة القطبية الجنوبية', 'AQ', 'ATA', '672');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Antigua and Barbuda', 'أنتيغوا وبربودا', 'AG', 'ATG', '268');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Argentina', 'الأرجنتين', 'AR', 'ARG', '54');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Armenia', 'أرمينيا', 'AM', 'ARM', '374');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Aruba', 'أروبا', 'AW', 'ABW', '297');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Australia', 'أستراليا', 'AU', 'AUS', '61');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Austria', 'النمسا', 'AT', 'AUT', '43');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Azerbaijan', 'أذربيجان', 'AZ', 'AZE', '994');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bahamas', 'باهاماس', 'BS', 'BHS', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bahrain', 'البحرين', 'BH', 'BHR', '973');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bangladesh', 'بنغلاديش', 'BD', 'BGD', '880');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Barbados', 'بربادوس', 'BB', 'BRB', '246');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Belarus', 'بيلاروسيا', 'BY', 'BLR', '375');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Belgium', 'بلجيكا', 'BE', 'BEL', '32');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Belize', 'بليز', 'BZ', 'BLZ', '501');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Benin', 'بنين', 'BJ', 'BEN', '229');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bermuda', 'برمودا', 'BM', 'BMU', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bhutan', 'بوتان', 'BT', 'BTN', '975');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bolivia', 'بوليفيا', 'BO', 'BOL', '591');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bosnia and Herzegovina', 'البوسنة والهرسك', 'BA', 'BIH', '387');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Botswana', 'بوتسوانا', 'BW', 'BWA', '267');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bouvet Island', 'جزيرة بوفيه', 'BV', 'BVT', '47');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Brazil', 'البرازيل', 'BR', 'BRA', '55');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('British Indian Ocean Territory', 'إقليم المحيط الهندي البريطاني', 'IO', 'IOT', '246');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('British Virgin Islands', 'جزر العذراء البريطانية', 'VG', 'VGB', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Brunei', 'بروناي', 'BN', 'BRN', '673');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Bulgaria', 'بلغاريا', 'BG', 'BGR', '359');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Burkina Faso', 'بوركينا فاسو', 'BF', 'BFA', '226');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Burundi', 'بوروندي', 'BI', 'BDI', '257');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Cabo Verde', 'كابو فيردي', 'CV', 'CPV', '238');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Cambodia', 'كمبوديا', 'KH', 'KHM', '855');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Cameroon', 'الكاميرون', 'CM', 'CMR', '237');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Canada', 'كندا', 'CA', 'CAN', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Caribbean Netherlands', 'الجزر الكاريبية الهولندية', 'BQ', 'BES', '599');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Cayman Islands', 'جزر كايمان', 'KY', 'CYM', '1345');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Central African Republic', 'جمهورية أفريقيا الوسطى', 'CF', 'CAF', '236');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Chad', 'تشاد', 'TD', 'TCD', '235');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Chile', 'تشيلي', 'CL', 'CHL', '56');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('China', 'الصين', 'CN', 'CHN', '86');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Christmas Island', 'جزيرة الكريسماس', 'CX', 'CXR', '61');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Cocos (Keeling) Islands', 'جزر كوكوس', 'CC', 'CCK', '61');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Colombia', 'كولومبيا', 'CO', 'COL', '57');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Comoros', 'جزر القمر', 'KM', 'COM', '269');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Congo Republic', 'جمهورية الكونغو', 'CG', 'COG', '242');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Cook Islands', 'جزر كوك', 'CK', 'COK', '682');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Costa Rica', 'كوستاريكا', 'CR', 'CRI', '506');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Croatia', 'كرواتيا', 'HR', 'HRV', '385');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Cuba', 'كوبا', 'CU', 'CUB', '53');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Curaçao', 'كوراساو', 'CW', 'CUW', '599');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Cyprus', 'قبرص', 'CY', 'CYP', '357');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Czechia', 'التشيك', 'CZ', 'CZE', '420');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Denmark', 'الدنمارك', 'DK', 'DNK', '45');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Djibouti', 'جيبوتي', 'DJ', 'DJI', '253');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Dominica', 'دومينيكا', 'DM', 'DMA', '767');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Dominican Republic', 'جمهورية الدومينيكان', 'DO', 'DOM', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('DR Congo', 'جمهورية الكونغو الديمقراطية', 'CD', 'COD', '243');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Ecuador', 'الاكوادور', 'EC', 'ECU', '593');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Egypt', 'مصر', 'EG', 'EGY', '20');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('El Salvador', 'السلفادور', 'SV', 'SLV', '503');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Equatorial Guinea', 'غينيا الاستوائية', 'GQ', 'GNQ', '240');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Eritrea', 'إريتريا', 'ER', 'ERI', '291');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Estonia', 'إستونيا', 'EE', 'EST', '372');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Eswatini', 'إسواتيني', 'SZ', 'SWZ', '268');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Ethiopia', 'إثيوبيا', 'ET', 'ETH', '251');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Falkland Islands', 'جزر فوكلاند', 'FK', 'FLK', '500');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Faroe Islands', 'جزر فارو', 'FO', 'FRO', '298');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Fiji', 'فيجي', 'FJ', 'FJI', '679');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Finland', 'فنلندا', 'FI', 'FIN', '358');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('France', 'فرنسا', 'FR', 'FRA', '33');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('French Guiana', 'غويانا الفرنسية', 'GF', 'GUF', '594');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('French Polynesia', 'بولينزيا الفرنسية', 'PF', 'PYF', '689');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('French Southern Territories', 'أراض فرنسية جنوبية', 'TF', 'ATF', '262');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Gabon', 'الجابون', 'GA', 'GAB', '241');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Gambia', 'غامبيا', 'GM', 'GMB', '220');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Georgia', 'جورجيا', 'GE', 'GEO', '995');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Germany', 'ألمانيا', 'DE', 'DEU', '49');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Ghana', 'غانا', 'GH', 'GHA', '233');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Gibraltar', 'جبل طارق', 'GI', 'GIB', '350');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Greece', 'اليونان', 'GR', 'GRC', '30');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Greenland', 'جرينلاند', 'GL', 'GRL', '299');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Grenada', 'غرينادا', 'GD', 'GRD', '473');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Guadeloupe', 'غوادلوب', 'GP', 'GLP', '590');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Guam', 'غوام', 'GU', 'GUM', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Guatemala', 'غواتيمالا', 'GT', 'GTM', '502');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Guernsey', 'غيرنزي', 'GG', 'GGY', '44');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Guinea', 'غينيا', 'GN', 'GIN', '224');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Guinea-Bissau', 'غينيا بيساو', 'GW', 'GNB', '245');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Guyana', 'غيانا', 'GY', 'GUY', '592');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Haiti', 'هايتي', 'HT', 'HTI', '509');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Heard Island and McDonald Islands', 'جزيرة هيرد وجزر ماكدونالد', 'HM', 'HMD', '672');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Honduras', 'هندوراس', 'HN', 'HND', '504');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Hong Kong', 'هونج كونج', 'HK', 'HKG', '852');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Hungary', 'هنجاريا', 'HU', 'HUN', '36');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Iceland', 'آيسلندا', 'IS', 'ISL', '354');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('India', 'الهند', 'IN', 'IND', '91');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Indonesia', 'أندونيسيا', 'ID', 'IDN', '62');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Iran', 'إيران', 'IR', 'IRN', '98');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Iraq', 'العراق', 'IQ', 'IRQ', '964');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Ireland', 'أيرلندا', 'IE', 'IRL', '353');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Isle of Man', 'جزيرة مان', 'IM', 'IMN', '44');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Israel', 'إسرائيل', 'IL', 'ISR', '972');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Italy', 'إيطاليا', 'IT', 'ITA', '390');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Ivory Coast', 'ساحل العاج', 'CI', 'CIV', '225');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Jamaica', 'جامايكا', 'JM', 'JAM', '1876');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Japan', 'اليابان', 'JP', 'JPN', '81');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Jersey', 'جيرسي', 'JE', 'JEY', '44');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Jordan', 'الأردن', 'JO', 'JOR', '962');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Kazakhstan', 'كازاخستان', 'KZ', 'KAZ', '7');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Kenya', 'كينيا', 'KE', 'KEN', '254');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Kiribati', 'كيريباتي', 'KI', 'KIR', '686');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Kosovo', 'كوسوفو', 'XK', 'XKX', '383');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Kuwait', 'الكويت', 'KW', 'KWT', '965');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Kyrgyzstan', 'قيرغيزستان', 'KG', 'KGZ', '996');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Laos', 'لاوس', 'LA', 'LAO', '856');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Latvia', 'لاتفيا', 'LV', 'LVA', '371');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Lebanon', 'لبنان', 'LB', 'LBN', '961');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Lesotho', 'ليسوتو', 'LS', 'LSO', '266');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Liberia', 'ليبيريا', 'LR', 'LBR', '231');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Libya', 'ليبيا', 'LY', 'LBY', '218');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Liechtenstein', 'ليختنشتاين', 'LI', 'LIE', '423');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Lithuania', 'ليتوانيا', 'LT', 'LTU', '370');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Luxembourg', 'لوكسمبورغ', 'LU', 'LUX', '352');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Macao', 'ماكاو', 'MO', 'MAC', '853');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Madagascar', 'مدغشقر', 'MG', 'MDG', '261');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Malawi', 'مالاوي', 'MW', 'MWI', '265');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Malaysia', 'ماليزيا', 'MY', 'MYS', '60');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Maldives', 'المالديف', 'MV', 'MDV', '960');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Mali', 'مالي', 'ML', 'MLI', '223');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Malta', 'مالطا', 'MT', 'MLT', '356');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Marshall Islands', 'جزر مارشال', 'MH', 'MHL', '692');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Martinique', 'مارتينيك', 'MQ', 'MTQ', '33');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Mauritania', 'موريتانيا', 'MR', 'MRT', '222');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Mauritius', 'موريشيوس', 'MU', 'MUS', '230');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Mayotte', 'مايوت', 'YT', 'MYT', '262');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Mexico', 'المكسيك', 'MX', 'MEX', '52');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Micronesia', 'ولايات ميكرونيسيا المتحدة', 'FM', 'FSM', '691');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Moldova', 'مولدوفا', 'MD', 'MDA', '373');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Monaco', 'موناكو', 'MC', 'MCO', '377');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Mongolia', 'منغوليا', 'MN', 'MNG', '976');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Montenegro', 'مونتينيغرو', 'ME', 'MNE', '382');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Montserrat', 'مونتسرات', 'MS', 'MSR', '1664');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Morocco', 'المغرب', 'MA', 'MAR', '212');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Mozambique', 'موزمبيق', 'MZ', 'MOZ', '258');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Myanmar', 'ميانمار', 'MM', 'MMR', '95');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Namibia', 'ناميبيا', 'NA', 'NAM', '264');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Nauru', 'ناورو', 'NR', 'NRU', '674');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Nepal', 'نيبال', 'NP', 'NPL', '977');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Netherlands', 'هولندا', 'NL', 'NLD', '31');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Netherlands Antilles', 'جزر الأنتيل الهولندية', 'AN', 'ANT', '599');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('New Caledonia', 'كاليدونيا الجديدة', 'NC', 'NCL', '687');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('New Zealand', 'نيوزيلندا', 'NZ', 'NZL', '64');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Nicaragua', 'نيكاراغوا', 'NI', 'NIC', '505');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Niger', 'النيجر', 'NE', 'NER', '227');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Nigeria', 'نيجيريا', 'NG', 'NGA', '234');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Niue', 'نييوي', 'NU', 'NIU', '683');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Norfolk Island', 'جزيرة نورفولك', 'NF', 'NFK', '6723');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('North Korea', 'كوريا الشمالية', 'KP', 'PRK', '850');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('North Macedonia', 'مقدونيا الشمالية', 'MK', 'MKD', '389');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Northern Mariana Islands', 'جزر ماريانا الشمالية', 'MP', 'MNP', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Norway', 'النرويج', 'NO', 'NOR', '47');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Oman', 'سلطنة عمان', 'OM', 'OMN', '968');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Pakistan', 'باكستان', 'PK', 'PAK', '92');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Palau', 'بالاو', 'PW', 'PLW', '680');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Palestine', 'فلسطين', 'PS', 'PSE', '970');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Panama', 'بنما', 'PA', 'PAN', '507');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Papua New Guinea', 'بابوا غينيا الجديدة', 'PG', 'PNG', '675');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Paraguay', 'باراغواي', 'PY', 'PRY', '595');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Peru', 'بيرو', 'PE', 'PER', '51');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Philippines', 'الفلبين', 'PH', 'PHL', '63');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Pitcairn Islands', 'جزر بيتكيرن', 'PN', 'PCN', '672');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Poland', 'بولندا', 'PL', 'POL', '48');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Portugal', 'البرتغال', 'PT', 'PRT', '351');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Puerto Rico', 'بورتوريكو', 'PR', 'PRI', '1787');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Qatar', 'قطر', 'QA', 'QAT', '974');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Réunion', 'ريونيون', 'RE', 'REU', '262');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Romania', 'رومانيا', 'RO', 'ROU', '40');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Russia', 'روسيا', 'RU', 'RUS', '7');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Rwanda', 'رواندا', 'RW', 'RWA', '250');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Saint Barthélemy', 'سان بارتيلمي', 'BL', 'BLM', '590');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Saint Helena', 'سانت هيلينا', 'SH', 'SHN', '290');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Saint Kitts and Nevis', 'سانت كيتس ونيفيس', 'KN', 'KNA', '1869');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Saint Lucia', 'سانت لوسيا', 'LC', 'LCA', '1758');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Saint Martin', 'سانت مارتن', 'MF', 'MAF', '590');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Saint Pierre and Miquelon', 'سان بيير وميكلون', 'PM', 'SPM', '508');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Saint Vincent and the Grenadines', 'سانت فينسنت والغرينادين', 'VC', 'VCT', '784');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Samoa', 'ساموا', 'WS', 'WSM', '685');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('San Marino', 'سان مارينو', 'SM', 'SMR', '378');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('São Tomé and Príncipe', 'ساو تومي وبرينسيب', 'ST', 'STP', '239');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Saudi Arabia', 'السعودية', 'SA', 'SAU', '966');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Senegal', 'السنغال', 'SN', 'SEN', '221');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Serbia', 'صربيا', 'RS', 'SRB', '381');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Seychelles', 'سيشل', 'SC', 'SYC', '248');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Sierra Leone', 'سيراليون', 'SL', 'SLE', '232');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Singapore', 'سنغافورة', 'SG', 'SGP', '65');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Sint Maarten', 'سانت مارتن', 'SX', 'SXM', '599');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Slovakia', 'سلوفاكيا', 'SK', 'SVK', '421');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Slovenia', 'سلوفينيا', 'SI', 'SVN', '386');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Solomon Islands', 'جزر سليمان', 'SB', 'SLB', '677');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Somalia', 'الصومال', 'SO', 'SOM', '252');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('South Africa', 'جنوب أفريقيا', 'ZA', 'ZAF', '27');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('South Georgia and South Sandwich Islands', 'جورجيا الجنوبية وجزر ساندويتش الجنوبية', 'GS', 'SGS', '500');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('South Korea', 'كوريا الجنوبية', 'KR', 'KOR', '82');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('South Sudan', 'جنوب السودان', 'SS', 'SSD', '211');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Spain', 'إسبانيا', 'ES', 'ESP', '34');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Sri Lanka', 'سريلانكا', 'LK', 'LKA', '94');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Sudan', 'السودان', 'SD', 'SDN', '249');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Suriname', 'سورينام', 'SR', 'SUR', '597');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Svalbard and <NAME>', 'سفالبارد ويان ماين', 'SJ', 'SJM', '47');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Sweden', 'السويد', 'SE', 'SWE', '46');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Switzerland', 'سويسرا', 'CH', 'CHE', '41');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Syria', 'سوريا', 'SY', 'SYR', '963');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Taiwan', 'تايوان', 'TW', 'TWN', '886');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Tajikistan', 'طاجيكستان', 'TJ', 'TJK', '992');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Tanzania', 'تنزانيا', 'TZ', 'TZA', '255');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Thailand', 'تايلاند', 'TH', 'THA', '66');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Timor-Leste', 'تيمور الشرقية', 'TL', 'TLS', '670');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Togo', 'توجو', 'TG', 'TGO', '228');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Tokelau', 'توكيلاو', 'TK', 'TKL', '690');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Tonga', 'تونغا', 'TO', 'TON', '676');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Trinidad and Tobago', 'ترينيداد وتوباغو', 'TT', 'TTO', '868');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Tunisia', 'تونس', 'TN', 'TUN', '216');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Turkey', 'تركيا', 'TR', 'TUR', '90');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Turkmenistan', 'تركمانستان', 'TM', 'TKM', '993');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Turks and Caicos Islands', 'جزر توركس وكايكوس', 'TC', 'TCA', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Tuvalu', 'توفالو', 'TV', 'TUV', '688');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('U.S. Minor Outlying Islands', 'جزر الولايات المتحدة الصغيرة النائية', 'UM', 'UMI', '246');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('U.S. Virgin Islands', 'جزر العذراء الأمريكية', 'VI', 'VIR', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Uganda', 'أوغندا', 'UG', 'UGA', '256');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Ukraine', 'أوكرانيا', 'UA', 'UKR', '380');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('United Arab Emirates', 'الإمارات العربية المتحدة', 'AE', 'ARE', '971');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('United Kingdom', 'المملكة المتحدة', 'GB', 'GBR', '44');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('United States of America', 'الولايات المتحدة الأمريكية', 'US', 'USA', '1');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Uruguay', 'أوروغواي', 'UY', 'URY', '598');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Uzbekistan', 'أوزبكستان', 'UZ', 'UZB', '998');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Vanuatu', 'فانواتو', 'VU', 'VUT', '678');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Vatican City', 'مدينة الفاتيكان', 'VA', 'VAT', '379');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Venezuela', 'فنزويلا', 'VE', 'VEN', '58');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Vietnam', 'فيتنام', 'VN', 'VNM', '84');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Wallis and Futuna', 'واليس وفوتونا', 'WF', 'WLF', '681');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Western Sahara', 'الصحراء الغربية', 'EH', 'ESH', '212');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Yemen', 'اليمن', 'YE', 'YEM', '967');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Zambia', 'زامبيا', 'ZM', 'ZMB', '260');
INSERT INTO COUNTRY (ENGLISH_NAME, ARABIC_NAME, ALPHA2_CODE, ALPHA3_CODE, PHONE_CODE) VALUES('Zimbabwe', 'زيمبابوي', 'ZW', 'ZWE', '263');
|
-- file:numeric.sql ln:482 expect:true
INSERT INTO num_data VALUES (8, '74881')
|
<reponame>Shuttl-Tech/antlr_psql
-- file:copy2.sql ln:47 expect:false
10001 22 32 42 52
10002 23 33 43 53
10003 24 34 44 54
10004 25 35 45 55
10005 26 36 46 56
\.
COPY x (xyz) from stdin
|
<reponame>srinathman/semaphore
alter table `project__template` add allow_override_args_in_task bool not null default false;
alter table `task` add arguments text;
alter table `project__template` drop column `override_args`;
|
INSERT INTO auth_user ('id','password','is_superuser', 'is_staff', 'username', 'email', 'is_active', 'first_name', 'last_name', 'date_joined') VALUES
(2,'pbkdf2_sha256$260000$gbppPUYGKnb6W0o7w1CVW1$PR01ycCSgSGyQWek6UjFyDDky00mZWLKbm1QrGBAcxE=',0,0,'customer1','<EMAIL>',1,'','',date('now')),
(3,'pbkdf2_sha256$260000$gbppPUYGKnb6W0o7w1CVW1$PR01ycCSgSGyQWek6UjFyDDky00mZWLKbm1QrGBAcxE=',0,0,'customer2','<EMAIL>',1,'','',date('now')),
(4,'pbkdf2_sha256$260000$gbppPUYGKnb6W0o7w1CVW1$PR01ycCSgSGyQWek6UjFyDDky00mZWLKbm1QrGBAcxE=',0,0,'customer3','<EMAIL>',1,'','',date('now')),
(5,'pbkdf2_sha256$260000$gbppPUYGKnb6W0o7w1CVW1$PR01ycCSgSGyQWek6UjFyDDky00mZWLKbm1QrGBAcxE=',0,0,'customer4','<EMAIL>',1,'','',date('now'));
INSERT INTO "saas_customer" ("id","user_id","newsletter","newsletter_subscribed_on","newsletter_cancelled","language_code","verified","verification_token","verification_until","organisation_name","first_name","last_name","street","number","post_code","city","country_code","email_address","is_active") VALUES
(1,2,1,'2021-01-01',0,'DE',1,'',NULL,'Kaninchenzüchter Plauen e.V.','Hans','Müller','Holzweg','3','01234','Plauen','DE','<EMAIL>',1),
(2,3,1,'2021-05-01',0,'DE',1,'',NULL,'Gartensparte zum Spaten','Werner','Schmidt','<NAME>','7','01234','Plauen','DE','<EMAIL>',1),
(3,4,1,'2021-05-01',0,'DE',1,'',NULL,'Gartensparte Schneckenhain','Bernd','Schmitz','<NAME>','2','01234','Plauen','DE','<EMAIL>',1),
(4,5,1,'2021-05-01',0,'DE',1,'',NULL,'Sportverein Trimm Dich','Gunter','Meier','<NAME>','22','01234','Plauen','DE','<EMAIL>',1);
INSERT INTO "saas_plan" ("id","periodLengthInMonths","currencyCode","costPerPeriod","noticePeriodTypeInDays","name","language","descr_target","descr_caption","descr_1","descr_2","descr_3","descr_4") VALUES
(1,12,'EUR',50,14,'Basic','de','Für jeden','Alles was man so braucht','Nächtliche Backups','Support im öffentlichen Forum','Immer wieder Aktualisierungen auf die aktuelle Version','Zugriff über automatisch vergebene URL'),
(2,1,'EUR',5,7,'Mini','de','Für Anfänger','Nur zum Ausprobieren','Nächtliche Backups','Support im öffentlichen Forum','Immer wieder Aktualisierungen auf die aktuelle Version','Zugriff über automatisch vergebene URL'),
(3,12,'EUR',300,14,'Pro','de','Für Profis','Mit allem Schnickschnack','Stündliche Backups','Support über Ticket-System, mit 3 Std. inkl.','Aktualisierungen mit Ihnen abgesprochen','Zugriff über eigene URL'),
(4,12,'EUR',50,14,'Basic','en','For everyone','Everything you need','Nightly Backups','Support in the public forum','Regular Updates to latest release','Access via automatic url'),
(5,1,'EUR',5,7,'Mini','en','For starters','Just experimenting','Nightly Backups','Support in the public forum','Regular Updates to latest release','Access via automatic url'),
(6,12,'EUR',300,14,'Pro','en','For Professionals','With all bells and whistles','Hourly Backups','Support with Ticketing system, 3 hours incl.','Updates coordinated with you','Access via your own url');
INSERT INTO "saas_instance" ("id","identifier","hostname","status","auto_renew","last_interaction","reserved_token","reserved_until","reserved_for_user_id","initial_password","port") VALUES
(1,'344567','host0001','active',1,NULL,NULL,NULL,NULL,'',2000),
(2,'238978','host0001','active',1,NULL,NULL,NULL,NULL,'',2001),
(3,'785275','host0001','active',1,NULL,NULL,NULL,NULL,'',2002),
(4,'862344','host0001','free',1,NULL,NULL,NULL,NULL,'',2003),
(5,'119287','host0002','active',1,NULL,NULL,NULL,NULL,'',2000),
(6,'239399','host0002','free',1,NULL,NULL,NULL,NULL,'',2001);
INSERT INTO "saas_contract" ("id","start_date","end_date","auto_renew","customer_id","instance_id","plan_id") VALUES
(1,'2021-06-05',NULL,1,1,1,2),
(2,'2021-06-01',NULL,1,2,2,1),
(3,'2021-06-01',NULL,1,3,3,1),
(4,'2021-06-01',NULL,1,4,5,1);
|
<reponame>sydney-williams/sql-challenge<filename>schema.sql
drop table if exists 'department_employees';
drop table if exists 'department_manager';
drop table if exists 'departments';
drop table if exists 'title';
drop table if exists 'employees';
drop table if exists 'salaries';
-- Exported from QuickDBD: https://www.quickdatabasediagrams.com/
-- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here.
-- Modify this code to update the DB schema diagram.
-- To reset the sample schema, replace everything with
-- two dots ('..' - without quotes).
CREATE TABLE "department_manager" (
"dept_no" varchar NOT NULL,
"emp_no" int NOT NULL
);
CREATE TABLE "department_employees" (
"emp_no" int NOT NULL,
"dept_no" varchar NOT NULL
);
CREATE TABLE "departments" (
"dept_no" varchar NOT NULL,
"dept_name" varchar NOT NULL,
CONSTRAINT "pk_departments" PRIMARY KEY (
"dept_no"
)
);
CREATE TABLE "title" (
"title_id" varchar NOT NULL,
"title" varchar NOT NULL,
CONSTRAINT "pk_title" PRIMARY KEY (
"title_id"
)
);
-- Table documentation comment 1 (try the PDF/RTF export)
-- Table documentation comment 2
CREATE TABLE "employees" (
"emp_no" int NOT NULL,
-- Field documentation comment 1
-- Field documentation comment 2
"emp_title_id" varchar NOT NULL,
"birth_date" date NOT NULL,
"first_name" varchar NOT NULL,
"last_name" varchar NOT NULL,
"sex" varchar NOT NULL,
"hire_date" date NOT NULL,
CONSTRAINT "pk_employees" PRIMARY KEY (
"emp_no"
)
);
CREATE TABLE "salaries" (
"salary" int NOT NULL,
"emp_no" int NOT NULL
);
ALTER TABLE "department_manager" ADD CONSTRAINT "fk_department_manager_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
ALTER TABLE "department_manager" ADD CONSTRAINT "fk_department_manager_dept_no" FOREIGN KEY("dept_no")
REFERENCES "departments" ("dept_no");
ALTER TABLE "department_employees" ADD CONSTRAINT "fk_department_employees_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
ALTER TABLE "department_employees" ADD CONSTRAINT "fk_department_employees_dept_no" FOREIGN KEY("dept_no")
REFERENCES "departments" ("dept_no");
ALTER TABLE "employees" ADD CONSTRAINT "fk_employees_emp_title_id" FOREIGN KEY("emp_title_id")
REFERENCES "title" ("title_id");
ALTER TABLE "salaries" ADD CONSTRAINT "fk_salaries_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
|
CREATE TABLE `persistableUser` (
`userId` int(255) UNSIGNED NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`password` varchar(200) DEFAULT NULL,
`authorities` varchar(500) DEFAULT NULL,
`nonExpired` tinyint(1) DEFAULT NULL,
`nonLocked` tinyint(1) DEFAULT NULL,
`credentialsNonExpired` tinyint(1) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT NULL,
`email` varchar(100) NOT NULL,
`firstName` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`addressStreetName` varchar(300) NOT NULL,
`addressNumber` varchar(20) NOT NULL,
`addressBox` varchar(20),
`addressLocality` varchar(50) NOT NULL,
`addressPostalCode` int(10) NOT NULL,
`phoneNumber` varchar(20) NOT NULL,
`sexe` varchar(1),
CONSTRAINT userId_pk PRIMARY KEY (`userId`),
CHECK(`userId`>=0),
CHECK(`nonExpired` IS NULL OR `nonExpired` in (0,1)),
CHECK(`nonLocked` IS NULL OR `nonLocked` in (0,1)),
CHECK(`credentialsNonExpired` IS NULL OR `credentialsNonExpired` in (0,1)),
CHECK(`enabled` IS NULL OR `enabled` in (0,1)),
CHECK(`adressNumber`>0),
CHECK(`adressPostalCode` between 1000 and 9999),
CHECK(`phoneNumber` LIKE '^(((\\+|00)32\\s?|0)4(60|[789]\\d)(\\s?\\d{2}){3})$'),
CHECK(`sexe` in ('M','F'))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `language` (
`languageId` int(255) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
CONSTRAINT languageId_pk PRIMARY KEY(languageId),
CHECK(`languageId`>=0)
) ENGINE = InnoDB;
CREATE TABLE `category` (
`categoryId` int(255) UNSIGNED NOT NULL AUTO_INCREMENT,
CONSTRAINT categoryId_pk PRIMARY KEY(categoryId),
CHECK(`categoryId`>=0)
) ENGINE = InnoDB;
CREATE TABLE `order` (
`orderId` int(255) UNSIGNED NOT NULL AUTO_INCREMENT,
`userId` int(255) UNSIGNED NOT NULL,
`creationDate` date NOT NULL,
`isPaid` tinyint(1) UNSIGNED NOT NULL,
CONSTRAINT orderId_pk PRIMARY KEY(orderId),
CONSTRAINT userId_fk FOREIGN KEY (userId) REFERENCES persistableUser(userId),
CHECK(`orderId`>=0),
CHECK(`userId`>=0),
CHECK(`isPaid` in (0,1))
) ENGINE = InnoDB;
CREATE TABLE `product` (
`productId` int(255) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`categoryId` int(255) UNSIGNED NOT NULL,
`unitPrice` decimal(65,2) NOT NULL,
`vatRate` decimal(5,2) NOT NULL,
`type` varchar(20) NOT NULL,
`isSparkling` tinyint(1),
`isSpicy` tinyint(1),
`isSweet` tinyint(1),
CONSTRAINT productId_pk PRIMARY KEY(productId),
CONSTRAINT categoryId_pk FOREIGN KEY (categoryId) REFERENCES category(categoryId),
CHECK(`productId`>=0),
CHECK(`categoryId`>=0),
CHECK(`unitPrice`>=0),
CHECK(`vatRate` between 0 and 100),
CHECK(`type` in ('Burger','Drink','Sauce','Sides')),
CHECK(`isSparkling` IS NULL OR `isSparkling` in (0,1)),
CHECK(`isSpicy` IS NULL OR `isSpicy` in (0,1)),
CHECK(`isSweet` IS NULL OR `isSweet` in (0,1))
) ENGINE = InnoDB;
CREATE TABLE `orderLine` (
`orderLineId` int(255) UNSIGNED NOT NULL AUTO_INCREMENT,
`productId` int(255) UNSIGNED NOT NULL,
`orderId` int(255) UNSIGNED NOT NULL,
`unitPrice` decimal(65,2) NOT NULL,
`quantity` int(100) NOT NULL,
CONSTRAINT orderLineId_pk PRIMARY KEY(orderLineId),
CONSTRAINT orderId_fk FOREIGN KEY (orderId) REFERENCES `order`(orderId),
CONSTRAINT productId_fk FOREIGN KEY (productId) REFERENCES product(productId),
CHECK(`orderLineId`>=0),
CHECK(`productId`>=0),
CHECK(`orderId`>=0),
CHECK(`unitPrice`>=0),
CHECK(`quantity`>=0)
) ENGINE = InnoDB;
CREATE TABLE `promotion` (
`promotionId` int(255) UNSIGNED NOT NULL AUTO_INCREMENT,
`startDate` datetime NOT NULL,
`endDate` datetime NOT NULL,
`typeChoosenItem` tinyint NOT NULL,
`categoryId` int(255) UNSIGNED,
`productId` int(255) UNSIGNED,
`typeReduction` varchar(100) NOT NULL,
`amountReduction` decimal(65,2) NOT NULL,
CONSTRAINT promotionId PRIMARY KEY(promotionId),
CONSTRAINT promotion_productId_fk FOREIGN KEY (productId) REFERENCES product(productId),
CONSTRAINT promotion_categoryId_fk FOREIGN KEY (categoryId) REFERENCES category(categoryId),
CHECK(`promotionId`>=0),
CHECK(`typeChoosenItem` in (0,1)),
CHECK(`categoryId`>=0),
CHECK(`productId`>=0),
CHECK(`typeReduction`>=0),
CHECK(`amountReduction`>=0)
) ENGINE = InnoDB;
CREATE TABLE `translationCategory` (
`translationId` int(255) UNSIGNED NOT NULL AUTO_INCREMENT,
`categoryId` int(255) UNSIGNED NOT NULL,
`languageId` int(255) UNSIGNED NOT NULL,
`content` varchar(200) NOT NULL,
CONSTRAINT translationId PRIMARY KEY(translationId),
CONSTRAINT translationCategory_categoryId_fk FOREIGN KEY (categoryId) REFERENCES category(categoryId),
CONSTRAINT translationCategory_languageId_fk FOREIGN KEY (languageId) REFERENCES language(languageId),
CHECK(`translationId`>=0),
CHECK(`categoryId`>=0),
CHECK(`languageId`>=0)
) ENGINE = InnoDB;
INSERT INTO `persistableUser` (`username`, `password`, `authorities`, `nonExpired`, `nonLocked`, `credentialsNonExpired`, `enabled`, `email`, `firstName`, `name`, `addressStreetName`, `addressNumber`, `addressLocality`, `addressPostalCode`, `phoneNumber`, `sexe`)
VALUES
('Romain', '$2a$10$wLOkmVQNUE.BBKWIPfB94ubutR0yyzq.GepE632M6u6XJgEEuzR9e', 'ROLE_ADMIN', '1', '1', '1', '1', '<EMAIL>', 'Romain', 'Marbaix', 'Rue du nord', '50', 'Ath', '5000', '0485893465', 'M'),
('Graham', '$2a$10$wLOkmVQNUE.BBKWIPfB94ubutR0yyzq.GepE632M6u6XJgEEuzR9e', null, '1', '1', '1', '1', '<EMAIL>', 'Graham', 'Berger', 'Rue des quatre vents', '6', 'Beuzet', '5030', '0485893465', 'M'),
('Maxime', '$2a$10$wLOkmVQNUE.BBKWIPfB94ubutR0yyzq.GepE632M6u6XJgEEuzR9e', null, '1', '1', '1', '1', '<EMAIL>', 'Maxime', 'Letecheur', 'Rue des Grands Saules', '42', 'Godinne', '5000', '0485893465', 'M');
INSERT INTO `language` (`name`) VALUES ('fr'); #id= 1
INSERT INTO `language` (`name`) VALUES ('en'); #id= 2
INSERT INTO `category` (`categoryId`) VALUES ('1');
INSERT INTO `category` (`categoryId`) VALUES ('2');
INSERT INTO `category` (`categoryId`) VALUES ('3');
INSERT INTO `category` (`categoryId`) VALUES ('4');
INSERT INTO `category` (`categoryId`) VALUES ('5');
INSERT INTO `category` (`categoryId`) VALUES ('6');
INSERT INTO `category` (`categoryId`) VALUES ('7');
INSERT INTO `translationCategory` (`categoryId`, `languageId`, `content`)
VALUES
(1, 1, "Poulet"),
(1, 2, "Chicken"),
(2, 1, "Boeuf"),
(2, 2, "Beef"),
(3, 1, "Poisson"),
(3, 2, "Fish"),
(4, 1, "Vegetarien"),
(4, 2, "Veggie"),
(5, 1, "Boissons"),
(5, 2, "Drinks"),
(6, 1, "Sauce"),
(6, 2, "Sauce"),
(7, 1, "Accompagnements"),
(7, 2, "Sides");
INSERT INTO `product` (`categoryId`,`name`, `unitPrice`, `vatRate`,`type`,`isSparkling`,`isSpicy`,`isSweet`)
VALUES
(1,'Chicken Burger',5.00,12.00,'Burger',0,0,0),
(1,'Spicytender Burger',6.00,12.00,'Burger',0,1,0),
(1,'Birdy Burger',5.00,12.00,'Burger',0,0,0),
(2,'Classic Burger',2.00,12.00,'Burger',0,0,0),
(2,'Tiny Burger',1.50,12.00,'Burger',0,0,0),
(2,'Spicy Burger',3.00,12.00,'Burger',0,1,1),
(3,'Fish Burger',5.00,12.00,'Burger',0,0,0),
(3,'Flipper Burger',4.00,12.00,'Burger',0,0,0),
(3,'Goldfish Burger',2.00,12.00,'Burger',0,0,0),
(4,'Forest Burger',4.00,12.00,'Burger',0,0,0),
(4,'Jungle Burger',5.00,12.00,'Burger',0,0,0),
(4,'Savana Burger',6.00,12.00,'Burger',0,1,0),
(5,'Water',0.60,6.00,'Drink',0,0,0),
(5,'Soda',1.00,6.00,'Drink',1,0,0),
(5,'Cola',1.50,6.00,'Drink',1,0,0),
(5,'Fanta',1.50,6.00,'Drink',1,0,0),
(5,'Sprite',1.50,6.00,'Drink',1,0,0),
(5,'Limonade',1.30,6.00,'Drink',1,0,0),
(5,'Iced Tea',1.50,6.00,'Drink',1,0,0),
(6,'Sauce Mayonnaise',0.30,6.00,'Sauce',0,0,0),
(6,'Sauce Ketchup',0.30,6.00,'Sauce',0,0,1),
(6,'Sauce Andalouse',0.30,6.00,'Sauce',0,1,0),
(6,'Sauce Samourai',0.30,6.00,'Sauce',0,1,0),
(6,'Sauce Curry',0.30,6.00,'Sauce',0,0,1),
(6,'Sauce Coktail',0.30,6.00,'Sauce',0,0,1),
(6,'Sauce Burger',0.30,6.00,'Sauce',0,0,0),
(7,'Fries',1.00,12.00,'Sides',0,0,0),
(7,'Nuggets',4.00,12.00,'Sides',0,0,0);
INSERT INTO `promotion` (`startDate`, `endDate`, `typeChoosenItem`, `categoryId`, `productId`, `typeReduction`, `amountReduction`)
VALUES
('2018-12-15 00:00:01.000', '2019-09-20 23:59:59.000', 1, null, 1, 1, 0.5),
('2018-12-15 00:00:01.000', '2019-09-20 23:59:59.000', 0, 1, null, 1, 0.5),
('2018-12-16 00:00:01.000', '2019-10-30 23:59:59.000', 0, 2, null, 0, 1),
('2019-01-30 00:00:01.000', '2019-02-01 23:59:59.000', 0, 4, null, 1, 0.25);
|
DO
$$
BEGIN
IF NOT EXISTS (
SELECT 1 FROM information_schema.columns
WHERE TABLE_SCHEMA = current_schema AND TABLE_NAME = 'device' AND COLUMN_NAME = 'bts_id')
THEN
ALTER TABLE device ADD COLUMN bts_id INTEGER;
END IF;
COMMENT ON COLUMN device.bts_id IS 'The ID of the Base Transceiver Station to which this device is linked.';
IF NOT EXISTS (
SELECT 1 FROM information_schema.columns
WHERE TABLE_SCHEMA = current_schema AND TABLE_NAME = 'device' AND COLUMN_NAME = 'cell_id')
THEN
ALTER TABLE device ADD COLUMN cell_id INTEGER;
END IF;
COMMENT ON COLUMN device.cell_id IS 'The ID of the Cell to which this device is linked.';
END;
$$
|
# Drop the 'unique_event_execution' index if it exists
SET @exist := (SELECT COUNT(INDEX_NAME)
FROM information_schema.STATISTICS
WHERE `TABLE_NAME` = 'event_execution'
AND `INDEX_NAME` = 'unique_event_execution'
AND TABLE_SCHEMA = database());
SET @sqlstmt := IF(@exist > 0, 'ALTER TABLE `event_execution` DROP INDEX `unique_event_execution`',
'SELECT ''INFO: Index already exists.''');
PREPARE stmt FROM @sqlstmt;
EXECUTE stmt;
# Create the 'unique_event_execution' index with execution_id column instead of 'message_id' so events can be executed multiple times.
ALTER TABLE `event_execution`
ADD CONSTRAINT `unique_event_execution` UNIQUE (event_handler_name, event_name, execution_id);
|
DELETE from datadictionary where instance='lava' and scope='crms-nacc' and entity='udsmedicalconditions3';
DELETE from viewproperty where instance='lava' and scope='crms-nacc' and entity='udsmedicalconditions3';
DELETE from hibernateproperty where instance='lava' and scope='crms-nacc' and entity='udsmedicalconditions3';
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',1,'cancer','1. Cancer (excluding non-melanoma skin cancer), primary or metastatic','','',1,'udsmedicalconditions','CANCER',1,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',2,'cancsite','1a. Cancer primary site specification','','',1,'udsmedicalconditions','CANCSITE',2,'varchar','60',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',3,'diabet','2. Diabetes','','',1,'udsmedicalconditions','DIABET',3,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',4,'myoinf','3. Myocardial infarct','','',1,'udsmedicalconditions','MYOINF',4,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',5,'conghrt','4. Congestive heart failure','','',1,'udsmedicalconditions','CONGHRT',5,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',6,'afibrill','5. Atrial fibrillation','','',1,'udsmedicalconditions','AFIBRILL',6,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',7,'hypert','6. Hypertension','','',1,'udsmedicalconditions','HYPERT',7,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',8,'angina','7. Angina','','',1,'udsmedicalconditions','ANGINA',8,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',9,'hypchol','8. Hypercholesterolemia','','',1,'udsmedicalconditions','HYPCHOL',9,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',10,'vb12def','9. B12 deficiency','','',1,'udsmedicalconditions','VB12DEF',10,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',11,'thydis','10. Thyroid disease','','',1,'udsmedicalconditions','THYDIS',11,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',12,'arth','11. Arthritis','','',1,'udsmedicalconditions','ARTH',12,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',13,'artype','11a. Arthritis type','','',1,'udsmedicalconditions','ARTYPE',13,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',14,'artypex','11a1. Other arthritis type specification','','',1,'udsmedicalconditions','ARTYPEX',14,'varchar','60',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',15,'artupex','11b1. Arthritis region affected - upper extremity','','',1,'udsmedicalconditions','ARTUPEX',15,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',16,'artloex','11b2. Arthritis region affected - lower extremity','','',1,'udsmedicalconditions','ARTLOEX',16,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',17,'artspin','11b3. Arthritis region affected - spine','','',1,'udsmedicalconditions','ARTSPIN',17,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',18,'artunkn','11b4. Arthritis region affected - unknown','','',1,'udsmedicalconditions','ARTUNKN',18,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',19,'urineinc','12. Incontinence - urinary','','',1,'udsmedicalconditions','URINEINC',19,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',20,'bowlinc','13. Incontinence - bowel','','',1,'udsmedicalconditions','BOWLINC',20,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',21,'sleepap','14. Sleep apnea','','',1,'udsmedicalconditions','SLEEPAP',21,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',22,'remdis','15. REM sleep behavior disorder (RBD)','','',1,'udsmedicalconditions','REMDIS',22,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',23,'hyposom','16. Hyposomnia/insomnia','','',1,'udsmedicalconditions','HYPOSOM',23,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',24,'sleepoth','17. Other sleep disorder','','',1,'udsmedicalconditions','SLEEPOTH',24,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',25,'sleepotx','17a. Other sleep disorder specification','','',1,'udsmedicalconditions','SLEEPOTX',25,'varchar','60',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',26,'angiocp','18. Carotid procedure: angioplasty, endarterectomy, or stent','','',1,'udsmedicalconditions','ANGIOCP',26,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',27,'angiopci','19. Percutaneous coronary intervention: angioplasty and/or stent','','',1,'udsmedicalconditions','ANGIOPCI',27,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',28,'pacemake','20. Procedure: pacemaker and/or defibrillator','','',1,'udsmedicalconditions','PACEMAKE',28,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',29,'hvalve','21. Procedure: heart valve replacement or repair','','',1,'udsmedicalconditions','HVALVE',29,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',30,'antienc','22. Antibody-mediated encephalopathy','','',1,'udsmedicalconditions','ANTIENC',30,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',31,'antiencx','22a. Antibody-mediated encephalopathy, specify','','',1,'udsmedicalconditions','ANTIENCX',31,'varchar','60',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',32,'othcond','23. Other medical conditions or procedures not listed above','','',1,'udsmedicalconditions','OTHCOND',32,'smallint','',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO datadictionary (`instance`,`scope`,`entity`,`prop_order`,`prop_name`,`prop_description`,`data_values`,`data_calculation`,`required`,`db_table`,`db_column`,`db_order`,`db_datatype`,`db_datalength`,`db_nullable`,`db_default`,`notes`,`legacy_column`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3',33,'othcondx','23a. Other medical conditions specification','','',1,'udsmedicalconditions','OTHCONDX',33,'varchar','60',1,'null',NULL,NULL,'2015-02-17 15:30:34');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.cancer','en','lava','crms-nacc',NULL,'udsmedicalconditions3','cancer',NULL,'r','scale','Yes','Cancer (excluding non-melanoma skin cancer), primary or metastatic','1.',NULL,40,0,NULL,'uds.d2.cancer',NULL,1,'1. Cancer (excluding non-melanoma skin cancer), primary or metastatic','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.cancsite','en','lava','crms-nacc',NULL,'udsmedicalconditions3','cancsite',NULL,'r','string','Yes','a. Cancer primary site specification',NULL,60,40,0,'onkeypress="UDS_onlyNaccCharactersAllowed(event)"','',NULL,2,'1a. Cancer primary site specification','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.diabet','en','lava','crms-nacc',NULL,'udsmedicalconditions3','diabet',NULL,'r','scale','Yes','Diabetes','2.',NULL,40,0,NULL,'uds.d2.diabet',NULL,3,'2. Diabetes','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.myoinf','en','lava','crms-nacc',NULL,'udsmedicalconditions3','myoinf',NULL,'r','scale','Yes','Myocardial infarct','3.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,4,'3. Myocardial infarct','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.conghrt','en','lava','crms-nacc',NULL,'udsmedicalconditions3','conghrt',NULL,'r','scale','Yes','Congestive heart failure','4.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,5,'4. Congestive heart failure','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.afibrill','en','lava','crms-nacc',NULL,'udsmedicalconditions3','afibrill',NULL,'r','scale','Yes','Atrial fibrillation','5.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,6,'5. Atrial fibrillation','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.hypert','en','lava','crms-nacc',NULL,'udsmedicalconditions3','hypert',NULL,'r','scale','Yes','Hypertension','6.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,7,'6. Hypertension','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.angina','en','lava','crms-nacc',NULL,'udsmedicalconditions3','angina',NULL,'r','scale','Yes','Angina','7.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,8,'7. Angina','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.hypchol','en','lava','crms-nacc',NULL,'udsmedicalconditions3','hypchol',NULL,'r','scale','Yes','Hypercholesterolemia','8.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,9,'8. Hypercholesterolemia','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.vb12def','en','lava','crms-nacc',NULL,'udsmedicalconditions3','vb12def',NULL,'r','scale','Yes','B12 deficiency','9.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,10,'9. B12 deficiency','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.thydis','en','lava','crms-nacc',NULL,'udsmedicalconditions3','thydis',NULL,'r','scale','Yes','Thyroid disease','10.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,11,'10. Thyroid disease','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.arth','en','lava','crms-nacc',NULL,'udsmedicalconditions3','arth',NULL,'r','scale','Yes','Arthritis','11.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,12,'11. Arthritis','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.artype','en','lava','crms-nacc',NULL,'udsmedicalconditions3','artype',NULL,'r','scale','Yes','a. Arthritis type',NULL,NULL,40,0,NULL,'uds.d2.artype',NULL,13,'11a. Arthritis type','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.artypex','en','lava','crms-nacc',NULL,'udsmedicalconditions3','artypex',NULL,'r','string','Yes','a1. Other arthritis type specification',NULL,60,40,0,'onkeypress="UDS_onlyNaccCharactersAllowed(event)"','',NULL,14,'11a1. Other arthritis type specification','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.artupex','en','lava','crms-nacc',NULL,'udsmedicalconditions3','artupex',NULL,'r','scale','Yes','b1. Arthritis region affected - upper extremity',NULL,NULL,40,0,NULL,'uds.noYes01',NULL,15,'11b1. Arthritis region affected - upper extremity','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.artloex','en','lava','crms-nacc',NULL,'udsmedicalconditions3','artloex',NULL,'r','scale','Yes','b2. Arthritis region affected - lower extremity',NULL,NULL,40,0,NULL,'uds.noYes01',NULL,16,'11b2. Arthritis region affected - lower extremity','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.artspin','en','lava','crms-nacc',NULL,'udsmedicalconditions3','artspin',NULL,'r','scale','Yes','b3. Arthritis region affected - spine',NULL,NULL,40,0,NULL,'uds.noYes01',NULL,17,'11b3. Arthritis region affected - spine','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.artunkn','en','lava','crms-nacc',NULL,'udsmedicalconditions3','artunkn',NULL,'r','scale','Yes','b4. Arthritis region affected - unknown',NULL,NULL,40,0,NULL,'uds.noYes01',NULL,18,'11b4. Arthritis region affected - unknown','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.urineinc','en','lava','crms-nacc',NULL,'udsmedicalconditions3','urineinc',NULL,'r','scale','Yes','Incontinence - urinary','12.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,19,'12. Incontinence - urinary','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.bowlinc','en','lava','crms-nacc',NULL,'udsmedicalconditions3','bowlinc',NULL,'r','scale','Yes','Incontinence - bowel','13.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,20,'13. Incontinence - bowel','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.sleepap','en','lava','crms-nacc',NULL,'udsmedicalconditions3','sleepap',NULL,'r','scale','Yes','Sleep apnea','14.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,21,'14. Sleep apnea','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.remdis','en','lava','crms-nacc',NULL,'udsmedicalconditions3','remdis',NULL,'r','scale','Yes','REM sleep behavior disorder (RBD)','15.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,22,'15. REM sleep behavior disorder (RBD)','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.hyposom','en','lava','crms-nacc',NULL,'udsmedicalconditions3','hyposom',NULL,'r','scale','Yes','Hyposomnia/insomnia','16.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,23,'16. Hyposomnia/insomnia','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.sleepoth','en','lava','crms-nacc',NULL,'udsmedicalconditions3','sleepoth',NULL,'r','scale','Yes','Other sleep disorder','17.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,24,'17. Other sleep disorder','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.sleepotx','en','lava','crms-nacc',NULL,'udsmedicalconditions3','sleepotx',NULL,'r','string','Yes','a. Other sleep disorder specification',NULL,60,40,0,'onkeypress="UDS_onlyNaccCharactersAllowed(event)"','',NULL,25,'17a. Other sleep disorder specification','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.angiocp','en','lava','crms-nacc',NULL,'udsmedicalconditions3','angiocp',NULL,'r','scale','Yes','Carotid procedure: angioplasty, endarterectomy, or stent','18.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,26,'18. Carotid procedure: angioplasty, endarterectomy, or stent','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.angiopci','en','lava','crms-nacc',NULL,'udsmedicalconditions3','angiopci',NULL,'r','scale','Yes','Percutaneous coronary intervention: angioplasty and/or stent','19.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,27,'19. Percutaneous coronary intervention: angioplasty and/or stent','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.pacemake','en','lava','crms-nacc',NULL,'udsmedicalconditions3','pacemake',NULL,'r','scale','Yes','Procedure: pacemaker and/or defibrillator','20.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,28,'20. Procedure: pacemaker and/or defibrillator','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.hvalve','en','lava','crms-nacc',NULL,'udsmedicalconditions3','hvalve',NULL,'r','scale','Yes','Procedure: heart valve replacement or repair','21.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,29,'21. Procedure: heart valve replacement or repair','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.antienc','en','lava','crms-nacc',NULL,'udsmedicalconditions3','antienc',NULL,'r','scale','Yes','Antibody-mediated encephalopathy','22.',NULL,40,0,NULL,'uds.noYesNotAssessed018',NULL,30,'22. Antibody-mediated encephalopathy','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.antiencx','en','lava','crms-nacc',NULL,'udsmedicalconditions3','antiencx',NULL,'r','string','Yes','a. Antibody-mediated encephalopathy, specify',NULL,60,40,0,'onkeypress="UDS_onlyNaccCharactersAllowed(event)"','',NULL,31,'22a. Antibody-mediated encephalopathy, specify','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.othcond','en','lava','crms-nacc',NULL,'udsmedicalconditions3','othcond',NULL,'r','scale','Yes','Other medical conditions or procedures not listed above','23.',NULL,40,0,NULL,'uds.noYes01',NULL,32,'23. Other medical conditions or procedures not listed above','2015-02-17 12:29:10');
INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`label2`,`maxLength`,`size`,`indentLevel`,`attributes`,`list`,`listAttributes`,`propOrder`,`quickHelp`,`modified`) VALUES('*.udsmedicalconditions3.othcondx','en','lava','crms-nacc',NULL,'udsmedicalconditions3','othcondx',NULL,'r','string','Yes','a. Other medical conditions specification',NULL,60,40,0,'onkeypress="UDS_onlyNaccCharactersAllowed(event)"','',NULL,33,'23a. Other medical conditions specification','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','cancer','udsmedicalconditions','CANCER','smallint',NULL,5,0,2,'cancer','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','cancsite','udsmedicalconditions','CANCSITE','varchar',60,NULL,NULL,3,'cancsite','string',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','diabet','udsmedicalconditions','DIABET','smallint',NULL,5,0,4,'diabet','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','myoinf','udsmedicalconditions','MYOINF','smallint',NULL,5,0,5,'myoinf','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','conghrt','udsmedicalconditions','CONGHRT','smallint',NULL,5,0,6,'conghrt','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','afibrill','udsmedicalconditions','AFIBRILL','smallint',NULL,5,0,7,'afibrill','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','hypert','udsmedicalconditions','HYPERT','smallint',NULL,5,0,8,'hypert','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','angina','udsmedicalconditions','ANGINA','smallint',NULL,5,0,9,'angina','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','hypchol','udsmedicalconditions','HYPCHOL','smallint',NULL,5,0,10,'hypchol','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','vb12def','udsmedicalconditions','VB12DEF','smallint',NULL,5,0,11,'vb12def','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','thydis','udsmedicalconditions','THYDIS','smallint',NULL,5,0,12,'thydis','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','arth','udsmedicalconditions','ARTH','smallint',NULL,5,0,13,'arth','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','artype','udsmedicalconditions','ARTYPE','smallint',NULL,5,0,14,'artype','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','artypex','udsmedicalconditions','ARTYPEX','varchar',60,NULL,NULL,15,'artypex','string',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','artupex','udsmedicalconditions','ARTUPEX','smallint',NULL,5,0,16,'artupex','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','artloex','udsmedicalconditions','ARTLOEX','smallint',NULL,5,0,17,'artloex','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','artspin','udsmedicalconditions','ARTSPIN','smallint',NULL,5,0,18,'artspin','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','artunkn','udsmedicalconditions','ARTUNKN','smallint',NULL,5,0,19,'artunkn','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','urineinc','udsmedicalconditions','URINEINC','smallint',NULL,5,0,20,'urineinc','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','bowlinc','udsmedicalconditions','BOWLINC','smallint',NULL,5,0,21,'bowlinc','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','sleepap','udsmedicalconditions','SLEEPAP','smallint',NULL,5,0,22,'sleepap','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','remdis','udsmedicalconditions','REMDIS','smallint',NULL,5,0,23,'remdis','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','hyposom','udsmedicalconditions','HYPOSOM','smallint',NULL,5,0,24,'hyposom','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','sleepoth','udsmedicalconditions','SLEEPOTH','smallint',NULL,5,0,25,'sleepoth','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','sleepotx','udsmedicalconditions','SLEEPOTX','varchar',60,NULL,NULL,26,'sleepotx','string',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','angiocp','udsmedicalconditions','ANGIOCP','smallint',NULL,5,0,27,'angiocp','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','angiopci','udsmedicalconditions','ANGIOPCI','smallint',NULL,5,0,28,'angiopci','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','pacemake','udsmedicalconditions','PACEMAKE','smallint',NULL,5,0,29,'pacemake','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','hvalve','udsmedicalconditions','HVALVE','smallint',NULL,5,0,30,'hvalve','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','antienc','udsmedicalconditions','ANTIENC','smallint',NULL,5,0,31,'antienc','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','antiencx','udsmedicalconditions','ANTIENCX','varchar',60,NULL,NULL,32,'antiencx','string',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','othcond','udsmedicalconditions','OTHCOND','smallint',NULL,5,0,33,'othcond','short',NULL,'No','2015-02-17 12:29:10');
INSERT INTO hibernateproperty (`instance`,`scope`,`entity`,`property`,`dbTable`,`dbColumn`,`dbType`,`dbLength`,`dbPrecision`,`dbScale`,`dbOrder`,`hibernateProperty`,`hibernateType`,`hibernateClass`,`hibernateNotNull`,`modified`) VALUES('lava','crms-nacc','udsmedicalconditions3','othcondx','udsmedicalconditions','OTHCONDX','varchar',60,NULL,NULL,34,'othcondx','string',NULL,'No','2015-02-17 12:29:10');
|
create schema main_schema;
create table main_schema.city
(
id integer primary key,
country varchar(50),
city varchar(50)
);
create table main_schema.users
(
id integer primary key,
name varchar(30),
email varchar(50),
registration_date timestamp,
id_city integer
);
create index main_schema.users_name_idx on main_schema.users (name);
create index main_schema.users_email_idx on main_schema.users (email);
alter table main_schema.users
add constraint main_schema.users_city_fk
foreign key (id_city) references main_schema.city (id);
create view main_schema.city_vw as
select *
from main_schema.city;
create view main_schema.users_vw as
select *
from main_schema.users;
|
# Write your MySQL query statement below
SELECT T.Request_at AS Day, ROUND(SUM(if(T.Status <> 'completed', 1,0))/COUNT(*),2) AS `Cancellation Rate` FROM Trips AS T LEFT JOIN (SELECT * FROM Users WHERE Role = 'client') AS C ON T.Client_Id = C.Users_Id LEFT JOIN (SELECT * FROM Users WHERE Role = 'driver') AS D ON T.Driver_Id = D.Users_Id WHERE C.Banned <> 'YES' AND D.Banned <> 'YES' AND T.Request_at BETWEEN '2013-10-01' AND '2013-10-03' GROUP BY T.Request_at ORDER BY Day;
|
-- Exercise
-- 1. Employee Address
SELECT e.employee_id, e.job_title, e.address_id, a.address_text
FROM employees AS e
LEFT JOIN addresses AS a
USING (address_id)
ORDER BY address_id
LIMIT 5;
-- 2. Addresses with Towns
SELECT e.first_name,e.last_name, t.name, a.address_text
FROM employees AS e
JOIN addresses AS a
USING (address_id)
JOIN towns AS t
USING (town_id)
ORDER BY first_name, last_name
LIMIT 5;
-- 3. Sales Employee
SELECT e.employee_id, e.first_name, e.last_name, d.name
FROM employees AS e
LEFT JOIN departments AS d
USING (department_id)
WHERE d.name = 'Sales'
ORDER BY e.employee_id DESC;
-- 4. Employee Departments
SELECT e.employee_id, e.first_name, e.salary, d.`name` AS 'department_name'
FROM employees AS e
JOIN departments AS d
ON e.department_id = d.department_id
WHERE e.salary > 15000
ORDER BY e.department_id DESC
LIMIT 5;
-- 5. Employees Without Project
SELECT e.employee_id, e.first_name
FROM employees AS e
WHERE e.employee_id NOT IN (
SELECT ep.employee_id
FROM employees_projects AS ep
)
ORDER BY e.employee_id DESC
LIMIT 3;
-- 5. Employees Without Project JOIN
SELECT e.employee_id, e.first_name
FROM employees AS e
LEFT JOIN employees_projects AS ep
ON e.employee_id = ep.employee_id
WHERE ep.project_id IS NULL
ORDER BY e.employee_id DESC
LIMIT 3;
-- 6. Employees Hired After
SELECT e.first_name, e.last_name, e.hire_date, d.name AS dept_name
FROM employees AS e
JOIN departments AS d
ON d.department_id = e.department_id
WHERE DATE(hire_date) > '1999/01/01' AND d.name IN ('Sales', 'Finance')
ORDER BY hire_date;
-- 07. Employees with Project
SELECT e.employee_id, e.first_name, p.`name` AS project_name
FROM employees AS e
JOIN employees_projects AS ep
ON e.employee_id = ep.employee_id
JOIN projects AS p
ON ep.project_id = p.project_id
WHERE DATE(p.start_date) > '2002/08/13'
AND p.end_date IS NULL
ORDER BY e.first_name, p.name
LIMIT 5;
-- 8. Employee 24
SELECT e.`employee_id`, e.`first_name`, IF (YEAR(p.`start_date`) >= '2005', NULL, p.`name`) AS `project_name`
FROM `employees` as e
JOIN `employees_projects` AS ep
ON e.`employee_id` = ep.`employee_id`
JOIN `projects` AS p
ON ep.`project_id` = p.`project_id`
WHERE e.`employee_id` = 24
ORDER BY `project_name`;
-- 9. Employee Manager
SELECT e.employee_id, e.first_name, e.manager_id,
e2.first_name AS manager_name
FROM employees AS e
JOIN employees AS e2
ON e.manager_id = e2.employee_id
WHERE e.manager_id IN (3,7)
ORDER BY e.first_name;
-- 10. Employee Summary
SELECT e.employee_id, CONCAT(e.first_name, ' ', e.last_name) AS employee_name,
CONCAT(m.first_name, ' ', m.last_name) AS manager_name,
d.name AS department_name
FROM employees as e
JOIN employees as m
ON m.employee_id = e.manager_id
JOIN departments as d
ON e.department_id = d.department_id
ORDER BY e.employee_id
LIMIT 5;
-- 11. Min Average Salary
SELECT AVG(`salary`) AS min_average_salary
FROM employees
GROUP BY department_id
ORDER BY min_average_salary
LIMIT 1;
-- 12. Highest Peaks in Bulgaria
SELECT mc.country_code, m.mountain_range, p.peak_name, p.elevation
FROM mountains_countries AS mc
JOIN mountains AS m
ON m.id = mc.mountain_id
JOIN peaks as p
ON m.id = p.mountain_id
WHERE mc.country_code = 'BG' AND p.elevation > 2835
ORDER BY p.elevation DESC;
-- 13. Count Mountain Ranges
SELECT c.country_code, COUNT(*) as mountain_range
FROM countries AS c
JOIN mountains_countries AS mc
ON c.country_code = mc.country_code
WHERE c.country_name IN ('United States', 'Russia', 'Bulgaria')
GROUP BY c.country_code
ORDER BY COUNT(*) DESC;
-- 14. Countries with Rivers
SELECT c.country_name, r.river_name
FROM countries AS c
LEFT JOIN countries_rivers AS rc
ON c.country_code = rc.country_code
LEFT JOIN rivers AS r
ON rc.river_id = r.id
LEFT JOIN continents AS cn
ON c.continent_code = cn.continent_code
WHERE cn.continent_name = 'Africa'
ORDER BY c.country_name
LIMIT 5;
-- 15. *Continents and Currencies
SELECT c.continent_code, c.currency_code, COUNT(c.country_name) AS currency_usage
FROM countries as c
GROUP BY c.continent_code, currency_code
HAVING currency_usage = (
SELECT COUNT(c1.country_code) AS count
FROM countries as c1
WHERE c1.continent_code = c.continent_code
GROUP BY currency_code
ORDER BY count DESC
LIMIT 1
)
AND currency_usage > 1
ORDER BY c.continent_code, c.currency_code;
-- 16. Countries Without Any Mountains
SELECT COUNT(*) AS country_count
FROM countries AS c
WHERE c.country_code NOT IN (SELECT country_code FROM mountains_countries);
-- 17. Highest Peak and Longest River by Country
SELECT c.country_name,
IF(MAX(p.elevation) IS NOT NULL, MAX(p.elevation),NULL)
AS highest_peak_elevation,
IF(MAX(r.length) IS NOT NULL, MAX(r.length),NULL)
AS longest_river_length
FROM countries as c
JOIN mountains_countries as mc
ON c.country_code = mc.country_code
JOIN peaks as p
ON p.mountain_id = mc.mountain_id
JOIN countries_rivers as rc
ON c.country_code = rc.country_code
JOIN rivers as r
ON r.id = rc.river_id
GROUP by c.country_name
ORDER BY highest_peak_elevation DESC, longest_river_length DESC, c.country_name
LIMIT 5;
|
CREATE TABLE `nota` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tanggal` date DEFAULT NULL,
`nomor` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `nota_detail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idnota` int(11) DEFAULT NULL,
`karyawanid` int(11) DEFAULT NULL,
`biaya` float DEFAULT NULL,
`qty` float DEFAULT NULL,
`subtotal` float DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 03, 2022 at 08:14 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
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: `reportal`
--
-- --------------------------------------------------------
--
-- Table structure for table `archives`
--
CREATE TABLE `archives` (
`id` bigint(20) UNSIGNED NOT NULL,
`service_id` bigint(20) UNSIGNED NOT NULL,
`form_id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`filename` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`original_filename` varchar(255) 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;
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
CREATE TABLE `departments` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) 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 `departments`
--
INSERT INTO `departments` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Department of Arts and Sciences', '2022-03-03 01:27:29', '2022-03-03 01:27:29'),
(2, 'Department of Industrial Technology', '2022-03-03 01:27:29', '2022-03-03 01:27:29'),
(3, 'Department of Management Studies', '2022-03-03 01:27:29', '2022-03-03 01:27:29'),
(4, 'Department of Computer Studies', '2022-03-03 01:27:29', '2022-03-03 01:27:29'),
(5, 'Department of Teacher Education', '2022-03-03 01:27:29', '2022-03-03 01:27:29'),
(6, 'Department of Engineering', '2022-03-03 01:27:29', '2022-03-03 01:27:29'),
(7, 'Laboratory Science High School', '2022-03-03 01:27:29', '2022-03-03 01:27:29'),
(8, 'Not Applicable', '2022-03-03 01:27:29', '2022-03-03 01:27:29');
-- --------------------------------------------------------
--
-- 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 `forms`
--
CREATE TABLE `forms` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`filename` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`original_filename` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`downloadable` tinyint(1) 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 `forms`
--
INSERT INTO `forms` (`id`, `name`, `filename`, `original_filename`, `downloadable`, `created_at`, `updated_at`) VALUES
(1, 'Research Proposal (Program)', 'CCAT-RSF-01.docx', 'CCAT-RSF-01.docx', 0, '2022-03-03 01:59:35', '2022-03-03 02:05:35'),
(2, 'Research proposal (Project)', 'CCAT-RSF-02.docx', 'CCAT-RSF-02.docx', 1, '2022-03-03 02:06:08', '2022-03-03 02:06:08'),
(3, 'Research Proposal Pre-Evaluation Form', 'CCAT-RSF-03.docx', 'CCAT-RSF-03.docx', 1, '2022-03-03 02:06:30', '2022-03-03 02:06:30'),
(4, 'Research Proposal Evaluation Form', 'CCAT-RSF-04.docx', 'CCAT-RSF-04.docx', 1, '2022-03-03 02:06:46', '2022-03-03 02:06:46'),
(5, 'Special Order (RSF)', 'CCAT-RSF-05.docx', 'CCAT-RSF-05.docx', 1, '2022-03-03 02:07:00', '2022-03-03 03:03:40'),
(6, 'Contract (RSF)', 'CCAT-RSF-06.docx', 'CCAT-RSF-06.docx', 1, '2022-03-03 02:07:19', '2022-03-03 03:04:30'),
(7, 'Contract for Thesis Dissert Grant', 'CCAT-RSF-07.docx', 'CCAT-RSF-07.docx', 1, '2022-03-03 02:07:38', '2022-03-03 02:07:38'),
(8, 'Extension Project Proposal', 'CCAT-ESF-01.docx', 'CCAT-ESF-01.docx', 1, '2022-03-03 02:07:54', '2022-03-03 02:07:54'),
(9, 'Training Proposal', 'CCAT-ESF-02.docx', 'CCAT-ESF-02.docx', 1, '2022-03-03 02:08:19', '2022-03-03 02:08:19'),
(10, 'Extension Proposal Pre-Evaluation Form', 'CCAT-ESF-03.docx', 'CCAT-ESF-03.docx', 1, '2022-03-03 02:08:37', '2022-03-03 02:08:37'),
(11, 'Extension Proposal Evaluation Form', 'CCAT-ESF-04.docx', 'CCAT-ESF-04.docx', 1, '2022-03-03 02:09:00', '2022-03-03 02:09:00'),
(12, 'Livelihood Training Evaluation Form', 'CCAT-ESF-05.docx', 'CCAT-ESF-05.docx', 1, '2022-03-03 02:09:17', '2022-03-03 02:09:17'),
(13, 'Seminar Training Proceedings', 'CCAT-ESF-06.docx', 'CCAT-ESF-06.docx', 1, '2022-03-03 02:09:42', '2022-03-03 02:09:42'),
(14, 'Resource Person Evaluation Form', 'CCAT-ESF-07.docx', 'CCAT-ESF-07.docx', 1, '2022-03-03 02:09:54', '2022-03-03 02:09:54'),
(15, 'Technical Training Evaluation Form', 'CCAT-ESF-08.docx', 'CCAT-ESF-08.docx', 1, '2022-03-03 02:10:06', '2022-03-03 02:10:06'),
(16, 'Monitoring and Evaluation Report Form', 'CCAT-ESF-09.docx', 'CCAT-ESF-09.docx', 1, '2022-03-03 02:10:18', '2022-03-03 02:10:18'),
(17, 'Contract (ESF)', 'CCAT-ESF-10.docx', 'CCAT-ESF-10.docx', 1, '2022-03-03 02:11:02', '2022-03-03 03:04:04'),
(18, 'Special Order (ESF)', 'CCAT-ESF-11.docx', 'CCAT-ESF-11.docx', 1, '2022-03-03 02:11:25', '2022-03-03 03:04:10'),
(19, 'Client Request Form', 'CCAT-GRE-01.docx', 'CCAT-GRE-01.docx', 1, '2022-03-03 02:12:04', '2022-03-03 02:12:04'),
(20, 'Stakeholders Feedback Form', 'CCAT-GRE-02.docx', 'CCAT-GRE-02.docx', 1, '2022-03-03 02:12:17', '2022-03-03 02:12:17'),
(21, 'Certificate of Workload Credits', 'CCAT-GRE-03.docx', 'CCAT-GRE-03.docx', 1, '2022-03-03 02:12:28', '2022-03-03 02:12:28'),
(22, 'Evaluation Form for Faculty Researchers', 'CCAT-GRE-04.docx', 'CCAT-GRE-04.docx', 1, '2022-03-03 02:12:46', '2022-03-03 02:12:46'),
(23, 'Recommendation for Faculty Researchers', 'CCAT-GRE-05.docx', 'CCAT-GRE-05.docx', 1, '2022-03-03 02:13:27', '2022-03-03 02:13:27'),
(24, 'Acknowledgement Receipt Form', 'CCAT-GRE-06.docx', 'CCAT-GRE-06.docx', 1, '2022-03-03 02:14:04', '2022-03-03 02:14:04'),
(25, 'Certificate of RE Accomplishments', 'CCAT-GRE-07.docx', 'CCAT-GRE-07.docx', 1, '2022-03-03 02:14:25', '2022-03-03 02:14:25'),
(26, 'Affidavit on Copyright Ownership (Waiver)', 'CCAT-IPF-01.docx', 'CCAT-IPF-01.docx', 1, '2022-03-03 02:14:55', '2022-03-03 02:14:55'),
(27, 'Invention Disclosure Form/ Technical description', 'CCAT-IPF-02.docx', 'CCAT-IPF-02.docx', 1, '2022-03-03 02:15:10', '2022-03-03 02:15:10'),
(28, 'Trademark Form', 'CCAT-IPF-03.docx', 'CCAT-IPF-03.docx', 1, '2022-03-03 02:15:30', '2022-03-03 02:15:30'),
(29, 'Disclaimer Form', 'CCAT-IPF-04.docx', 'CCAT-IPF-04.docx', 1, '2022-03-03 02:15:39', '2022-03-03 02:15:39'),
(30, 'Application Form for Publication Incentives', 'CCAT-MEQ-01.docx', 'CCAT-MEQ-01.docx', 1, '2022-03-03 02:16:11', '2022-03-03 02:16:11'),
(31, 'Evaluation form for Publication Incentives', 'CCAT-MEQ-02.docx', 'CCAT-MEQ-02.docx', 1, '2022-03-03 02:16:24', '2022-03-03 02:16:24'),
(32, 'Agency In-house Research Review Form', 'CCAT-MEQ-03.docx', 'CCAT-MEQ-03.docx', 1, '2022-03-03 02:16:34', '2022-03-03 02:16:34'),
(33, 'Agency In-house Extension Review Form', 'CCAT-MEQ-04.docx', 'CCAT-MEQ-04.docx', 1, '2022-03-03 02:16:44', '2022-03-03 02:16:44'),
(34, 'Quarterly Report Form (Research)', 'CCAT-MEQ-05.docx', 'CCAT-MEQ-05.docx', 1, '2022-03-03 02:16:55', '2022-03-03 02:16:55'),
(35, 'Quarterly Report Form (Extension)', 'CCAT-MEQ-06.docx', 'CCAT-MEQ-06.docx', 1, '2022-03-03 02:17:07', '2022-03-03 02:17:07'),
(36, 'Annual Report Form (Research)', 'CCAT-MEQ-07.docx', 'CCAT-MEQ-07.docx', 1, '2022-03-03 02:17:21', '2022-03-03 02:17:21'),
(37, 'Annual Report Form (Extension)', 'CCAT-MEQ-08.docx', 'CCAT-MEQ-08.docx', 1, '2022-03-03 02:17:30', '2022-03-03 02:17:30'),
(38, 'Terminal Report Format (Completed Research)', 'CCAT-MEQ-09.docx', 'CCAT-MEQ-09.docx', 1, '2022-03-03 02:17:39', '2022-03-03 02:17:39'),
(39, 'Terminal Report Format (Completed Extension)', 'CCAT-MEQ-10.docx', 'CCAT-MEQ-10.docx', 1, '2022-03-03 02:17:47', '2022-03-03 02:17:47'),
(40, 'On-site Monitoring Form', 'CCAT-MEQ-11.docx', 'CCAT-MEQ-11.docx', 1, '2022-03-03 02:17:58', '2022-03-03 02:17:58'),
(41, 'Financial Status Form', 'CCAT-MEQ-12.docx', 'CCAT-MEQ-12.docx', 1, '2022-03-03 02:18:07', '2022-03-03 02:18:07'),
(42, 'Article Contribution Format for NurtuRE', 'CCAT-MEQ-13.docx', 'CCAT-MEQ-13.docx', 1, '2022-03-03 02:18:16', '2022-03-03 02:18:16'),
(43, 'Monitoring Form for Articles', 'CCAT-MEQ-14.docx', 'CCAT-MEQ-14.docx', 1, '2022-03-03 02:18:31', '2022-03-03 02:18:31'),
(44, 'Monitoring Form for Newsletter', 'CCAT-MEQ-15.docx', 'CCAT-MEQ-15.docx', 1, '2022-03-03 02:18:38', '2022-03-03 02:18:38'),
(45, 'Transmittal for Article Submission for Rosarian Probe', 'CCAT-MEQ-16.docx', 'CCAT-MEQ-16.docx', 1, '2022-03-03 02:19:08', '2022-03-03 02:19:08'),
(46, 'Travel Report Form', 'CCAT-MEQ-17.docx', 'CCAT-MEQ-17.docx', 1, '2022-03-03 02:19:22', '2022-03-03 02:19:22'),
(47, 'Purchase Request Form (GAS)', 'CCAT-GRE-GAS-01.xlsx', 'CCAT-GRE-GAS-01.xlsx', 1, '2022-03-03 02:20:53', '2022-03-03 05:01:43'),
(48, 'Liquidation Report Form', 'CCAT-GRE-GAS-02.xlsx', 'CCAT-GRE-GAS-02.xlsx', 1, '2022-03-03 02:21:09', '2022-03-03 02:21:09'),
(49, 'Itinerary Travel Form', 'CCAT-GRE-GAS-03.xlsx', 'CCAT-GRE-GAS-03.xlsx', 1, '2022-03-03 02:21:32', '2022-03-03 02:21:32'),
(50, 'Certification of Travel Completed', 'CCAT-GRE-GAS-04.xlsx', 'CCAT-GRE-GAS-04.xlsx', 1, '2022-03-03 02:21:42', '2022-03-03 02:21:42'),
(51, 'Curriculum Vitae', NULL, NULL, 1, '2022-03-03 02:21:56', '2022-03-03 02:21:56'),
(52, 'Request letter for financial assistance to thesis...', NULL, NULL, 1, '2022-03-03 02:22:20', '2022-03-03 02:22:20'),
(53, 'Approved outline', NULL, NULL, 1, '2022-03-03 02:22:30', '2022-03-03 02:22:30'),
(54, 'Proof of approval of outline from the Graduate School', NULL, NULL, 1, '2022-03-03 02:22:46', '2022-03-03 02:22:46'),
(55, 'Proof of enrollment', NULL, NULL, 1, '2022-03-03 02:22:54', '2022-03-03 02:22:54'),
(56, 'Referendum to the R&E Council', NULL, NULL, 1, '2022-03-03 02:23:02', '2022-03-03 02:23:02'),
(57, 'Request letter to participate in the conference', NULL, NULL, 1, '2022-03-03 02:23:08', '2022-03-03 02:23:08'),
(58, 'Full paper', NULL, NULL, 1, '2022-03-03 02:23:13', '2022-03-03 02:23:13'),
(59, 'Notification of acceptance', NULL, NULL, 1, '2022-03-03 02:23:18', '2022-03-03 02:23:18'),
(60, 'Conference flyer', NULL, NULL, 1, '2022-03-03 02:23:23', '2022-03-03 02:23:23'),
(61, 'Program of Activities', NULL, NULL, 1, '2022-03-03 02:23:42', '2022-03-03 02:23:42'),
(62, 'CHED Endorsement (if available)', NULL, NULL, 1, '2022-03-03 02:23:48', '2022-03-03 02:23:48'),
(63, 'Letter invitation', NULL, NULL, 1, '2022-03-03 02:24:03', '2022-03-03 02:24:03'),
(64, 'Request letter to participate in the training cour..', NULL, NULL, 1, '2022-03-03 02:24:15', '2022-03-03 02:24:15'),
(65, 'Training program', NULL, NULL, 1, '2022-03-03 02:24:21', '2022-03-03 02:24:21'),
(66, 'Data set (for statistical analysis)', NULL, NULL, 1, '2022-03-03 02:24:33', '2022-03-03 02:24:33'),
(67, 'Research report(for plagiarism checking)', NULL, NULL, 1, '2022-03-03 02:24:38', '2022-03-03 02:24:38'),
(68, 'Curriculum vitae f project letter', NULL, NULL, 1, '2022-03-03 02:24:44', '2022-03-03 02:24:44'),
(69, 'Training evaluation form (seminar training)', NULL, NULL, 1, '2022-03-03 02:24:50', '2022-03-03 02:24:50'),
(70, 'Patent search report', NULL, NULL, 1, '2022-03-03 02:25:33', '2022-03-03 02:25:33'),
(71, 'Manuscript', NULL, NULL, 1, '2022-03-03 02:25:44', '2022-03-03 02:25:44'),
(72, 'Technical description of the trademark', NULL, NULL, 1, '2022-03-03 02:25:57', '2022-03-03 02:25:57'),
(73, 'Printed journal article', NULL, NULL, 1, '2022-03-03 02:26:03', '2022-03-03 02:26:03'),
(74, 'Purchase Request Form', NULL, NULL, 1, '2022-03-03 02:26:09', '2022-03-03 02:26:09'),
(75, 'Visitors log sheet', NULL, NULL, 1, '2022-03-03 02:26:14', '2022-03-03 02:26:14'),
(76, 'Health declaration form', NULL, NULL, 1, '2022-03-03 02:26:23', '2022-03-03 02:26:23'),
(77, 'Request letter for study visit', NULL, NULL, 1, '2022-03-03 02:26:28', '2022-03-03 02:26:28'),
(78, 'Faculty workload form', NULL, NULL, 1, '2022-03-03 02:26:33', '2022-03-03 02:26:33'),
(79, 'Individual performance commitment and review form ...', NULL, NULL, 1, '2022-03-03 02:26:40', '2022-03-03 02:26:40'),
(80, 'Other supporting documents', NULL, NULL, 1, '2022-03-03 02:26:46', '2022-03-03 02:26:46'),
(81, 'Letter of Request', NULL, NULL, 1, '2022-03-03 02:26:51', '2022-03-03 02:26:51'),
(82, 'Letter of information', NULL, NULL, 1, '2022-03-03 02:26:57', '2022-03-03 02:26:57'),
(83, 'Certificate of Technology Utilization', NULL, NULL, 1, '2022-03-03 02:27:03', '2022-03-03 02:27:03'),
(84, 'Application for Faculty Researcher', NULL, NULL, 1, '2022-03-03 02:27:10', '2022-03-03 02:27:10'),
(85, 'Memorandum of Agreement', NULL, NULL, 1, '2022-03-03 02:27:15', '2022-03-03 02:27:15'),
(86, 'Extension Proceedings', NULL, NULL, 1, '2022-03-03 02:27:28', '2022-03-03 02:27:28'),
(87, 'Detailed Project Workplan', 'CCAT-RSF-Detailed-Project-Workplan.docx', 'CCAT-RSF-Detailed-Project-Workplan.docx', 1, '2022-03-03 02:30:17', '2022-03-03 02:30:17'),
(88, 'Project Line Item Budget', 'CCAT-RSF-Project-Line-Item-Budget.xlsx', 'CCAT-RSF-Project-Line-Item-Budget.xlsx', 1, '2022-03-03 02:30:42', '2022-03-03 02:30:42'),
(89, 'Copy of the table of contents bearing the title of the article and name of the author(s)', NULL, NULL, 1, '2022-03-03 02:31:15', '2022-03-03 02:32:35'),
(90, 'Copy of the article published (Note: The name of Cavite State University must be indicated in the article i.e. CvSU appears under the author(s) name)', NULL, NULL, 1, '2022-03-03 02:32:44', '2022-03-03 02:32:44'),
(91, 'Certificate/Letter of Acceptance for publication', NULL, NULL, 1, '2022-03-03 02:32:50', '2022-03-03 02:32:50'),
(92, 'Comments/suggestions of the reviewer or any proof that a peer-reviewed process took place.', NULL, NULL, 1, '2022-03-03 02:32:56', '2022-03-03 02:32:56'),
(93, 'Application for Participation in Research Conference as Paper Presenter', NULL, NULL, 1, '2022-03-03 02:33:11', '2022-03-03 02:33:11'),
(94, 'Various Communications', NULL, NULL, 1, '2022-03-03 02:33:17', '2022-03-03 02:33:17'),
(95, 'Purchase Request', NULL, NULL, 1, '2022-03-03 02:33:22', '2022-03-03 02:33:22'),
(96, 'Project Proposal', NULL, NULL, 1, '2022-03-03 02:33:27', '2022-03-03 02:33:27'),
(97, 'PPMP', NULL, NULL, 1, '2022-03-03 02:33:40', '2022-03-03 02:33:40'),
(98, 'HGDG Checklist', 'CCAT-RSF-HGDG-Box-7.docx', 'CCAT-RSF-HGDG-Box-7.docx', 1, '2022-03-03 02:33:51', '2022-03-03 02:33:51');
-- --------------------------------------------------------
--
-- Table structure for table `inboxes`
--
CREATE TABLE `inboxes` (
`id` bigint(20) UNSIGNED NOT NULL,
`reference_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`transaction_id` bigint(20) UNSIGNED NOT NULL,
`status_id` bigint(20) UNSIGNED NOT NULL,
`deadline` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`service_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `linkages`
--
CREATE TABLE `linkages` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`link` varchar(255) 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;
-- --------------------------------------------------------
--
-- Table structure for table `messages`
--
CREATE TABLE `messages` (
`id` bigint(20) UNSIGNED NOT NULL,
`inbox_id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`message` text 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;
-- --------------------------------------------------------
--
-- Table structure for table `message_files`
--
CREATE TABLE `message_files` (
`id` bigint(20) UNSIGNED NOT NULL,
`message_id` bigint(20) UNSIGNED NOT NULL,
`filename` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`original_filename` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`form_id` bigint(20) UNSIGNED 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 `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, '2014_10_12_100000_create_password_resets_table', 1),
(2, '2019_08_19_000000_create_failed_jobs_table', 1),
(3, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(4, '2022_02_02_010737_create_team_members_table', 1),
(5, '2022_02_02_015039_create_testimonials_table', 1),
(6, '2022_02_02_023245_create_linkages_table', 1),
(7, '2022_02_02_053419_create_departments_table', 1),
(8, '2022_02_02_053706_create_positions_table', 1),
(9, '2022_02_02_053707_create_users_table', 1),
(10, '2022_02_02_054827_create_forms_table', 1),
(11, '2022_02_02_055223_create_services_table', 1),
(12, '2022_02_02_055316_create_transactions_table', 1),
(13, '2022_02_02_055726_create_transaction_forms_table', 1),
(14, '2022_02_02_055826_create_statuses_table', 1),
(15, '2022_02_02_055902_create_transaction_statuses_table', 1),
(16, '2022_02_02_060106_create_inboxes_table', 1),
(17, '2022_02_02_060107_create_messages_table', 1),
(18, '2022_02_02_060410_create_message_files_table', 1),
(19, '2022_02_16_010547_create_archives_table', 1);
-- --------------------------------------------------------
--
-- 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 `positions`
--
CREATE TABLE `positions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) 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 `positions`
--
INSERT INTO `positions` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Chairperson', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(2, 'Coordinator Extension Services', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(3, 'Coordinator Linkages and Partnerships', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(4, 'Coordinator M&E and Quality Assurance', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(5, 'Coordinator Research and Services', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(6, 'Director', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(7, 'Director, Research and Extension', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(8, 'Faculty', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(9, 'ODRE Staff', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(10, 'Staff', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(11, 'Student', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(12, 'Unit Research Coordinator', '2022-03-03 01:29:07', '2022-03-03 01:29:07'),
(13, 'Unit Extension Coordinator', '2022-03-03 01:29:07', '2022-03-03 01:29:07');
-- --------------------------------------------------------
--
-- Table structure for table `services`
--
CREATE TABLE `services` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) 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 `services`
--
INSERT INTO `services` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Research Services', '2022-03-03 01:30:12', '2022-03-03 01:30:12'),
(2, 'Extension Services', '2022-03-03 01:30:12', '2022-03-03 01:30:12'),
(3, 'Intellectual Property Management', '2022-03-03 01:30:12', '2022-03-03 01:30:12'),
(4, 'Monitoring, Evaluation, and Quality Assurance', '2022-03-03 01:30:12', '2022-03-03 01:30:12'),
(5, 'Linkages and Partnerships', '2022-03-03 01:30:12', '2022-03-03 01:30:12'),
(6, 'Other Administrative and Support Services', '2022-03-03 01:30:12', '2022-03-03 01:30:12');
-- --------------------------------------------------------
--
-- Table structure for table `statuses`
--
CREATE TABLE `statuses` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) 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 `statuses`
--
INSERT INTO `statuses` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Pending', '2022-03-03 01:31:15', '2022-03-03 01:31:15'),
(2, 'Under Review', '2022-03-03 01:31:15', '2022-03-03 01:31:15'),
(3, 'Approved', '2022-03-03 01:31:15', '2022-03-03 01:31:15'),
(4, 'Disapproved', '2022-03-03 01:31:15', '2022-03-03 01:31:15'),
(5, 'Acknowledged', '2022-03-03 01:31:15', '2022-03-03 01:31:15'),
(6, 'Check the status or feedback on email', '2022-03-03 01:31:15', '2022-03-03 01:31:15'),
(7, 'Recorded', '2022-03-03 01:31:15', '2022-03-03 01:31:15'),
(8, 'Archived', '2022-03-03 01:31:15', '2022-03-03 01:31:15');
-- --------------------------------------------------------
--
-- Table structure for table `team_members`
--
CREATE TABLE `team_members` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`designation` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) 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;
-- --------------------------------------------------------
--
-- Table structure for table `testimonials`
--
CREATE TABLE `testimonials` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`position` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`comment` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`rating` int(11) NOT NULL,
`sex` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`display` tinyint(1) NOT 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 `transactions`
--
CREATE TABLE `transactions` (
`id` bigint(20) UNSIGNED NOT NULL,
`service_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`count` int(11) NOT NULL,
`who_may_avail` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`processing_time` varchar(255) 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 `transactions`
--
INSERT INTO `transactions` (`id`, `service_id`, `name`, `key`, `count`, `who_may_avail`, `processing_time`, `created_at`, `updated_at`) VALUES
(1, 1, 'Application for Funding of Research Proposals', 'RSA', 0, 'All faculty members', '25', '2022-03-03 03:07:06', '2022-03-03 03:07:06'),
(2, 1, 'Application for Financial Assistance to Thesis and/or Dissertation', 'RSB', 0, 'All permanent, temporary, and contractual faculty members', '20', '2022-03-03 03:12:17', '2022-03-03 03:12:17'),
(3, 1, 'Request for Participation in Research Conference (Local and International as Paper Presenter)', 'RSC', 0, 'All permanent, temporary, and contractual faculty members', '3', '2022-03-03 03:15:04', '2022-03-03 03:15:04'),
(4, 1, 'Request for Participation in Local Seminars, Workshops, and Trainings', 'RSD', 0, 'All permanent, temporary, and contractual faculty members', '3', '2022-03-03 03:17:07', '2022-03-03 03:17:07'),
(5, 1, 'Request for Participation in Reputable and High Impact Conferences (as Presenter or Speaker)', 'RSE', 0, 'All permanent, temporary, and contractual faculty members', '3', '2022-03-03 03:20:10', '2022-03-03 03:20:10'),
(6, 1, 'Request for Participation in Advanced Trainings and Short Courses', 'RSF', 0, 'All permanent, temporary, and contractual faculty members', '3', '2022-03-03 03:25:24', '2022-03-03 03:25:24'),
(7, 1, 'Request for the Assistance in Statistical Analysis, Plagiarism Check, and Use of Equipment and Facilities', 'RSG', 0, 'All faculty members and students', '25', '2022-03-03 03:28:14', '2022-03-03 03:28:14'),
(8, 1, 'Request for the Certification of Research Accomplishments', 'RSH', 0, 'All faculty members', 'today', '2022-03-03 03:34:15', '2022-03-03 03:34:15'),
(9, 2, 'Application for Funding of Extension Proposals', 'ESA', 0, 'All faculty members', '25', '2022-03-03 03:37:13', '2022-03-03 03:37:13'),
(10, 2, 'Request for the Conduct of Seminars and Trainings', 'ESB', 0, 'All faculty members', '5', '2022-03-03 03:40:19', '2022-03-03 03:40:19'),
(11, 2, 'Request for the Certification of Extension Accomplishments', 'ESC', 0, 'All faculty members', 'today', '2022-03-03 03:42:31', '2022-03-03 03:42:31'),
(12, 2, 'Request for Technical Advisory Services or Other Technical Assistance', 'ESD', 0, 'All clients from government and private agencies', '5', '2022-03-03 03:44:13', '2022-03-03 03:44:13'),
(13, 3, 'Application for Copyright', 'IPA', 0, 'All faculty members, staff, and students', '90', '2022-03-03 04:36:01', '2022-03-03 04:36:01'),
(14, 3, 'Application for Patent and Registration of Utility Models', 'IPB', 0, 'All faculty members, staff, and students', '720', '2022-03-03 04:38:21', '2022-03-03 04:38:21'),
(15, 3, 'Application for Trademark Registration', 'IPC', 0, 'All faculty members, staff, and students', '30', '2022-03-03 04:39:58', '2022-03-03 04:39:58'),
(16, 3, 'Request for Research-related and Extension-related Information', 'IPD', 0, 'All internal and external stakeholders from government, non-government, and private agencies', '3', '2022-03-03 04:41:37', '2022-03-03 04:41:37'),
(17, 4, 'Application for Monetary Incentives for Publication of the Faculty and Staff in Peer-reviewed and Refereed Journals', 'MEA', 0, 'All faculty members and staff', '3', '2022-03-03 04:44:31', '2022-03-03 04:44:31'),
(18, 4, 'Implementation, Monitoring, and Evaluation of Externally-funded Researches', 'MEB', 0, 'All faculty members and staff', '10', '2022-03-03 04:46:15', '2022-03-03 04:46:15'),
(19, 4, 'Implementation, Monitoring, and Evaluation of Locally-funded Researches', 'MEC', 0, 'All faculty members and staff', '10', '2022-03-03 04:48:38', '2022-03-03 04:48:38'),
(20, 4, 'Publication of News Articles in the NurtuRE, the Official Newsletter of CvSU-CCAT Research and Extension', 'MED', 0, 'All faculty members and staff', '5', '2022-03-03 04:50:12', '2022-03-03 04:50:12'),
(21, 4, 'Publication of Research Articles in the Rosarian Probe, the Official Research Journal of CvSU-CCAT Research and Extension', 'MEE', 0, 'All faculty members and students', '35', '2022-03-03 04:52:10', '2022-03-03 04:52:10'),
(22, 4, 'Monitoring of Research and Extension-related Travels and Official Businesses', 'MEF', 0, 'All faculty members and staff', 'tomorrow', '2022-03-03 04:55:32', '2022-03-03 04:55:32'),
(23, 6, 'Management of Documents and Communications', 'ASA', 0, 'All clients from government, non-government, and private agencies', 'today', '2022-03-03 04:57:19', '2022-03-03 04:57:19'),
(24, 6, 'Request for Supplies and Materials and Other Procurement Items for Research and Extension-related Activities', 'ASB', 0, 'All faculty members and staff', 'tomorrow', '2022-03-03 05:02:32', '2022-03-03 05:02:32'),
(25, 6, 'Accommodation of Internal and External Visitors', 'ASC', 0, 'All clients from government, non-government, and private agencies', 'today', '2022-03-03 05:03:41', '2022-03-03 05:03:41'),
(26, 6, 'Request for Study Visits', 'ASD', 0, 'All clients from external agencies', '3', '2022-03-03 05:05:52', '2022-03-03 05:05:52'),
(27, 6, 'Validation of Research and Extension Accomplishments for the Granting of Workload Credits', 'ASE', 0, 'All faculty members', '2', '2022-03-03 05:08:11', '2022-03-03 05:08:11'),
(28, 6, 'Application for Faculty Researcher', 'ASF', 0, 'All faculty members', '15', '2022-03-03 05:11:37', '2022-03-03 05:11:37');
-- --------------------------------------------------------
--
-- Table structure for table `transaction_forms`
--
CREATE TABLE `transaction_forms` (
`id` bigint(20) UNSIGNED NOT NULL,
`transaction_id` bigint(20) UNSIGNED NOT NULL,
`form_id` bigint(20) UNSIGNED 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 `transaction_forms`
--
INSERT INTO `transaction_forms` (`id`, `transaction_id`, `form_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, NULL),
(2, 1, 2, NULL, NULL),
(3, 1, 51, NULL, NULL),
(4, 1, 24, NULL, NULL),
(5, 1, 3, NULL, NULL),
(6, 1, 4, NULL, NULL),
(7, 1, 6, NULL, NULL),
(8, 1, 5, NULL, NULL),
(9, 1, 87, NULL, NULL),
(10, 1, 88, NULL, NULL),
(11, 2, 52, NULL, NULL),
(12, 2, 53, NULL, NULL),
(13, 2, 54, NULL, NULL),
(14, 2, 55, NULL, NULL),
(15, 2, 24, NULL, NULL),
(16, 2, 56, NULL, NULL),
(17, 2, 4, NULL, NULL),
(18, 2, 6, NULL, NULL),
(19, 3, 57, NULL, NULL),
(20, 3, 49, NULL, NULL),
(21, 3, 58, NULL, NULL),
(22, 3, 24, NULL, NULL),
(23, 3, 59, NULL, NULL),
(24, 3, 60, NULL, NULL),
(25, 4, 57, NULL, NULL),
(26, 4, 49, NULL, NULL),
(27, 4, 24, NULL, NULL),
(28, 4, 59, NULL, NULL),
(29, 4, 61, NULL, NULL),
(30, 4, 62, NULL, NULL),
(31, 5, 57, NULL, NULL),
(32, 5, 49, NULL, NULL),
(33, 5, 63, NULL, NULL),
(34, 5, 24, NULL, NULL),
(35, 5, 61, NULL, NULL),
(36, 5, 62, NULL, NULL),
(37, 6, 64, NULL, NULL),
(38, 6, 49, NULL, NULL),
(39, 6, 59, NULL, NULL),
(40, 6, 24, NULL, NULL),
(41, 6, 65, NULL, NULL),
(42, 6, 62, NULL, NULL),
(43, 7, 19, NULL, NULL),
(44, 7, 20, NULL, NULL),
(45, 7, 66, NULL, NULL),
(46, 7, 67, NULL, NULL),
(47, 8, 19, NULL, NULL),
(48, 8, 24, NULL, NULL),
(49, 8, 25, NULL, NULL),
(50, 8, 20, NULL, NULL),
(51, 9, 8, NULL, NULL),
(52, 9, 9, NULL, NULL),
(53, 9, 24, NULL, NULL),
(54, 9, 10, NULL, NULL),
(55, 9, 11, NULL, NULL),
(56, 9, 17, NULL, NULL),
(57, 9, 18, NULL, NULL),
(58, 9, 68, NULL, NULL),
(59, 10, 9, NULL, NULL),
(60, 10, 24, NULL, NULL),
(61, 10, 12, NULL, NULL),
(62, 10, 15, NULL, NULL),
(63, 10, 69, NULL, NULL),
(64, 10, 13, NULL, NULL),
(65, 11, 19, NULL, NULL),
(66, 11, 24, NULL, NULL),
(67, 11, 25, NULL, NULL),
(68, 11, 20, NULL, NULL),
(69, 12, 19, NULL, NULL),
(70, 12, 24, NULL, NULL),
(71, 12, 20, NULL, NULL),
(72, 13, 24, NULL, NULL),
(73, 13, 26, NULL, NULL),
(74, 13, 27, NULL, NULL),
(75, 14, 24, NULL, NULL),
(76, 14, 26, NULL, NULL),
(77, 14, 27, NULL, NULL),
(78, 14, 71, NULL, NULL),
(79, 15, 24, NULL, NULL),
(80, 15, 28, NULL, NULL),
(81, 15, 29, NULL, NULL),
(82, 15, 72, NULL, NULL),
(83, 16, 19, NULL, NULL),
(84, 16, 24, NULL, NULL),
(85, 16, 20, NULL, NULL),
(86, 17, 30, NULL, NULL),
(87, 17, 24, NULL, NULL),
(88, 17, 31, NULL, NULL),
(89, 17, 73, NULL, NULL),
(90, 18, 24, NULL, NULL),
(91, 18, 32, NULL, NULL),
(92, 19, 24, NULL, NULL),
(93, 19, 32, NULL, NULL),
(94, 19, 34, NULL, NULL),
(95, 19, 36, NULL, NULL),
(96, 19, 41, NULL, NULL),
(97, 19, 40, NULL, NULL),
(98, 20, 24, NULL, NULL),
(99, 20, 42, NULL, NULL),
(100, 20, 43, NULL, NULL),
(101, 20, 44, NULL, NULL),
(102, 21, 24, NULL, NULL),
(103, 21, 45, NULL, NULL),
(104, 22, 24, NULL, NULL),
(105, 22, 46, NULL, NULL),
(106, 23, 24, NULL, NULL),
(107, 24, 24, NULL, NULL),
(108, 24, 47, NULL, NULL),
(109, 25, 75, NULL, NULL),
(110, 25, 76, NULL, NULL),
(111, 25, 20, NULL, NULL),
(112, 26, 24, NULL, NULL),
(113, 26, 75, NULL, NULL),
(114, 26, 76, NULL, NULL),
(115, 26, 20, NULL, NULL),
(116, 26, 77, NULL, NULL),
(117, 27, 24, NULL, NULL),
(118, 27, 21, NULL, NULL),
(119, 27, 78, NULL, NULL),
(120, 27, 79, NULL, NULL),
(121, 27, 80, NULL, NULL),
(122, 28, 24, NULL, NULL),
(123, 28, 22, NULL, NULL),
(124, 28, 80, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `transaction_statuses`
--
CREATE TABLE `transaction_statuses` (
`id` bigint(20) UNSIGNED NOT NULL,
`transaction_id` bigint(20) UNSIGNED NOT NULL,
`status_id` bigint(20) UNSIGNED 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 `transaction_statuses`
--
INSERT INTO `transaction_statuses` (`id`, `transaction_id`, `status_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, NULL),
(2, 1, 2, NULL, NULL),
(3, 1, 3, NULL, NULL),
(4, 1, 4, NULL, NULL),
(5, 1, 5, NULL, NULL),
(6, 2, 1, NULL, NULL),
(7, 2, 2, NULL, NULL),
(8, 2, 3, NULL, NULL),
(9, 2, 4, NULL, NULL),
(10, 2, 5, NULL, NULL),
(11, 3, 1, NULL, NULL),
(12, 3, 3, NULL, NULL),
(13, 3, 4, NULL, NULL),
(14, 3, 5, NULL, NULL),
(15, 4, 1, NULL, NULL),
(16, 4, 3, NULL, NULL),
(17, 4, 4, NULL, NULL),
(18, 4, 5, NULL, NULL),
(19, 5, 1, NULL, NULL),
(20, 5, 3, NULL, NULL),
(21, 5, 4, NULL, NULL),
(22, 5, 5, NULL, NULL),
(23, 6, 1, NULL, NULL),
(24, 6, 3, NULL, NULL),
(25, 6, 4, NULL, NULL),
(26, 7, 1, NULL, NULL),
(27, 7, 5, NULL, NULL),
(28, 7, 6, NULL, NULL),
(29, 8, 1, NULL, NULL),
(30, 8, 5, NULL, NULL),
(31, 9, 1, NULL, NULL),
(32, 9, 2, NULL, NULL),
(33, 9, 3, NULL, NULL),
(34, 9, 4, NULL, NULL),
(35, 9, 5, NULL, NULL),
(36, 10, 1, NULL, NULL),
(37, 10, 2, NULL, NULL),
(38, 10, 3, NULL, NULL),
(39, 10, 4, NULL, NULL),
(40, 10, 5, NULL, NULL),
(41, 11, 1, NULL, NULL),
(42, 11, 5, NULL, NULL),
(43, 12, 1, NULL, NULL),
(44, 12, 3, NULL, NULL),
(45, 12, 4, NULL, NULL),
(46, 12, 5, NULL, NULL),
(47, 13, 1, NULL, NULL),
(48, 13, 2, NULL, NULL),
(49, 13, 3, NULL, NULL),
(50, 13, 4, NULL, NULL),
(51, 13, 5, NULL, NULL),
(52, 14, 1, NULL, NULL),
(53, 14, 2, NULL, NULL),
(54, 14, 3, NULL, NULL),
(55, 14, 4, NULL, NULL),
(56, 14, 5, NULL, NULL),
(57, 15, 1, NULL, NULL),
(58, 15, 2, NULL, NULL),
(59, 15, 3, NULL, NULL),
(60, 15, 4, NULL, NULL),
(61, 15, 5, NULL, NULL),
(62, 16, 1, NULL, NULL),
(63, 16, 5, NULL, NULL),
(64, 16, 6, NULL, NULL),
(65, 17, 1, NULL, NULL),
(66, 17, 2, NULL, NULL),
(67, 17, 3, NULL, NULL),
(68, 17, 4, NULL, NULL),
(69, 17, 5, NULL, NULL),
(70, 18, 1, NULL, NULL),
(71, 18, 5, NULL, NULL),
(72, 18, 7, NULL, NULL),
(73, 19, 1, NULL, NULL),
(74, 19, 5, NULL, NULL),
(75, 20, 1, NULL, NULL),
(76, 20, 5, NULL, NULL),
(77, 21, 1, NULL, NULL),
(78, 21, 5, NULL, NULL),
(79, 22, 1, NULL, NULL),
(80, 22, 5, NULL, NULL),
(81, 23, 1, NULL, NULL),
(82, 23, 5, NULL, NULL),
(83, 24, 1, NULL, NULL),
(84, 24, 5, NULL, NULL),
(85, 25, 1, NULL, NULL),
(86, 25, 5, NULL, NULL),
(87, 26, 1, NULL, NULL),
(88, 26, 5, NULL, NULL),
(89, 27, 1, NULL, NULL),
(90, 27, 5, NULL, NULL),
(91, 28, 1, NULL, NULL),
(92, 28, 5, NULL, NULL),
(93, 28, 2, NULL, NULL),
(94, 28, 3, NULL, NULL),
(95, 28, 4, 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,
`employee_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`position_id` bigint(20) UNSIGNED NOT NULL,
`department_id` bigint(20) UNSIGNED NOT NULL,
`role` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` tinyint(1) 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 `archives`
--
ALTER TABLE `archives`
ADD PRIMARY KEY (`id`),
ADD KEY `archives_service_id_foreign` (`service_id`),
ADD KEY `archives_form_id_foreign` (`form_id`),
ADD KEY `archives_user_id_foreign` (`user_id`);
--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
ADD PRIMARY KEY (`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 `forms`
--
ALTER TABLE `forms`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `inboxes`
--
ALTER TABLE `inboxes`
ADD PRIMARY KEY (`id`),
ADD KEY `inboxes_user_id_foreign` (`user_id`),
ADD KEY `inboxes_transaction_id_foreign` (`transaction_id`),
ADD KEY `inboxes_status_id_foreign` (`status_id`);
--
-- Indexes for table `linkages`
--
ALTER TABLE `linkages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `messages`
--
ALTER TABLE `messages`
ADD PRIMARY KEY (`id`),
ADD KEY `messages_inbox_id_foreign` (`inbox_id`),
ADD KEY `messages_user_id_foreign` (`user_id`);
--
-- Indexes for table `message_files`
--
ALTER TABLE `message_files`
ADD PRIMARY KEY (`id`),
ADD KEY `message_files_message_id_foreign` (`message_id`),
ADD KEY `message_files_form_id_foreign` (`form_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
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 `positions`
--
ALTER TABLE `positions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `services`
--
ALTER TABLE `services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `statuses`
--
ALTER TABLE `statuses`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `team_members`
--
ALTER TABLE `team_members`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `team_members_email_unique` (`email`);
--
-- Indexes for table `testimonials`
--
ALTER TABLE `testimonials`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
ADD PRIMARY KEY (`id`),
ADD KEY `transactions_service_id_foreign` (`service_id`);
--
-- Indexes for table `transaction_forms`
--
ALTER TABLE `transaction_forms`
ADD PRIMARY KEY (`id`),
ADD KEY `transaction_forms_transaction_id_foreign` (`transaction_id`),
ADD KEY `transaction_forms_form_id_foreign` (`form_id`);
--
-- Indexes for table `transaction_statuses`
--
ALTER TABLE `transaction_statuses`
ADD PRIMARY KEY (`id`),
ADD KEY `transaction_statuses_transaction_id_foreign` (`transaction_id`),
ADD KEY `transaction_statuses_status_id_foreign` (`status_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`),
ADD KEY `users_position_id_foreign` (`position_id`),
ADD KEY `users_department_id_foreign` (`department_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `archives`
--
ALTER TABLE `archives`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `forms`
--
ALTER TABLE `forms`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=99;
--
-- AUTO_INCREMENT for table `inboxes`
--
ALTER TABLE `inboxes`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `linkages`
--
ALTER TABLE `linkages`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `messages`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `message_files`
--
ALTER TABLE `message_files`
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=20;
--
-- 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 `positions`
--
ALTER TABLE `positions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `services`
--
ALTER TABLE `services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `statuses`
--
ALTER TABLE `statuses`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `team_members`
--
ALTER TABLE `team_members`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `testimonials`
--
ALTER TABLE `testimonials`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `transactions`
--
ALTER TABLE `transactions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT for table `transaction_forms`
--
ALTER TABLE `transaction_forms`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=125;
--
-- AUTO_INCREMENT for table `transaction_statuses`
--
ALTER TABLE `transaction_statuses`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=96;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `archives`
--
ALTER TABLE `archives`
ADD CONSTRAINT `archives_form_id_foreign` FOREIGN KEY (`form_id`) REFERENCES `forms` (`id`),
ADD CONSTRAINT `archives_service_id_foreign` FOREIGN KEY (`service_id`) REFERENCES `services` (`id`),
ADD CONSTRAINT `archives_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `inboxes`
--
ALTER TABLE `inboxes`
ADD CONSTRAINT `inboxes_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`),
ADD CONSTRAINT `inboxes_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`),
ADD CONSTRAINT `inboxes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `messages`
--
ALTER TABLE `messages`
ADD CONSTRAINT `messages_inbox_id_foreign` FOREIGN KEY (`inbox_id`) REFERENCES `inboxes` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `messages_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `message_files`
--
ALTER TABLE `message_files`
ADD CONSTRAINT `message_files_form_id_foreign` FOREIGN KEY (`form_id`) REFERENCES `forms` (`id`),
ADD CONSTRAINT `message_files_message_id_foreign` FOREIGN KEY (`message_id`) REFERENCES `messages` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `transactions`
--
ALTER TABLE `transactions`
ADD CONSTRAINT `transactions_service_id_foreign` FOREIGN KEY (`service_id`) REFERENCES `services` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `transaction_forms`
--
ALTER TABLE `transaction_forms`
ADD CONSTRAINT `transaction_forms_form_id_foreign` FOREIGN KEY (`form_id`) REFERENCES `forms` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `transaction_forms_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `transaction_statuses`
--
ALTER TABLE `transaction_statuses`
ADD CONSTRAINT `transaction_statuses_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `statuses` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `transaction_statuses_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `users_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`),
ADD CONSTRAINT `users_position_id_foreign` FOREIGN KEY (`position_id`) REFERENCES `positions` (`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 */;
|
<filename>EmployeeSql/query.sql<gh_stars>0
-- Delete these tables if they already exist
DROP TABLE IF EXISTS dept_emp;
DROP TABLE IF EXISTS dept_manager;
DROP TABLE IF EXISTS salaries;
DROP TABLE IF EXISTS departments;
DROP TABLE IF EXISTS employees;
DROP TABLE IF EXISTS titles;
-- Create new tables
CREATE TABLE departments (
dept_no VARCHAR PRIMARY KEY,
dept_name VARCHAR
);
CREATE TABLE titles (
title_id VARCHAR PRIMARY KEY,
title VARCHAR
);
CREATE TABLE employees (
emp_no INT PRIMARY KEY,
emp_title_id VARCHAR,
FOREIGN KEY (emp_title_id) REFERENCES titles(title_id),
birth_date DATE,
first_name VARCHAR,
last_name VARCHAR,
sex VARCHAR,
hire_date DATE
);
CREATE TABLE dept_emp (
id SERIAL PRIMARY KEY,
emp_no INT,
FOREIGN KEY (emp_no) REFERENCES employees(emp_no),
dept_no VARCHAR,
FOREIGN KEY (dept_no) REFERENCES departments(dept_no)
);
CREATE TABLE dept_manager (
id SERIAL PRIMARY KEY,
dept_no VARCHAR,
FOREIGN KEY (dept_no) REFERENCES departments(dept_no),
emp_no INT,
FOREIGN KEY (emp_no) REFERENCES employees(emp_no)
);
CREATE TABLE salaries (
id SERIAL PRIMARY KEY,
emp_no INT,
FOREIGN KEY (emp_no) REFERENCES employees(emp_no),
salary INT
);
-- 1. List the following details of each employee:
-- employee number, last name, first name, sex, and salary.
SELECT employees.emp_no, employees.last_name, employees.first_name,
employees.sex, salaries.salary
FROM employees
INNER JOIN salaries ON
salaries.emp_no=employees.emp_no;
-- 2. List first name, last name, and hire date for employees who were hired in 1986.
SELECT first_name, last_name, hire_date
FROM employees
WHERE hire_date between '1986-01-01' and '1986-12-31'
-- 3. List the manager of each department with the following information:
-- department number, department name, the manager's employee number, last name, first name.
SELECT departments.dept_no, departments.dept_name, dept_manager.emp_no,
employees.first_name, employees.last_name
FROM employees
INNER JOIN dept_manager ON dept_manager.emp_no=employees.emp_no
INNER JOIN departments ON departments.dept_no=dept_manager.dept_no;
-- 4. List the department of each employee with the following information:
-- employee number, last name, first name, and department name.
SELECT employees.emp_no, employees.last_name, employees.first_name,
dept_name
FROM employees
INNER JOIN dept_emp ON dept_emp.emp_no=employees.emp_no
INNER JOIN departments ON departments.dept_no=dept_emp.dept_no;
-- 5. List first name, last name, and sex for employees
-- whose first name is "Hercules" and last names begin with "B."
SELECT first_name, last_name, sex
FROM employees
WHERE first_name='Hercules' AND last_name LIKE 'B%'
-- 6. List all employees in the Sales department,
-- including their employee number, last name, first name, and department name.
SELECT employees.emp_no, employees.last_name, employees.first_name,
departments.dept_name
FROM employees
INNER JOIN dept_emp ON dept_emp.emp_no=employees.emp_no
INNER JOIN departments on departments.dept_no=dept_emp.dept_no
WHERE dept_name='Sales';
-- 7. List all employees in the Sales and Development departments,
-- including their employee number, last name, first name, and department name.
SELECT employees.emp_no, employees.last_name, employees.first_name,
departments.dept_name
FROM employees
INNER JOIN dept_emp ON dept_emp.emp_no=employees.emp_no
INNER JOIN departments on departments.dept_no=dept_emp.dept_no
WHERE dept_name='Sales' OR dept_name='Development';
-- 8. In descending order, list the frequency count of employee last names,
-- i.e., how many employees share each last name.
SELECT employees.last_name, COUNT(employees.last_name) AS "Last Name Frequency"
FROM employees
GROUP BY employees.last_name
ORDER BY "Last Name Frequency" DESC;
|
CREATE TABLE Employees (
emp_no VARCHAR NOT NULL PRIMARY KEY,
birth_date VARCHAR NOT NULL,
fist_name VARCHAR NOT NULL,
last_name VARCHAR NOT NULL,
gender VARCHAR,
hire_date VARCHAR NOT NULL
);
CREATE TABLE Departments (
dept_no VARCHAR NOT NULL PRIMARY KEY,
dept_name VARCHAR NOT NULL
);
CREATE TABLE DepartmentEmployees (
emp_no VARCHAR NOT NULL,
FOREIGN KEY (emp_no) REFERENCES Employees(emp_no),
dept_no VARCHAR NOT NULL,
FOREIGN KEY (dept_no) REFERENCES Departments(dept_no),
from_date VARCHAR NOT NULL,
to_date VARCHAR NOT NULL
);
CREATE TABLE Salaries (
emp_no VARCHAR NOT NULL,
FOREIGN KEY (emp_no) REFERENCES Employees(emp_no),
salary VARCHAR NOT NULL,
from_date VARCHAR NOT NULL,
to_date VARCHAR NOT NULL
);
CREATE TABLE Titles (
emp_no VARCHAR NOT NULL,
FOREIGN KEY (emp_no) REFERENCES Employees(emp_no),
title VARCHAR NOT NULL,
from_date VARCHAR NOT NULL,
to_date VARCHAR NOT NULL
);
CREATE TABLE DepartmentManager (
dept_no VARCHAR NOT NULL,
FOREIGN KEY (dept_no) REFERENCES Departments(dept_no),
emp_no VARCHAR NOT NULL,
FOREIGN KEY (emp_no) REFERENCES Employees(emp_no),
from_date VARCHAR NOT NULL,
to_date VARCHAR NOT NULL
);
|
-- --------------------------------------------------------
-- Title: Retrieves the urine output of adult patients
-- 检索成年病人的尿量
-- Notes: this query does not specify a schema. To run it on your local
-- MIMIC schema, run the following command:
-- SET SEARCH_PATH TO mimiciii;
-- Where "mimiciii" is the name of your schema, and may be different.
-- --------------------------------------------------------
WITH agetbl AS
(
SELECT ie.icustay_id, ie.intime
FROM icustays ie
INNER JOIN patients p
ON ie.subject_id = p.subject_id
WHERE
-- filter to only adults
EXTRACT(EPOCH FROM (ie.intime - p.dob))/60.0/60.0/24.0/365.242 > 15
)
-- Urine output is measured hourly, but the individual values are not of interest
-- Usually, you want an overall picture of patient output
-- This query sums the data over the first 24 hours
, uo_sum as
(
select oe.icustay_id, sum(oe.VALUE) as urineoutput
FROM outputevents oe
INNER JOIN agetbl
ON oe.icustay_id = agetbl.icustay_id
-- and ensure the data occurs during the first day
and oe.charttime between agetbl.intime and (agetbl.intime + interval '1' day) -- first ICU day
WHERE itemid IN
(
-- these are the most frequently occurring urine output observations in CareVue
40055, -- "Urine Out Foley"
43175, -- "Urine ."
40069, -- "Urine Out Void"
40094, -- "Urine Out Condom Cath"
40715, -- "Urine Out Suprapubic"
40473, -- "Urine Out IleoConduit"
40085, -- "Urine Out Incontinent"
40057, -- "Urine Out Rt Nephrostomy"
40056, -- "Urine Out Lt Nephrostomy"
40405, -- "Urine Out Other"
40428, -- "Urine Out Straight Cath"
40086,-- Urine Out Incontinent
40096, -- "Urine Out Ureteral Stent #1"
40651, -- "Urine Out Ureteral Stent #2"
-- these are the most frequently occurring urine output observations in Metavision
226559, -- "Foley"
226560, -- "Void"
227510, -- "TF Residual"
226561, -- "Condom Cath"
226584, -- "Ileoconduit"
226563, -- "Suprapubic"
226564, -- "R Nephrostomy"
226565, -- "L Nephrostomy"
226567, -- Straight Cath
226557, -- "R Ureteral Stent"
226558 -- "L Ureteral Stent"
)
group by oe.icustay_id
)
, uo as
(
SELECT width_bucket(urineoutput, 0, 5000, 50) AS bucket
FROM uo_sum
)
SELECT bucket*100 as UrineOutput, COUNT(*)
FROM uo
GROUP BY bucket
ORDER BY bucket;
|
<gh_stars>0
CREATE TABLE [dbo].[Users] (
[UserName] NVARCHAR(50) NOT NULL,
[PasswordHash] NVARCHAR (MAX) NOT NULL,
CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED ([UserName])
);
|
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Хост: localhost
-- Время создания: Дек 19 2017 г., 00:46
-- Версия сервера: 5.7.20-0ubuntu0.16.04.1
-- Версия PHP: 7.0.22-0ubuntu0.16.04.1
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 */;
--
-- База данных: `crm_test`
--
-- --------------------------------------------------------
--
-- Структура таблицы `fos_user`
--
CREATE TABLE `fos_user` (
`id` int(11) NOT NULL,
`username` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
`username_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
`email_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
`enabled` tinyint(1) NOT NULL,
`salt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`last_login` datetime DEFAULT NULL,
`confirmation_token` varchar(180) COLLATE utf8_unicode_ci DEFAULT NULL,
`password_requested_at` datetime DEFAULT NULL,
`roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Дамп данных таблицы `fos_user`
--
INSERT INTO `fos_user` (`id`, `username`, `username_canonical`, `email`, `email_canonical`, `enabled`, `salt`, `password`, `last_login`, `confirmation_token`, `password_requested_at`, `roles`) VALUES
(1, 'Vdf', 'vdf', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$g8u7g.RaECfuQHpx6f5Gs.yZb5H2OTTySAKWt28Nz1ySXTV/aH3Fm', '2017-12-11 14:28:59', NULL, NULL, 'a:0:{}'),
(2, 'dd', 'dd', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$YymtY5Sn1GOm1PvQicwyHehVU63JYC4ebqfdb1FyZi6UQDzVSwOiK', '2017-12-15 13:45:26', NULL, NULL, 'a:0:{}'),
(3, 'msyniuk', 'msyniuk', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$kJqsf3XC2/dSHlW4R1.6.eRdHvL8euMOKVK05hd9CeW8BxgdtvzNm', NULL, NULL, NULL, 'a:0:{}'),
(4, 'corben1979', 'corben1979', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$C5wN6i.gm/NsVeqpHf9ahuz69wRK3sbFJpmvJBr5lIo7f396Lxzhu', NULL, NULL, NULL, 'a:0:{}'),
(5, 'vasco', 'vasco', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$iJp4UByn/CxOjo50Y3.pHei7ok.ZMV9c2THn2NUrgcd1Z7UNr5ANK', NULL, NULL, NULL, 'a:0:{}'),
(6, 'admin', 'admin', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$.XVhmCVNNO1Kl9kOteDak.AFvTFcOE8TtuqJY6ZjY46N7lI8/mnIu', '2017-12-15 13:46:47', NULL, NULL, 'a:1:{i:0;s:10:\"ROLE_ADMIN\";}'),
(7, 'administrator', 'administrator', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$E9bspWEZjNhUoltaKqMrs.9vD8to73g3AAXJZVHqHzCkGbtBNs2pO', NULL, NULL, NULL, 'a:1:{i:0;s:10:\"ROLE_ADMIN\";}');
-- --------------------------------------------------------
--
-- Структура таблицы `report`
--
CREATE TABLE `report` (
`id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`date` date NOT NULL,
`hours` int(11) NOT NULL,
`comment` longtext COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Дамп данных таблицы `report`
--
INSERT INTO `report` (`id`, `user_id`, `date`, `hours`, `comment`) VALUES
(2, 1, '2017-12-06', 99, 'Kuku'),
(3, 2, '2017-12-06', 85, 'интернет'),
(4, 3, '2017-12-04', 12, 'супер'),
(6, 4, '2017-12-05', 10, 'зашибись'),
(7, 5, '2017-12-06', 11, 'приветливый'),
(8, 1, '2017-11-17', 13, 'молодчина'),
(9, 2, '2017-11-10', 14, 'мегакрутой'),
(10, 3, '2017-11-01', 18, 'от улыбки хмурый день светлей'),
(11, 4, '2017-11-17', 19, 'Пусть бегут неуклюже'),
(12, 5, '2017-10-21', 20, 'Супер-пупер'),
(13, 2, '2017-12-28', 55, 'Лиза'),
(14, 2, '2017-12-24', 100, 'fgfgfffg'),
(15, 2, '2017-12-13', 700, 'fgfgfffg yrdhggd'),
(16, 2, '2017-12-22', 16, 'hello'),
(17, 2, '2017-12-13', 666, 'hjvkjhvjg'),
(18, 2, '2017-12-13', 666, 'hjvkjhvjg'),
(19, 2, '2017-12-11', 8754, 'hjvkjhvjg khjg h'),
(20, 2, '2017-12-11', 8754, 'hjvkjhvjg khjg h'),
(21, 2, '2017-12-11', 222, 'sdf'),
(22, 2, '2017-12-10', 3242, 'sdfgsdfh'),
(23, 2, '2017-12-13', 56, 'вася'),
(24, 6, '2017-12-03', 9, 'goodby'),
(25, 6, '2017-12-14', 23, 'ggg'),
(26, 6, '2017-12-14', 3, 'sss'),
(27, 6, '2017-12-14', 3, 'd'),
(28, 6, '2017-12-14', 5, 'admin'),
(29, 6, '2017-12-14', 1, 'xcx'),
(30, 2, '2017-12-14', 1, 'мало'),
(31, NULL, '2017-12-14', 33, 'ddd'),
(32, 6, '2017-12-14', 122, '222'),
(33, 6, '2017-12-14', 11, '1111'),
(34, 6, '2017-12-14', 11, '1111'),
(35, 2, '2017-12-15', 12, 'Лиля');
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `fos_user`
--
ALTER TABLE `fos_user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `UNIQ_957A647992FC23A8` (`username_canonical`),
ADD UNIQUE KEY `UNIQ_957A6479A0D96FBF` (`email_canonical`),
ADD UNIQUE KEY `UNIQ_957A6479C05FB297` (`confirmation_token`);
--
-- Индексы таблицы `report`
--
ALTER TABLE `report`
ADD PRIMARY KEY (`id`),
ADD KEY `IDX_C42F7784A76ED395` (`user_id`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `fos_user`
--
ALTER TABLE `fos_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT для таблицы `report`
--
ALTER TABLE `report`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- Ограничения внешнего ключа сохраненных таблиц
--
--
-- Ограничения внешнего ключа таблицы `report`
--
ALTER TABLE `report`
ADD CONSTRAINT `FK_C42F7784A76ED395` FOREIGN KEY (`user_id`) REFERENCES `fos_user` (`id`) ON DELETE CASCADE;
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 */;
|
<reponame>YAMIN350/FreeAds
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost:3306
-- Généré le : mar. 14 mai 2019 à 11:16
-- Version du serveur : 5.7.26-0ubuntu0.18.04.1
-- Version de PHP : 7.2.17-0ubuntu0.18.04.1
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 données : `laravel_mvc`
--
-- --------------------------------------------------------
--
-- Structure de la table `ad`
--
CREATE TABLE `ad` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`price` int(5) NOT NULL,
`id_user` int(11) NOT NULL,
`updated_at` datetime NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `ad`
--
INSERT INTO `ad` (`id`, `title`, `description`, `price`, `id_user`, `updated_at`, `created_at`) VALUES
(64, 'fz6 s2', 'Tres jolie excelent', 20, 6, '2019-03-29 11:42:31', '2019-03-29 11:42:31'),
(65, 'maison f3 :)', 'jolie maison avec jardin', 34, 5, '2019-04-01 09:04:52', '2019-04-01 09:04:52'),
(66, 'voici ma premiere annonce', 'je ne sais pas quoi vendre', 45, 5, '2019-04-01 09:02:17', '2019-04-01 07:02:17');
-- --------------------------------------------------------
--
-- Structure de la table `file_pictures`
--
CREATE TABLE `file_pictures` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`size` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`id_ad` int(11) NOT 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 `file_pictures`
--
INSERT INTO `file_pictures` (`id`, `name`, `size`, `id_ad`, `created_at`, `updated_at`) VALUES
(44, 'Capture d’écran de 2019-02-13 10-14-27.png', '1527856', 64, '2019-03-29 09:09:06', '2019-03-29 09:09:06'),
(45, 'Capture d’écran de 2019-02-13 10-14-21.png', '1490111', 64, '2019-03-29 09:09:06', '2019-03-29 09:09:06'),
(46, 'Capture d’écran de 2019-02-02 15-07-39.png', '179810', 65, '2019-03-29 09:55:42', '2019-03-29 09:55:42'),
(47, 'Capture d’écran de 2019-02-13 10-14-21.png', '1490111', 65, '2019-04-01 06:17:50', '2019-04-01 06:17:50'),
(48, 'Capture d’écran de 2019-02-13 10-14-17.png', '1595037', 65, '2019-04-01 06:17:50', '2019-04-01 06:17:50'),
(49, 'Capture d’écran de 2019-02-13 10-13-44.png', '317597', 65, '2019-04-01 06:17:50', '2019-04-01 06:17:50'),
(50, 'Capture d’écran de 2019-02-15 14-40-24.png', '499265', 66, '2019-04-01 07:02:17', '2019-04-01 07:02:17'),
(51, 'Capture d’écran de 2019-02-13 14-17-26.png', '521552', 66, '2019-04-01 07:02:17', '2019-04-01 07:02:17'),
(52, 'IMG_1426.jpg', '203174', 70, '2019-04-01 10:53:09', '2019-04-01 10:53:09');
-- --------------------------------------------------------
--
-- Structure de la table `message`
--
CREATE TABLE `message` (
`id` int(11) NOT NULL,
`sujet` varchar(255) NOT NULL,
`message` varchar(255) NOT NULL,
`id_recipient` varchar(255) NOT NULL,
`id_sendeur` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- 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, '2019_03_27_103659_create_file_pictures_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;
--
-- Déchargement des données de la table `password_resets`
--
INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES
('<EMAIL>', '$2y$10$YQ5o/2LxjLE073MG4kUKfui8jtWlhmiZ4U9KEvTqQ6kYKm4IOwKJ.', '2019-03-26 14:17:01'),
('<EMAIL>', '$2y$10$MtOt8Vnarki81EC9EDoDvuoOC/ls4L8/6CKNHIXYhvfDeABDbeUZ.', '2019-03-27 15:12:46');
-- --------------------------------------------------------
--
-- Structure de la table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`lastname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT 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`, `username`, `password`, `name`, `lastname`, `email`, `email_verified_at`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'cfg', <PASSWORD>H3QOzdfp.kp2ECyle1J.IQA/9G.E2vTnfE2sEqghDcCkYdVq', 'fyuwfu', 'iwfgiwef', '<EMAIL>', NULL, NULL, '2019-03-25 13:03:51', '2019-03-25 13:03:51'),
(3, 'armin', '$2y$10$E78vFNnOKiqAzMbY586OaOed1lMLEG2/TVS8.2icZFYS8Heyk0ahm', 'yacine', 'proute', '<EMAIL>', NULL, NULL, '2019-03-26 10:25:09', '2019-03-26 10:25:09'),
(5, 'yamin', '$2y$10$XgksU1l.XTfk.Td09Xlt2eGjxR2qwfWpsr3/6UNNjh/01naL9Y1pO', 'yams', 'dmc', '<EMAIL>', '2019-03-26 10:30:05', NULL, '2019-03-26 10:29:40', '2019-04-01 07:05:13'),
(7, 'rue', '$2y$10$YzLjwY2zkOMCbzzVGqWuou8AHVBNwcj5QLn7WhkCfMigi5YMZ3eXq', 'hkb', 'jb lk', '<EMAIL>', NULL, NULL, '2019-03-31 16:54:03', '2019-03-31 16:54:03'),
(10, 'theo', '$2y$10$MREELKzcBvGpMUtFGSxhOug4m4aSqN5L8/sFcqFpMJvVMJ4Z4XY3S', 'proute', 'caca', '<EMAIL>', '2019-04-01 10:52:11', NULL, '2019-04-01 10:49:51', '2019-04-01 10:52:33');
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `ad`
--
ALTER TABLE `ad`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `file_pictures`
--
ALTER TABLE `file_pictures`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `message`
--
ALTER TABLE `message`
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 `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_username_unique` (`username`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `ad`
--
ALTER TABLE `ad`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=67;
--
-- AUTO_INCREMENT pour la table `file_pictures`
--
ALTER TABLE `file_pictures`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;
--
-- AUTO_INCREMENT pour la table `message`
--
ALTER TABLE `message`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
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 TABLE "ActionTYpe" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "case" (
"id" SERIAL PRIMARY KEY,
"investigationassigmentdate" TIMESTAMP,
"investigationassignmentnote" TEXT NOT NULL,
"investigationplan" TEXT NOT NULL,
"initialreport" TEXT NOT NULL,
"priority" INTEGER NOT NULL,
"findings" TEXT NOT NULL,
"agadvicerequested" BOOLEAN NOT NULL,
"sendtotrial" BOOLEAN NOT NULL,
"chargedate" TIMESTAMP,
"taketotrial" BOOLEAN NOT NULL,
"closed" BOOLEAN NOT NULL,
"judgement" TEXT NOT NULL,
"closeddate" DATE NOT NULL,
"sentencelength" INTEGER NOT NULL,
"sentencestartdate" DATE NOT NULL,
"sentenceexpirydate" DATE NOT NULL,
"fineamount" DOUBLE PRECISION NOT NULL
);
CREATE TABLE "causeofaction" (
"id" SERIAL PRIMARY KEY,
"action_type" INTEGER
);
CREATE INDEX "idx_causeofaction__action_type" ON "causeofaction" ("action_type");
ALTER TABLE "causeofaction" ADD CONSTRAINT "fk_causeofaction__action_type" FOREIGN KEY ("action_type") REFERENCES "ActionTYpe" ("id");
CREATE TABLE "county" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "courtlevel" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "defendant" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "case_defendant" (
"case" INTEGER NOT NULL,
"defendant" INTEGER NOT NULL,
PRIMARY KEY ("case", "defendant")
);
CREATE INDEX "idx_case_defendant" ON "case_defendant" ("defendant");
ALTER TABLE "case_defendant" ADD CONSTRAINT "fk_case_defendant__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "case_defendant" ADD CONSTRAINT "fk_case_defendant__defendant" FOREIGN KEY ("defendant") REFERENCES "defendant" ("id");
CREATE TABLE "doctemplate" (
"id" SERIAL PRIMARY KEY,
"template" TEXT NOT NULL,
"templatejson" JSONB NOT NULL
);
CREATE TABLE "document" (
"id" SERIAL PRIMARY KEY,
"mimetype" VARCHAR(100) NOT NULL,
"doctype" TEXT NOT NULL,
"doc" TEXT NOT NULL,
"docbin" BYTEA NOT NULL,
"docthumbnail" BYTEA NOT NULL,
"doc_template" INTEGER,
"docjson" JSONB NOT NULL
);
CREATE INDEX "idx_document__doc_template" ON "document" ("doc_template");
ALTER TABLE "document" ADD CONSTRAINT "fk_document__doc_template" FOREIGN KEY ("doc_template") REFERENCES "doctemplate" ("id");
CREATE TABLE "filingtype" (
"id" SERIAL PRIMARY KEY,
"cost" DOUBLE PRECISION NOT NULL
);
CREATE TABLE "hearingtype" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "investigation" (
"id" SERIAL PRIMARY KEY,
"case" INTEGER NOT NULL,
"actiondate" TIMESTAMP NOT NULL,
"evidence" TEXT NOT NULL
);
CREATE INDEX "idx_investigation__case" ON "investigation" ("case");
ALTER TABLE "investigation" ADD CONSTRAINT "fk_investigation__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
CREATE TABLE "lawfirm" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "attorney" (
"id" SERIAL PRIMARY KEY,
"law_firm" INTEGER
);
CREATE INDEX "idx_attorney__law_firm" ON "attorney" ("law_firm");
ALTER TABLE "attorney" ADD CONSTRAINT "fk_attorney__law_firm" FOREIGN KEY ("law_firm") REFERENCES "lawfirm" ("id");
CREATE TABLE "natureofsuit" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "case_natureofsuit" (
"case" INTEGER NOT NULL,
"natureofsuit" INTEGER NOT NULL,
PRIMARY KEY ("case", "natureofsuit")
);
CREATE INDEX "idx_case_natureofsuit" ON "case_natureofsuit" ("natureofsuit");
ALTER TABLE "case_natureofsuit" ADD CONSTRAINT "fk_case_natureofsuit__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "case_natureofsuit" ADD CONSTRAINT "fk_case_natureofsuit__natureofsuit" FOREIGN KEY ("natureofsuit") REFERENCES "natureofsuit" ("id");
CREATE TABLE "plaintiff" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "case_plaintiff" (
"case" INTEGER NOT NULL,
"plaintiff" INTEGER NOT NULL,
PRIMARY KEY ("case", "plaintiff")
);
CREATE INDEX "idx_case_plaintiff" ON "case_plaintiff" ("plaintiff");
ALTER TABLE "case_plaintiff" ADD CONSTRAINT "fk_case_plaintiff__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "case_plaintiff" ADD CONSTRAINT "fk_case_plaintiff__plaintiff" FOREIGN KEY ("plaintiff") REFERENCES "plaintiff" ("id");
CREATE TABLE "policeman" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "case_policeman" (
"case" INTEGER NOT NULL,
"policeman" INTEGER NOT NULL,
PRIMARY KEY ("case", "policeman")
);
CREATE INDEX "idx_case_policeman" ON "case_policeman" ("policeman");
ALTER TABLE "case_policeman" ADD CONSTRAINT "fk_case_policeman__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "case_policeman" ADD CONSTRAINT "fk_case_policeman__policeman" FOREIGN KEY ("policeman") REFERENCES "policeman" ("id");
CREATE TABLE "case_policeman_2" (
"case" INTEGER NOT NULL,
"policeman" INTEGER NOT NULL,
PRIMARY KEY ("case", "policeman")
);
CREATE INDEX "idx_case_policeman_2" ON "case_policeman_2" ("policeman");
ALTER TABLE "case_policeman_2" ADD CONSTRAINT "fk_case_policeman_2__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "case_policeman_2" ADD CONSTRAINT "fk_case_policeman_2__policeman" FOREIGN KEY ("policeman") REFERENCES "policeman" ("id");
CREATE TABLE "investigation_policeman" (
"investigation" INTEGER NOT NULL,
"policeman" INTEGER NOT NULL,
PRIMARY KEY ("investigation", "policeman")
);
CREATE INDEX "idx_investigation_policeman" ON "investigation_policeman" ("policeman");
ALTER TABLE "investigation_policeman" ADD CONSTRAINT "fk_investigation_policeman__investigation" FOREIGN KEY ("investigation") REFERENCES "investigation" ("id");
ALTER TABLE "investigation_policeman" ADD CONSTRAINT "fk_investigation_policeman__policeman" FOREIGN KEY ("policeman") REFERENCES "policeman" ("id");
CREATE TABLE "policerole" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "policerole_policeman" (
"policerole" INTEGER NOT NULL,
"policeman" INTEGER NOT NULL,
PRIMARY KEY ("policerole", "policeman")
);
CREATE INDEX "idx_policerole_policeman" ON "policerole_policeman" ("policeman");
ALTER TABLE "policerole_policeman" ADD CONSTRAINT "fk_policerole_policeman__policeman" FOREIGN KEY ("policeman") REFERENCES "policeman" ("id");
ALTER TABLE "policerole_policeman" ADD CONSTRAINT "fk_policerole_policeman__policerole" FOREIGN KEY ("policerole") REFERENCES "policerole" ("id");
CREATE TABLE "prosecutor" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "case_prosecutor" (
"case" INTEGER NOT NULL,
"prosecutor" INTEGER NOT NULL,
PRIMARY KEY ("case", "prosecutor")
);
CREATE INDEX "idx_case_prosecutor" ON "case_prosecutor" ("prosecutor");
ALTER TABLE "case_prosecutor" ADD CONSTRAINT "fk_case_prosecutor__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "case_prosecutor" ADD CONSTRAINT "fk_case_prosecutor__prosecutor" FOREIGN KEY ("prosecutor") REFERENCES "prosecutor" ("id");
CREATE TABLE "filing" (
"id" SERIAL PRIMARY KEY,
"filedate" TIMESTAMP NOT NULL,
"totalfees" DOUBLE PRECISION NOT NULL,
"filing_attorney" INTEGER NOT NULL,
"filing_prosecutor" INTEGER NOT NULL,
"receiptnumber" TEXT,
"receiptverified" BOOLEAN NOT NULL,
"amountpaid" DOUBLE PRECISION NOT NULL,
"feebalance" DOUBLE PRECISION NOT NULL
);
CREATE INDEX "idx_filing__filing_attorney" ON "filing" ("filing_attorney");
CREATE INDEX "idx_filing__filing_prosecutor" ON "filing" ("filing_prosecutor");
ALTER TABLE "filing" ADD CONSTRAINT "fk_filing__filing_attorney" FOREIGN KEY ("filing_attorney") REFERENCES "attorney" ("id");
ALTER TABLE "filing" ADD CONSTRAINT "fk_filing__filing_prosecutor" FOREIGN KEY ("filing_prosecutor") REFERENCES "prosecutor" ("id");
CREATE TABLE "causeofaction_filing" (
"causeofaction" INTEGER NOT NULL,
"filing" INTEGER NOT NULL,
PRIMARY KEY ("causeofaction", "filing")
);
CREATE INDEX "idx_causeofaction_filing" ON "causeofaction_filing" ("filing");
ALTER TABLE "causeofaction_filing" ADD CONSTRAINT "fk_causeofaction_filing__causeofaction" FOREIGN KEY ("causeofaction") REFERENCES "causeofaction" ("id");
ALTER TABLE "causeofaction_filing" ADD CONSTRAINT "fk_causeofaction_filing__filing" FOREIGN KEY ("filing") REFERENCES "filing" ("id");
CREATE TABLE "document_filing" (
"document" INTEGER NOT NULL,
"filing" INTEGER NOT NULL,
PRIMARY KEY ("document", "filing")
);
CREATE INDEX "idx_document_filing" ON "document_filing" ("filing");
ALTER TABLE "document_filing" ADD CONSTRAINT "fk_document_filing__document" FOREIGN KEY ("document") REFERENCES "document" ("id");
ALTER TABLE "document_filing" ADD CONSTRAINT "fk_document_filing__filing" FOREIGN KEY ("filing") REFERENCES "filing" ("id");
CREATE TABLE "filing_filingtype" (
"filing" INTEGER NOT NULL,
"filingtype" INTEGER NOT NULL,
PRIMARY KEY ("filing", "filingtype")
);
CREATE INDEX "idx_filing_filingtype" ON "filing_filingtype" ("filingtype");
ALTER TABLE "filing_filingtype" ADD CONSTRAINT "fk_filing_filingtype__filing" FOREIGN KEY ("filing") REFERENCES "filing" ("id");
ALTER TABLE "filing_filingtype" ADD CONSTRAINT "fk_filing_filingtype__filingtype" FOREIGN KEY ("filingtype") REFERENCES "filingtype" ("id");
CREATE TABLE "prosecutorteam" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "prosecutor_prosecutorteam" (
"prosecutor" INTEGER NOT NULL,
"prosecutorteam" INTEGER NOT NULL,
PRIMARY KEY ("prosecutor", "prosecutorteam")
);
CREATE INDEX "idx_prosecutor_prosecutorteam" ON "prosecutor_prosecutorteam" ("prosecutorteam");
ALTER TABLE "prosecutor_prosecutorteam" ADD CONSTRAINT "fk_prosecutor_prosecutorteam__prosecutor" FOREIGN KEY ("prosecutor") REFERENCES "prosecutor" ("id");
ALTER TABLE "prosecutor_prosecutorteam" ADD CONSTRAINT "fk_prosecutor_prosecutorteam__prosecutorteam" FOREIGN KEY ("prosecutorteam") REFERENCES "prosecutorteam" ("id");
CREATE TABLE "subcounty" (
"id" SERIAL PRIMARY KEY,
"county" INTEGER NOT NULL
);
CREATE INDEX "idx_subcounty__county" ON "subcounty" ("county");
ALTER TABLE "subcounty" ADD CONSTRAINT "fk_subcounty__county" FOREIGN KEY ("county") REFERENCES "county" ("id");
CREATE TABLE "surety" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "town" (
"id" SERIAL PRIMARY KEY,
"subcounty" INTEGER NOT NULL
);
CREATE INDEX "idx_town__subcounty" ON "town" ("subcounty");
ALTER TABLE "town" ADD CONSTRAINT "fk_town__subcounty" FOREIGN KEY ("subcounty") REFERENCES "subcounty" ("id");
CREATE TABLE "constituency" (
"id" SERIAL PRIMARY KEY,
"county" INTEGER NOT NULL,
"town" INTEGER
);
CREATE INDEX "idx_constituency__county" ON "constituency" ("county");
CREATE INDEX "idx_constituency__town" ON "constituency" ("town");
ALTER TABLE "constituency" ADD CONSTRAINT "fk_constituency__county" FOREIGN KEY ("county") REFERENCES "county" ("id");
ALTER TABLE "constituency" ADD CONSTRAINT "fk_constituency__town" FOREIGN KEY ("town") REFERENCES "town" ("id");
CREATE TABLE "court" (
"id" SERIAL PRIMARY KEY,
"town" INTEGER NOT NULL,
"residentmagistrate" VARCHAR(100),
"registrar" VARCHAR(100) NOT NULL,
"court_level" INTEGER NOT NULL
);
CREATE INDEX "idx_court__court_level" ON "court" ("court_level");
CREATE INDEX "idx_court__town" ON "court" ("town");
ALTER TABLE "court" ADD CONSTRAINT "fk_court__court_level" FOREIGN KEY ("court_level") REFERENCES "courtlevel" ("id");
ALTER TABLE "court" ADD CONSTRAINT "fk_court__town" FOREIGN KEY ("town") REFERENCES "town" ("id");
CREATE TABLE "hearing" (
"id" SERIAL PRIMARY KEY,
"hearingdate" TIMESTAMP NOT NULL,
"case" INTEGER NOT NULL,
"court" INTEGER NOT NULL,
"hearing_type" INTEGER NOT NULL,
"remandwarrant" TEXT NOT NULL,
"remandlength" INTEGER,
"remanddate" DATE NOT NULL,
"remandwarrantexpirydate" DATE NOT NULL,
"nexthearingdate" DATE,
"finalhearing" BOOLEAN NOT NULL
);
CREATE INDEX "idx_hearing__case" ON "hearing" ("case");
CREATE INDEX "idx_hearing__court" ON "hearing" ("court");
CREATE INDEX "idx_hearing__hearing_type" ON "hearing" ("hearing_type");
ALTER TABLE "hearing" ADD CONSTRAINT "fk_hearing__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "hearing" ADD CONSTRAINT "fk_hearing__court" FOREIGN KEY ("court") REFERENCES "court" ("id");
ALTER TABLE "hearing" ADD CONSTRAINT "fk_hearing__hearing_type" FOREIGN KEY ("hearing_type") REFERENCES "hearingtype" ("id");
CREATE TABLE "attorney_hearing" (
"attorney" INTEGER NOT NULL,
"hearing" INTEGER NOT NULL,
PRIMARY KEY ("attorney", "hearing")
);
CREATE INDEX "idx_attorney_hearing" ON "attorney_hearing" ("hearing");
ALTER TABLE "attorney_hearing" ADD CONSTRAINT "fk_attorney_hearing__attorney" FOREIGN KEY ("attorney") REFERENCES "attorney" ("id");
ALTER TABLE "attorney_hearing" ADD CONSTRAINT "fk_attorney_hearing__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
CREATE TABLE "bail" (
"id" SERIAL PRIMARY KEY,
"hearing" INTEGER NOT NULL,
"defendant" INTEGER NOT NULL,
"amountgranted" DOUBLE PRECISION NOT NULL,
"noofsureties" INTEGER NOT NULL,
"paid" BOOLEAN NOT NULL,
"paydate" DATE NOT NULL,
"receiptno" VARCHAR(100) NOT NULL
);
CREATE INDEX "idx_bail__defendant" ON "bail" ("defendant");
CREATE INDEX "idx_bail__hearing" ON "bail" ("hearing");
ALTER TABLE "bail" ADD CONSTRAINT "fk_bail__defendant" FOREIGN KEY ("defendant") REFERENCES "defendant" ("id");
ALTER TABLE "bail" ADD CONSTRAINT "fk_bail__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
CREATE TABLE "bail_surety" (
"bail" INTEGER NOT NULL,
"surety" INTEGER NOT NULL,
PRIMARY KEY ("bail", "surety")
);
CREATE INDEX "idx_bail_surety" ON "bail_surety" ("surety");
ALTER TABLE "bail_surety" ADD CONSTRAINT "fk_bail_surety__bail" FOREIGN KEY ("bail") REFERENCES "bail" ("id");
ALTER TABLE "bail_surety" ADD CONSTRAINT "fk_bail_surety__surety" FOREIGN KEY ("surety") REFERENCES "surety" ("id");
CREATE TABLE "causeofaction_hearing" (
"causeofaction" INTEGER NOT NULL,
"hearing" INTEGER NOT NULL,
PRIMARY KEY ("causeofaction", "hearing")
);
CREATE INDEX "idx_causeofaction_hearing" ON "causeofaction_hearing" ("hearing");
ALTER TABLE "causeofaction_hearing" ADD CONSTRAINT "fk_causeofaction_hearing__causeofaction" FOREIGN KEY ("causeofaction") REFERENCES "causeofaction" ("id");
ALTER TABLE "causeofaction_hearing" ADD CONSTRAINT "fk_causeofaction_hearing__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
CREATE TABLE "defendant_hearing" (
"defendant" INTEGER NOT NULL,
"hearing" INTEGER NOT NULL,
PRIMARY KEY ("defendant", "hearing")
);
CREATE INDEX "idx_defendant_hearing" ON "defendant_hearing" ("hearing");
ALTER TABLE "defendant_hearing" ADD CONSTRAINT "fk_defendant_hearing__defendant" FOREIGN KEY ("defendant") REFERENCES "defendant" ("id");
ALTER TABLE "defendant_hearing" ADD CONSTRAINT "fk_defendant_hearing__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
CREATE TABLE "filing_hearing" (
"filing" INTEGER NOT NULL,
"hearing" INTEGER NOT NULL,
PRIMARY KEY ("filing", "hearing")
);
CREATE INDEX "idx_filing_hearing" ON "filing_hearing" ("hearing");
ALTER TABLE "filing_hearing" ADD CONSTRAINT "fk_filing_hearing__filing" FOREIGN KEY ("filing") REFERENCES "filing" ("id");
ALTER TABLE "filing_hearing" ADD CONSTRAINT "fk_filing_hearing__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
CREATE TABLE "hearing_policeman" (
"hearing" INTEGER NOT NULL,
"policeman" INTEGER NOT NULL,
PRIMARY KEY ("hearing", "policeman")
);
CREATE INDEX "idx_hearing_policeman" ON "hearing_policeman" ("policeman");
ALTER TABLE "hearing_policeman" ADD CONSTRAINT "fk_hearing_policeman__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
ALTER TABLE "hearing_policeman" ADD CONSTRAINT "fk_hearing_policeman__policeman" FOREIGN KEY ("policeman") REFERENCES "policeman" ("id");
CREATE TABLE "hearing_prosecutor" (
"hearing" INTEGER NOT NULL,
"prosecutor" INTEGER NOT NULL,
PRIMARY KEY ("hearing", "prosecutor")
);
CREATE INDEX "idx_hearing_prosecutor" ON "hearing_prosecutor" ("prosecutor");
ALTER TABLE "hearing_prosecutor" ADD CONSTRAINT "fk_hearing_prosecutor__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
ALTER TABLE "hearing_prosecutor" ADD CONSTRAINT "fk_hearing_prosecutor__prosecutor" FOREIGN KEY ("prosecutor") REFERENCES "prosecutor" ("id");
CREATE TABLE "judge" (
"id" SERIAL PRIMARY KEY,
"court" INTEGER NOT NULL
);
CREATE INDEX "idx_judge__court" ON "judge" ("court");
ALTER TABLE "judge" ADD CONSTRAINT "fk_judge__court" FOREIGN KEY ("court") REFERENCES "court" ("id");
CREATE TABLE "hearing_judge" (
"hearing" INTEGER NOT NULL,
"judge" INTEGER NOT NULL,
PRIMARY KEY ("hearing", "judge")
);
CREATE INDEX "idx_hearing_judge" ON "hearing_judge" ("judge");
ALTER TABLE "hearing_judge" ADD CONSTRAINT "fk_hearing_judge__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
ALTER TABLE "hearing_judge" ADD CONSTRAINT "fk_hearing_judge__judge" FOREIGN KEY ("judge") REFERENCES "judge" ("id");
CREATE TABLE "policestation" (
"id" SERIAL PRIMARY KEY,
"town" INTEGER NOT NULL,
"officercommanding" VARCHAR(100)
);
CREATE INDEX "idx_policestation__town" ON "policestation" ("town");
ALTER TABLE "policestation" ADD CONSTRAINT "fk_policestation__town" FOREIGN KEY ("town") REFERENCES "town" ("id");
CREATE TABLE "case_policestation" (
"case" INTEGER NOT NULL,
"policestation" INTEGER NOT NULL,
PRIMARY KEY ("case", "policestation")
);
CREATE INDEX "idx_case_policestation" ON "case_policestation" ("policestation");
ALTER TABLE "case_policestation" ADD CONSTRAINT "fk_case_policestation__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "case_policestation" ADD CONSTRAINT "fk_case_policestation__policestation" FOREIGN KEY ("policestation") REFERENCES "policestation" ("id");
CREATE TABLE "prison" (
"id" SERIAL PRIMARY KEY,
"town" INTEGER NOT NULL,
"warden" VARCHAR(100)
);
CREATE INDEX "idx_prison__town" ON "prison" ("town");
ALTER TABLE "prison" ADD CONSTRAINT "fk_prison__town" FOREIGN KEY ("town") REFERENCES "town" ("id");
CREATE TABLE "hearing_prison" (
"hearing" INTEGER NOT NULL,
"prison" INTEGER NOT NULL,
PRIMARY KEY ("hearing", "prison")
);
CREATE INDEX "idx_hearing_prison" ON "hearing_prison" ("prison");
ALTER TABLE "hearing_prison" ADD CONSTRAINT "fk_hearing_prison__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
ALTER TABLE "hearing_prison" ADD CONSTRAINT "fk_hearing_prison__prison" FOREIGN KEY ("prison") REFERENCES "prison" ("id");
CREATE TABLE "witness" (
"id" SERIAL PRIMARY KEY
);
CREATE TABLE "case_witness" (
"case" INTEGER NOT NULL,
"witness" INTEGER NOT NULL,
PRIMARY KEY ("case", "witness")
);
CREATE INDEX "idx_case_witness" ON "case_witness" ("witness");
ALTER TABLE "case_witness" ADD CONSTRAINT "fk_case_witness__case" FOREIGN KEY ("case") REFERENCES "case" ("id");
ALTER TABLE "case_witness" ADD CONSTRAINT "fk_case_witness__witness" FOREIGN KEY ("witness") REFERENCES "witness" ("id");
CREATE TABLE "hearing_witness" (
"hearing" INTEGER NOT NULL,
"witness" INTEGER NOT NULL,
PRIMARY KEY ("hearing", "witness")
);
CREATE INDEX "idx_hearing_witness" ON "hearing_witness" ("witness");
ALTER TABLE "hearing_witness" ADD CONSTRAINT "fk_hearing_witness__hearing" FOREIGN KEY ("hearing") REFERENCES "hearing" ("id");
ALTER TABLE "hearing_witness" ADD CONSTRAINT "fk_hearing_witness__witness" FOREIGN KEY ("witness") REFERENCES "witness" ("id");
CREATE TABLE "investigation_witness" (
"investigation" INTEGER NOT NULL,
"witness" INTEGER NOT NULL,
PRIMARY KEY ("investigation", "witness")
);
CREATE INDEX "idx_investigation_witness" ON "investigation_witness" ("witness");
ALTER TABLE "investigation_witness" ADD CONSTRAINT "fk_investigation_witness__investigation" FOREIGN KEY ("investigation") REFERENCES "investigation" ("id");
ALTER TABLE "investigation_witness" ADD CONSTRAINT "fk_investigation_witness__witness" FOREIGN KEY ("witness") REFERENCES "witness" ("id")
|
<reponame>octonion/volleyball-w
begin;
drop table if exists ncaa_pbp.box_scores;
create table ncaa_pbp.box_scores (
game_id integer,
section_id integer,
player_id integer,
player_name text,
player_url text,
position text,
s integer,
mp integer,
ms integer,
kills integer,
errors integer,
total_attacks integer,
pct float,
assists integer,
aces integer,
serr integer,
digs integer,
rerr integer,
block_solos integer,
block_assists integer,
berr integer,
pts float,
bhe integer
-- primary key (game_id,section_id,player_id) --,player_name)
);
copy ncaa_pbp.box_scores from '/tmp/ncaa_games_box_scores.csv' with delimiter as E'\t' csv header;
commit;
|
<gh_stars>100-1000
-- postgres_do.sql
/* Postgres DO statements (https://www.postgresql.org/docs/14/sql-do.html). */
-- From Issue #2018 (https://github.com/sqlfluff/sqlfluff/issues/2018)
DO $$DECLARE r record;
BEGIN
FOR r IN SELECT table_schema, table_name FROM information_schema.tables
WHERE table_type = 'VIEW' AND table_schema = 'public'
LOOP
EXECUTE 'GRANT ALL ON ' || quote_ident(r.table_schema) || '.' || quote_ident(r.table_name) || ' TO webuser';
END LOOP;
END$$;
-- can put language before code block
DO LANGUAGE plpgsql $$
DECLARE r record;
BEGIN
FOR r IN SELECT table_schema, table_name FROM information_schema.tables
WHERE table_type = 'VIEW' AND table_schema = 'public'
LOOP
EXECUTE 'GRANT ALL ON ' || quote_ident(r.table_schema) || '.' || quote_ident(r.table_name) || ' TO webuser';
END LOOP;
END$$;
-- can put language after code block
DO $$
DECLARE r record;
BEGIN
FOR r IN SELECT table_schema, table_name FROM information_schema.tables
WHERE table_type = 'VIEW' AND table_schema = 'public'
LOOP
EXECUTE 'GRANT ALL ON ' || quote_ident(r.table_schema) || '.' || quote_ident(r.table_name) || ' TO webuser';
END LOOP;
END$$
LANGUAGE plpgsql;
-- code block can be any string literal
DO E'
DECLARE r record;
BEGIN
FOR r IN SELECT table_schema, table_name FROM information_schema.tables
WHERE table_type = \'VIEW\' AND table_schema = \'public\'
LOOP
EXECUTE \'GRANT ALL ON \' || quote_ident(r.table_schema) || \'.\' || quote_ident(r.table_name) || \' TO webuser\';
END LOOP;
END';
DO 'DECLARE r record;';
DO U&'\0441\043B\043E\043D';
DO 'SELECT foo'
'bar';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.