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
f78cf1e81c6ceaac915b8d476e23e0b69bd8e6ea
SQL
TheWordSoftware/TWS
/GameRoleta - Apresentação/sql/tws.sql
UTF-8
4,132
2.953125
3
[]
no_license
create table `tw_tema` ( `tm_nome` varchar(50) not null, `tm_codigo` int not null primary key auto_increment ); create table `tw_objeto` ( `ob_codigo` int(10) not null auto_increment primary key, `ob_nomePortugues` varchar(50) not null, `ob_nomeIngles` varchar(50) not null, /* Dados do áudio */ `ob_nome...
true
6862c6bc36f8abb19dfeeffabedf10902ad7f716
SQL
florinrm/Proiect-BD2-Scripts
/selectIdsFromWishlistByUser.sql
UTF-8
136
2.546875
3
[]
no_license
create procedure selectIdsFromWishlistByUser @user nvarchar(50) as select product_id from Wishlist where username = @user; return;
true
d928c65c01f86066cf725b991435c1cbb1f0469f
SQL
florinalex24/licenta
/lic_db.sql
UTF-8
2,242
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Gazda: localhost -- Timp de generare: 22 Feb 2013 la 16:53 -- Versiune server: 5.1.41 -- Versiune PHP: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
62f6ac154d0b1cde09724f8e7ae3888c220f5047
SQL
mturchanov-matc-school-projects/sql-matc-institute-of-interesting-things
/project_museum_of_interesting_things/project3_interesting_things/project3_reports.sql
UTF-8
1,065
4.1875
4
[]
no_license
--Find total amount of all lost items: --version 1 --generally, the column isLost could be dismissed -- because subquery can do the same thing SELECT SUM(worthValue) lost_items_total_amount FROM items WHERE isLost = 1; --vers2 SELECT SUM(worthValue) lost_items_total_amount FROM items WHERE itemID IN ...
true
3d9838c6000b03176bc9415465e5f34a6df29ddc
SQL
rdlook04/kardex
/backup_20200916.sql
UTF-8
9,923
3.125
3
[]
no_license
/* SQLyog Ultimate v10.3 MySQL - 5.5.5-10.1.40-MariaDB : Database - kardex1 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_...
true
c19ea945ccfe16583720370af0a8e2224fbdb52d
SQL
sirina26/WP
/WeddingPlanner/WeddingPlanner.DB/Scripts/20181910.0037.Install-sPropositionDelete.sql
UTF-8
406
2.71875
3
[]
no_license
create procedure weddingplanner.sPropositionDelete ( @PropositionId int ) as begin set transaction isolation level serializable; begin tran; if not exists(select * from weddingplanner.tProposition s where s.PropositionId = @PropositionId) begin rollback; return 1; end; delete from weddingplan...
true
b563ce7e64eeeda1cdbfd186bfe2143691c9cb0a
SQL
Stopka/volebni-system
/src/Data Model.SQL
UTF-8
2,807
3.90625
4
[]
no_license
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS action ; DROP TABLE IF EXISTS additional_info ; DROP TABLE IF EXISTS admin ; DROP TABLE IF EXISTS admin_manages_action ; DROP TABLE IF EXISTS participation ; DROP TABLE IF EXISTS presence ; DROP TABLE IF EXISTS user ; CREATE TABLE action ( id BIGINT...
true
fd5ea3b3680440657526585897b8f7e082e3e6df
SQL
tomsihap/sql-course
/TD-04 - Practice/armazon-schema.sql
UTF-8
3,513
3.65625
4
[]
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
5f2cda8384d6449ebeaf880fc1b318a09572c4dc
SQL
tjefford/PHPForceDownload
/downloads.sql
UTF-8
879
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.8 -- http://www.phpmyadmin.net SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATI...
true
d2721c57c228963b0c472baab5037c43293c059a
SQL
EG92/AMM-47779
/AmmM1/web/WEB-INF/db-definition/Create-db.sql
UTF-8
2,257
3.3125
3
[]
no_license
CREATE TABLE SaldoConto ( IDConto INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, Saldo DOUBLE ); CREATE TABLE Cliente ( IDCliente INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, UserCliente VARCHAR(64), PswCliente VARCHAR(64), IDContoC INTEGER, FOREIGN KEY(IDContoC)...
true
b8999d23eca1a59a180bba17441a9fd1959effa3
SQL
AbanobYoussef/Blog-MCV-Structure
/DataBase/blog.sql
UTF-8
7,598
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 23, 2019 at 03:23 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
580c81b483bb4ae3972bdc93cddf83439d71cbd6
SQL
rzwier2/BaseballStatistics
/baseball_statistics_database.sql
UTF-8
2,150
3.515625
4
[]
no_license
drop database if exists baseballstats; -- Create new database and connect it create database if not exists baseballstats; use baseballstats; CREATE TABLE if not exists team ( TeamID CHAR(5) NOT NULL, School VARCHAR(35) NOT NULL, Conference VARCHAR(25) NOT NULL, Street VARCHAR(25) NOT NULL, City V...
true
a43fe265cea1579fc0f4a44876daa19aaaa36a81
SQL
santiagoardiles/codecademy
/data-science/learn-sql/learn-sql-new-york-restaurants.sql
UTF-8
1,072
3.65625
4
[]
no_license
/* Query #1. */ SELECT * FROM nomnom; /* Query #2. */ SELECT DISTINCT neighborhood FROM nomnom; /* Query #3. */ SELECT DISTINCT cuisine FROM nomnom; /* Query #4. */ SELECT * FROM nomnom WHERE cuisine = "Chinese"; /* Query #5. */ SELECT * FROM nomnom WHERE review >= 4;...
true
ffa109d28c1bcbfb49e00fb1a5bfc03e029a27a4
SQL
BulletsProject/API
/conf/evolutions/default/2.sql
UTF-8
312
2.953125
3
[]
no_license
# Categories # --- !Ups CREATE TABLE `categories` ( `pkid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, PRIMARY KEY (`pkid`), UNIQUE KEY `name_UNIQUE` (`name`), UNIQUE KEY `id_UNIQUE` (`pkid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # --- !Downs DROP TABLE `categories`
true
e7117c880bbb6484423b47886cd569a19b4ba992
SQL
hellhoundmipt/dblab
/Lab4/q3.sql
UTF-8
810
3.703125
4
[]
no_license
SELECT hotel_name, MIN(start_date) AS reg_date FROM HOTELS h, PRICE p, SUITE s WHERE h.hotel_id = s.hotel_id AND s.suite_id = p.suite_id GROUP BY hotel_name HAVING (DATEPART(yyyy,GETDATE())-DATEPART(yyyy,MIN(start_date))- CASE WHEN (DATEPART(mm,GETDATE())<DATEPART(mm,MIN(start_date)) or (DATEPART(mm,GETDATE())=DATE...
true
b13cbad943f201eb75cd634d212870d7cc5f5702
SQL
danrodaba/Base-de-Datos-SQL
/bdAccess_Coches.sql
UTF-8
2,985
3.390625
3
[]
no_license
CREATE DATABASE rent_a_car; USE rent_a_car; CREATE TABLE distribuidores( codigo_distribuidor VARCHAR(20) NOT NULL, direccion VARCHAR(30) NOT NULL, ciudad VARCHAR(15) NOT NULL, telefono VARCHAR (10) NOT NULL, direccion_internet VARCHAR (100) NOT NULL, PRIMARY KEY (codigo_distribuidor) ); CREATE TABLE flota( matricula ...
true
1caf58d61469cbfce10dcca1269fe04f7859176f
SQL
chongqiongjie/etl_sql
/model.d_cocacola_activation_summary.sql
UTF-8
1,583
3.265625
3
[]
no_license
--*================================= --* [caller] --* spark_etl_prt.groovy d_bolome_dau '[[':p_date', 1]]' --* spark_etl_prt.groovy d_bolome_events --* spark_etl_prt.groovy d_bolome_inventory --* spark_etl_prt.groovy d_bolome_orders --*================================= --* [version] --* v1_0=2016-09-2...
true
a43860e3253e1fc797a1f1d2b09ca4df829ce40b
SQL
markimfeld/php-repository
/tpn2/01-ejercicio.sql
UTF-8
1,412
3.53125
4
[]
no_license
CREATE DATABASE IF NOT EXISTS medinahnosdb; USE medinahnosdb; CREATE TABLE cliente ( id int(10) auto_increment not null, dni varchar(8) not null, nombre varchar(100) not null, apellidos varchar(200) not null, direccion ...
true
5a8b81df0484a61ba857a51f32b3b5208b16b99b
SQL
inorrmann/Leagueside-back
/db/squema.sql
UTF-8
297
2.96875
3
[]
no_license
DROP DATABASE IF EXISTS leaguesDB; CREATE DATABASE leaguesDB; USE leaguesDB; CREATE TABLE leagues ( id INT(10) AUTO_INCREMENT NOT NULL, league_name VARCHAR(250) NOT NULL, latitude INT(10) NOT NULL, longitude INT(10) NOT NULL, budget INT(10) NOT NULL, PRIMARY KEY (id) );
true
e9bf1e3f27d7aa9f42aead574db702b7110dcbf3
SQL
sojeebroy/c_sharp_project---Tutors-Point
/TutorsPointApplications/Tutor/Database/SQLQuery5.sql
UTF-8
1,941
3.203125
3
[]
no_license
Create Table Student_Registration ( sid int primary key identity, name varchar(50), phone nvarchar(50), gender varchar(20), Email varchar(50), Password varchar(50), std_ad_id int foreign key references Tutor_Registration(Id) ); select * from Student_Registration create table exams ( ex_id int primary key identity, ex_...
true
35088f70d405c375c22643146d1e6a3f802ec983
SQL
hadgie/RTscars
/sql/mf_sv.sql
UTF-8
3,764
4
4
[ "MIT" ]
permissive
/* --- Date: April 21, 2020 Author: FP Barthel --- Determine the mutation burden by variant type and fraction for each case in the RT-scars cohort - Comparable analysis to `mf_snv_indel.sql` - Limited to SVs called by LUMPY - Coverage adjustment is used and a threshold of 10x coverage is used - Genotype of 0/1 or 1/1 i...
true
cf132adfa37c2c69292c9d4495bd3c10271da6a5
SQL
mtejas88/esh
/Projects/streamlined_app/src/out_of_date/applications_2016.sql
UTF-8
1,886
3.421875
3
[]
no_license
-- base from query that will be QA'd by jamie -- https://github.com/educationsuperhighway/ficher/blob/profiling_high_cost/Projects/high_cost_profiling/src/applications.sql select bi.application_number, case when c.application_number is null then 0 else 1 end as consultant_indicator, ...
true
db02de254cf10bc423348f0a30cf591760b58eb5
SQL
TamizhSen/Bachelors_Final
/7. Full code/table3.sql
UTF-8
926
2.84375
3
[]
no_license
create table Product_master_tab(Product_name varchar2(200),subtype1 varchar2(200),prod_model varchar2(200), constraint product_pkey primary key (Product_name,subtype1,prod_model)); insert into product_master_tab (PRODUCT_NAME, SUBTYPE1, PROD_MODEL) values ('Computer', 'Desktop', 'm2'); insert into product_master_tab...
true
6af9f88d6fa20bedd0acddc323a1540e76ce7e26
SQL
SarahRafaela/SQL
/bd/bd/consultarComAgregação.sql
UTF-8
294
3.046875
3
[]
no_license
use wm; SELECT REGIAO AS 'REGIÃO', SUM(POPULACAO) AS TOTAL FROM ESTADO GROUP BY REGIAO; SELECT REGIAO AS 'REGIÃO', SUM(POPULACAO) AS TOTAL FROM ESTADO GROUP BY REGIAO ORDER BY TOTAL DESC; SELECT SUM(POPULACAO) AS TOTAL FROM ESTADO; SELECT AVG(POPULACAO) AS TOTAL FROM ESTADO;
true
e688f77de6e2023b3305f07c032c03312a1d766a
SQL
julezfitz/bootcampX
/1_queries/students_single_cohort.sql
UTF-8
66
2.5625
3
[]
no_license
SELECT id, name FROM students WHERE cohort_id = 1 ORDER BY name;
true
524d632aa156a0250fc3f4d4a32c1b13f164aa50
SQL
gfakes/vcloud
/harbinger/data-model/migrations/3.1.3-3.2.0.sql
UTF-8
894
2.734375
3
[ "NTP-0" ]
permissive
-- old: 3.1.03 fb4081b6042e445a16a4295ffafd2364b70129c7 -- new: 3.2.00 bcdbcf89c8a6f77904d1017d2eb65c8fe1b47760 DROP TABLE insurance_carrier_plan_grouping_associations; DROP SEQUENCE insurance_carrier_plan_grouping_associations_id_seq; ALTER TABLE insurance_carrier_plans ADD COLUMN insurance_carrier_plan_grouping_i...
true
94abbcaf4721522a97334eb44a3e53829e359719
SQL
MephestoMD/employee-tracker
/db/seeds.sql
UTF-8
962
3.390625
3
[ "MIT" ]
permissive
USE office_DB; INSERT INTO department (name) VALUES ('Human Resource Management'), ('Research and Development'), ('Accounting'); INSERT INTO role (title, salary, department_id) VALUES ('HR Manager', 67500, 1), /* 1 */ ('Junior Representative', 45000, 1), /* 2 */ ('Senior Representative', 52500, 1),...
true
c5d8baed352947547377422d82582d43342975a0
SQL
ferVargasB/project_vitat_citas
/app/vitat.sql
UTF-8
2,828
3.3125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 08, 2020 at 04:50 AM -- Server version: 5.7.24 -- 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
7191a3738c364119097a87470a340bb3eb883efe
SQL
PAC-2019-2020-films/w2w
/scripts-cli/setup.sql
UTF-8
5,370
3.765625
4
[]
no_license
DROP DATABASE IF EXISTS `w2w`; CREATE DATABASE IF NOT EXISTS `w2w`; USE `w2w`; CREATE TABLE `roles` ( `id` INT UNSIGNED NOT NULL, `name` VARCHAR(80) UNIQUE NOT NULL, `description` VARCHAR(255), PRIMARY KEY (`id`) ); CREATE TABLE `users` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `user_nam...
true
fb5aa9f828f7a0e534228d824950f22172f145c4
SQL
Wanglingdu/ownModify
/schema.sql
UTF-8
598
2.984375
3
[]
no_license
drop database if exists deepbc; create database if not exists deepbc; use deepbc create table users ( id int not null auto_increment, username varchar(20) not null, #设定默认值 password_hash varchar(128) not null, primary key (id) ); create index index_id on users(id); create table bc_detect_info ( id int not null aut...
true
8b2573f106a6e15cbba6e1c4505b6b0f178664cb
SQL
dandraden/Database-Scripts
/Oracle/sql/SP_USU2.sql
UTF-8
632
3.515625
4
[]
no_license
SET LINESIZE 180 set verify off COL CMD_KILL_ORACLE FORMAT A60 COL CMD_KILL_UNIX FORMAT A15 COL USERNAME FORMAT A15 COL OSUSER FORMAT A15 select DISTINCT s.INST_ID , S.USERNAME , 'alter system DISCONNECT session '''||s.SID||','||s.SERIAL#||''' IMMEDIATE;' CMD_KILL_ORACLE from Gv$session s, Gv$process p ...
true
04fb4c00a9a745508fd24943604b954843b65e51
SQL
Safa-M/Cfheckpoint_Data_definition_language
/DDL.sql
UTF-8
849
4.0625
4
[]
no_license
-- 1 Create the relational model CREATE TABLE PRODUCT ( Product_id VARCHAR(20)CONSTRAINT pk_product PRIMARY KEY Product_name VARCHAR(20)CONSTRAINT nn_product NOT NULL Price NUMBER CONSTRAINT c_product CHECK (price > 0) ) CREATE TABLE CUSTOMER ( Customer_id VARCHAR(20)CONSTRAINT pk_customer PRIMARY KE...
true
c2120901be950beba550bb3c846d7e5d44f4406d
SQL
CBIIT/c3d-LabLoad
/Installations/v1.1Testing/LabLoader_Full_to_v1.0.4/Miscell_public_Syns.sql
UTF-8
458
2.515625
3
[]
no_license
-- Simple Install Script for CDW Data Load Public Synonyms set echo on verify on feedback on Spool Miscell_Public_SYns select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS') "Install Date", user "Install User" from dual; Drop public synonym DUPLICATE_LAB_MAPPINGS ; Create public synonym DUPLICATE_L...
true
600e916ba504c903e7be580b207bac7c4be2dae0
SQL
gabrieltseng/datascience-projects
/general_programming/stanford_databases/DB05/movie_rating/queries/q4.sql
UTF-8
238
3.40625
3
[]
no_license
-- Some reviewers didn't provide a date with their rating. Find the names of all reviewers who have ratings with a NULL value for the date. SELECT distinct name FROM Reviewer, Rating WHERE Reviewer.rID = Rating.rID and ratingDate is null
true
869f49623a006843dc483eb1f8c86c80893085af
SQL
blackscorpionster/buneli
/buneli/bdd/MySql/9.User Requests.sql
UTF-8
1,001
3.265625
3
[]
no_license
delimiter // CREATE PROCEDURE FN_USERREQUESTS ( IN ptyuser INTEGER ) BEGIN select x.* from ( select 1 TIPO, CONCAT_WS(' ',b.txt_name ,b.txt_surname) USER_NAME, DATE_FORMAT(fec_start,'%d/%m/%Y') FEC_START, link_message LINK_MESSAGE, b.cod_user COD_USER, b.txt_name TXT_NAM...
true
45327ee4c32875e69b3190594777415aa99827ac
SQL
akadam95/it635-project
/init-sql/setup.sql
UTF-8
1,438
3.375
3
[]
no_license
SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; CREATE DATABASE `lawfirm` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `lawfirm`; DROP TABLE IF EXISTS `court`; CREATE TABLE...
true
0bc9c0f8bc8d8d96b1db6f96143581a2e902c4ad
SQL
tkionshao/Cov_Push_Tool
/sp_history/SP_KPI_multi_split_E2E.sql
WINDOWS-1250
3,432
3.03125
3
[]
no_license
DELIMITER $$ USE `gt_gw_main`$$ DROP PROCEDURE IF EXISTS `SP_CreateDB_LTE`$$ CREATE DEFINER=`covmo`@`%` PROCEDURE `SP_KPI_multi_split_E2E`(IN KPI_ID INT(11) ,IN SESSION_NAME VARCHAR(100),IN START_TIME VARCHAR(50),IN END_TIME VARCHAR(50), IN WORKER_ID VARCHAR(10) ,IN IMSI MEDIUMTEXT,IN GT_COVMO VARCHAR(20),TECH_N...
true
d2c5221c7b836d56f93a9e185539301fa64fe8be
SQL
ricardojaferreira/checkmate
/database/checkmate.sql
UTF-8
820
2.75
3
[]
no_license
CREATE TABLE users ( user_id INTEGER PRIMARY KEY, user_name VARCHAR, user_username VARCHAR, user_password VARCHAR, user_email VARCHAR, user_phone INTEGER, user_description VARCHAR, user_address VARCHAR, user_profilepic VARCHAR ); CREATE TABLE category ( category_id INTEGER PRIMARY KEY, category_n...
true
2c3ca69f5f407cb2f3c917dc011b37fdf6a2662a
SQL
kuriyantoadi/micin-server
/alpa/server-db/file/dbcbt.sql
UTF-8
89,805
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 21 Sep 2018 pada 01.39 -- Versi Server: 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_CL...
true
a2c335baebefaebcde6c2f232de703384f95c110
SQL
hongocnguyen1994/PHP09-PHP
/Day_3_database/learn_mysql/fig18-07.sql
UTF-8
522
2.828125
3
[]
no_license
/* Lấy productName trong products Với điều kiện trong mỗi productName phải bắt đầu bằng Fender */ SELECT productName FROM products WHERE productName LIKE 'Fender%' /* Lấy productName trong products Với điều kiện trong mỗi productName phải có chữ cast */ SELECT productName FROM products WHERE productName LIKE '%cast%'...
true
55685e2b8d11374458f6136b4dd8cfe6bdab23d0
SQL
device42/DOQL_scripts_examples
/Recommended DOQL/Storage Arrays/All_Hosts_LUN_Topologies.sql
UTF-8
475
2.9375
3
[ "Apache-2.0" ]
permissive
select vdh.virtualmachine_name as "VM Name" ,vdh.hypervisor_name as "Hypervisor Name" ,vdh.vdisk_name as "VDisk Name" ,vdsa.mountpoint_name as "Datastore Name" ,vdsa.vdisk_backing as "VDisk Backing" ,vdsa.storageresource_name as "LUN Filesystem" ,vdsa.storagearray_name as "Storage Array Name" ,vdsa.stor...
true
6e490206bb38a1a13dc595d3af2d790596566a88
SQL
marcosd94/trabajo
/pases/zdiaz/017/17-legajo_da.sql
UTF-8
782
3.34375
3
[]
no_license
---# AMONESTACIONES --UBICAR LOS DOCUMENTOS DE DATOS AMONESTACIONES SELECT * FROM general.documentos WHERE nombre_tabla = 'DatosAmonestacion' AND nombre_pantalla = 'adm_amonestaciones' AND activo is true; SELECT * FROM legajo.datos_amonestacion da JOIN general.documentos doc ON da.id_documento = doc.id_documento w...
true
56470d2c0ba401b073aeb9e127a56fb89ac79b56
SQL
fizwit/FStool
/SQL/create-fsdata.sql
UTF-8
1,095
3.140625
3
[]
no_license
# create initial fsdata base and create one user create database fsdata; grant ALL PRIVILEGES on fsdata.* to 'fsuser'@'localhost' identified by 'mypasswd' ; grant ALL PRIVILEGES on fsdata.* to 'fsuser'@'%' identified by 'mypasswd' ; CREATE TABLE dataTable ( `inode` bigint(20) default NULL, `uid` bigint(20) ...
true
bcdb2170b4eb0e61aefa8559b8979604bf92634a
SQL
BaturinaAnna/Database_polyclinics
/polyclinic_create_db.sql
UTF-8
1,529
3.78125
4
[]
no_license
CREATE DATABASE IF NOT EXISTS polyclinic; USE polyclinic; CREATE TABLE IF NOT EXISTS Specialization ( id INTEGER NOT NULL PRIMARY KEY, SpecializationType VARCHAR(30) ); CREATE TABLE IF NOT EXISTS SocialStat ( id INTEGER NOT NULL PRIMARY KEY, SocialStat VARCHAR(30) ); CREATE TABLE IF NOT EXISTS PatientCondi...
true
57c66fa2a91deb922a7f627b98061b1e09850dea
SQL
SQL-Server-projects/TSQL-Scripts
/SSDB.Check_Index_Fragmentation.sql
UTF-8
1,487
4.15625
4
[ "MIT" ]
permissive
/*--------------------------------------------------------------------------------------+ | Purpose: How to Check Index Fragmentation on Indexes in a Database +---------------------------------------------------------------------------------------*/ SELECT [Schema] = dbschemas.[name] , [Table] = dbtables.[n...
true
07981407f4d2515b54f140a75e73e3e63898eefe
SQL
mariano070/SistemasDeInformacionII
/TESIS_/Archivos/Inserción de Datos tablas con identity.sql
UTF-8
1,743
2.71875
3
[]
no_license
--TTBUS000 SET IDENTITY_INSERT TTBUS000 ON INSERT INTO TTBUS000 (TTBUS_Id,TTBUS_Descripcion,TTBUS_FechaCarga,TTBUS_Estado,TTBUS_CodProveedor,TTBUS_Alquilado,TTBUS_CodPosicion, TTBUS_DesPosicion,TTBUS_RubroBien,TTBUS_ContDocu,TTBUS_UsuarioAlta,TTBUS_MaquinaAlta,TTBUS_NroSerie, TTBUS_FechaBaja,TTBUS_MotivoBaja,TTBUS_Usu...
true
bd70d5ec61e585bc7030310d8ecae3a3dc15bbf1
SQL
trmini/AtWork
/SQL Queries/Office Add-ins/AgaveMonthlyActiveUsers.sql
UTF-8
318
3.375
3
[]
no_license
SELECT Month ,Platform ,MainHost , COUNT(1) AS [Number Of Users] FROM ( SELECT DISTINCT Platform , MainHost , ClientId , DATENAME(MONTH, Date) AS Month FROM V_AppActivated_OSI WHERE Platform <> 'Unsupported' ) AS UniqueUsers GROUP BY Month, Platform, MainHost ORDER BY Month, Platform, MainHost
true
6964d33a11a924ce039bab87bcf51ffbc2245d6d
SQL
oluwatosin17/Intro-to-Programming-for-Data-Science-Scholarship-Program-Nanodegree-Program
/u_having.sql
UTF-8
2,070
4.3125
4
[]
no_license
#How many of the sales reps have more than 5 accounts that they manage? select s.name, count(a.id) from ns.accounts a join ns.sales_rep s on a.sales_rep_id = s.id group by 1 having count(a.id) > 5 order by 2 desc; #How many accounts have more than 20 orders? select a.name, count(*) from ns.accounts a join ns.orders o ...
true
32ff059e58fceba2ac17bb6721de99c0cd206284
SQL
water-lilies/SQL_basics
/sql_Quiz1.sql
UTF-8
2,359
4.6875
5
[]
no_license
-- SQL 퀴즈 USE employees; SELECT * FROM employees limit 5; -- 1. 직원 이름이 빠른 순(A, B, C …) 순으로 리스트를 출력하시오. SELECT * FROM employees ORDER BY last_name; -- 2. 직원 나이가 적은 순으로 출력하시오. SELECT * FROM employees ORDER BY birth_date DESC; -- 3. 직원 중 나이가 가장 많은 사람의 나이는 몇 살 인가? SELECT MIN(BIRTH_DATE) FROM EMPLOYEES; SELECT year(c...
true
f488a7cfbf82e20cac3bd0704234999a4f0e4e39
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day19/select1939.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-18T19:39:00Z' AND timestamp<'2017-11-19T19:39:00Z' AND temperature>=20 AND temperature<=98
true
a5805164f3a98ccc9a9b6ad073cc84fc7b687c02
SQL
dfour001/GEOG_574_Final_Project
/Walkability Analysis/walkability_analysis.sql
UTF-8
1,093
3.765625
4
[]
no_license
-- Create tables holding nearest node for each polling place. -- One for 2018 and one for 2020. drop table if exists polling_place_nearest_nodes_2018; create table polling_place_nearest_nodes_2018 as ( select pollingpla, find_nearst_node(pollingpla) as node from pp_2018general ); drop table if exists p...
true
d4414d83fc89ff9c2a86078954e16506c3910f7d
SQL
royor-3/Afpa_2019-2020
/AfpaDeveloppeurWebWebMobile/sqlAvancé/rôles/create_user.sql
UTF-8
473
3.15625
3
[]
no_license
/* Créez trois utilisateurs util1, util2, util3 util1 doit pouvoir effectuer toutes les actions */ GRANT ALL PRIVILEGES ON papyrus.* TO 'util1'@'%' IDENTIFIED BY '1234ABCD' /* util2 ne peut que sélectionner les informations dans la base */ GRANT SELECT ON papyrus.* TO 'util2'@'%' IDENTIFIED BY '1234ABCD' /* util3...
true
b70d80cf9d61bcb13dc0ee8a90cbe675e0b63c27
SQL
dodoas/lodo
/db/changes/124_add_send_to_altinn_to_salaryconfline_table.sql
UTF-8
507
2.515625
3
[ "MIT" ]
permissive
-- Add send to altinn to on salaryconfline ALTER TABLE salaryconfline ADD SendToAltinn int(1) DEFAULT 1; UPDATE salaryconfline set SendToAltinn = 1; UPDATE salaryconfline set SendToAltinn = 0 where SalaryText in ('Påleggstrekk', 'Diverse trekk', 'Forskudd'); -- Add send to altinn to on salaryline ALTER TABLE salaryli...
true
fbcf146a9d0475f9856dd0079266e110235255c8
SQL
Sof7ik/web-std
/sql/business_card_college.sql
UTF-8
2,557
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Фев 05 2020 г., 18:40 -- Версия сервера: 8.0.15 -- Версия PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
true
609ad7aa7cf6ea1aa9d5d347502d6c5eb8954ade
SQL
JIdayyy/bazify-graphql-api
/prisma/migrations/20210125104813_set_song_title_unique/migration.sql
UTF-8
262
2.765625
3
[]
no_license
/* Warnings: - The migration will add a unique constraint covering the columns `[title]` on the table `songs`. If there are existing duplicate values, the migration will fail. */ -- CreateIndex CREATE UNIQUE INDEX "songs.title_unique" ON "songs"("title");
true
fe51263abbee22fd983ee17a73ab966d7d809d56
SQL
AishaDorsett/chitter-challenge-apprenticeships
/db/migrations/01_create_chitter_table.sql
UTF-8
286
3.203125
3
[]
no_license
CREATE TABLE peeps(id SERIAL PRIMARY KEY, message VARCHAR(60)); /* add a date column*/ ALTER TABLE peeps ADD COLUMN posted_at TIMESTAMP; ALTER TABLE peeps ALTER COLUMN date_posted SET DEFAULT now(); /* Order peeps by descending order */ SELECT * FROM peeps ORDER BY date_posted DESC;
true
ba5edcf5b28e2b937eb941b447d1156ba2c0d5fc
SQL
Royal6969/Ejercicios_Base_de_Datos_SQL_ORACLE_1_DAM
/Tema 4 - Manipulacion de Datos/Ejercicios/Ej2_Concesionario12/2c.sql
UTF-8
580
2.6875
3
[]
no_license
ALTER TABLE DISTRIBUCIONES ADD CONSTRAINT FK_CONCES_DIST FOREIGN KEY (COD_CONCESIONARIO) REFERENCES CONCESIONARIOS (COD_CONCESIONARIO); ALTER TABLE DISTRIBUCIONES ADD CONSTRAINT FK_COCHES_DIST FOREIGN KEY (COD_COCHE) REFERENCES COCHES (COD_COCHE); ALTER TABLE VENTAS ADD CONSTRAINT FK_COCHES_VENT FOREIGN KEY (COD_CO...
true
b6afa3d5e9d0071f816c68d3469b918b0a1265ed
SQL
AnielleMacedo/Repository_PHP_Zimuel_Exercises
/cloud_project/db/cloud.sql
UTF-8
1,938
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Creato il: Nov 08, 2019 alle 14:58 -- Versione del server: 10.4.6-MariaDB -- Versione PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
425e7f8db20be6e82480b46bffb444704f28f48a
SQL
dtdhehe/ptu-life
/doc/ptu.sql
UTF-8
12,065
3.25
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : ptu Source Server Version : 80013 Source Host : localhost:3306 Source Database : ptu Target Server Type : MYSQL Target Server Version : 80013 File Encoding : 65001 Date: 2019-03-06 17:58:42 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
true
9fad8731bb8475e547641cb358599d1d7372028e
SQL
krishnamohankaruturi/secret
/aart-web-dependencies/db/dml/691.sql
UTF-8
780
2.859375
3
[]
no_license
--dml/691.sql -- DML insert into authorities (authority,displayname,objecttype,createddate,createduser,activeflag,modifieddate,modifieduser,tabname,groupingname,labelname,level,sortorder) select 'DATA_EXTRACTS_TESTING_READINESS','Create Testing Readiness Data Extract','Reports-Data Extracts',NOW(), (se...
true
1f593c315eaf203b5cb97df8d97c077a0a4d3dcb
SQL
Thinkagain16/iti
/iti.sql
UTF-8
3,387
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 14, 2016 at 02:43 AM -- Server version: 5.7.14 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
fb257fa827efdfab2589bef3e3a63ebd0446c54a
SQL
mcep/Mediclinic
/Mediclinic/App_Code/SqlInstallScripts/13a-OrganisationType-IncludesData.sql
UTF-8
1,029
3.140625
3
[]
no_license
 CREATE TABLE OrganisationType ( organisation_type_id int not null PRIMARY KEY identity, descr varchar(50) not null, organisation_type_group_id int not null FOREIGN KEY REFERENCES OrganisationTypeGroup(organisation_type_group_id), display_order int ...
true
2551cc55c0dbc509dd564337966790bff1e271d1
SQL
julienmirande/cards
/base.sql
UTF-8
2,770
3.796875
4
[]
no_license
create table if not exists CARTE ( NUMERO_CARTE serial primary key, DESCRIPTION_CARTE text, TYPE_CARTE text, TITRE_CARTE text, FAMILLE_CARTE text ); create table if not exists CARACTERISTIQUE ( NUMERO_CARACTERISTIQUE serial primary key, NOM_CARACTERISTIQUE text ); create table if not exists CARACTERISE_...
true
0d09d514756ee20e446105c5bd2a5093ed0e42f6
SQL
kongyew/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/ck_sync1/sql/ck_sync1_alter_table_heap_cluster_index.sql
UTF-8
9,954
3.21875
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "LicenseRef-scancode-other-copyleft", "metamail", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-permissive", "ISC", "Python-2.0", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scanco...
permissive
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- CK_SYNC1 -- CREATE TABLE ck_sync1_heap_cluster_table_unique_index( text_col text, bigint_col bigint, char_vary_col character varying(30), numeric_col numeric, int_col int4, float_col float4, int_array_col int[], drop_col numeric, b...
true
986c72ca666346ad57925486beee3024166436f8
SQL
greenplum-db/gpdb
/contrib/fuzzystrmatch/fuzzystrmatch--1.0--1.1.sql
UTF-8
788
2.765625
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "OpenSSL", "LicenseRef-scancode-stream-benchmark", "ISC", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-ssleay-windows", "BSD-2-Clause", "Python-2.0" ]
permissive
/* contrib/fuzzystrmatch/fuzzystrmatch--1.0--1.1.sql */ -- complain if script is sourced in psql, rather than via ALTER EXTENSION \echo Use "ALTER EXTENSION fuzzystrmatch UPDATE TO '1.1'" to load this file. \quit ALTER FUNCTION levenshtein(text, text) PARALLEL SAFE; ALTER FUNCTION levenshtein(text, text, int, int, in...
true
4ba83ed125b322ba66a1a659dbceeb48e2c85312
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select0449.sql
UTF-8
178
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T04:49:00Z' AND timestamp<'2017-11-16T04:49:00Z' AND temperature>=13 AND temperature<=78
true
443801df8718c7f6be346be1c3beb704edfdaa49
SQL
Daniel-Davies/Bristol-Surplus-Food
/conf/evolutions/default/4.sql
UTF-8
397
2.734375
3
[]
no_license
# FoodCollections schema # --- !Ups CREATE TABLE FoodCollections ( id bigserial primary key, userId bigserial NOT NULL REFERENCES Users, availableTimeStart timestamp without time zone NOT NULL, availableTimeEnd timestamp without time zone NOT NULL, comingDeliveryId INT NULL REFERENCES Deliveries,...
true
22cfd1c4db55fd736dd8dac0f788f332d3c03a0f
SQL
BiggsBottor/BBDD
/botigacuadresdb.sql
UTF-8
2,106
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 04-09-2019 a las 07:15:33 -- Versión del servidor: 5.7.26 -- Versión de PHP: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
9e1e12e34ac2d7fe23c901aeddb5872e8e0df88a
SQL
ZoeHectors/werkend-systeem
/HTML/db2.sql
UTF-8
472
2.734375
3
[]
no_license
DROP DATABASE kapperapp; DROP USER 'kapper'@'localhost'; CREATE DATABASE kapperapp; USE kapperapp; CREATE USER 'kapper'@'localhost' IDENTIFIED BY '0123'; GRANT ALL PRIVILEGES ON * . * TO 'kapper'@'localhost'; CREATE TABLE klant ( id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, naam VARCHAR(256) NOT...
true
aecdb35d12e2d4c99563d22c8cc73e895ea31970
SQL
FeGitHub/PAMS
/WebRoot/WEB-INF/classes/com/DS/pams/dao/user.sql
UTF-8
738
3.046875
3
[]
no_license
/*** * 获取个人信息 */ #sql("getUserInfoByAccount") select * from user where account=#para(account) #end /*** * 增加新的用户 */ #sql("addData") insert into user(account,password,mail) values (#para(account),#para(password),#para(mail)) #end /*** * 获取系统中所有用户 */ #sql("getAllUser") select * from use...
true
80f787d2ef946b913c52fd76e8f1c4b1f083ab7e
SQL
JoanQin/kmdata_db
/misc_scripts/development_process/academic_departments_investigation.sql
UTF-8
394
3.734375
4
[]
no_license
SELECT DISTINCT a.department_id, b.dept_name, COUNT(*) AS appt_count FROM kmdata.user_appointments a INNER JOIN kmdata.departments b ON a.department_id = b.deptid WHERE a.title LIKE '%Professor%' OR a.title LIKE '%Faculty%' GROUP BY a.department_id, b.dept_name ORDER BY 2; --LIMIT 2000; SELECT * FROM kmdata.departme...
true
15c953d9029b49c952a7f1c9dac945793eb1bfd2
SQL
akbars95/study_250117
/oracle/oracle pl sql/W_create_user.sql
UTF-8
2,139
3.28125
3
[]
no_license
--create tablespace create TABLESPACE USER0812_TS datafile 'd:\work\user0812_TS.dbf' size 100M AUTOEXTEND on next 50M MAXSIZE 250M; --create role drop role ROLE_0912; create role ROLE_0912 NOT IDENTIFIED;/*identified by ROLE_0912;*/ --assign priveleges for role --for create GRANT CREATE SESSION TO ROLE_0912; GRANT CR...
true
a1f62fc6b49691971a24f917a5f28b67dbc177dd
SQL
syndic2/college-practicum
/semester-2/basic-database/week-3/T3BASDAT_6615.sql
UTF-8
3,345
4.15625
4
[]
no_license
--MATERI --NO 1 select d.duelist_id as "ID", d.nama as "NAMA" from duelist d where d.nama like '%en%' and (to_char(d.tanggal_lahir,'yyyy')>=1998 and to_char(d.tanggal_lahir,'yyyy')<=2000) order by d.nama asc; --MATERI --NO 2 select c.card_id as "Id",c.card_name as "Nama Kartu", c.card_level as "Level" from card c wh...
true
18bf8da90f3cbf5ec886debd1243f259bfad9677
SQL
SergioZulueta/BaseDeDatos
/Programacion con PLSQL/Solucion_3_1_Trigger_SergioZulueta.sql
ISO-8859-10
3,465
3.609375
4
[]
no_license
--1 DROP TRIGGER INS_EMPLE; CREATE OR REPLACE TRIGGER INS_EMPLE BEFORE INSERT ON EMPLE BEGIN IF (TO_CHAR(SYSDATE,'HH24:MI') NOT BETWEEN '09:50' AND '17:30') OR (TO_CHAR(SYSDATE,'DY') IN ('SAT', 'SUN')) THEN RAISE_APPLICATION_ERROR (-20001, 'SOLO SE PUEDE AADIR PERSONAL ENTRE LAS 9 Y...
true
e3d7a4b1526e2a8d70e4cd0cbe12e3c8c247bc0e
SQL
0x464e/data-db-100
/H3 - Multiple tables/h3t2.sql
UTF-8
161
2.921875
3
[]
no_license
-- Tietokantojen perusteet - Database basics 2021 -- H3 T2 SELECT A.title, B.title AS predecessor_title FROM book A LEFT JOIN book B ON A.predecessor_id = B.id ORDER BY A.id
true
39e73b6aae0b043943ea11482138747872f83c2d
SQL
ChengsGitHub/ChinaSofti
/12-Java讲课笔记大汇总/精髓/笔记/oracle笔记/第十一章 视图.sql
GB18030
1,089
4.375
4
[]
no_license
--ͼñѯͼѯ䣬ݱһ /* CREATE [OR REPLACE] VIEW ͼ AS ѯ ѯмУ */ --ѯԱţʣΪͼ CREATE OR REPLACE VIEW v_emp AS SELECT employee_id,last_name,salary FROM employees; --ɾͼ DROP VIEW v_emp; --ѯͼ SELECT * FROM v_emp; --ͼv_deptÿŵıţƣŹܺ CREATE OR REPLACE VIEW v_dept AS SELECT d.department_id, d.depart...
true
83386b658aae1c0f6ea97279a3cdbd1b865b00e6
SQL
xSAVIKx/WatchDog
/sql/basic_queries.sql
UTF-8
2,299
4.03125
4
[]
no_license
/** * watchdog website * select websites to check * last check was longer ago than the set interval in minutes */ SELECT "watchdog_website" AS source, website_id AS reference_id, website_url AS URL_to_check FROM watchdog_website AS watch WHERE ( lastverified + INTERVAL frequency MINUTE) < UTC_TIMESTAMP() OR lastver...
true
c09681e84920b3c14b05c1c649d43dd60e4f9f5d
SQL
MCZbase/DDL
/TRIGGER/TI_ACCN_CK_NUMNBER.sql
UTF-8
766
3.5625
4
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE TRIGGER "TI_ACCN_CK_NUMNBER" before INSERT on Accn for each row -- ERwin Builtin Mon May 17 12:58:26 2004 -- INSERT trigger on Accn declare numrows INTEGER; begin /* ERwin Builtin Mon May 17 12:58:26 2004 */ /* Trans Accn ON CHILD INSERT RESTRICT */ select count(*) into numrows f...
true
dd0b6b7b732f61a6927ee2726a2e9871d8cc1af0
SQL
denizOgut/KodluyoruzSQLRepo
/Ödev 2.sql
UTF-8
294
3.28125
3
[]
no_license
--SELECT * FROM film WHERE film.replacement_cost BETWEEN 12.99 AND 16.99-0.1; --SELECT first_name , last_name FROM actor WHERE actor.first_name IN ('Penelope','Nick','Ed'); --SELECT * FROM film WHERE film.rental_rate IN (0.99, 2.99, 4.99) AND film.replacement_cost IN (12.99, 15.99, 28.99);
true
9628e21869663eb940b9f7faf665f88f9aa442d1
SQL
diliproutkewill/QMS
/DB Scripts/QUOTES_ARCHIVE.sql
UTF-8
1,961
3.296875
3
[]
no_license
-------------------------------------------------------- -- DDL for Procedure QUOTES_ARCHIVE -------------------------------------------------------- set define off; CREATE OR REPLACE PROCEDURE "QUOTES_ARCHIVE" is V_QUOTE_ID VARCHAR2(1000); v_max varchar2(1000); begin FOR I IN ( SELECT QUOTE_ID FROM...
true
4320070e065892cff1441b01c7daafcdaaf72f04
SQL
Mudanya/Intranet-Mail
/maildata.sql
UTF-8
7,075
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 12, 2018 at 02:03 AM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
73d068bdcabc303b88120efdb354dda3876470c4
SQL
AnilKumar01/banksystem_database_v1.0.0.1
/procedures/deactivate_debit_card.SQL
UTF-8
318
2.875
3
[]
no_license
USE BANK_SYSTEM DELIMITER // DROP PROCEDURE IF EXISTS DEACTIVATE_DEBIT_CARD; CREATE PROCEDURE DEACTIVATE_DEBIT_CARD ( IN P_ACCOUNT_NO VARCHAR(20) ) BEGIN UPDATE DEBIT_CARD SET DEACTIVATION_DATE=NOW() WHERE ACCOUNT_NO=P_ACCOUNT_NO; UPDATE ACCOUNT SET DEBIT_CARD="NO" WHERE ACCOUNT_NO=P_ACCOUNT_NO; END; //
true
c53e52f219edc8c573c011f8bfb6d1e588538ddc
SQL
moutainhigh/qinjia_credit
/databasesql/脚本.sql
UTF-8
52,894
2.5625
3
[]
no_license
CREATE TABLE xyqb_credit_apply_info ( id bigint(10) NOT NULL AUTO_INCREMENT COMMENT 'id', req_no varchar(64) DEFAULT NULL COMMENT '创金请求编号', ser_no varchar(64) DEFAULT NULL COMMENT '海尔请求编号', auto_Flag varchar(30) DEFAULT NULL COMMENT '是否自动提交', credit_Typ varchar(10) DEFAULT NULL COMMENT '额度类型', spe_Seq var...
true
1fab5a6929c74797a3da49a9cb8b163ce223049a
SQL
isidorotrevino/curso_practicas
/bd/alletta/bd.sql
UTF-8
25,411
3.5625
4
[]
no_license
create table catalogo ( id integer not null primary key, clasificacion text not null, clave text, nombre text ); create sequence seq_catalogo; create table sub_clasificacion( id int not null primary key, id_clasificacion int, id_ropa int, id_accesorios int, id_hogar int, id_papeleria int, id_ocasiones_espe...
true
663dfa08a397720a6e778ce2cbec23c13b27fa76
SQL
pablo17sanchez/SQLSERVER2008R2
/MIS QUERYS/JOIN DISTINTAS BASES DE DATO.sql
UTF-8
280
2.984375
3
[]
no_license
SELECT A1.SOPNUMBE AS GP, A2.SOPNUMBE AS RS FROM GPHN..SOP30200 A1 JOIN import..VENTAS_MAYO A2 ON A1.SOPNUMBE = A2.SOPNUMBE where DOCDATE between '2011.05.01' and '2011.05.31' ---and SOPNUMBE = '10080010100091900' order by A1.SOPNUMBE USE import SELECT * FROM dbo.VENTAS_MAYO
true
69dcce54cd65c7a1d56547ed6ac5b31dce1adc35
SQL
thuannguyenn1/HappySharing
/JobTips.Database/JobTips.Database/JobTips.Database/Topic/procedures/DeleteTopic.sql
UTF-8
227
3.140625
3
[]
no_license
CREATE PROCEDURE dbo.DeleteTopic ( @TopicIds dbo.UDT_Ids READONLY ) AS BEGIN SET NOCOUNT ON SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED UPDATE dbo.Topics SET IsActive = 0 WHERE Id IN (SELECT Id FROM @TopicIds) END
true
c1e6a476b94a887361d8b66cad9da2012af9ba71
SQL
phikhanhb7/C0321G1-NguyenPhiKhanh
/03_thao_tac_voi_CSDL/bai_tap/thao_tac_CSDL.sql
UTF-8
1,013
3.9375
4
[]
no_license
use quanlybanhang; insert into customer(cid,cNAME,cAGE) values (1,"Minh Quan",10), (2,"Ngoc Oanh",20), (3,"Hong Ha",50); insert into oder values (3,"2006-03-21",5000), (2,"2006-03-23",2000), (3,"2006-03-16",100000); insert into product(pid,pName,pPrice) values (1,"May Giat",3), (2,"Tu Lanh",5), (3,"D...
true
fffd5b020046123abe6ffb3cdde0c41348692cb1
SQL
Lundvald/nsi-minlog
/minlogudtraekservice/src/main/resources/db/migration/V1__Initial_schema.sql
UTF-8
623
2.9375
3
[]
no_license
USE minlog; CREATE TABLE LogEntry ( `id` BIGINT NOT NULL AUTO_INCREMENT, `regKode` varchar(20) not null, `cprNrBorger` varchar(10) not null, `bruger` varchar(20), `ansvarlig` varchar(20), `orgUsingID` varchar(25), `systemName` varchar(25), `handling` varchar(75), `sessionId` varchar(20), `tidspunkt...
true
0bd68fc30ba6e5e20838881b238aff65c96db677
SQL
Krati2018/Node
/sql/xaas_bot_script.sql
UTF-8
1,651
3.265625
3
[]
no_license
/* MySQL - 5.7.10-log : Database - xaas_bot ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHE...
true
408d8901659d052eb782ecacb1da2e6f27b3bc3b
SQL
Fivium/ScriptRunner
/src/com/fivium/scriptrunner2/database/sql/SelectPromotionFileCount.sql
UTF-8
464
3.75
4
[]
permissive
WITH q1 AS ( SELECT FIRST_VALUE(file_hash) OVER (PARTITION BY promotion_label, file_path ORDER BY promotion_start_timestamp DESC) last_file_hash , f.* FROM promotion_files f WHERE promotion_label = ? AND file_path = ? AND file_index = ? ) SELECT SUM(CASE WHEN ignore_flag = 'Y' THEN 1 ELSE 0 END) igno...
true
dea95a4914c185617c2484e335c933f069d6974c
SQL
Chirurgowda17/DBMS-Project
/courier (2).sql
UTF-8
6,923
3.578125
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 28, 2019 at 08:29 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
a7d3f2a321a7591ac67c0f27e7658edc70395610
SQL
hemsundar9/BlackJack
/src/main/resources/db/migration/V1__create_user.sql
UTF-8
444
3.15625
3
[]
no_license
CREATE TABLE `users` ( `id` INT NOT NULL AUTO_INCREMENT, `user_name` varchar(45) NOT NULL, `version` INT NOT NULL, `balance` bigint(7) DEFAULT NULL, `total_games` INT DEFAULT NULL, `games_won` INT DEFAULT NULL, `creation_time` TIMESTAMP NULL DEFAULT NOW(), `modified` TIMESTAMP NULL DEFAULT NOW(), `ema...
true
a9a7fb1782761a5530836808742f739a1e109023
SQL
buianh/Database-Systems
/sp21-proj1-master/proj1.sql
UTF-8
5,523
4.1875
4
[]
no_license
-- Before running drop any existing views DROP VIEW IF EXISTS q0; DROP VIEW IF EXISTS q1i; DROP VIEW IF EXISTS q1ii; DROP VIEW IF EXISTS q1iii; DROP VIEW IF EXISTS q1iv; DROP VIEW IF EXISTS q2i; DROP VIEW IF EXISTS q2ii; DROP VIEW IF EXISTS q2iii; DROP VIEW IF EXISTS q3i; DROP VIEW IF EXISTS q3ii; DROP VIEW IF EXISTS q...
true
948737d50ac410b6e927a006d5265289bc08f2f9
SQL
pierrevignial/data-ft-par-labs
/Labs/module_1/10. MySQL-Select/solutions.sql
UTF-8
1,223
4.1875
4
[]
no_license
SELECT titleauthor.au_id, authors.au_fname, authors.au_lname, titles.title, publishers.pub_name FROM titleauthor INNER JOIN titles ON titleauthor.title_id = titles.title_id INNER JOIN authors ON titleauthor.au_id = authors.au_id INNER JOIN publishers ON publishers.pub_id = titles.pub_id; SELECT titleauthor.au_id, auth...
true
8ede9b476e9c3176417f899c9b551ff82d097cb5
SQL
magicgis/cnit
/YoYo-Base/YoYo-Base-Dal/src/main/resources/doc/yoyo_ddl_v1.0.0.sql
UTF-8
29,181
3.640625
4
[]
no_license
/*==============================================================*/ /* 数据库脚本 begin */ /*==============================================================*/ -- 添加店铺商品需要审核表 @date:2015-6-10 @create by:xiaox CREATE TABLE `t_company_check_category` ( `id` int(11) NULL AUTO_INCREMENT , `com...
true
0876dd286ace8cf59fb884e50ce37dfb7eddc5dc
SQL
neostreet/poker_session_data
/sum_delta_20111012.sql
UTF-8
139
2.53125
3
[]
no_license
use poker select sum(delta),sum(num_hands) from poker_sessions where poker_session_date = '2011-10-12' and poker_flavor in (0,3,7); quit
true
3da4a5dd9b45ac0b3c9d64a9cbd5f0310c036799
SQL
PacktPublishing/MySQL-8-Administrators-Guide
/Chapter04/Ch4-queries.sql
UTF-8
4,954
4.0625
4
[ "MIT" ]
permissive
-- Creates table employees with salary as an integer unsigned field. CREATE TABLE employees (salary INTEGER(5) UNSIGNED); -- Creates table employees with id field of type integer with display length 255. CREATE TABLE employees (id INT(255)); -- Creates table documents with document_no field declared with ZEROFI...
true
9df0960c758badd20aa5f002347884cd8fa454ec
SQL
nss-day-cohort-48/chinook-shawnbarron16
/brazil_customers_invoices.sql
UTF-8
107
2.84375
3
[]
no_license
SELECT * FROM Customer JOIN Invoice ON Customer.CustomerId = Invoice.CustomerId WHERE Country = "Brazil"
true
916c67685613a4f354549646eaa7baa88548c1ba
SQL
paucath/Mes_travaux_immo
/DEVS/files/SQL/profil_update.sql
UTF-8
286
2.5625
3
[]
no_license
update ville INNER JOIN professionnel ON ville.id_ville=professionnel.id_ville SET societe_pro="@societe_pro" , address_pro="@address_pro" , professionnel.id_ville="@id_ville" , tel_pro="@tel_pro", mail_pro="@mail_pro" , login_pro="@login_pro" , mdp_pro="@mdp_pro" WHERE id_pro=@id_pro
true
122bde83312e9d5484a5b1e0cd3488c080e8b08b
SQL
Juanpablocede/Scripts
/nomina (SNO)/sigesp_SNO/script_asignacion_aportes.sql
UTF-8
2,492
3.34375
3
[]
no_license
SELECT sno_hsalida.codper, rtrim(sno_personal.nomper)||' '||rtrim(sno_personal.apeper) AS nombres, sno_hsalida.codconc, sno_hconcepto.nomcon, sno_hsalida.codnom, sno_hperiodo.fecdesper, sno_hperiodo.fechasper, sno_hpersonalnomina.depuniadm||sno_hpersonalnomina.prouniadm, sno_unidadadmin.desuniadm, SUM(s...
true