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
d6f78a7c49778bd42609bc19a61137955dd875d8
SQL
pandeyanuradha/Jeevan-Daan
/Backend/tables/alltables.sql
UTF-8
7,581
3.078125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `patient` ( `pid` INT AUTO_INCREMENT NOT NULL, `first_name` VARCHAR(255) NOT NULL, `last_name` VARCHAR(255), `time_of_death` DATETIME, `agreement` TINYINT(1) DEFAULT '0' NOT NULL, `braindead` TINYINT(1) DEFAULT '0' NOT NULL, `icuid` INT, `did` INT, ...
true
9e20d5db8feebc4fa56361899c798c3acbd336f9
SQL
mohantyabhijit/mindkart
/sql-queries/create-table-user.sql
UTF-8
409
2.84375
3
[]
no_license
CREATE TABLE [User] ( UserId INT NOT NULL IDENTITY(1,1), FirstName VARCHAR(50) NOT NULL, LastName VARCHAR(50) NOT NULL, UserEmail VARCHAR(30) NOT NULL, UserPhoneNo VARCHAR(20) NOT NULL, UserAddress VARCHAR(200) NOT NULL, UserState VARCHAR(20) NOT NULL, UserCity VARCHAR(50) NOT NULL, UserZip VARCHAR(10) NOT NU...
true
f9e0e298f8afd7de232fef83c04629f24670e7d7
SQL
social-inn/Reviews
/database_SDC/cassandra_schema.cql
UTF-8
902
3.328125
3
[]
no_license
CREATE KEYSPACE reviews WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; USE KEYSPACE reviews; DROP TABLE IF EXISTS reviews; CREATE TABLE reviews ( review_id INT, room_id INT , username VARCHAR , gender INT , profilepicnum INT , reviewdate VARCHAR , sentence ...
true
7f0fee2b09195971bac255dc4fd5520986daabd1
SQL
damienlenoir/moderator
/commentaires.sql
UTF-8
2,516
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 22, 2016 at 12:11 AM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
4f8d59e3bfe58cc7390a4dfff1065233b221eb18
SQL
chinadayi/zlcgroup
/form/install.sql
UTF-8
1,072
3
3
[]
no_license
DROP TABLE IF EXISTS `retengcms_form`; CREATE TABLE `retengcms_form` ( `id` mediumint(8) NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL, `table` varchar(30) NOT NULL, `siteid` smallint(4) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `retengcms_form_fields`; CRE...
true
a8d8a06241552465fd3e98c73972314842463fc9
SQL
angel-aleksandrov06/SoftUni-Engineering-CSharp
/Databases Basics - MS SQL Server/Exams/ExamPreparation1/09. FullInfo.sql
UTF-8
460
4.0625
4
[]
no_license
SELECT (FirstName + ' ' + LastName) AS [Full Name], pl.[Name] AS [Plane Name], (f.Origin + ' - ' + f.Destination) AS [Trip], lt.Type AS [Luggage Type] FROM Passengers p JOIN Tickets t ON t.PassengerId = p.Id JOIN Flights f ON t.FlightId = F.Id JOIN Planes pl ON f.PlaneId = pl.Id JOIN Luggages l ON t.Lug...
true
39c4058d153ac88730774ebbdc879afc68555f08
SQL
RubenBranco/AD2018
/tv_series_manager/server/schema.sql
UTF-8
959
3.90625
4
[ "MIT" ]
permissive
PRAGMA foreign_keys = ON; CREATE TABLE users ( id INTEGER PRIMARY KEY, name VARCHAR(128), username VARCHAR(64), password VARCHAR(64) ); CREATE TABLE classification ( id INTEGER PRIMARY KEY, initials VARCHAR(10), description TEXT ); CREATE TABLE category ( id INTEGER PRIMARY KEY, name VARCHAR(20), ...
true
e67053e012e9a0c5cc71ecf9ddc5a56b6bb0d47b
SQL
crate/crate-demo
/gce-coreos/schema.sql
UTF-8
647
3.28125
3
[]
no_license
-- users DROP TABLE users; CREATE TABLE users ( username STRING PRIMARY KEY, name STRING, address STRING INDEX USING FULLTEXT, date_of_birth TIMESTAMP, date_joined TIMESTAMP, month_partition STRING PRIMARY KEY ) CLUSTERED INTO 4 shards PARTITIONED BY (month_partition) WITH (number_of_replica...
true
9f101e6347b136f2f40ddf3c2e51e68721f0df37
SQL
leongold/ovirt-engine
/packaging/dbscripts/upgrade/03_06_0370_gluster_georep_tables.sql
UTF-8
2,359
3.65625
4
[ "Apache-2.0" ]
permissive
-- Add gluster_georep_session table CREATE TABLE gluster_georep_session ( session_id UUID NOT NULL, master_volume_id UUID NOT NULL, session_key VARCHAR(150) NOT NULL, slave_host_uuid UUID, slave_host_name VARCHAR(50), slave_volume_id UUID, slave_volume_name VARCHAR(50), status VARCHAR, ...
true
12fbf3eed241b64defcbec934960c8fe76858c8c
SQL
robjlong/data-check
/DataIntegrityCheck.DB/data_testing/Stored Procedures/DeleteQueryAssignment.sql
UTF-8
2,130
3.171875
3
[ "Apache-2.0" ]
permissive
-- [data_testing].[DeleteQueryAssignment] -- -- -- -- -- -- -- EXEC [data_testing].[DeleteQueryAssignment] -- -------------------------------------------------------------------------------- -- Change History -------------------------------------------------------------------------------- -- Version Date A...
true
d667278c5cbbe8fe326dadcdf025cacecbce7c3f
SQL
Rashld/SQL
/stepic_sql/1_3_05.sql
UTF-8
754
3.65625
4
[]
no_license
Исходные данные База данных магазина `store_simple` состоит из одной таблицы `store` следующей структуры: CREATE TABLE IF NOT EXISTS `store_simple`.`store` ( `product_name` VARCHAR(255) NULL, `category` VARCHAR(255) NULL, `price` DECIMAL(18,2) NULL, `sold_num` INT NULL) ENGINE = InnoDB; Задание Выведите коли...
true
b46fe4b664c7c84be309f963b05e6980dec170fd
SQL
majoflosa/simulation-3
/helo/db/getPostImagesQuery.sql
UTF-8
171
3.28125
3
[]
no_license
SELECT i.image_url, u.username, p.title, p.content FROM posts p JOIN helo_images i ON i.post_id = p.id JOIN helo_users u ON u.id = p.author_id WHERE p.id = $1;
true
34a891ac47689eb645d04f1ecf988f809681b21d
SQL
hdlxt/SpringDataJpaDemo
/demo.sql
UTF-8
870
2.609375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50721 Source Host : localhost:3306 Source Database : demo Target Server Type : MYSQL Target Server Version : 50721 File Encoding : 65001 Date: 2019-01-26 13:42:10 */ SET FOREIGN_KEY_CHE...
true
235d0bbf64581a2a80bfc26845c56c8659054901
SQL
CUBRID/cubrid-testcases
/sql/_27_banana_qa/issue_5765_timezone_support/_02_type_conversions/_01_explicit_conversion/cases/_01_dt_to_collection.sql
UTF-8
1,954
3.578125
4
[ "BSD-3-Clause" ]
permissive
--cast DATETIME(L)TZ columns to collection data types drop table if exists tz_test; create table tz_test(id int, ts datetime, dtltz datetime with local time zone, dttz datetime with time zone); set timezone 'UTC'; insert into tz_test values(1, datetimeltz'2019-01-02 12:00:01.999', datetimetz'2019-01-02 12:00:01.999...
true
bbbfb9c932a02bafdee2de1a6be605704cb39245
SQL
ThierryStPierre/ProjetAECWeb
/SQL/Evenement.sql
UTF-8
698
2.75
3
[]
no_license
create table Evenement ( ID_Evenement int NOT NULL AUTO_INCREMENT, ID_PersonneBut int, ID_PersonnePasse1 int, ID_PersonnePasse2 int, ID_Partie int NOT NULL, ID_PersonnePenalite int, ID_PersonneTire int, UNIQUE(ID_Evenement), PRIMARY KEY (ID_Evenement), FOREIGN KEY(ID_Pers...
true
6f7acdd5ecae135f55e31d339f5f9e84781acaa2
SQL
lennonprado/postgres-db-crud
/G19_Creacion.sql
UTF-8
14,890
3.21875
3
[]
no_license
-- TUDAI 2017 -- TRABAJO PRACTICO ESPECIAL -- BASES DE DATOS -- Eduardo Bravo y Marcelo Prado -- table: GR19_Categoria CREATE TABLE GR19_Categoria ( cdoCategoria varchar(20) NOT NULL, cdoDisciplina varchar(10) NOT NULL, descripcion varchar(200) NOT NULL, edadMinima int NOT NULL, edadMaxima in...
true
28f8a81684b2d4d53093341a0fc107613fd50469
SQL
ariansadri/SQL_Challenge
/queries_hw.sql
UTF-8
3,170
4.625
5
[]
no_license
-- queries for hw -- 1. List the following details of each employee: employee number, last name, first name, gender, and salary. select e.emp_no as "Employee Number", e.last_name as "Last Name", e.first_name as "First Name", e.gender as "Gender", s.salary as "Salary" from employees as e inner join salaries as s on e....
true
467fc1c3f5611ec3c5ce45b82e899e5fa98e3606
SQL
SevkiBekir/Gozcu
/gozcuApp/db/eLearningProject.sql
UTF-8
31,757
3.15625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 27, 2017 at 02:24 AM -- Server version: 5.7.17 -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
c2292317f5fd8df21656f156b61ebfb5a9c0c47e
SQL
CodeLoverss/spoilYou
/sql/adopt.sql
UTF-8
1,386
3.046875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50562 Source Host : 127.0.0.1:3306 Source Database : pet Target Server Type : MYSQL Target Server Version : 50562 File Encoding : 65001 Date: 2020-07-23 08:30:49 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
d647d4cdd7dffb689400c9167b24e579c1d340d7
SQL
microsoft/Nonprofit_Data_Warehouse_Quickstart
/NonprofitDataWarehouseQuickstart/Warehouse/Warehouse/External/Tables/External Tables/External.IATITransaction.sql
UTF-8
1,685
2.609375
3
[ "MIT" ]
permissive
-- Copyright (c) Microsoft Corporation. -- Licensed under the MIT License. CREATE EXTERNAL TABLE [External].[IATITransaction] ( [iati-identifier] NVARCHAR(200) NOT NULL, [default-currency] NVARCHAR(200) NULL, [transaction_aid-type] NVARCHAR(200) NULL, [transaction_disbursement-channel] ...
true
2860d13dff2fdff4cf1ccff0f48af883ee8949c3
SQL
stoversa/node_storefront
/schema.sql
UTF-8
754
3.578125
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT AUTO_INCREMENT NOT NULL, -- item_id unique id for each product product_name VARCHAR(100) NOT NULL, -- product_name Name of product department_name VARCHAR(100) NOT NULL, -- department_name price DECIMAL(1...
true
07067b4fc4c680e7c60522b5fd09d3dfe3e51cbd
SQL
awayjin/JavaScript
/sql/base-tech/01.db-sql/Product.sql
UTF-8
3,557
4.03125
4
[]
no_license
drop table Product; CREATE TABLE Product (product_id CHAR(4) NOT NULL, product_name VARCHAR(100) NOT NULL, product_type VARCHAR(32) NOT NULL, sale_price INTEGER , purchase_price INTEGER , regist_date DATE , PRIMARY KEY (product_id)); START TRANSACTION; INSERT INTO Product VALUES ('...
true
140d8001112b0b0652bc1955a33d1eb4d06a37cb
SQL
Shachi1/Plagiarism_check_with_distributed_database
/Server/delete.sql
UTF-8
504
3.296875
3
[]
no_license
SET SERVEROUTPUT ON; SET VERIFY OFF; DECLARE source_code SourceCode.code%TYPE; del_id integer := &delete_id; BEGIN DELETE FROM SourceCode WHERE id = del_id; DELETE FROM CodeInfo1@site1 WHERE id = del_id; DELETE FROM CodeInfo2@site1 WHERE id = del_id; EXCEPTION WHEN NO_DATA_FOUND TH...
true
6c0f839a76be4bc1aed6a426c6797f3678c2fe10
SQL
michaelprince3/Tracking-Student-Exercises
/studentexercises.sql
UTF-8
2,251
4.15625
4
[]
no_license
--Use the INSERT INTO SQL statement to create... --3 cohorts --5 exercises --3 instructors --7 students (don't put all students in the same cohort) --Assign 2 exercises to each student --example -- INSERT INTO Affiliation VALUES (null, 'Justice League'); -- INSERT INTO Affiliation VALUES (null, 'X-Men'); -- INSERT INT...
true
fd0aa17dca75af67eb3d5bd560a68e20a8e8eb4e
SQL
305810827/InformationPlatform_WeChat
/demo.sql
UTF-8
12,841
2.609375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50725 Source Host : localhost:3306 Source Database : demo Target Server Type : MYSQL Target Server Version : 50725 File Encoding : 65001 Date: 2019-05-17 16:33:08 */ SET FOREIGN_KEY_CHECKS=...
true
4980e68dd3e616d6385f7b2824d199439f3d1cb6
SQL
394286006/minn-pojo
/src/main/resources/sql/sysbaseshrio.sql
UTF-8
8,203
2.765625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386) -- -- Host: 127.0.0.1 Database: sys_base -- ------------------------------------------------------ -- Server version 5.6.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
true
654d975019f72f68f525d1ac705d6cc83c7c0986
SQL
gicadmin/allo
/PHENIX/Packages/CTY_PACK.sql
UTF-8
1,530
2.734375
3
[]
no_license
CREATE OR REPLACE PACKAGE phenix.CTY_PACK IS PROCEDURE INIT_RECORD_PROC( p_rec OUT NOCOPY contact_types%ROWTYPE); FUNCTION GET_FULL_FUNC( p_cty_code IN contact_types.cty_code%TYPE, p_tcy_rec OUT NOCOPY contact_types%ROWTYPE) RETURN BOOLEAN; F...
true
5784a2ba806b5d9c97aab3640d83d975f2c91f09
SQL
ArrettB/omni-workspace
/servicetrax/dbscripts/views/JOB_PAYCODE_VIEW_V.sql
UTF-8
574
3.375
3
[]
no_license
CREATE VIEW dbo.JOB_PAYCODE_VIEW_V AS SELECT dbo.JOBS.JOB_ID, dbo.ORG_GP_TABLES.VIEW_NAME AS PAYCODE_VIEW_NAME FROM dbo.CUSTOMERS INNER JOIN dbo.JOBS ON dbo.CUSTOMERS.CUSTOMER_ID = dbo.JOBS.CUSTOMER_ID INNER JOIN dbo.ORGANIZATIONS ON dbo.CUSTOMERS.ORGANIZATION_ID = dbo.ORGANIZATIONS.Organization_ID INNER JOIN dbo...
true
53d0c577061c884a11e64a73b9a460577e1644c6
SQL
mblasiak/PLSQL
/lab_4/task_5.sql
UTF-8
1,206
3.28125
3
[]
no_license
select * from pudelka natural join zawartosc join czekoladki using(idczekoladki) where idczekoladki='d09'; select distinct on (p.nazwa) p.nazwa, c.nazwa from pudelka p natural join zawartosc join czekoladki c using(idczekoladki) where c.nazwa similar to 'S%'; select * from pudelka p natural join zawartosc z join czek...
true
cb1d4ed567402b2790a2a5be16cd90a54c583a55
SQL
yaneg-ru/2020-11-otus-spring-Zolotarev
/HW05/src/main/resources/db/migration/V1/V1__init_db.sql
UTF-8
554
3.453125
3
[]
no_license
create TABLE IF NOT EXISTS author ( id bigint NOT NULL, name varchar(128) NOT NULL, PRIMARY KEY (id) ); create TABLE IF NOT EXISTS genre ( id bigint NOT NULL, name varchar(128) NOT NULL, PRIMARY KEY (id) ); create TABLE IF NOT EXISTS book ( id bigint NOT NULL, ...
true
90ce24afbb21aaa1aea4e3ab151699cc19d6a510
SQL
danteay/inai
/src/main/resources/SQL/get_success.sql
UTF-8
381
3.3125
3
[ "Apache-2.0" ]
permissive
SELECT descripcion Descripcion, (SELECT Sum ( nvl( de.Respuesta,0)) FROM DET_EVAL_FRACCIONES de WHERE de.EVALUACION_FRACCION_ID = ef.EVALUACION_FRACCION_ID ) Valor FROM EVALUACIONES_FRACCIONES ef, ARTICULOS_FRACCIONES af WHERE ef.ARTICULO_FRACCION_ID = af.ARTICULO_FRACCION_ID AND EVALUACION...
true
336da32124c85602c22df427ea30ac9b0deb9390
SQL
shensam/rust-realworld-example-app
/migrations/2018-07-17-171835_create_follows/up.sql
UTF-8
403
3.640625
4
[]
no_license
CREATE TABLE follows ( follower_id INTEGER UNSIGNED NOT NULL, followed_id INTEGER UNSIGNED NOT NULL, created_at bigint(20) unsigned NOT NULL DEFAULT 0, updated_at bigint(20) unsigned NOT NULL DEFAULT 0, PRIMARY KEY (follower_id, followed_id), FOREIGN KEY (follower_id) REFERENCES users(id) ON DEL...
true
82a8449e6f97643f88e2fd1e59f9ce8cd6a2670b
SQL
hyc-666/project
/stu_exer/stums/sql/stu.sql
UTF-8
1,093
2.78125
3
[]
no_license
drop database if exists stums; create database stums; use stums; create table s_student( `s_id` int primary key auto_increment, `s_number` varchar(11), `s_name` varchar(40), `s_password` varchar(60), `s_college` varchar(150), `s_class` varchar(160) ); -- 插入测试数据 insert into s_student(`s_id`,`s_n...
true
fe8d40b4e71047f483dce5a8a2c35c01fd485f89
SQL
Kyrugaa/M307Prep
/sql/cars.sql
UTF-8
774
3.15625
3
[]
no_license
DROP DATABASE IF EXISTS car_db; CREATE DATABASE car_db; USE car_db; DROP USER IF EXISTS USER 'cars'@'%'; CREATE USER 'cars'@'%' IDENTIFIED BY 'cars'; GRANT SELECT ON car_db.* TO 'cars'@'%'; FLUSH PRIVILEGES; CREATE TABLE auto ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, marke VARCHAR(45) NOT NULL, modell VARCHAR(45) NO...
true
d2b6a9146d3d95b587e0a329b1e0c1912e9b7929
SQL
bbfans/graduate
/data/zh_user.sql
UTF-8
2,974
2.734375
3
[ "Apache-2.0" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.11, for osx10.11 (x86_64) -- -- Host: localhost Database: graduate -- ------------------------------------------------------ -- Server version 5.7.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
583079922c2aba6280ce598d3a32e8cc92f7e9d0
SQL
patdaman/dlR_ManageMachineVars
/DevOps/Tables/MachineConfigVars.sql
UTF-8
499
3.4375
3
[]
no_license
CREATE TABLE [config].[MachineConfigVars] ( [appConfigVariable_id] INT NOT NULL, [machine_id] INT NOT NULL, CONSTRAINT [PK_MachineConfigVars] PRIMARY KEY CLUSTERED ([appConfigVariable_id] ASC, [machine_id] ASC), CONSTRAINT [FK_MachineConfigVars_ConfigVariables] FOREIGN KEY ([appConfigVariable...
true
dac63f5a4f303493f5034da35720d618a1eeae8c
SQL
geovanitec/ProyectoIndividualHoteleria
/Traslado/BD/inserts.sql
UTF-8
2,389
3.578125
4
[]
no_license
use hotelSanCarlos; insert into tipoCuenta values ('1', 'Activo','A'); insert into tipoCuenta values ('2', 'Activo Corriente','A'); insert into tipoCuenta values ('3', 'Pasivo ','A'); insert into tipoCuenta values ('4', 'Pasivo Corriente','A'); insert into cuenta values ('1', 'impuesto','1','0','0','0','A','1'); ins...
true
3221f5e311ece88b4bf40edadaeb662db285f13c
SQL
DeyanDanailov/MS-SQL-Server
/ExamPreparation/Databases MSSQL Server Exam - 27 Jun 2020/10.Missing Parts.sql
UTF-8
451
3.9375
4
[ "MIT" ]
permissive
SELECT * FROM (SELECT p.PartId, P.Description, SUM(pn.Quantity) AS Required, SUM(p.StockQty) AS [In Stock], SUM(op.Quantity) AS [Ordered] FROM Parts p JOIN OrderParts op ON op.PartId = p.PartId JOIN Orders o ON o.OrderId = op.OrderId JOIN Jobs j ON j.JobId = o.JobId JOIN PartsNeeded pn ON pn.PartId = ...
true
b00c5f1d87534dfe33c1f71df849d1d6401fee93
SQL
vldcher/amis_cassandra
/Chernenko/lab4/lab4.cql
UTF-8
7,209
3.671875
4
[]
no_license
drop table if exists "airport"; // create table if not exists "airport"( airport text, planes SET<text>, plane_isleave boolean, primary Key (airport) ); DROP TABLE IF EXISTS "user_expences"; CREATE TABLE "user_expences" ( user_name text, user_balance float static, service_code int, s...
true
8788c73fa5043a7db9b1372f2256d5fb48b9eb4d
SQL
pansophism/joblist
/conf/evolutions/default/1.sql
UTF-8
1,099
2.8125
3
[]
no_license
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table company ( id bigint auto_increment not null, name varchar(255), address varchar(255), zip_code i...
true
016a7628afaa4b48feee7f35ef1f14bffd590062
SQL
Aaron-Usher/Capstone-2017
/SnackOverFlowDB/Old Stuff/create/scriptFiles/sp_create_vehicle.prc
UTF-8
835
3.265625
3
[]
no_license
USE [SnackOverflowDB] GO IF EXISTS(SELECT * FROM sys.objects WHERE type = 'P' AND name = 'sp_create_vehicle') BEGIN DROP PROCEDURE sp_create_vehicle Print '' print ' *** dropping procedure sp_create_vehicle' End GO Print '' print ' *** creating procedure sp_create_vehicle' GO Create PROCEDURE sp_create_vehicle ( @V...
true
5dbc60a298b5f0f7ec94a9a0c1afa68a7be6e033
SQL
Yavoric/javapart
/4B.sql
UTF-8
372
3.671875
4
[]
no_license
/*sql requests for the selection of the following data: all mobile numbers of the selected subscriber*/ SELECT a.first_name, a.last_name, p.number FROM abonent a, phone_book p, operator o, operator_number op WHERE a.abonent_id = 8 AND a.abonent_id = p.abonent_id AND o.operator_...
true
8d70ce653471b55c74be711dea1cd01ce45b535d
SQL
andyukovegor/SpringDemo-ifbs
/stuff/db/210326_Init_structure.sql
UTF-8
1,108
3.15625
3
[]
no_license
-- -- Table structure for table `car_brand` -- DROP TABLE IF EXISTS `car_brand`; CREATE TABLE `car_brand` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL DEFAULT 'None', `url` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; -- -- Dum...
true
80ca19e41ebaf61affa7e33f8b437791eef53efa
SQL
nielsutrecht/grub
/modules/diary/src/test/resources/sql/create.sql
UTF-8
437
3.8125
4
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS meals (id UUID PRIMARY KEY); CREATE TABLE IF NOT EXISTS users(id UUID PRIMARY KEY); CREATE TABLE IF NOT EXISTS user_meals ( user_id UUID NOT NULL, meal_id UUID NOT NULL, date DATE NOT NULL, time VARCHAR(10) NOT NULL, amount DOUBLE NOT NULL, PRIMARY KEY (user_id, meal_...
true
5e2904df40a07e5fd9b77194e8ea756056052593
SQL
adharshr/FlightsDB
/setup.sql
UTF-8
389
2.9375
3
[]
no_license
/* Adharsh Ranganathan 5/22/17 CSE 414 - HW7 */ CREATE TABLE Customer ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, handle VARCHAR(25) NOT NULL, password VARCHAR(25) NOT NULL, UNIQUE(handle) ); CREATE TABLE Reservation ( customer INTEGER REFERENCES Customer, fid INTEGER REFERENCES Flights NOT NULL, PRIMARY KE...
true
b436638f6db599c604358b611b65d69249205744
SQL
MaLiN2223/SeriesHandler
/Script1.sql
UTF-8
1,015
3.46875
3
[ "MIT" ]
permissive
CREATE TABLE UserPermissions( id TINYINT PRIMARY KEY IDENTITY (1,1), name NVARCHAR(100) UNIQUE, ); CREATE TABLE Users ( id INT PRIMARY KEY IDENTITY (1, 1), username NVARCHAR(100) UNIQUE NOT NULL, password VARBINARY(20) NOT NULL, password_salt CHAR(25) NOT NULL, permissio...
true
81980e258aabd77d3f40caa7f701bd66a954670a
SQL
codefollower/HSQLDB-Research
/test-src/org/hsqldb/jdbc/resources/sql/TestSelfMultiGrants.txt
UTF-8
2,792
3.59375
4
[]
no_license
/*s*/DROP USER peon1; /*s*/DROP USER peon2; /*s*/DROP USER peon3; /*s*/DROP ROLE r1; /*s*/DROP ROLE r2; /*s*/DROP ROLE r3; /*s*/DROP ROLE r12; DROP TABLE t1 IF exists; DROP TABLE t2 IF exists; DROP TABLE t3 IF exists; DROP TABLE t4 IF exists; CREATE TABLE t1(i int); CREATE TABLE t2(i int); CREATE TABLE t3(...
true
c51795e08aa51dc9efd44afc7cd7c994bbbb10b3
SQL
tanjianhui/schedule-demo
/doc/db/mysql.sql
UTF-8
8,225
3.890625
4
[]
no_license
drop table if exists dea_developer_account; drop table if exists sda_store_developer_account; drop table if exists tas_task; drop table if exists sch_scheduler; drop table if exists scl_scheduler_log; drop table if exists job_job; drop table if exists joe_job_error; create table dea_developer_account ( dea_id int no...
true
babd673167c991966cf2eb049fde2aef6cc1557b
SQL
DanielMassato/Projeto-Entity
/Projeto-Entity/5_LINQ/4_ConsultaAlteraProdutos_LINQ_Resolvido/CRIA_USUARIOS.sql
ISO-8859-2
404
3
3
[]
no_license
USE PEDIDOS CREATE TABLE USUARIOS ( ID_USER INT IDENTITY, NOME VARCHAR(30), USER_LOGIN VARCHAR(10), USER_PWS VARCHAR(10), NIVEL SMALLINT, CONSTRAINT PK_USUARIOS PRIMARY KEY (ID_USER) ) ALTER TABLE USUARIOS ADD CONSTRAINT UQ_USUARIOS_USER_LOGIN UNIQUE(USER_LOGIN) INSERT INTO USUARIOS VALUES ('CARLOS M...
true
39835e2854c9a972ad37f76dfea2614fc0f13c77
SQL
jqcoffey/qwebmon
/queries/queries.sql
UTF-8
517
4.46875
4
[ "Apache-2.0" ]
permissive
select gender, count(0) from employees group by gender; select emp_no, count(0), max(salary) from salaries group by emp_no order by max(salary) desc limit 2; SELECT d.dept_name, max(s.salary) FROM employees e LEFT JOIN current_dept_emp cde ON cde.emp_no = e.emp_no LEFT JOIN (select emp_no, max(salar...
true
df400e130f726ab057a90d3dff0026bb660e2860
SQL
wahello/crmDuende
/server/src/main/webapp/migrations/V4_create_table_purchasesdetail.sql
UTF-8
1,041
3.71875
4
[]
no_license
-- Nombre de la tabla --> Table: public.purchasesdetail -- Esta parte se descomenta despues de la segunda corrida del programa DROP TABLE public.purchasesdetail; CREATE TABLE public.purchasesdetail ( purdetailid bigint NOT NULL DEFAULT nextval('purchasesdetail_purdetailid_seq'::regclass), purid bigint NOT NU...
true
9dcd837ba3a6383ff8aefac9991d53af9eaadc47
SQL
psharif/bamazon
/SQL_SCHEMA/bamazon.sql
UTF-8
1,235
3.546875
4
[]
no_license
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(45) NULL, department_name VARCHAR(45) NULL, price DECIMAL(10,2) NULL, stock_quantity INT NULL, product_sales DECIMAL(10,2) NULL DEFAULT 0, PRI...
true
7e8dd585eab4554ed5d9625acf5ae1e3137dd449
SQL
ainifeiyuan/copy2.0
/app/weixin/model/wxnumber.sql
UTF-8
1,584
2.921875
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50726 Source Host : localhost:3306 Source Database : thinkgrab Target Server Type : MYSQL Target Server Version : 50726 File Encoding : 65001 Date: 2020-06-03 11:24:17 */ SET FOREIGN_KEY_CHECKS=0...
true
06ee7ae8fbeb6dac7859ad49639edebdb2128ba2
SQL
Yuele-Ji/HackerRank-SQL
/*Weather Observation Station 5.sql
UTF-8
183
3.140625
3
[]
no_license
SELECT * FROM ( SELECT CITY,LENGTH(CITY) FROM STATION ORDER BY 2, 1 LIMIT 1) MIN_CITY UNION SELECT * FROM ( SELECT CITY,LENGTH(CITY) FROM STATION ORDER BY 2 DESC, 1 LIMIT 1) MAX_CITY
true
6c8f391dc082cb935f2b447c4551b82bb919e910
SQL
shybkoi/WMS-Demo
/sql/161201-4-FIRSTINCOME.sql
UTF-8
5,628
3.53125
4
[]
no_license
SET TERM ^ ; CREATE OR ALTER procedure WH_INCOMEFG_BYSTACK ( TASKID type of column WM_TASK.TASKID, STACKID type of column SITE.SITEID, WARESID type of column GWARES.WARESID, MODELID type of column MODEL_STACK.MODELID, LINEID type of column FG_PRODLINES.ID_PRODLINE, PRODUCERID type of column O...
true
8fc0d15cb542eea90ddc35eb4f05c0f84734c8cc
SQL
The-Ark-Informatics/ark
/ark-database/db-scripts/patch/1.2.0b/20150415_add_more_to_initial_revision.sql
UTF-8
1,893
2.859375
3
[]
no_license
USE `audit`; SET @REV = 1; INSERT INTO `aud_link_study_studysite` (`ID`, `REV`, `REVTYPE`, `STUDY_ID`, `STUDY_SITE_ID`) select `ID`, @REV, 0, `STUDY_ID`, `STUDY_SITE_ID` from `study`.`link_study_studysite`; INSERT INTO `aud_link_study_substudy` (`ID`, `REV`, `REVTYPE`, `STUDY_ID`, `SUB_STUDY_ID`) select `ID`, @REV, ...
true
5b7cd6c339a529fcc7cab0e846c75d9dd95acaeb
SQL
nortonlifelock/aegis
/init/migrations/1576692824_sweeping_exceptions.up.sql
UTF-8
1,365
3.015625
3
[ "Apache-2.0" ]
permissive
ALTER TABLE `Ignore` MODIFY COLUMN DeviceID INT NULL; ALTER TABLE `IgnoreAudit` MODIFY COLUMN DeviceID INT NULL; ALTER TABLE `Ignore` ADD COLUMN OSRegex VARCHAR(100) NULL AFTER DeviceID; ALTER TABLE `IgnoreAudit` ADD COLUMN OSRegex VARCHAR(100) NULL AFTER DeviceID; DROP TRIGGER IgnoreAuditCreateTrigger; DROP TRIGGER I...
true
0518d7ed28795f8bcfb6855d1daf06908b713410
SQL
emanuelanechei/Oracle-Email-Reports
/sql/highrise-RD_FINAL.sql
UTF-8
869
3.609375
4
[]
no_license
select a.segment1 ,c.subinventory_code ,c.on_hand_qty ,date_received from mtl_system_items_b a ,apps.mtl_item_locations_kfv b , ( select moqd.inventory_item_id ,moqd.organization_id ,moqd.subinventory_code ,moqd.locator_id ,sum(primary_transaction_qu...
true
30f2a1ad45e29f903c900d7ae1257c311d0714a9
SQL
alifahfathonah/BengkelKu
/Dbase/dbservice.sql
UTF-8
6,153
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 24, 2019 at 05:50 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ef69fb4ab3170a80963e5b4fa7ce80f3cc0035e6
SQL
LoreenaLiu/Jianghu_data_edit
/altertable.sql
UTF-8
1,867
3.828125
4
[]
no_license
-- 把几个商家加入分类alter insert into user_cate (user_id,cate_id) values (5002,8), (5003,19),(5004,22),(5005,32),(5006,26),(5007,19),(5008,15); select * from hobbies; show triggers; -- set up trigger of update hobbies category name reference to categories table set sql_safe_updates = 0; -- set up safe update mode ...
true
fc80d71092283830b48b05c0162bd02899cb8b1a
SQL
hikaru2025/xmodule
/xmodule-examples-clickhouse/xmodule-examples-clickhouse-samples/src/test/resources/stackoverflow_user.sql
UTF-8
518
2.953125
3
[ "Apache-2.0" ]
permissive
CREATE TABLE stackoverflow_user ( id UInt64, name String, reputation UInt32, websiteUrl String, location String, aboutMe String, views UInt32, upVotes UInt32, downVotes UInt32, profileImageUrl String, lastAccessTime DateTime, createTime DateTime, creat...
true
a583cd826a7bfae88e78219e7653081e61543e00
SQL
RonNakata/bamazon
/schema.sql
UTF-8
314
3.140625
3
[]
no_license
DROP DATABASE IF EXISTS bamazonDB; CREATE database bamazonDB; USE bamazonDB; CREATE TABLE products ( item_id INT(7) AUTO_INCREMENT NOT NULL, product_name VARCHAR(24) NOT NULL, department_name VARCHAR(12) NOT NULL, price DECIMAL(7,2) NOT NULL, stock_quantity INT(5) NOT NULL, PRIMARY KEY (item_id) );
true
fd400bdeb7447a28a8d8ecb173df2ea2ab7f14c9
SQL
xmalmorthen/estadisticosGob
/wsPHP/wsAPIEstadisticosGob/projectResources/database/dbestadisticosgob.sql
UTF-8
4,282
3.28125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50723 Source Host : localhost:3306 Source Database : dbestadisticosgob Target Server Type : MYSQL Target Server Version : 50723 File Encoding : 65001 Date: 2019-04-01 16:25:21 */ SET FOREIGN_KEY_CHECK...
true
7682e25dca9554df55a0fc485b8571bdd67883c7
SQL
DePalmaJared91/Bamazon
/bamazon.sql
UTF-8
1,072
3.640625
4
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products item_id INTEGER(11) NOT NULL AUTO_INCREMENT, product_name VARCHAR(30) NOT NULL, department_name INTEGER (11) NOT NULL, price DECIMAL (10,2) NOT NULL, stock_quantity INTEGER(1000) NOT NULL, PRIMARY KEY ('item_id')...
true
fcd541b46c137f1e0cf35a3c3cd5d421d0496d0f
SQL
hkcyl123/JSP
/ks.sql
UTF-8
3,868
3.6875
4
[]
no_license
drop database if exists ks; create database ks; use ks; CREATE TABLE User ( UID INT NOT NULL PRIMARY KEY AUTO_INCREMENT , #用户ID Uname VARCHAR(15) NOT NULL UNIQUE , #用户名 password VARCHAR(20) NOT NULL , #密码 UEmail VARCHAR(20) NOT NULL , ...
true
0270b49f6b9cad4421babc8609eea50d5167a804
SQL
benamrou/GOLDEYC
/80.GOLD Alerts/804.Interfaces/N3_MVTIN.sql
UTF-8
1,457
3.453125
3
[]
no_license
select mi3donord as "Code entrepot", mi3datmvt as "Date mvt", mi3codinv as "Code utilsateur", mi3codcli as "Code tier", mi3qteuvc as "Qte", mi3numorc as "Num mvt", mi3cproin as "Code article", mi3ilogis as "VL", tsobdesc as "Libelle", nvl((select T...
true
7cc70794534484322af33aadb65de4d4c66c09ba
SQL
kenny08gt/bases2Proyecto
/random/g4/sp_grupo4.sql
UTF-8
8,614
3.15625
3
[]
no_license
BEGIN DECLARE done INT DEFAULT 0; declare current_id int; declare c_usuario varchar(30); declare c_nombre_us varchar(30); declare c_apellido varchar(30); declare c_rol int; declare c_password varchar(20); declare c_correo varchar(40); declare c_comentario int; declare c_contenido varchar(250); declare c_...
true
1fe2c276bc2c3fd817ae1685bfb41a8b9cacf468
SQL
AlinaGomeniuc/Data-Base
/Lab4/CodeSQL/SQLQuery_ex13.sql
UTF-8
274
3.1875
3
[]
no_license
SELECT DISTINCT Disciplina FROM discipline INNER JOIN studenti_reusita ON discipline.Id_Disciplina = studenti_reusita.Id_Disciplina INNER JOIN studenti ON studenti_reusita.Id_Student = studenti.Id_Student WHERE Nume_Student = 'Florea' AND Prenume_Student = 'Ioan'
true
d26da7962f0193302a70a96ba8f2fbd41347ea28
SQL
thanhth89/sample_module_atb
/sample_atb.sql
UTF-8
1,669
3.25
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : wdn_local Source Server Version : 50505 Source Host : localhost:3306 Source Database : sample_atb Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2019-03-22 11:07:18 */ CREATE DATABASE sample_atb; U...
true
5d51ce98c1fd1a8edf368f0ba6bdcf9efc89c741
SQL
UknowYunmo/SQL-STUDY
/index/002 - 인덱스 원리, 힌트.sql
UHC
4,363
3.765625
4
[]
no_license
ͺ̽ ε(INDEX) ˾ƾ ϴ : ε ˾ƾ ͸ ˻ ְ, ӵ ſ ſ ߿ϴ. 20 ---> 0.01 : SQL Ʃ 0.1 ---> 0.01 : SQL Ʃ --> ε ϰ, Ȱ ־Ѵ. ε : ÷ + rowid ( row ּ ) + ÷ Ǿִ. ** ࿡ 뷮 Ͱ ִ ȯ濡 SQL ߴµ ʹ ٸ ݵ ȹ Ȯؼ full table scan ߴ, index scan ߴ Ȯ ؾѴ. SQL տ explain plan for ̰ ȹ Ȯϴ table ȸ. explain plan for sele...
true
b1de1be0333a88a6ae94f1bccb797c545416c957
SQL
taepodong1101/apex
/top_tablespace_usage.sql
UTF-8
504
3.625
4
[]
no_license
select d.tablespace_name "TABLESPACE", sum(d.bytes)/1048576 "SIZE(M)", sum(d.bytes)/1048576 - b.FREESPCE "USEDSIZE(M)", b.FREESPCE "FREE SPACE(M)", 100 -(round((FREESPCE/(sum(d.bytes)/1048576))*100)) "USED(%)" FROM dba_data_files d, (SELECT round(sum(f.bytes)/1048576,2) FREESPC...
true
46615df349ef34b3b93f3843320fb4a3c78835ed
SQL
muntaza/Open_Persediaan
/sql1_persediaan/persediaan_rinci_sql/persediaan_barang4_halong.sql
UTF-8
377
2.734375
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
DROP VIEW IF EXISTS view_persediaan_barang4_halong; CREATE VIEW view_persediaan_barang4_halong AS SELECT *, saldo * harga AS jumlah_harga FROM view_persediaan_barang3_halong WHERE 1 = 1 AND saldo > 0 AND id_skpd = 35; GRANT ALL PRIVILEGES ON view_persediaan_barang4_halong TO lap_halong; REVOKE INSERT, UPDATE, D...
true
4f657edcaa218a60180e58f02f49ab44d4fab60d
SQL
FabiMacedo/Academia_Marketdata
/Aulas/Aula30_15-07-21/Mão na massa em Grupo - Procedure.sql
ISO-8859-1
795
3.65625
4
[ "MIT" ]
permissive
--Mo na massa em Grupo - Procedure --Coloque seu BD em uso USE fabiana /*Crie uma procedure SP_COMPRAS no seu BD que: *Cria uma tabela TB_VENDAS com as vendas dos X ltimos dias (quantidade passada por parmetro) * Lembre-se de excluir a tabela, caso ela j exista Execute a procedure com parmetro de 30 dias; ...
true
8f1e2751b797bb3c0a9db7c1ffc21dbe95bbb4bc
SQL
BOYER5303/SQL1-Afternoon
/init.sql
UTF-8
939
4.03125
4
[]
no_license
--Create Statement CREATE TABLE students ( id SERIAL PRIMARY KEY, name TEXT, email VARCHAR(32) ); -- Insert Statement INSERT INTO students (name, email) VALUES ('Spongebob', 'squarepants@devmtn.com'), ('Jason', 'jason@boyer.com'), ('Plankton', 'plankton@plankton.com'), ('Sandy', 'squirrel@texas.com'); --...
true
c962f54062a5379aafca6a7aa71d7a0c4b85c1d7
SQL
bellmit/flexdb
/2.HOST/3.Procedure/td0025.sql
UTF-8
24,288
3.1875
3
[]
no_license
CREATE OR REPLACE PROCEDURE td0025( PV_REFCURSOR IN OUT PKG_REPORT.REF_CURSOR, OPT IN VARCHAR2, BRID IN VARCHAR2, F_DATE IN VARCHAR2, T_DATE IN VARCHAR2, CUSTODYCD IN VARCHAR2, TLTXCD IN VARCHAR2, ACCTNO ...
true
6d7fa982566cbb1cb093d0747ce8d3b1be0f020c
SQL
cb-adithyaks/Adithya
/week3/Day4/triggers.sql
UTF-8
1,944
4.34375
4
[]
no_license
/* creating and using triggers */ /* 1) Add a column average to the table marks*/ alter table marks add column average float(5,2) not null after grade; update marks set average=((quarterly+half_yearly+annual)/3); /* 2) Write a trigger to calculate the average marks for the subject whenever any insert/update hap...
true
f025b28a6acea89a447f6461d92c2d0432805c7e
SQL
sandrorosevel/GDI-Loja_de_Jogo
/scripts sql/povoamento/insercao_contas.sql
UTF-8
3,054
2.515625
3
[]
no_license
--Inserção Conta-Clientes INSERT INTO ContaLoja (nome, email, senha) VALUES ('Lucas Yule', 'lucasyule@email.com', 'zxczxc'); INSERT INTO ContaLoja (nome, email, senha) VALUES ('Vinicius', 'vinicius@email.com', 'asdasd'); INSERT INTO ContaLoja (nome, email, senha) VALUES ('João Marcos', 'jm@email.com', 'qw...
true
1f2696a8f14bc8597739eea39c299bccb3d22628
SQL
4evernoob/Spring-boot-example
/dbschema.sql
UTF-8
763
3.234375
3
[]
no_license
-- Dumping database structure for concretepage CREATE DATABASE IF NOT EXISTS `concretepage`; USE `concretepage`; -- Dumping structure for table concretepage.articles CREATE TABLE IF NOT EXISTS `articles` ( `article_id` int(5) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `category` varchar(100) NOT NULL...
true
1d5f03f2ce2395c08ca0b49a6cd0f0a669b80296
SQL
goknsh/threads
/server/api/v1/db.sql
UTF-8
1,677
3.484375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `users` ( `id` int NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `pass` longtext NOT NULL, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `domains` ( `id` in...
true
215e96de8145db2dd334739521c293c325c597ed
SQL
hefeng6500/mysql-lesson
/11.update.sql
UTF-8
869
3.5
4
[]
no_license
SHOW DATABASES; DROP DATABASE IF EXISTS mysql_test; CREATE DATABASE IF NOT EXISTS mysql_test; USE mysql_test; SHOW TABLES; DROP TABLE IF EXISTS student1; CREATE TABLE student1 (id int, name VARCHAR(20), age INT, sex char(1), birthday DATE, address VARCHAR(200), math DOUBLE, english DOUBLE); DESC student1; INSERT INTO s...
true
8cd569f1e741786a53f2f185c8401c07953f8741
SQL
sonidwisusanto08/Perpustakaan_Sonidwisusanto
/perpustakaan/perpustakaan.sql
UTF-8
3,207
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 08 Jul 2019 pada 11.40 -- Versi Server: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
ff3b9e7a652c8056b96004d3abc0b736630f04e4
SQL
hacyrakcorp/nf
/nf (1).sql
UTF-8
15,330
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Lun 19 Février 2018 à 09:38 -- Version du serveur : 5.7.11 -- Version de PHP : 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
76f452ad965f7b37d177f779ca9120fb284786a8
SQL
luciofassio/intranet-saint-martin
/aggiorna_db_oratorio.sql
UTF-8
2,608
3.09375
3
[]
no_license
-- -- Definition of table `tblcapitolicontabilita` -- DROP TABLE IF EXISTS `tblcapitolicontabilita`; CREATE TABLE `tblcapitolicontabilita` ( `IdCapitolo` INTEGER NOT NULL auto_increment, `SiglaCapitolo` VARCHAR(3) NOT NULL, `Capitolo` VARCHAR(45) NOT NULL, PRIMARY KEY (`IdCapitolo`) ) ENGINE=InnoDB ...
true
21ad5cac2028308dd8029d42e1eba475c7a460e2
SQL
madhurivaishnav/SALTWEB
/SALT_NewDesign/Database/Procedure/dbo.prcQuiz_GetModuleIDByToolbookID.PRC
UTF-8
766
3.3125
3
[]
no_license
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[prcQuiz_GetModuleIDByToolbookID]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N' /* Summary: Parameters: @ToolbookID varchar(50) Returns: integer Called By: ToolbookListene...
true
b3322a921ddc14911e1cfecb0c44d0ab8e32e9c9
SQL
aldrix/magvd_imdb
/imdb_data/5.queries_datawarehouse.sql
UTF-8
3,733
4.03125
4
[]
no_license
-- //-------------------------------------------------------------------// -- //----------- FREQUENT QUERIES IN DATA WAREHOUSE ----------------// -- //-------------------------------------------------------------------// -- 589847 SELECT COUNT(*) FROM pro.dim_actors; -- 205019 SELECT COUNT(*) FROM pro.dim_director...
true
caa0538e5a89475cfbafd757439f9fc4423aa99c
SQL
fanfzj/example
/online_ks/data/db_online.sql
UTF-8
3,484
2.921875
3
[]
no_license
# Host: localhost (Version: 5.5.34) # Date: 2014-01-12 22:51:56 # Generator: MySQL-Front 5.3 (Build 4.43) /*!40101 SET NAMES utf8 */; # # Structure for table "tb_admin" # CREATE TABLE `tb_admin` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '' COMMENT '用户名', `pwd` varchar(50) N...
true
d2d9634ada2888f5c22b0aa8670ec93f8ffb8001
SQL
artouiros/spring-security-registration-login-example
/src/main/resources/db.sql
UTF-8
2,520
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.5 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Июл 17 2016 г., 08:04 -- Версия сервера: 5.5.49-0ubuntu0.14.04.1 -- Версия PHP: 5.3.28 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
74bacf9359e0c0cdf8b06d94fe641ab3e897f1a3
SQL
MaggieFan2018/SQL_Exercises
/LeetCode/Window Function/1077. 项目员工 III.sql
UTF-8
245
3.890625
4
[]
no_license
SELECT project_id, employee_id FROM ( SELECT p.project_id, p.employee_id, e.experience_years, RANK() OVER(PARTITION BY p.project_id ORDER BY e.experience_years DESC) RK FROM Project p LEFT JOIN Employee e USING(employee_id) ) t WHERE RK = 1;
true
206a04775f0a70120fd0ce7731dfeb6dca7bcaa1
SQL
raeyx/Leetcode-exercise
/shortest-distance-in-a-line/shortest-distance-in-a-line.sql
UTF-8
93
3.28125
3
[]
no_license
SELECT MIN(ABS(p1.x - p2.x)) AS shortest FROM point p1 INNER JOIN point p2 ON p1.x != p2.x;
true
f2ac25c06a760c28fa6c9cc8a6aff1f475c6418b
SQL
zq111/vn-server2
/resource/sql/farmwork1.sql
UTF-8
3,451
3.234375
3
[]
no_license
/* SQLyog v12.2.6 (64 bit) MySQL - 5.5.62 : Database - farmwork1 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FO...
true
7fe03844c55a06a657742c5838ec299c141b4bd3
SQL
haiaunht/Springboot-Hibernate-RESTfulAPIs
/java-web-rsvp/target/classes/db/migration/V1__create_participants.sql
UTF-8
485
3.15625
3
[]
no_license
CREATE TABLE events ( id SERIAL PRIMARY KEY , title VARCHAR(255) NOT NULL , street VARCHAR(355) NOT NULL , city VARCHAR(255) NOT NULL , state VARCHAR(2) NOT NULL , postal_code VARCHAR(255) NOT NULL ); CREATE TABLE participants ( id SERIAL PRIMARY KEY , first_name VARCHAR(255) NOT NULL , last_name VAR...
true
d07f7ba13127cc65f4de66e84cb3738a4be4a903
SQL
marcoputon/Apolice
/src/main/resources/db/migration/V004_create_table_beneficiario.sql
UTF-8
344
2.703125
3
[ "MIT" ]
permissive
CREATE TABLE beneficiario ( id bigint(20) NOT NULL AUTO_INCREMENT, documento text DEFAULT NULL, nome varchar(100) NOT NULL, valor bigint(20) NOT NULL, id_apolice bigint(20) NOT NULL, PRIMARY KEY (id), KEY beneficiario_FK (id_apolice), CONSTRAINT beneficiario_FK FOREIGN KEY (id_apolice) R...
true
6701da7da06e3ee3e4a6d46dba96544dbb8044c9
SQL
anton-manin/BookmarkManager
/db.sql
UTF-8
1,674
3.765625
4
[]
no_license
CREATE TABLE `bookmark`.`USERS` ( `NICKNAME` varchar(25) NOT NULL, `EMAIL` varchar(45) NOT NULL, `PASSWORD` varchar(1024) NOT NULL, `ENABLED` TINYINT(1) NOT NULL, PRIMARY KEY(`EMAIL`), UNIQUE KEY uni_email (`EMAIL`) )Engine=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `bookmark`.`USER_ROLES` ( `USER_RO...
true
5f7c7545ce15276c373ffe047d62bbf9f143d5ff
SQL
stajun/digital
/SQL/SQL5일차.sql
UTF-8
2,127
4.40625
4
[]
no_license
/* select 속성명1, 속성명2, ..., 속성명n from 테이블A join 테이블B on 테이블A.속성a = 테이블B.속성b; */ -- 속성a의 값은 속성b의 값이거나 null이어야한다. -- 속성b의 값은 속성a의 값이거나 null이어야한다. /* select 보고싶은속성명 from 테이블; select 보고싶은속성명 from 테이블 where 검색조건; */ -- 수강을 하고 있는 수강생들의 학번과 이름을 출력하는 쿼리문(중복 불가) select * from attend; select distinct at_st_num, st_name fr...
true
2f4c396eca20c8f1b6996e325f87678533b6ca24
SQL
bellmit/BIGR
/BIGRDatabase/Scripts/Maint/sga_stats.sql
UTF-8
4,471
3.984375
4
[]
no_license
set lines 100 pages 40 column object_name format a30 column owner format a15 column object_type format a10 column POOL format a15 prompt ***** Free memory in shared pool ***** select * from v$sgastat order by pool, name / prompt ***** Data dictionary cache hit ratio ***** select sum(gets) "Gets", sum(getmisses) "M...
true
4f7ca55f0abba973b98a54f253396467e03eb832
SQL
mukeshpal/NODE-ChatServerAndClient
/Database/ChatServerDB.sql
UTF-8
3,608
3.0625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `chatserver` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `chatserver`; -- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86) -- -- Host: localhost Database: chatserver -- ------------------------------------------------------ -- Server version 5.5.16 /*!40101 SET @OLD_CHARACTER_SET_C...
true
e18694a00b271e7ca13807d79f7ac832236a65b4
SQL
wangpengcheng123/wang
/src/main/java/m03/d30/wuzhen/returnBook.sql
UTF-8
474
2.6875
3
[]
no_license
DROP PROCEDURE returnbook; DELIMITER ;; CREATE PROCEDURE returnbook(IN rname1 VARCHAR(30)) BEGIN INSERT INTO penalty VALUES('09','003','2018-03-20',1,4.6); UPDATE borrow SET returndate=NOW() WHERE rid=(SELECT rid FROM reader WHERE rname=rname1); UPDATE reader SET lendnum=lendnum-1 WHERE rname=rname1; UPDATE book SET b...
true
6000b5576a94660d797b95ec6347ce043e3c34a7
SQL
Goular/LaravelModule
/数据库备份/2017-08-25-144600.sql
UTF-8
63,816
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2017-08-25 14:44:28 -- 服务器版本: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
59128e49b856134c89b79e338334b8ee91244e4d
SQL
kamacasta/SQL-Employee-Tracker
/db/seeds.sql
UTF-8
455
3.34375
3
[]
no_license
USE employeeConnection; -- Department INSERT INTO department(name) VALUES ('Engineer'),('Management'),('HR'),('Sales') -- Role INSERT INTO role(title, salary, department_id) VALUES ('Management', 150000, 1),('Engineer', 125000, 2),('Sales', 110000, 3),('HR', 75000, 4) -- Employee INSERT INTO employee(first_name, la...
true
fb2d39435ea5c07fdcf23993e1546cf64e7b6306
SQL
vmase001/FUI_Assigments
/Database/SQLQueries/q2.sql
UTF-8
97
2.71875
3
[]
no_license
select ssn, fname, lname from employee where dno = 5 group by employee.ssn having salary >= 35000
true