blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 133 | path stringlengths 3 276 | src_encoding stringclasses 33
values | length_bytes int64 23 9.61M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 44 | license_type stringclasses 2
values | text stringlengths 23 9.43M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
4a9b2e27744c6343244f48a822577941ff993503 | SQL | briancorr/das-employerapprenticeshipsservice | /src/SFA.DAS.EmployerApprenticeshipService.HMRC.Database/StoredProcedures/GetTransactionLines_ByAccountId.sql | UTF-8 | 516 | 3.890625 | 4 | [
"MIT"
] | permissive | CREATE PROCEDURE [levy].[GetTransactionLines_ByAccountId]
@accountId BIGINT
AS
select
main.*
,SUM(Amount) OVER(ORDER BY TransactionDate asc
RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW )
AS Balance
from
(
SELECT
[AccountId]
,[TransactionDate]
,MAX([TransactionType]) as TransactionT... | true |
afc60804572742193496d11a1ab42e5484988d43 | SQL | ClickHouse/ClickHouse | /tests/queries/0_stateless/01735_join_get_low_card_fix.sql | UTF-8 | 645 | 3.015625 | 3 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | DROP TABLE IF EXISTS join_tbl;
CREATE TABLE join_tbl (`id` String, `name` String, lcname LowCardinality(String)) ENGINE = Join(any, left, id);
INSERT INTO join_tbl VALUES ('xxx', 'yyy', 'yyy');
SELECT joinGet('join_tbl', 'name', 'xxx') == 'yyy';
SELECT joinGet('join_tbl', 'name', toLowCardinality('xxx')) == 'yyy';
S... | true |
57d4a586ed21e9f96d0cdcdd1d6f012833431af5 | SQL | esalcidom/arkhe_product | /bin/main/data.sql | UTF-8 | 1,228 | 2.53125 | 3 | [] | no_license | INSERT INTO TABLE_ATTRIBUTE_TYPE (NAME) VALUES ('COLOR');
INSERT INTO TABLE_ATTRIBUTE_TYPE (NAME) VALUES ('DIMENSIONS');
INSERT INTO TABLE_ATTRIBUTE (ATTR_TYPE_ID, VALUE) VALUES (1, 'RED');
INSERT INTO TABLE_ATTRIBUTE (ATTR_TYPE_ID, VALUE) VALUES (1, 'BLACK');
INSERT INTO TABLE_ATTRIBUTE (ATTR_TYPE_ID, VALUE) VALUES (... | true |
4aa498c78cb6df50b869ab6faa22ee5f0edd1ed8 | SQL | Erscheinung/MySQL | /roster-CourseraAssignment.sql | UTF-8 | 4,596 | 3.546875 | 4 | [] | no_license | create table table_name (
field_name datatype [constraint], field_name2 datatype [constraint],constraint
);
insert into table_name values(
value1,value2,value2;
)
insert into table_name
(name,Registration,GPA)values(value1,value2,value3);
Select field.name1,field.name2.... from table_name; /* to display all fiel... | true |
657c08d69f12e56aca87a3257850b28c9dee4508 | SQL | ramoonpereira/hermes | /src/main/resources/db/migration/V1.3__create_table_recipients.sql | UTF-8 | 212 | 2.53125 | 3 | [
"MIT"
] | permissive | CREATE TABLE hermes.recipients (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(300) NOT NULL,
email VARCHAR(300) NOT NULL,
phone VARCHAR(300) NOT NULL,
created_at DATETIME NOT NULL,
PRIMARY KEY (id)
); | true |
063cf248fc665197f463b110b7cdb63899f87454 | SQL | amida-tech/recruitment-registry | /sql-scripts/survey-patch-info.sql | UTF-8 | 737 | 4.375 | 4 | [
"Apache-2.0"
] | permissive | SELECT
survey.status, survey.type, survey_text.name, survey_text.description, survey_question.question_ids AS "questionIds", survey_section.section_count AS "sectionCount"
FROM survey
LEFT JOIN survey_text
ON :text_needed AND survey_text.survey_id = survey.id AND survey_text.language_code = 'en' AND survey_text.delet... | true |
787686196c12ee65962047271b8166950cf233e9 | SQL | connorbkirk/ryde | /dbSrc/ryde-schema.sql | UTF-8 | 1,803 | 3.71875 | 4 | [
"MIT"
] | permissive | #
# Author: John Porter
# The following is a schema to create applicable tables in a database for the Ryde system
# Ryde is a car rental system developed for the term project of CSX300 at The University of Georgia
# The contributers to the Ryde system are : John Porter YOUR NAMES HERE
#
#
# TODO:
#
#
DROP TABL... | true |
910eac4e4bcb8cbcc7430d5ef480b9dd1c6686f3 | SQL | SatSim/cfs | /apps/ds/test_and_ground/asist/prc/template/template_ds_filter.prc | UTF-8 | 125,621 | 3.46875 | 3 | [
"NASA-1.3"
] | permissive | PROC $sc_$cpu_ds_filter
;*******************************************************************************
; Test Name: ds_filter
; Test Level: Build Verification
; Test Type: Functional
;
; Test Description
; This test verifies that the CFS Data Storage (DS) application filters
; messages according to the ... | true |
a83ecbd200edeb4c465630c4612a57e42574fcc4 | SQL | Mohamed-Amine-AALI/app-fastjobs-back | /script2.sql | UTF-8 | 2,331 | 2.5625 | 3 | [] | no_license | --
-- PostgreSQL database dump
--
-- Dumped from database version 12.5
-- Dumped by pg_dump version 13.2
-- Started on 2021-05-17 20:10:26
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalo... | true |
ed189bbd8eb1447d7383ac2c8a72ffccb6c1f8bb | SQL | spufi78/Canagrosa | /SQL/Dureza shore 40 verificaciones.sql | UTF-8 | 452 | 3.640625 | 4 | [] | no_license | select a.ID_VERIFICACION, d.DESCRIPCION , b.descripcion, a.FECHA_ACTUAL, c.NOMBRE, b.resultado
from eq_verificacion_equipos a, eq_verificacion_parametros_resultados b, usuarios c, eq_periodicidad d
where a.equipo_id = 832
and a.ID_VERIFICACION = b.verificacion_id
and a.VERIFICADOR_INTERNO_ID = c.ID_EMPLEADO
and a.PE... | true |
2764caa8ea1239aece7bc0683f826ecba6daa6bd | SQL | dsdecastro/CS50 | /SQL/movies/11.sql | UTF-8 | 213 | 3.8125 | 4 | [] | no_license | SELECT title FROM movies WHERE id IN (SELECT movie_id FROM stars WHERE person_id =
(SELECT id FROM people WHERE name = "Chadwick Boseman"))
ORDER BY (SELECT rating FROM ratings WHERE movie_id = id) DESC
LIMIT 5; | true |
81ac4620eed96e0b58e50b044319aa6029149ac7 | SQL | gbhogle1789/Big-data | /dags/sql/b_store_bind.sql | UTF-8 | 3,527 | 4.09375 | 4 | [] | no_license | USE SCHEMA __ETL_DAILY_SCHEMA__;
DROP TABLE IF EXISTS etl_basket_store CASCADE;
CREATE TABLE etl_basket_store (
receipt_id integer NOT NULL,
banner varchar(160),
payment_method varchar(80),
payment_id varchar(40),
basket_qty integer,
transaction_dt timestamp,
transaction_dt_locale timestamp,
transactio... | true |
5bacca48d3e26f0b4703921a2387fd35fd5ae6f2 | SQL | gitter-badger/open-ods | /sql/006-add_more_metadata.sql | UTF-8 | 1,296 | 2.71875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"OGL-UK-2.0"
] | permissive | ALTER TABLE roles RENAME role_start_date TO role_operational_start_date;
ALTER TABLE roles RENAME role_end_date TO role_operational_end_date;
ALTER TABLE roles
ADD COLUMN role_legal_start_date date;
ALTER TABLE roles
ADD COLUMN role_legal_end_date date;
ALTER TABLE organisations
ADD COLUMN organisation_legal_s... | true |
06e7792b341915bde3132d4717e416e89d3e6fe7 | SQL | arlengur/gwtreact | /projects/qos-modelspace/src/main/resources/com/tecomgroup/qos/migration/hsql/V1_0_3__snmpid.sql | UTF-8 | 1,832 | 2.609375 | 3 | [] | no_license | create sequence snmp_id_seq start with 1 increment by 1;
alter table MAgentModule add snmp_id integer generated by default as sequence snmp_id_seq;
update MAgentModule set snmp_id = next value for snmp_id_seq;
alter table MAgentModule add constraint MAgentModule_snmp_id_unique unique (snmp_id);
alter table MAgentModul... | true |
66181b2bda138089a99716a888ea9240902821b8 | SQL | hratx-blue-ocean/GoThere | /server/schema.sql | UTF-8 | 1,606 | 3.609375 | 4 | [] | no_license | DROP DATABASE IF EXISTS gothere;
CREATE DATABASE gothere;
\c gothere;
CREATE TABLE users (
name VARCHAR(50) NOT NULL,
email VARCHAR PRIMARY KEY,
phoneNumber VARCHAR,
password VARCHAR
);
CREATE TABLE usertrips (
tripid SERIAL PRIMARY KEY,
email VARCHAR,
startdate VARCHAR,
enddate VARCHAR,
destination... | true |
77dd50c2e21cc36e08462a1d02a1669514e669a9 | SQL | cuongtm2000/zend-mvc | /dos/dos.sql | UTF-8 | 40,648 | 2.84375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 14, 2012 at 05:23 AM
-- Server version: 5.5.16
-- PHP Version: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!... | true |
c99d7a1a684307f900e44c67956e40da5ae08da7 | SQL | Phildo/game_design_machine | /services/reset_database.sql | UTF-8 | 5,296 | 3.578125 | 4 | [] | no_license | /*
CREATE THE DATABASE
*/
/*
CREATE DATABASE game_design_machine;
*/
USE game_design_machine;
/*
CREATE THE TABLES
*/
DROP TABLE IF EXISTS machines;
CREATE TABLE machines (id INT(32) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, m_key VARCHAR(64), pass VARCHAR(64), created TIMESTAMP DEFAULT '0000-00-00 00:00:00', las... | true |
d4ce5f3a9a13109902a8e3dab623d29a2aa33d5e | SQL | adityatoshniwal/pgadmin4 | /web/pgadmin/browser/server_groups/servers/databases/schemas/tables/row_security_policies/tests/default/alter_delete_policy_with_using.sql | UTF-8 | 340 | 2.59375 | 3 | [
"PostgreSQL"
] | permissive | -- POLICY: test_delete_rls_policy_$%{}[]()&*^!@"'`\/#
-- DROP POLICY IF EXISTS "test_delete_rls_policy_$%{}[]()&*^!@""'`\/#" ON public.test_rls_policy;
CREATE POLICY "test_delete_rls_policy_$%{}[]()&*^!@""'`\/#"
ON public.test_rls_policy
AS RESTRICTIVE
FOR DELETE
TO public
USING ((salary < '100000... | true |
05368cadad18c0c7a925602ea11dde6bc5b24153 | SQL | jryanfs/Oracle-Developer-SQL-e-PL-SQL | /Funções/funcoes5.sql | UTF-8 | 353 | 3 | 3 | [] | no_license | -- criando funcao para retornar numero de salarios minimos
CREATE OR REPLACE FUNCTION FN_SAL_MIN (P_SALARIO IN NUMBER)
RETURN NUMBER
IS
QTD_SAL_MIN NUMBER(10,2);
BEGIN
QTD_SAL_MIN:=P_SALARIO/954;
RETURN QTD_SAL_MIN;
END;
/
-- USANDO A FUNCAO,
SELECT A.FIRST_NAME,
A.SALARY,
FN_SAL_MIN(A.SALARY) ... | true |
a2267a6b3b50a9b274694f87662d20643a9ff51b | SQL | alenka/books-example-app | /app/config/schema.sql | UTF-8 | 1,511 | 4.25 | 4 | [] | no_license | DROP TABLE IF EXISTS `authors`;
CREATE TABLE `authors` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
DROP TABLE IF EXISTS `books`;
CREATE TABLE `books` (
`id` int(11) unsi... | true |
6ae6d70024b661b65496963d9ed69df397a5df6c | SQL | kanika167/hiveProjectRetailStore | /transn_queries.sql | UTF-8 | 1,329 | 3.921875 | 4 | [] | no_license | create table transactions(txn_id int, txn_date string, cust_id int, amount double, category string, product string, city string, state string, spendby string) row format delimited fields terminated by ',' stored as textfile;
load data local inpath '/home/kanika/Desktop/datasets/txns1.txt' into table transactions;
cre... | true |
ba503f1980d16690a00ad8aea796145ea2fdf90d | SQL | mbsyaswanth/Online-Book-Store | /Yaswanth/bookstore.sql | UTF-8 | 4,277 | 3.203125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 14, 2018 at 04:23 AM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
562c751621f6a0cfba8fcafce041367db3fb6216 | SQL | Gedemon/RED-WWII-Reloaded | /SQL/999- FinalizeRules.sql | UTF-8 | 19,757 | 2.71875 | 3 | [] | no_license | --------------------------------------------------------------------------------------------
-- Finalize Rules for R.E.D. WWII edition
-- Loaded AFTER all other modifications.
--------------------------------------------------------------------------------------------
---------------------------------------------... | true |
d42bb3812169c2f0ba36dff17251d16778e85353 | SQL | ElifKarakutukDinc/iowa-liquor-project | /sql/total_price_total_liters_and_total_bottles_count_by_months.sql | UTF-8 | 263 | 3.28125 | 3 | [] | no_license | --total price,total liters and total bottles count by months
select EXTRACT(MONTH FROM date), sum(bottles_sold) as count_bottle ,round(sum(sale_dollars)) as total_price, round(sum(volume_sold_liters)) as total_liters
from sales_main_data.year_2019
group by 1
| true |
e2c33295762f632443d13f7872aad01bd9cf2db8 | SQL | occamsrazor81/advanced-database-systems | /data_warehouse.sql | UTF-8 | 10,554 | 3.84375 | 4 | [] | no_license | /* Činjenica koju skladište opisuje jest narudžba. Činjenična je tablica cNarudzba.
Jedan redak činjenične tablice predstavlja zapis o narudžbi pojedinog proizvoda od strane pojedinog kupca
na određeni dan (datum).
Osnovne su dimenzije stoga dProizvod, dKupac, dDatum, a dodajemo i dimenziju dDostavljač (činjeničnu
tabl... | true |
7603c65213e9e8c24ccf0277df123856b82ff5da | SQL | anhstudios/swganh | /data/sql/galaxy/procedures/sp_GetIgnoredList.sql | UTF-8 | 739 | 3.140625 | 3 | [
"MIT"
] | permissive |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!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 structure for procedure galaxy.sp_GetIgnoredList
DROP... | true |
7785153c04b1e8aa0977d63b8e94a37e4da7b2bc | SQL | wechuli/sql_recipes | /others/t-sql/outer-joins.sql | UTF-8 | 1,293 | 4.4375 | 4 | [] | no_license | select *
from SalesLT.Customer;
select *
from SalesLT.SalesOrderHeader;
-- Get all customers, with sales orders for those who've bought anything
select c.CustomerID,c.FirstName,c.LastName,sh.SalesOrderNumber
from SalesLT.Customer as c
left outer join SalesLT.SalesOrderHeader as sh
on c.CustomerID = sh.CustomerID
ord... | true |
a2889471766da10403df43fc5e12d93d0c64a351 | SQL | AcruxPDE/SIGEIN50 | /SistemaSIGEIN/SIGE.DataBase/ADM/Functions/F_OBTENER_CATALOGO.sql | UTF-8 | 583 | 2.703125 | 3 | [] | no_license | -- =============================================
-- Proyecto: Sigein 5.0
-- Copyright (c) - Acrux - 2015
-- Author: Felipe Hernández Palafox
-- CREATE date: 07/12/2015
-- Description: obtiene catalogo de catalogos
-- =============================================
CREATE FUNCTION [ADM].[F_OBTENER_CATALOGO](@CL_CATALOGO ... | true |
d8046a1fe6007a2b07a29f1d18653bb8b0195681 | SQL | duannhqb/du-an-1-swing-mvc | /document/db/khoHang.sql | UTF-8 | 572 | 2.6875 | 3 | [] | no_license | select * from hoaDon
select * from hoaDonchitiet
delete hoadon where MaHoaDon = 99
delete HoaDonChiTiet where MaHoaDonCT = 88
select SCOPE_IDENTITY()
select @@IDENTITY
select * from nhanvien
select * from KhoHang
SELECT SUM(SoLuong) FROM KhoHang WHERE MaSanPham = 1 group by MaSanPham
SELECT MaKhoHang, SUM(SoLuong)... | true |
b0d1f73f33a7a8a5879bab12fd6c1553f0359fa3 | SQL | CrkJohn/MBDA | /MBDA/proyecto/Ciclo1/AUTOMATIZACION/disparadores.sql | UTF-8 | 5,522 | 3.8125 | 4 | [] | no_license | /*Si el estado del usuario cambia a pasivo, se tiene que verificar que no pertenezca a un equipo activo
si es asi, no le dejar√° cambiar el estado*/
CREATE OR REPLACE TRIGGER ESTADO_USUARIO
BEFORE UPDATE ON USUARIOS
FOR EACH ROW
DECLARE CONTADOR NUMBER;
BEGIN
SELECT COUNT(*) INTO CONTADOR FROM PERTENECE_EQUIPO... | true |
8eb00f2f1460f8f9290ebd28079cfb75dcb8eb48 | SQL | lianssang/BCBST-MetropolitanConventionCenter | /MetropolitanConvention/src/main/resources/data.sql | UTF-8 | 304 | 2.640625 | 3 | [] | no_license | DROP TABLE IF EXISTS Customer;
CREATE TABLE Customer (
id INT AUTO_INCREMENT PRIMARY KEY,
first_name VARCHAR(250) NOT NULL,
last_name VARCHAR(250) NOT NULL
);
INSERT INTO Customer (id, first_name, last_name) VALUES
(1, 'Santosh', 'Bandari'),
(2, 'Lian', 'Sang'),
(3, 'Maddy', 'Neelima'); | true |
9b8748fe034abeb93f4ec95113235b9b45cb2092 | SQL | andytanoko/4.2.x_integration | /GTAS/GridTalk/sqlscripts/partnerprocess/patch-GT-2.3-01.sql | UTF-8 | 1,287 | 2.9375 | 3 | [] | no_license | # Oct20 2003 GT2.3 [Guo Jianyu] Add numOfRetries, retryInterval and channelUID fields in Trigger.
use appdb;
INSERT INTO fieldmetainfo VALUES(
NULL,"_numOfRetries","NUM_OF_RETRIES","NumOfRetries","java.lang.Integer",
"com.gridnode.gtas.server.partnerprocess.model.Trigger","trigger.numOfRetries",
"0","0","0","0","0","... | true |
855088be25c77f3b67428a33e9a726240d40ef17 | SQL | RybinJD1/Shop | /webmarketDb.sql | UTF-8 | 3,251 | 3.359375 | 3 | [] | no_license | create table Accounts (
User_Name varchar(20) not null,
Active bit not null,
Password varchar(20) not null,
User_Role varchar(20) not null,
primary key (User_Name)
);
create table Order_Details (
ID varchar(50) not null,
Amount double precision not null,
... | true |
ae2afc31545367a403c70ca233b21dcbf3976c65 | SQL | IanEarnest/C8_NETCore3 | /WpfAppCore/SQL LEARNING.sql | UTF-8 | 1,126 | 4.5 | 4 | [] | no_license | /*
SELECT - extracts data from a database
UPDATE - updates data in a database
DELETE - deletes data from a database
INSERT INTO - inserts new data into a database
CREATE DATABASE - creates a new database
ALTER DATABASE - modifies a database
CREATE TABLE - creates a new table
ALTER TABLE - modifies a table
DROP TABLE -... | true |
9439082b67958c297d4a152da8a24a81b3bf288a | SQL | ArneDHont/stage1 | /Code/Database/Inspect.Database/db_inspect/Tables/db_Inspect.InspectionEquipmentFeedbackAttachment.sql | UTF-8 | 615 | 3.1875 | 3 | [] | no_license | CREATE TABLE [db_Inspect].[InspectionEquipmentFeedbackAttachment]
(
[AttachmentId] INT NOT NULL,
[InspectionEquipmentFeedbackId] INT NOT NULL ,
CONSTRAINT [FK_InspectionEquipmentFeedbackAttachment_Attachment] FOREIGN KEY (AttachmentId) REFERENCES [db_Inspect].[Attachment]([AttachmentId]),
CONSTRAINT [FK... | true |
720d12ae276d451050f11737e03fb0b50803074c | SQL | dhalfks0228/ran | /mysql/mysql-23일차/procedure예제3_18일오전(23일차).sql | UTF-8 | 405 | 3.15625 | 3 | [] | no_license | -- 수강 테이블의 이수 여부가 N -> Y로 수정되면 학생 이수학점을 계산하는 트리거 생성
use test;
drop trigger if exists update_student_point;
delimiter //
create trigger update_student_point after update on attend
for each row
begin
if new.at_pass ='Y' then
call update_point(new.at_st_num);
end if;
call update_point(new.at_st_num);
end //
delimiter ;
s... | true |
028af36d466b9d74f222ea3c6de571278a80dd5e | SQL | thomaspaulin/snc-server-go | /database/sample_data.sql | UTF-8 | 2,383 | 3.078125 | 3 | [] | no_license | -- Run after db.ddl has setup the database
-- This file loads sample data into the database for reference purposes
-- Create divisions
INSERT INTO divisions (name) VALUES ('C');
INSERT INTO divisions (name) VALUES ('B');
-- Create teams
INSERT INTO teams (name, division_id, logo_url) VALUES ('Hawks', '1', 'http://pla... | true |
7040306d4dd01da645bc8f0205c7533e474c5f75 | SQL | gxlioper/ecology | /data/Oracle/sql2014050501.sql | GB18030 | 2,693 | 2.625 | 3 | [] | no_license | delete from HtmlLabelIndex where id=32949
/
delete from HtmlLabelInfo where indexid=32949
/
INSERT INTO HtmlLabelIndex values(32949,'Ӧ')
/
INSERT INTO HtmlLabelInfo VALUES(32949,'Ӧ',7)
/
INSERT INTO HtmlLabelInfo VALUES(32949,'Sms Setting',8)
/
INSERT INTO HtmlLabelInfo VALUES(32949,'őO',9)
/
delete from HtmlLabe... | true |
4bbfe239543ec4fc6699e51127a9fc2b633c3b87 | SQL | power-cosmic/cosc571_database_project | /admin/sql/insert/addresses.sql | UTF-8 | 1,089 | 2.796875 | 3 | [
"MIT"
] | permissive | LOCK TABLES `address` WRITE;
/*!40000
ALTER TABLE `address`
DISABLE KEYS */;
INSERT INTO `address`
VALUES (1, '1600 Pennsylvania Avenue', 'Washington DC', 20006, 'DC'),
(2, '11 Wall Street', 'New York', 10005, 'NY'),
... | true |
83fdd1c1f2ef83621471f9aba47d77965f6ad39d | SQL | hao44le/CS348 | /hw/project3/CS348_Fall2017_Project3/scripts/create.sql | UTF-8 | 1,934 | 3.75 | 4 | [] | no_license | set termout off
-- Admin Tables
create table Users(
UserId integer,
Username varchar(32),
Password varchar(32),
constraint user_unique unique (Username),
primary key (UserId));
create table Roles(
RoleId integer,
RoleName varchar(32),
EncryptionKey varchar(32),
constraint role_unique unique (RoleName),
pr... | true |
6942afd9f795e14ad006b1fd28bf816604ddeca2 | SQL | vendethiel/ideas-luminus.clj | /resources/migrations/20150906-2249-create-implementations.up.sql | UTF-8 | 651 | 3.390625 | 3 | [] | no_license | CREATE TABLE implementations (
id SERIAL PRIMARY KEY,
idea_id integer NOT NULL REFERENCES ideas,
user_id integer NOT NULL REFERENCES users,
repo_url varchar(255),
demo_url varchar(255),
comment text
);
--;;
CREATE TABLE screenshots (
id SERIAL PRIMARY KEY,
implementation_id integer NOT NULL REFERENCES i... | true |
3657f2a75c9b4adacedf0c49b38233450160fd12 | SQL | jsdnhk/python-100-days | /Day36-40/code/mooc_create_and_init.sql | UTF-8 | 1,642 | 3.0625 | 3 | [] | no_license | drop database if exists mooc1706;
create database mooc1706 default charset utf8;
use mooc1706;
create table tb_course_catalog
(
catid integer not null auto_increment,
catname varchar(20) not null,
catparent integer,
primary key (catid)
);
alter table tb_course_catalog add constraint fk_catalog_parent
foreign key (c... | true |
68306b6c114dddec24690959c907340510b9a8ad | SQL | bitgittry/BaseCodeAnalysis | /trunk/dbv/stored_routines/CommonWalletColossusInitializeRequest.sql | UTF-8 | 13,669 | 3.296875 | 3 | [] | no_license | DROP procedure IF EXISTS `CommonWalletColossusInitializeRequest`;
DELIMITER $$
CREATE DEFINER=`bit8_admin`@`127.0.0.1` PROCEDURE `CommonWalletColossusInitializeRequest`(poolID BIGINT, sessionKey VARCHAR(80), betAmount DECIMAL(18, 5), stakeAmount DECIMAL(18, 5), realMoneyOnly TINYINT(1), ignoreSessionExpiry TINYINT(1),... | true |
abccaefd7876e08687ff1e78aa3eb6584745cfc9 | SQL | gnome74699/PHP | /Test_bos_menu_inte/sql.sql | UTF-8 | 753 | 2.828125 | 3 | [] | no_license | CREATE TABLE `interruptions` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'identifiant du timer sur cg',
`stamp_maj` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`transport` varchar(32) NOT NULL COMMENT 'transport affecte',
`type` int(1) NOT NULL DEFAULT '0' COMMENT 'type d intervention :... | true |
43b4d6452fed93883a4513b3f89d55d78b7944e4 | SQL | Kwamenas/SQL | /top 10 bundles.sql | UTF-8 | 1,733 | 3.984375 | 4 | [] | no_license | SELECT * FROM ( SELECT n.offer_name, SUM (a.charge) / 100 total_amount, COUNT (*) eventcount FROM event_charge a
LEFT OUTER JOIN (SELECT h.price_id, d.offer_name FROM price_ver a, rate_plan b, offer_ver c, offer d, price h WHERE a.price_ver_id = h.price_ver_id
AND b.offer_ver_id = c.offer_ver_id
AND c.offer_id = d... | true |
2ba23500c2d3c4835e65645806c1b5bb7d3b1d1b | SQL | shrutisinghania/Online-Assessment-System | /online_assesment.sql | UTF-8 | 4,970 | 3.203125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 21, 2018 at 09:04 AM
-- Server version: 10.1.26-MariaDB
-- PHP Version: 7.1.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
87007bc5e633becf07d34505fee70a392c98a886 | SQL | hmonjurul00/library-management-system | /librarybookstore.sql | UTF-8 | 3,492 | 3.375 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 30, 2021 at 08:20 PM
-- 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_CLIEN... | true |
251ccb9d1b9a910b2d4dbb169e2fa661ec2906a4 | SQL | Gedemon/RED-WWII-Reloaded | /SQL/08- NewImprovements.sql | UTF-8 | 4,470 | 2.609375 | 3 | [] | no_license |
----------------------------------------------------------
-- ArtDefine_Landmarks
----------------------------------------------------------
INSERT INTO ArtDefine_LandmarkTypes (Type, LandmarkType, FriendlyName) VALUES
('ART_DEF_IMPROVEMENT_DEPOT', 'Improvement', 'Depot' ),
('ART_DEF_IMPROVEMENT_AIRFIELD', ... | true |
4dc77ef040d57f800c37ce2ae549a447d496fe05 | SQL | apache/spark | /sql/core/src/test/resources/sql-tests/inputs/group-analytics.sql | UTF-8 | 5,941 | 4.28125 | 4 | [
"BSD-3-Clause",
"CC0-1.0",
"CDDL-1.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"LGPL-2.0-or-later",
"Python-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",... | permissive | CREATE OR REPLACE TEMPORARY VIEW testData AS SELECT * FROM VALUES
(1, 1), (1, 2), (2, 1), (2, 2), (3, 1), (3, 2)
AS testData(a, b);
-- CUBE on overlapping columns
SELECT a + b, b, SUM(a - b) FROM testData GROUP BY a + b, b WITH CUBE;
SELECT a, b, SUM(b) FROM testData GROUP BY a, b WITH CUBE;
-- ROLLUP on overlapping... | true |
34775fbea401dbd59312f5464b3fef1e72c7551a | SQL | arifeca/ShoesClean | /eca.sql | UTF-8 | 10,014 | 3.046875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 17, 2020 at 01:24 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.2.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
bfa285bbce7854becd9c2c8181a246286f8a825e | SQL | JackHunx/cms | /modules/lianmeng/lianmeng.sql | GB18030 | 1,071 | 2.765625 | 3 | [] | no_license | DROP TABLE IF EXISTS `{lianmeng}`;
CREATE TABLE `{lianmeng}` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(30) NOT NULL COMMENT '',
`site_id` int(11) NOT NULL COMMENT 'ĿID',
`flag` varchar(30) NOT NULL COMMENT '',
`status` int(2) NULL COMMENT '״̬',
`order` varchar(10) NOT NULL COMMENT '',
`litpi... | true |
89b5eeb53cd328debba73841991eb5cdb304d2be | SQL | arkaacharya/CS_307-Fall2017 | /Database/DBSprint1.sql | UTF-8 | 1,535 | 3.015625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.1.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 04, 2017 at 10:05 PM
-- Server version: 5.1.37
-- PHP Version: 5.2.9
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `examination`
--
-- ------------------------------------------... | true |
72645fc608a50206264d0f89e49e579ab4319bc4 | SQL | BGCX262/zyk-svn-to-git | /trunk/repository/sql/7color.sql | UTF-8 | 8,517 | 3.109375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.3.0
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2010 年 05 月 16 日 13:49
-- 服务器版本: 5.1.35
-- PHP 版本: 5.2.10
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R... | true |
dbdbd7cc7240bc38e3c65c2a78a094e81ae0ef5f | SQL | Sweng29/Hospital-Management-System | /hospital management system.sql | UTF-8 | 16,198 | 3.40625 | 3 | [] | no_license | /*
SQLyog Ultimate v11.33 (64 bit)
MySQL - 10.1.25-MariaDB : Database - hospital_management_system
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014... | true |
99626fd64ebbb084878ff532b4a2c5a62341dc0d | SQL | Krystalxd/labs_MySQL | /lab5_2.sql | UTF-8 | 11,473 | 3.765625 | 4 | [] | no_license | /*1.1*/
select * from account;
update account
set acc_balance = 1600
where acc_start_date = '2014-08-18';
DELIMITER //
create procedure transfer1(in sender varchar(50), in rec varchar(50), in sum integer)
begin
declare var int;
declare var1 int;
set var = (select acc_balance from account
where acc_owner=sender ord... | true |
0dd6b539ec942519038eaf8ab025f8b4f700fb08 | SQL | jaapgeurts/photostage | /PhotoStage/resources/database_schema.sql | UTF-8 | 3,027 | 3.21875 | 3 | [] | no_license | create table if not exists path (
id integer primary key autoincrement,
directory varchar,
parent_id integer references path (id),
lft integer not null default (0),
rgt integer not null default (0)
);
create table if not exists photo (
id integer primary key autoincremen... | true |
df20bc59fe627cf4ecea241bafef49b0ae16da7b | SQL | chrysr/OASA-redesign | /database/sdi1500205.sql | UTF-8 | 12,000 | 3.09375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jan 11, 2020 at 11:35 AM
-- Server version: 10.4.10-MariaDB
-- PHP Version: 7.3.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
20dff405580b4a9bb0849596e90808d866e63376 | SQL | lliurex/analytics-server | /lliurex-analytics-server/usr/lib/analytics-server/purge_old_data.sql | UTF-8 | 4,050 | 3.828125 | 4 | [] | no_license | use analytics;
start transaction;
DELIMITER $$
DROP PROCEDURE IF EXISTS drop_index_if_exists $$
CREATE PROCEDURE drop_index_if_exists(in theTable varchar(128), in theIndexName varchar(128) )
BEGIN
IF((SELECT COUNT(*) AS index_exists FROM information_schema.statistics WHERE TABLE_SCHEMA = DATABASE() and table_name =
t... | true |
7974d0d84525aed661edf1c6f4ef062d5145e3ea | SQL | AndrewSlastenko/aikamtt | /testdb.sql | UTF-8 | 2,361 | 3.1875 | 3 | [] | no_license | --
-- PostgreSQL database dump
--
-- Dumped from database version 11.0
-- Dumped by pg_dump version 11.0
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', fal... | true |
ece1f936383da6a218b80934803f5f6430bfd13c | SQL | lxndrvn/sql-native-basic-exercises-lxndrvn | /6-inserting-a-new-applicant.sql | UTF-8 | 652 | 3.265625 | 3 | [] | no_license | -- After you returned the hat, a new applicant appeared at the school, and he wants to get into the application process.
-- His name is Markus Schaffarzyk, has a number: 003620/725-2666 and e-mail address: djnovus@groovecoverage.com
-- Our generator gave him the following application code: 54823
-- After INSERTing the... | true |
72b45c600f9f3f5cd9b6399bd3eab05230217bfc | SQL | AntonGladyr/smarthouse-server | /database_scripts/creation.sql | UTF-8 | 633 | 3.609375 | 4 | [] | no_license |
-- USER
CREATE DATABASE IF NOT EXISTS HomeControl;
GRANT ALL ON HomeControl.* TO 'homecontrol'@'localhost' IDENTIFIED BY 'unicorn';
-- TABLES;
USE HomeControl;
CREATE TABLE IF NOT EXISTS temperatures(
time DATETIME,
controller VARCHAR(20),
value_type VARCHAR(20),
value FLOAT
);
CREATE TABLE IF NOT E... | true |
397195f55c801fa1634ba52560425cc5c13b798a | SQL | jongah/CodingTest | /프로그래머스/Level_1/SQL.sql | UTF-8 | 1,028 | 4.40625 | 4 | [] | no_license | -- 최댓값 구하기
SELECT MAX(DATETIME) AS '시간'
FROM ANIMAL_INS
-- 모든 레코드 조회하기
SELECT * FROM ANIMAL_INS
-- 역순 정렬하기
SELECT NAME, DATETIME
FROM ANIMAL_INS
ORDER BY ANIMAL_ID DESC
--ORDER BY [] ASC는 오름차순정렬
-- 아픈 동물 찾기
SELECT ANIMAL_ID, NAME
FROM ANIMAL_INS
WHERE INTAKE_CONDITION = 'SICK'
-- 어린 동물 찾기
SELECT ANIMAL_ID, NAME
FRO... | true |
9706434b0d4218dd16d0902b1da222e6811d2d40 | SQL | Paoola/hackatont_trek | /hackaton.sql | UTF-8 | 4,847 | 2.78125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 13, 2016 at 03:10 AM
-- Server version: 5.5.49-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... | true |
a0b4d291a6cbae29c3b124e1d19b47e9741c903b | SQL | bustinjailey/keg-pi | /sql/create_schema.sql | UTF-8 | 751 | 3.53125 | 4 | [
"MIT"
] | permissive | CREATE TABLE lu_brewery (
brewery_id SERIAL PRIMARY KEY,
name TEXT
);
CREATE TABLE lu_beer (
beer_id SERIAL PRIMARY KEY,
name TEXT,
full_name TEXT,
brewery_id INT REFERENCES lu_brewery (brewery_id),
beer_style_id INT REFERENCES lu_beer_style (beer_style_id)
);
CREATE TABLE lu... | true |
de50b407e84d22d219b137b89ebe29404878a28d | SQL | rldutch1/sql_repo | /MySQL/Bakbone/pathquery.sql | UTF-8 | 581 | 3.234375 | 3 | [] | no_license | select
jo.nv_job_id,
jo.job_dt_tm,
jo.tape_id,
lf.tape_id,
jo.jobtitle
from
jobs jo
join logfiles lf on (lf.jobs_id = jo.id)
limit 0, 100;
select
jo.nv_job_id,
jo.job_dt_tm,
jo.tape_id,
jo.jobtitle,
ba.path
from
jobs jo
join logfiles lf on (lf.jobs_id = jo.id)
join backups ba on (ba.log_id = lf.id)
and ba.... | true |
800c4f7530c14acfb0730d9f25907f44765a1f6a | SQL | metchegaray33/modustest | /src/main/resources/schema.sql | UTF-8 | 808 | 3.109375 | 3 | [] | no_license |
CREATE TABLE IF NOT EXISTS `feriados` (
`id` bigint NOT NULL AUTO_INCREMENT,
`descripcion` varchar(255) DEFAULT NULL,
`fecha` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `suppliers` (
`id` bigint NOT NULL AUTO_INCREMENT,
`name` var... | true |
c2b9efc34850419933add6b0dd55303787790fca | SQL | endfs/clientes-oriontek | /Documentacion proyecto/DB/Query/Query.sql | UTF-8 | 1,296 | 3.65625 | 4 | [] | no_license | -- Creaando objetos en la base de datos
create table Usuario
(
ID_Usuario int PRIMARY key AUTO_INCREMENT not null,
Nombre varchar(500),
Apellidos varchar(1000),
CorreoElectronico varchar(1000)
);
create table Cliente_direccion
(
ID_Cliente_Direccion int not null PRIMARY key AUTO_INCREMENT,
ID_C... | true |
2c0df56f1d0e47184f497dfb64ed5286ae911bde | SQL | FoxComm/highlander | /phoenix-scala/sql/V4.107__create_returns_search_view.sql | UTF-8 | 691 | 3.0625 | 3 | [
"MIT"
] | permissive | create table returns_search_view
(
id bigint not null unique,
reference_number reference_number not null unique,
order_id bigint not null references orders_search_view(id),
order_ref reference_number not null,
created_at text,
state return_state not null,
total_refund integer,
message_to... | true |
8237adfe9a29816b5b983f7f742c6c8df5e16b83 | SQL | EminGaraca/GuestBookApplicationBySpringFramework | /guestbook.sql | UTF-8 | 1,359 | 2.953125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Aug 05, 2019 at 08:47 PM
-- Server version: 8.0.13
-- PHP Version: 7.2.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... | true |
7306a259b84d71f5fa58881b1fd682e313840506 | SQL | davidyell/Testing-CakePHP-Workbench | /db/Users-Groups-GroupsUsers.sql | UTF-8 | 1,500 | 2.921875 | 3 | [] | no_license | CREATE TABLE IF NOT EXISTS `groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
INSERT INTO `groups` (`id`, `name`, `created`, `modified`) VALUES
... | true |
4ca342c617147758344a02cefbeaa64e7ccba757 | SQL | martagpb/tennis-project | /704_create_pqb_db_creneau.sql | WINDOWS-1252 | 3,415 | 3.71875 | 4 | [] | no_license | -- -----------------------------------------------------------------------------
-- Cration du corps du package d'accs la base de donnes
-- pour la table CRENEAU
-- Oracle Version 10g
-- (14/05/2011)
-- ----------------------------------------------... | true |
6109fb97feca3e3872b517f9841284a750b8120f | SQL | Alexey-N-Chernyshov/DMD_project | /src/sql/queries/select_article_by_authors_cite.sql | UTF-8 | 537 | 4.09375 | 4 | [] | no_license | SELECT article.paper_title, SUM(cnt) AS auth_range
FROM
article,
article_author,
(SELECT author.id, author.name, count(*) AS cnt
FROM
author,
article_author,
article,
cite
WHERE
author.id = article_author.author_id AND
article.id = article_author.article_id AND
a... | true |
c899ec9c434b122793e2cf8f82d673fb715c05a3 | SQL | sat8bit/oiseal | /db/init/tables/seal.sql | UTF-8 | 308 | 2.578125 | 3 | [] | no_license | CREATE TABLE seal(
user_id VARCHAR(32) NOT NULL,
place_id VARCHAR(64) NOT NULL,
place_name VARCHAR(128) NOT NULL,
latitude DECIMAL(16, 12) NOT NULL,
longitude DECIMAL(16, 12) NOT NULL,
update_dt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(user_id, place_id)
) ENGINE=INNODB;
| true |
ab54b2bc5d8a4904d2dcfc8490a6cfd639eab530 | SQL | DForshner/MSSQLExperiments | /FindSPIDLockingTables.sql | UTF-8 | 250 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | -- Return list of SPIDs locking tables
select distinct object_name(a.rsc_objid), a.req_spid, b.loginame
from master.dbo.syslockinfo a (nolock) join
master.dbo.sysprocesses b (nolock) on a.req_spid=b.spid
where object_name(a.rsc_objid) is not null | true |
a4b7d6b6622e93eaf0c71cb1d37e0cc3ac06c8e5 | SQL | Sir-Hedgehog/job4j | /chapter_013/src/main/resources/sql/automobiles/history_owner.sql | UTF-8 | 236 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | create table history_owner (
id serial PRIMARY KEY,
driver_id int not null references driver(id),
car_id int not null references car(id)
);
select * from history_owner;
delete from history_owner;
drop table history_owner;
| true |
3f6a425eb45120b6775ed464f2aa95175225de28 | SQL | jakubowiczish/database-systems | /oracle/src/tables/create_tables.sql | UTF-8 | 1,202 | 3.5625 | 4 | [] | no_license | CREATE TABLE OSOBY
(
ID_OSOBY INT GENERATED ALWAYS AS IDENTITY NOT NULL,
IMIE VARCHAR2(50),
NAZWISKO VARCHAR2(50),
PESEL VARCHAR2(11),
KONTAKT VARCHAR2(100),
CONSTRAINT OSOBY_PK PRIMARY KEY (ID_OSOBY) ENABLE
);
CREATE TABLE WYCIECZKI
(
ID_WYCIECZKI INT GENERATED ALWAYS AS IDENTITY... | true |
01446388713e2bcac3de44f2ed032b3c6bf55612 | SQL | AlbertoBales/Projeto-agenda | /sql/script_modelo_dados_agenda.sql | UTF-8 | 1,421 | 3.03125 | 3 | [] | no_license | -- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI... | true |
b4a15c0677575e1dda9657c221995951de923c3c | SQL | LinaVakanas/COMP0034 | /webapp.sql | UTF-8 | 2,691 | 3.671875 | 4 | [] | no_license | USE webapp;
CREATE TABLE IF NOT EXISTS user
(
password_hash VARBINARY(3) NOT NULL,
name VARCHAR(32) NOT NULL,
surname VARCHAR(32) NOT NULL,
bio TEXT(140) DEFAULT NULL,
email VARCHAR(255) UNIQUE NOT NULL PRIMARY KEY,
active ... | true |
c0a4e4af2c1582e21f4972b53014c31f8a00616a | SQL | JmblissItSolutions/staging.acclaimedhw.com | /replatform/database/server_backup/realstate_product_features_relationship.sql | UTF-8 | 1,952 | 2.953125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 07, 2021 at 12:43 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
352db4b041e522a0d478a76ab4654864921c60fe | SQL | radtek/scripts-oracle-named | /Tabelas/consultar_tabelas_high_water.sql | UTF-8 | 573 | 3.921875 | 4 | [
"MIT"
] | permissive | select a.owner,
a.table_name,
b.blocks "alocated blocks",
a.blocks "used blocks",
(b.blocks-a.empty_blocks-1) "high water"
from dba_tables a,
dba_segments b
where a.table_name=b.segment... | true |
757d27f6cd93891ddeb7386c392cbc5b220e7d17 | SQL | achriyatuls/notes | /users.sql | UTF-8 | 1,170 | 2.578125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 15 Okt 2020 pada 05.47
-- Versi server: 10.4.14-MariaDB
-- Versi PHP: 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH... | true |
5dcc783a46808403cd523b02c13be3001edefa20 | SQL | thehyve/OHDSI-ETL-Synthea | /ETL/SQL/insert_condition_era.sql | UTF-8 | 3,625 | 4.125 | 4 | [
"Apache-2.0"
] | permissive |
-- This script is taken from here:
-- https://github.com/OHDSI/ETL-CMS/blob/master/SQL/create_CDMv5_condition_era.sql
--
drop sequence if exists condition_era_id_seq;
create sequence condition_era_id_seq start with 1;
WITH cteConditionTarget (condition_occurrence_id, person_id, condition_concept_id, condition_start_d... | true |
ae6898dfff797ca438dd9540553cf247d3d54f83 | SQL | abhishekvit/Decoders-Hack | /xpense.sql | UTF-8 | 2,842 | 3.296875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 11, 2018 at 11:45 AM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.2.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
2d00f6af43c095fb0f22f0a87ca3ce6b0fb2d7c4 | SQL | ROHITHNAIDU/CityBank-Project | /Bank/sql/bank.sql | UTF-8 | 2,880 | 3.296875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 10, 2021 at 10:44 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.4.13
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
dc1403bbcdb26bb0896ce9aae2bc1cb711a8c0b4 | SQL | footprintes/open-platform | /docs/sql/data/update.sql | UTF-8 | 802 | 2.671875 | 3 | [
"MIT"
] | permissive | # base.sql
ALTER TABLE `base_app` ADD COLUMN `is_sign` TINYINT(3) NOT NULL DEFAULT 0 COMMENT '是否验签:0-否 1-是 不允许删除' AFTER `is_persist`;
ALTER TABLE `base_app` ADD COLUMN `is_encrypt` TINYINT(3) NOT NULL DEFAULT 0 COMMENT '是否加密:0-否 1-是 不允许删除' AFTER `is_sign`;
ALTER TABLE `base_app` ADD COLUMN `encrypt_type` VARCHAR(10) NO... | true |
5084e6e238c23f3ae81dc97292b479be4be95d24 | SQL | sobhani98/Freelancer | /freelancer.sql | UTF-8 | 3,894 | 3.4375 | 3 | [] | no_license | /*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 10.3.16-MariaDB : Database - mydb
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_... | true |
3ea7c3283f1b88b0b62596779d63dd5a9da1983b | SQL | OlegB1488/srez5 | /srez1 (1).sql | UTF-8 | 5,502 | 3.015625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Май 24 2021 г., 22:40
-- Версия сервера: 5.7.29
-- Версия PHP: 7.3.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR... | true |
4728b12eb4855146e575154ff6046069d18bd1b5 | SQL | Meirlianah/Teknoweb-CRUD | /tugas1 (2).sql | UTF-8 | 4,275 | 3.234375 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 14 Apr 2021 pada 18.21
-- Versi server: 10.4.18-MariaDB
-- Versi PHP: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH... | true |
14f627a542eb37f74d1a90cfad435b534b246971 | SQL | Z-Jiao/nyist_shop | /src/main/resources/db/migration/V3__insert_data.sql | UTF-8 | 6,929 | 2.828125 | 3 | [] | no_license | -- 学院表数据
INSERT INTO `t_college` VALUES ('1', '机械与汽车工程学院');
INSERT INTO `t_college` VALUES ('2', '计算机与信息工程学院');
INSERT INTO `t_college` VALUES ('3', '电子与电气工程学院');
INSERT INTO `t_college` VALUES ('4', '土木工程学院');
INSERT INTO `t_college` VALUES ('5', '建筑与城市规划学院');
INSERT INTO `t_college` VALUES ('6', '艺术设计学院');
INSERT INT... | true |
ad8b231757fc56dbc4c948f8ba1317fd0e051251 | SQL | thisperfect/dhsx | /backup/database/table/faction_job.sql | UTF-8 | 532 | 3.109375 | 3 | [] | no_license | DROP TABLE IF EXISTS `faction_job`;
CREATE TABLE `faction_job`
(
`id` INTEGER NOT NULL AUTO_INCREMENT COMMENT '帮派职务ID'
,`sign` VARCHAR(20) NOT NULL COMMENT '帮派职务标识'
,`name` VARCHAR(20) NOT NULL COMMENT '帮派职务名称'
,CONST... | true |
072d9baa5400fd7d55b1f88a8eebafef108e5764 | SQL | pljson/pljson | /testsuite-utplsql/utplsql_pljson_parser_test.sql | UTF-8 | 8,315 | 2.890625 | 3 | [
"MIT"
] | permissive |
create or replace package utplsql_pljson_parser_test is
--%suite(pljson_parser test)
--%suitepath(core)
--%beforeall
procedure set_json_strict;
--%test(Test number starts with 0-9)
procedure test_scanner_digits;
--%test(Test digits in fraction)
procedure test_digits_fraction;
--%test(T... | true |
b700480e06528309b052a08e3781f5736533f07b | SQL | openmaplt/vector-map | /db/gen_forest.sql | UTF-8 | 2,222 | 3.875 | 4 | [
"MIT"
] | permissive | drop table if exists gen_forest;
drop sequence if exists gen_forest_seq;
create sequence gen_forest_seq;
------------------
-- resolution 10
------------------
create table gen_forest as
select nextval('gen_forest_seq') AS id
,0::bigint AS way_area
,10 AS res
,ST_CollectionExtract(unnest(ST_C... | true |
6a13065e39aa29bf8dec49b3550b465cf693df30 | SQL | MajewskiMichal/communicator | /queries.sql | UTF-8 | 406 | 3.296875 | 3 | [] | no_license | CREATE TABLE User (
id int AUTO_INCREMENT,
email varchar(255) UNIQUE,
username varchar(255),
hashed_password varchar(60),
PRIMARY KEY(id)
);
CREATE TABLE Message (
id int AUTO_INCREMENT,
sender_id int NOT NULL,
receiver_id int NOT NULL,
content text,
PRIMARY KEY(id),
FOREIGN K... | true |
9f0a1e16a9df02355ed65ef6f8b578add7360306 | SQL | timchapelle/Chapelle_PHP | /assets/db/db.sql | UTF-8 | 6,239 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Mar 04 Avril 2017 à 16:19
-- Version du serveur: 5.5.54-0ubuntu0.14.04.1
-- Version de PHP: 7.0.15-1+deb.sury.org~trusty+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
3aa1b120943407125068e8954fc31c5b3d200fca | SQL | tanglongjia/cashloan | /doc/database/xindaibao_20171115.sql | UTF-8 | 1,946 | 2.59375 | 3 | [] | no_license | ALTER TABLE cl_fraud_td_hit_list
ADD COLUMN `frequency_detail_mob_idcard_cnt_90d` INTEGER (9) DEFAULT NULL COMMENT '3个月身份证关联手机号数';
ALTER TABLE cl_fraud_td_hit_list
ADD COLUMN `frequency_detail_email_idcard_cnt_90d` INTEGER (9) DEFAULT NULL COMMENT '3个月身份证关联邮箱数';
ALTER TABLE cl_fraud_td_hit_list
ADD COLUMN `frequ... | true |
5e00e5611a66867b764caf2500b656e7c280097a | SQL | rzkiiawldn/web-it-helpdesk | /db_helpdesk.sql | UTF-8 | 3,462 | 2.984375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | -- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 15 Agu 2021 pada 09.34
-- Versi server: 10.4.11-MariaDB
-- Versi PHP: 7.3.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... | true |
fef6f1bd97a8636f48eaef42d9afef952e1c7553 | SQL | ZeshanNSegal/Database_Excercises | /select_exercise.sql | UTF-8 | 623 | 3.328125 | 3 | [] | no_license | USE codeup_test_db;
SELECT name AS 'The Name of MJ''s Album is:'
FROM albums
WHERE name = 'Thriller';
SELECT release_date AS 'The Year Grease was released was:'
FROM albums
WHERE name = 'Grease: The Original Soundtrack from the Motion Picture';
SELECT genre AS 'The Genre of Queen''s Album is:'
FROM albums
WHE... | true |
1ae2bcc6d95683ca9509c4e3028e69a21002cfa5 | SQL | Monkeysteingames/SQL-DDL-Exercise | /music.sql | UTF-8 | 748 | 3.25 | 3 | [] | no_license | -- from the terminal run:
-- psql < music.sql
DROP DATABASE IF EXISTS music;
CREATE DATABASE music;
\c music
CREATE TABLE producers
(
id SERIAL PRIMARY KEY,
producers TEXT NOT NULL
);
CREATE TABLE artists
(
id SERIAL PRIMARY KEY,
artists TEXT NOT NULL
);
CREATE TABLE songs
(
id SERIAL PRIMARY KEY,
tit... | true |
958bbd6507d4075e6a0bb3bef4160d319ebd317b | SQL | mengxin1995/tp_php | /install/data/utf8_cms.sql | UTF-8 | 17,097 | 3.5 | 4 | [
"Apache-2.0"
] | permissive |
CREATE TABLE `#__cms_article` (
`article_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章编号',
`article_title` varchar(50) NOT NULL COMMENT '文章标题',
`article_class_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文章分类编号',
`article_origin` varchar(50) DEFAULT NULL COMMENT '文章来源',
`article_origin... | true |
80ee9d3e1f2e0b51c8457fc987f3fdf1f40e2e56 | SQL | PengJi/DBtest | /MySQL/sample.sql | UTF-8 | 1,780 | 3.9375 | 4 | [] | no_license | -- 学生表
drop table if exists stu;
CREATE TABLE stu(
id int primary key auto_increment comment '学生id',
sno char(11) unique key comment '学号', #二级唯一索引
name varchar(11) default 'test' comment '学生姓名',
age smallint default 25 comment '学生年龄',
score int default 90 comment '学生分数', #用于测试
key `idx_name` (... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.