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
2d7224a8df3f4fb8c3a93f5441d98db0daf7464a
SQL
Magda7Lena/calendar
/src/main/resources/database/starter_db/06-lesson.sql
UTF-8
750
3.5
4
[]
no_license
--liquibase formatted sql --changeset magda:1 CREATE TABLE public.lesson (id bigint GENERATED ALWAYS AS IDENTITY NOT NULL, product_id bigint NOT NULL, instructor_id bigint NOT NULL, date date NOT NULL, time_start time without time zone NOT NULL, time_end time without time zone NOT NULL, descript...
true
04a339ba2fed1e9fb5a3feb7ddbd8d1049228d89
SQL
s18003/OracleKadai
/1212/1212.3.sql
UTF-8
147
2.765625
3
[]
no_license
select last_name, hire_date, salary from employees where hire_date between '06-01-01' and '06-12-31' and salary < 9000 and commission_pct is null;
true
f9362ccf7efb347076b2047a7d593afd2c2f05b1
SQL
aiemelyanov/RedGate
/TEST3/APEX_030200/Packages/WWV_RENDER_CALENDAR2.sql
UTF-8
3,736
3.265625
3
[]
no_license
CREATE OR REPLACE package apex_030200.wwv_render_calendar2 is -- Copyright (c) Oracle Corporation 1999. All Rights Reserved. -- -- DESCRIPTION -- Monthly calendar rendering -- -- SECURITY -- public execute -- -- RUNTIME DEPLOYMENT: YES -- -- NOTES -- Produces calendar HTML output from a SQL ...
true
4ccf15fac1b739bd399338b21de73d57e405c73a
SQL
arik181/web.indow
/indow_reports/scripts/items_report.sql
UTF-8
831
3.25
3
[]
no_license
SELECT items.id, items.site_id, items.floor, items.room, items.location, items.width, items.height, edging.name, REPLACE(items.acrylic_panel_thickness, '"', ''), IF(items.special_geom = 0, 'false', 'true'), product_types.product_type, products.product, users.username,...
true
66509446d6655eeec907702241c7073574fb947e
SQL
ashu2012/spark_2.1-scala_2.11-template
/src/main/resources/RAWBlackhillsExternalPhysicalStructures.sql
UTF-8
27,762
3.09375
3
[]
no_license
-- -- ER/Studio Data Architect SQL Code Generation -- Project : NTL Phase2 Model.DM1 -- -- Date Created : Wednesday, November 29, 2017 17:09:43 -- Target DBMS : Hive 0.12 -- -- -- TABLE: accounts -- CREATE EXTERNAL TABLE IF NOT EXISTS dsp_ntl_memphis_raw.`transformer_info`( site_name String, expected_t...
true
d8eff9dd8fd1a5bc6956dd5bbb8cecc0314ae22c
SQL
Syndorik/Cher-voisin
/creationDB.sql
UTF-8
2,133
3.78125
4
[]
no_license
drop table if exists Users; drop table if exists Friends; drop table if exists Loans; drop table if exists Objects; drop table if exists Reviews; drop table if exists Godfathers; drop table if exists Groups; drop table if exists Titles; create table Users( user_ID serial unique, username VARCHAR(50) not null ...
true
ffffb29d33146eede7d77dd82465023da9ec8387
SQL
vinaykarode/seo-audit
/models/base-adp/search-console/search_console_history.sql
UTF-8
517
3.90625
4
[]
no_license
SELECT b.run_date run_date, b.unix_run_date unix_run_date, account, a.client, platform, url, keyword, sum(impressions) as impressions_90d, sum(clicks) as clicks_90d, sum(clicks)/sum(impressions) as ctr_90d, sum(impressions * position)/sum(impressions) as pos_90d FROM {{ref('search_console_proc')}} a LEFT JOIN {{ ref(...
true
8062b0bcea06c7e014111e84a9ded689a30d672d
SQL
muhammadhamdits/codersguild
/Tugasweb/dilla/database/tugascg.sql
UTF-8
3,946
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Feb 2019 pada 02.28 -- Versi server: 10.1.32-MariaDB -- Versi PHP: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
27ddc6f7d5facaa18dc9747f88efb0ce33ce4568
SQL
xdcky/basdat_bimbel
/basdat_bimbel.sql
UTF-8
8,075
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 31 Jul 2018 pada 10.59 -- Versi Server: 10.1.13-MariaDB -- PHP Version: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
4db03e07489c2ab071c77b207f897899293ed878
SQL
rupalimayekar/SQL-Data-Analysis
/sakila/sakila_queries.sql
UTF-8
9,125
4.5
4
[]
no_license
-- Use the sakila database USE sakila; -- 1a. Display the first and last names of all actors from the table actor. SELECT first_name, last_name FROM actor; -- 1b. Display the first and last name of each actor in a single column in upper case letters. Name the column Actor Name. SELECT UPPER(CONCAT(first_name, " ", l...
true
18b17520f41bf4fbde7c3f7e99b15a54305450f5
SQL
gkhighelf/OpenRelayScaner
/Sql/database.sql
UTF-8
1,025
2.921875
3
[]
no_license
/** * Created by GKHighElf - gkhighelf@gmail.com * in near 2000 year, for self education and use. **/ create database statistics; DROP TABLE IF EXISTS `smtps`; CREATE TABLE `smtps` ( `subnet` int(4) unsigned NOT NULL default '0', `mask` int(4) unsigned NOT NULL default '0', `ip` int(4) unsigned NOT NULL defau...
true
684a03113e672060efbe219fcca6a8ff067b5920
SQL
rheehot/codingtest-2
/Baekjoon/sm.sql
UTF-8
392
3.546875
4
[]
no_license
SELECT buyer_id,buy_date,book_name,price FROM library,orderInfo WHERE library.book_id = orderInfo.book_id and (book_name = "Looking with Elice" or buy_date between "2020-07-27" and "2020-07-31") ORDER BY buy_date asc; -- 두 개 테이블, 중복 안되게 만들고,합쳐진 테이블에서 특정 조건(조건 문자열과 같은거, 구매일자 특정범위 사이인거) 추출
true
3df2cfa10020e4d6f1ce4e8cc5d5e4bd2767cd31
SQL
andres18281/almacen
/almacen/db.sql
UTF-8
5,373
3.125
3
[]
no_license
Create Database dbAlmacen; Create Table Tipo_pantalon( Tip_codi_pant Int(2) Primary Key Not Null, Tiptipo_pantalon Varchar(10) Not Null); Create Table Tipo_persona( tip_perso Int(1) Primary Key Not Null, tipo_persona Varchar(10) Not Null); Insert Into Tipo_persona Values(1,"Hombre"); Insert Into Tipo_per...
true
7f4c99e3b9d036308292abc5a01acb14b6e412af
SQL
ARigitano/Cocktails-Site
/database/cocktails_site.sql
UTF-8
7,620
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mar. 08 juin 2021 à 15:31 -- Version du serveur : 10.4.19-MariaDB -- Version de PHP : 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
true
7bdc471b44b3347ca7b37e87c22100b572c51767
SQL
COMP4711DreamTeam/KnowledgeBase
/Database/resetDatabase.sql
UTF-8
2,207
3.6875
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS MESSAGES; DROP TABLE IF EXISTS CONVERSATIONS; DROP TABLE IF EXISTS POSTS; DROP TABLE IF EXISTS DISCUSSIONS; DROP TABLE IF EXISTS TOPICS; DROP TABLE IF EXISTS USER_LIKES; DROP TABLE IF EXISTS USERS; CREATE TABLE IF NOT EXISTS USERS ( ID int NOT NULL, PASSWORD varchar(255) NOT NULL, FIRST...
true
7d804da5a6d6af939a8d85f331f2214df01031d4
SQL
MatusKysel/bnbridge.exchange
/sdk/sql/setup.sql
UTF-8
1,968
3.375
3
[]
no_license
drop table if exists eth_accounts; create table eth_accounts ( uuid char(36) primary key, private_key varchar(128), address varchar(64), encr_key varchar(128), created timestamp ); drop table if exists bnb_accounts; create table bnb_accounts ( uuid char(36) primary key, public_key varchar(128), -- I...
true
a8db82186efe4417e7882ae29c01ddf762cfde77
SQL
buddhascoopa/buddhascoopa-git
/pessoal/Scripts/Sql/Sql/rank3.SQL
UTF-8
247
4.125
4
[]
no_license
select a.sal, count(b.sal), sum((a.sal/c.total_sal)*100) from (select * from emp) a, (select distinct sal from emp) b, (select sum(sal) total_sal from emp) c where a.sal <= b.sal group by a.sal,a.empno order by sal desc /
true
57402803df120fa74147d7b756cd17cf090271ff
SQL
liuwenxuan013/DBS301-LAB
/lab8/L8_160678173_Liu.sql
UTF-8
6,334
4.25
4
[]
no_license
-- *********************** -- Name: Wenxuan Liu -- ID: 160678173 -- Date: 2019/03/14 -- Purpose: Lab 8 DBS301 -- *********************** --Q1--Display the names of the employees whose salary is the same as the lowest salaried employee in any department. --Q1--Solution-- SELECT first_name||' '||last_name AS "Name" ...
true
791679e72b981da82ebaa939c9343ed56dd9d613
SQL
gangov/MySQL
/SubqueriesAndJoins/Lab/subqueries_and_joins_lab.sql
UTF-8
2,997
4.5625
5
[]
no_license
/* Lab: Subqueries and JOINs This document defines the lab assignments for MySQL Course @ Software University. You will use the soft_uni database to write queries for the following exercises. */ USE soft_uni; /* 1. Managers Write a query to retrieve information about the managers – id, full_name, deparment_id and ...
true
61b2f65b240dc6216ea95f17688592f0b9548b63
SQL
marcosbarker/serratec.residencia
/serratec.desenvolvimentoAPI-Restful/dataBaseEconfigs/bibliotecaConfig/dataBase/ddl-biblioteca.sql
UTF-8
1,446
3.53125
4
[]
no_license
create database biblioteca; -- public.alunos definition -- Drop table -- DROP TABLE public.alunos; CREATE TABLE public.alunos ( numeromatriculaaluno serial NOT NULL, nome varchar(100) NOT NULL, datanascimento date NULL, cpf bpchar(11) NULL, logradouro varchar(100) NULL, numerologradouro varchar(10) NULL, com...
true
e2e32f9e355118d6be34ea34a7b758011dc99da7
SQL
marcosmapl/uri-solutions
/09-sql/2617.sql
UTF-8
730
3.453125
3
[ "MIT" ]
permissive
/* URI Online Judge SQL | 2617 Provider Ajax SA Paulo R. Rodegheri BR Brasil https://www.urionlinejudge.com.br/judge/en/problems/view/2617 Timelimit: 1 The financial sector has encountered some problems in the delivery of one of our providers, the delivery of the products does not match the invoice. Your job is to d...
true
f20c3618ea70d60720d4d33664c6c511d1e042d4
SQL
killbill/killbill
/invoice/src/main/resources/org/killbill/billing/invoice/ddl.sql
UTF-8
10,635
3.84375
4
[ "Apache-2.0" ]
permissive
/*! SET default_storage_engine=INNODB */; DROP TABLE IF EXISTS invoice_tracking_ids; CREATE TABLE invoice_tracking_ids ( record_id serial unique, id varchar(36) NOT NULL, tracking_id varchar(128) NOT NULL, invoice_id varchar(36) NOT NULL, subscription_id varchar(36), unit_type varchar(255) NOT ...
true
e993c2922d4c73f65bebe7ed77722006643969d8
SQL
Ckhronus/SistemaWebEscola
/build/web/sql/criação.sql
UTF-8
2,147
3.796875
4
[ "MIT" ]
permissive
drop database escola; create database escola; use escola; create table usuario( id int auto_increment primary key, nome varchar(45) not null, email varchar(45) not null, senha varchar(16) not null, tipo int not null ); create table apostila( id int primary key auto_increment, nome varchar(...
true
78b5f3719f01e3ba7f20235ab33e492741def440
SQL
daveinnyc/various
/interview-questions/database-example.sql
UTF-8
1,451
4.03125
4
[ "MIT" ]
permissive
/* Development command line shortcuts: -- remove old DBs, create new one and display query results rm *db ; sqlite3 -column -header example.db < database-example.sql */ CREATE TABLE users( id INTEGER PRIMARY KEY, firstname TEXT, lastname TEXT, registerdate DATE ); CREATE TABLE orders( id INTEGER PRIM...
true
d0713ef974ff9262e9feec39a45e13c0a89e5460
SQL
hiro1979/shika
/shika.sql
UTF-8
2,295
3.078125
3
[]
no_license
create table shikanavi(no int primary key auto_increment,koyou int,shokushu int,basho int,keitai int, name varchar(60),kyuuyo varchar(120),adress varchar(200),access varchar(200),title varchar(100),apeal varchar(500), motometeru varchar(500),shikaku int,time varchar(100),taiguu varchar(150),kyuuzitsu varchar(100),kyuuk...
true
0c1473f66f6c887a51b67bd0e65a5e437b10badc
SQL
rishxbhhhh/DBMS-Project-Accounts-Payable-Database
/queries.sql
UTF-8
6,852
3.953125
4
[]
no_license
use dswproject; create table invoices( invoice_id int primary key AUTO_INCREMENT, vendor_id int not null, invoice_number VARCHAR(50) not null, invoice_date date not null, invoice_total decimal(9, 2) default 0, credit_total decimal(9, 2) DEFAULT 0, terms_id int not null, invoice_due_date date, ...
true
f81a4ea12ae19027afa155c85da31527d38d81d5
SQL
leeneko/SQL
/생산현황 조회.sql
UTF-8
1,630
3.234375
3
[]
no_license
CREATE PROCEDURE STD_PDM_O_120 ( IN FROMDT NVARCHAR(10), IN TODATE NVARCHAR(10), IN ITEMGRP NVARCHAR(20), IN WHSCODE NVARCHAR(20), IN ITEMCODE NVARCHAR(50) ) LANGUAGE SQLSCRIPT SQL SECURITY INVOKER AS BEGIN SELECT TO_NVARCHAR(A."PostDate", 'YYYY-MM-DD') AS "생산오더일L000Y", A."DocEntry" AS "문서번호L202Y", CASE A."...
true
78eda2760743d0bf7fb982ea8d1836642e9a5ccf
SQL
Viking03265/Vincent-PHP
/backup080921.sql
UTF-8
1,755
3.109375
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 10.4.20-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.3.0.6295 -- -----------------------------------------------...
true
01ecf2ad52b52533c157ebf8cb13b6d18c8b683d
SQL
seanburns76/pbi_WeldShop_v2
/SeamlessOrders_v2.sql
UTF-8
196
2.96875
3
[]
no_license
select s.OpsDate, s.employee_id, s.workcenter, s.opseq, sum(DATEDIFF(second,s.start,s.stop)/60.0/60.0) as OpTime from vSeamlessToHour s group by s.OpsDate, s.employee_id, s.workcenter, s.opseq
true
65e9017ce35f20af516014e5fc4e290475bf9d5f
SQL
Sofiamnz/proyectofinalutn
/ProyecFinal/proyectofinal/proyecback/tablas_proyecback/persona.sql
UTF-8
2,191
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 04-01-2021 a las 18:42:58 -- Versión del servidor: 10.4.14-MariaDB -- Versión de PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
5e398a7aba71e25249a4051345eaacbf7a261fb8
SQL
readybytes/xius
/test/test/ui/sql/XiusScreenshotTest/testScreenshot.start.sql
UTF-8
841
2.640625
3
[]
no_license
DROP TABLE IF EXISTS `#__xius_info`;; CREATE TABLE IF NOT EXISTS `#__xius_info` ( `id` int(21) unsigned NOT NULL auto_increment, `labelName` varchar(250) NOT NULL, `params` text NOT NULL, `key` varchar(250) NOT NULL, `pluginParams` text NOT NULL, `pluginType` varchar(250) NOT NULL, `ordering` int(21) def...
true
53dd19b0fe6fc0664c6482ced60179e30d4975a3
SQL
AndreyIvshin/Tasks
/Task2/src/main/resources/db/migration/V1__init.sql
UTF-8
523
3.296875
3
[]
no_license
create sequence news_sequence start with 1 increment by 1; create sequence user_sequence start with 1 increment by 1; create table news_table ( news_id number(19,0) not null, news_brief varchar2(500 char), news_content long, news_date timestamp, news_title varchar2(100 char), primary key (news_id)...
true
45c51ac2ae9dda95a40ce275b8f5f46c8c0c500a
SQL
sefouanedjamaa/Gestion-automatis-e-d-une-biblioth-que-universitaire
/ssa.sql
UTF-8
5,928
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 31, 2020 at 09:02 PM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
67dd7eebb213b70b08223697c4f4da6cc336a437
SQL
george-sp/coding_bootcamp-java
/db_&_user_mgmt/00.sql_joins/exercise02.sql
UTF-8
269
3.25
3
[]
no_license
/* * Return the full names(first and last) of actors with "SON" in their last name, * ordered by their first name. */ SELECT sakila.actor.first_name, sakila.actor.last_name FROM sakila.actor WHERE sakila.actor.last_name LIKE '%son%' ORDER BY sakila.actor.first_name;
true
dc9e470283b790f665ed80547302c8880b60a1b5
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs2/pr_pedido_venda_relatorio_nextel.sql
UTF-8
9,128
3.421875
3
[]
no_license
 ------------------------------------------------------------------------------- --sp_helptext pr_pedido_venda_relatorio_nextel ------------------------------------------------------------------------------- --pr_pedido_venda_relatorio_nextel ----------------------------------------------------------------------------...
true
b36c9fe615c7c8dd124245788be751f8060db715
SQL
kunil/TE_PROJECT
/finalT87.sql
UTF-8
13,684
3.203125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.12, for Linux (x86_64) -- -- Host: localhost Database: trendz -- ------------------------------------------------------ -- Server version 8.0.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
true
521d09bf0fea72996ec62face16f1ac524925cef
SQL
luxin763323387/springboot
/springboot_mybatis_demo/db/t_user.sql
UTF-8
1,241
2.71875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50724 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50724 File Encoding : 65001 Date: 2019-01-26 11:43:38 */ SET FOREIGN_KEY_CHECKS=0; --...
true
5472dfdb9bdb07c4a8dcb29ee417b8c470ca38d6
SQL
George-Price/Data_Wrangling_Project_and_Tasks
/Final_Project/Final.sql
UTF-8
1,028
4.25
4
[]
no_license
/* Number Two */ /* Merge Tables */ SELECT * into [gprice].[q2] FROM gprice.Demographics INNER JOIN dbo.Conditions ON gprice.Demographics.ID = dbo.Conditions.tri_patientid INNER JOIN dbo.TextMessages ON gprice.Demographics.ID = dbo.TextMessages.tri_contactId AND gprice.Demographics.ID = dbo.Conditions.tri_patientid /...
true
f68c61821c2b7fca9b9c02c8ea270ea9b16af8de
SQL
SeongJunKang/BitCamp-data-project
/BitcampJava80/SJ/db01/test02_TableType.sql
UTF-8
4,901
4.28125
4
[]
no_license
/* * not null , unique , default , primary key */ 1.테이블 생성 drop table test01; create table test01( tno int, name char(5) ); 2.값 입력 /* * 컬럼을 지정하지 않는 경우, * create table에 선언된 순서대로 모든 컬럼의 값을 지정해야 한다. */ insert into 테이블명(컬럼명, 컬럼명,...) values(값,값,...); insert into test01 values('hong',1); /*tno 값이 0이 됨*/ in...
true
d647580ce9959969d97629f3a9c40f3cfe8b4243
SQL
NohDongWan/Board
/WebContent/sql/member.sql
UHC
280
2.609375
3
[]
no_license
--1. --2. admin, 1234 ϴ. --3. 3 ϴ. create table member( id varchar2(15), password varchar2(10), name varchar2(15), age Number, gender varchar2(5), email varchar2(30), primary key(id)) select * from member;
true
cdd95df7749179ce2e87d0809cfc455a41a3e1fe
SQL
JerryDoran/sql-queries
/Code Snippets/SQL/My Code Snippets/Cursors/Cursor4.sql
UTF-8
543
2.984375
3
[]
no_license
--Declare a cursor DECLARE FilmCursor CURSOR SCROLL FOR SELECT FilmID, FilmName, FilmReleaseDate FROM tblFilm OPEN FilmCursor --Do something useful, Need to move to the first record FETCH ABSOLUTE -10 FROM FilmCursor --Starts 10 records from the bottom of the recordset WHILE @@FETCH_STATUS = 0 --When value of...
true
0dfcd39003789623dc569447354e258191b11f5f
SQL
michaelcunningham/oracledba
/projects/DBA-6082/snapshot_errors_before.sql
UTF-8
336
2.78125
3
[]
no_license
drop table snapshot_errors_before; create table snapshot_errors_before as select * from SYS.DBA_ERRORS where name in (select object_name from dba_objects where owner like 'TAG') order by type desc / grant select on snapshot_errors_before to public; create or replace public synonym snapshot_errors_before for snapshot_e...
true
063bc15865bed76d31f827fad34f38ce16ee1a64
SQL
spsanderson/bmhmc-sql
/SQL/Finance/ICR_Exhibit_33/ICR_EXH_33_Cases_Chgs_WOUNDCARE_Non_HBO.sql
UTF-8
633
3.671875
4
[]
no_license
select user_pyr1_Cat , COUNT(DISTINCT(pt_no)) as [Cases] , SUM(tot_chg_Amt) as [Charges] FROM smsdss.BMH_PLM_PtAcct_V WHERE hosp_Svc IN('WCC','WCH') AND Adm_Date BETWEEN '01/01/2017' AND '12/31/2017' AND tot_chg_amt > '0' AND Pt_No NOT IN ( SELECT DISTINCT(a.Pt_id) FROM smsmir.mir_actv as a left outer join smsmi...
true
731fb1553749e548d960cc9ad18dd7778cc7b093
SQL
andytsou19/CRUD
/todo.sql
UTF-8
1,096
3.328125
3
[]
no_license
-- https://www.postgresql.org/docs/current/sql-createtable.html -- https://www.postgresql.org/docs/9.1/datatype-numeric.html -- https://www.postgresqltutorial.com/postgresql-serial/ -- https://www.postgresql.org/docs/12/sql-altertable.html DROP TABLE IF EXISTS todo cascade; CREATE TABLE todo ( _id SERIAL PRIM...
true
9690270d143a15e4196d0b22654f4f15f01bec4a
SQL
muntaza/Open_Persediaan
/sql1_persediaan/buku_penerimaan_barang_sql/buku_penerimaan_dinkes.sql
UTF-8
317
2.640625
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
DROP VIEW IF EXISTS view_buku_penerimaan_dinkes; CREATE VIEW view_buku_penerimaan_dinkes AS SELECT * FROM view_buku_penerimaan_kabupaten WHERE 1 = 1 AND id_skpd = 5; GRANT ALL PRIVILEGES ON view_buku_penerimaan_dinkes TO lap_dinkes; REVOKE INSERT, UPDATE, DELETE ON view_buku_penerimaan_dinkes FROM lap_dinkes;
true
3822fd1f80ded3b97de8769dda3cb66e4b249c3b
SQL
EkkiRu/MyPraktic
/SQL2/Запрос22.sql
UTF-8
772
3.734375
4
[]
no_license
SELECT bolshakov_special.* FROM bolshakov_special INNER JOIN bolshakov_course ON bolshakov_course.special_id = bolshakov_special.special_id INNER JOIN bolshakov_graduate ON bolshakov_graduate.course_id = bolshakov_course.course_id INNER JOIN bolshakov_graduate_time ON bolshakov_graduate_time.gradute_id = bolshakov_gra...
true
09c4b8b08e8b81a0b3e1a6908245feee7c665c75
SQL
gioado7/freeuni-hub
/src/main/database/usersInfo.sql
UTF-8
341
2.65625
3
[]
no_license
create table usersInfo ( user_id int not null, constraint foreign key (user_id) references users (id) on delete restrict on update cascade, user_name varchar(100), user_last_name varchar(100), sqesi varchar(100), course varchar(100), courseNum int, image...
true
2ed65c1aa81a7e7f7133a69715b5a7418aaa40c1
SQL
RaizerVarela/EX_POO
/Video/Tabela/prod.sql
UTF-8
819
3.46875
3
[]
no_license
create database prod; use prod; create table categoria( id_cat int(11) not null auto_increment, nome_categoria varchar(30) not null, primary key (id_cat) ); create table produtos( id_prod int(11) not null auto_increment, nome_produto varchar(100) not null, valor double not null, id_cat integer n...
true
6616d8e83d51998e94bb75b07d0dd4e2c4f582fc
SQL
v3921358/Lidium
/sql/seperate/60-playernpcs.sql
UTF-8
651
2.609375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS `playernpcs` ( `id` int(11) NOT NULL, `name` varchar(13) NOT NULL, `hair` int(11) NOT NULL, `face` int(11) NOT NULL, `skin` int(11) NOT NULL, `x` int(11) NOT NULL DEFAULT 0, `y` int(11) NOT NULL DEFAULT 0, `map` int(11) NOT NULL, `charid` int(11) NOT NULL, `scriptid` int(1...
true
4fdebfc0ad2ac64718ed76cf8b130a94b356a331
SQL
bellmit/origin
/family_order/sql/.svn/pristine/02/029bf55c2a30dd0a0924eb8bb24746da1a2a0718.svn-base
UTF-8
458
2.765625
3
[]
no_license
--IS_CACHE=Y SELECT product_id,to_char(start_date,'yyyy-mm-dd hh24:mi:ss') start_date,to_char(end_date,'yyyy-mm-dd hh24:mi:ss') end_date,release_eparchy_code,release_staff_id,release_depart_id,to_char(release_time,'yyyy-mm-dd hh24:mi:ss') release_time FROM td_b_product_release WHERE product_id = :PRODUCT_ID AND sta...
true
a8d342434c96475f1062d6e10b11d72c957b49cd
SQL
batego/db_fintra
/fintra/etes/Tables/etes.manifiesto_carga.sql
UTF-8
5,865
2.515625
3
[]
no_license
-- Table: etes.manifiesto_carga -- DROP TABLE etes.manifiesto_carga; CREATE TABLE etes.manifiesto_carga ( id serial NOT NULL, reg_status character varying(1) NOT NULL DEFAULT ''::character varying, dstrct character varying(4) NOT NULL DEFAULT 'FINV'::character varying, periodo character varying(6) NOT NULL DE...
true
8933bbc5cff26064d0bdbb51664a8be183bd5d47
SQL
Jekkill/photographer
/photographer.sql
UTF-8
11,063
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Янв 28 2018 г., 07:31 -- Версия сервера: 10.1.29-MariaDB -- Версия PHP: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
75ac08d676b1b5ced6c39df4d16912aeaf0088a4
SQL
narminsn/Flask_ajax
/data.sql
UTF-8
261
2.703125
3
[]
no_license
-- CREATE TABLE users_sign ( -- id SERIAL PRIMARY KEY, -- full_name VARCHAR(255) NOT NULL, -- email VARCHAR(200) UNIQUE NOT NULL, -- password TEXT NOT NULL, -- sign_date TIMESTAMP DEFAULT NOW() -- ); -- DELETE FROM users_sign WHERE id=3;
true
0ed74b3174e0f0cd31ec2af1229da41aada2914d
SQL
dimuls/face-recognizer
/alerter/db/schema.sql
UTF-8
195
2.640625
3
[]
no_license
create table person ( id bigserial primary key, name text not null ); create table face ( person_id bigint not null references person(id), descriptor real[128] not null unique );
true
5614c2adaeee995ada4ad1076fac81cd3c5d8a87
SQL
ilya5006/kursovaya-1
/kursovanya-1.sql
UTF-8
11,338
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Май 26 2019 г., 21:30 -- Версия сервера: 8.0.12 -- Версия PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
f0386fde98426ceec47c217fff7fd2bf84c020a8
SQL
perapong/mpol-showdocument
/SQL/BSmart/FindBonusReward_9A9D.sql
UTF-8
1,838
3.359375
3
[]
no_license
1. Summary Award CREATE TABLE ZMAI01_9A9B_262012 AS SELECT optpoint_campaign campaign, optpoint_prog_ref prog_ref, optpnt_type, px.optupd_rep_code rep_code, px.optrefer_trans_year trans_year, px.optrefer_trans_group trans_group, px.optrefer_trans_no tran_no, ...
true
f8103596aee3a59c3b5396f9aaa79226fb908171
SQL
silberov/inu-backend
/prisma/migrations/20210116070159_make_reset_token_unique/migration.sql
UTF-8
307
2.546875
3
[]
no_license
/* Warnings: - The migration will add a unique constraint covering the columns `[reset_token]` on the table `Password_reset`. If there are existing duplicate values, the migration will fail. */ -- CreateIndex CREATE UNIQUE INDEX `Password_reset.reset_token_unique` ON `Password_reset`(`reset_token`);
true
ffd8544827be9171e3b1a2e69d3d687c099fd8fa
SQL
kellyeryan/phrg-sql-crowdfunding-lab-pca-000
/lib/insert.sql
UTF-8
5,031
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
INSERT INTO users (id, name, age) VALUES (1, "Alonzo", 12); INSERT INTO users (id, name, age) VALUES (2, "Baron", 34); INSERT INTO users (id, name, age) VALUES (3, "Cassidy", 22); INSERT INTO users (id, name, age) VALUES (4, "Derek", 34); INSERT INTO users (id, name, age) VALUES (5, "Ernest", 44); INSERT INTO users (id...
true
f6986f98ca0bc42d42530ae261b605b3e7b2517d
SQL
itolisto/conversa-old
/install/Store Procedures/FT_IS_LOCATION_ACTIVE.sql
UTF-8
665
3.4375
3
[ "MIT" ]
permissive
DROP FUNCTION IF EXISTS `FT_IS_LOCATION_ACTIVE`; DELIMITER $$ CREATE DEFINER=`root`@`localhost` FUNCTION `FT_IS_LOCATION_ACTIVE`(`i_business_id` INT UNSIGNED, `i_location_id` INT UNSIGNED) RETURNS TINYINT UNSIGNED NOT DETERMINISTIC READS SQL DATA SQL SECURITY DEFINER BEGIN DECLARE o_result TINYINT; SELECT `bp...
true
70dc146d6cf12c3d6c3f202a063894650ad338ee
SQL
Team-Quelccaya/qa-service
/postgresSchema.sql
UTF-8
1,050
3.828125
4
[]
no_license
CREATE TABLE questions ( q_id BIGSERIAL, p_id INTEGER, q_body VARCHAR(200), q_date VARCHAR(50), q_asker_name VARCHAR(100), q_asker_email VARCHAR(100), q_reported INTEGER, q_helpfulness INTEGER ); ALTER TABLE questions ADD CONSTRAINT questions_pkey PRIMARY KEY (q_id); CREATE TABLE answers ( a_id BIGSERIAL, ...
true
13d892af895f2a03bc32e9a7e800b17fc3f4e5c9
SQL
biesmhp/GOROVI
/bd/GOROVI.sql
UTF-8
4,446
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 10-12-2020 a las 19:40:59 -- Versión del servidor: 10.4.14-MariaDB -- Versión de PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
91faca28433c86639fd36ccc107da3b76dcd58d9
SQL
shawnamy/Lifecat-Server
/src/main/resources/sql/Permission.sql
GB18030
752
3.15625
3
[]
no_license
-- auto Generated on 2018-11-28 09:30:40 -- DROP TABLE IF EXISTS `permission`; CREATE TABLE permission( `id` INTEGER(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `permission_id` VARCHAR(50) NOT NULL DEFAULT '' COMMENT 'ȨID', `permission_name` VARCHAR(50) NOT NULL DEFAULT '' COMMENT 'Ȩ', `permiss...
true
93753f1b8d292f73f2b18cbace895c902d907ad4
SQL
sebaspala02/taller1ElectivaII
/resource/db/farmacia (1).sql
UTF-8
27,240
3.453125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-04-2020 a las 18:33:07 -- Versión del servidor: 10.1.28-MariaDB -- Versión de PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
bdac2b8917ca41e38760cd2017f02498ddea0e45
SQL
francobustos/BaseDeDatos2
/ejercicio11.sql
UTF-8
1,793
4.65625
5
[]
no_license
-- Find all the film titles that are not in the inventory. SELECT f.title, i.* FROM film f LEFT JOIN inventory i inventory_id IS NULL; -- Find all the films that are in the inventory but were never rented. -- Show title and inventory_id. SELECT f.title, i.inventory_id FROM film f INNER JOIN inventory i USI...
true
58ced0196f5217b590ea84b63fba5bd83d6d0b5d
SQL
D-YSF-A/FoodyApp
/sql/create_item_table.sql
UTF-8
556
3.046875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE public."items" ( id serial, name character varying, price integer, imgUrl character varying, category character varying, location point, restorantId serial, description character varying, PRIMARY KEY (id) ) WITH ( OIDS = FALSE ) TABLESPACE pg_default; ALTER TABLE pu...
true
9f4639d86b23d42be47ef201da4b8425ae03b3f5
SQL
krissy16/dream-diary-api
/migrations/002.do.create_dreams.sql
UTF-8
250
2.828125
3
[]
no_license
CREATE TABLE dreams ( id SERIAL PRIMARY KEY, title TEXT NOT NULL, date_created date DEFAULT now(), content TEXT NOT NULL, notes TEXT, archived BOOLEAN DEFAULT false, user_id INTEGER REFERENCES users(id) ON DELETE CASCADE NOT NULL );
true
cf09d30bb2492d20e5182f59379654bac0b0e46e
SQL
jeremGoulier/geektic2014
/database/script.sql
UTF-8
2,830
3.75
4
[]
no_license
/*Suppression des tables*/ DROP TABLE CENTRE_INTERET; DROP TABLE CONSULTATION; DROP TABLE UTILISATEUR; /*Création de la table utilisateur*/ create table UTILISATEUR ( id integer GENERATED BY DEFAULT AS IDENTITY (START WITH 1 , INCREMENT BY 1) not null, nom varchar(40) not null, prenom varchar(40) not null, age int...
true
d5fec8702e7a312ec09475f5ef15715c6d7bd974
SQL
balapkm/Juntos
/application/databases/juntos_V11.sql
UTF-8
12,170
3.25
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- Adminer 4.6.2 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `article_details`; CREATE TABLE `article_details` ( `article_id` int(11) NOT NULL AUTO_INCREMENT, `article_name` varchar(50) NOT NULL, `status` enum('Y',...
true
cd0f9b43e0266e159a72030240ac776ce07ffa3c
SQL
Aper99/Base-de-Datos-I
/problema_20.sql
UTF-8
587
3.046875
3
[]
no_license
-- 1 drop table if exists peliculas; -- 2 create table peliculas( codigo int unsigned auto_increment, titulo varchar(30) not null, actor varchar(20), duracion tinyint unsigned, primary key(codigo) ); -- 3 insert into peliculas (titulo,actor,duracion) values('Mision imposible','Tom Cruise',120); insert in...
true
390ffdc22c3e00bb199d8474ef040c11c1d8c9b5
SQL
Enin/mysql_training
/thinkSQL/생각대로SQL8 - 문제리스트.sql
UHC
5,984
4.15625
4
[]
no_license
1) dvd 뿩 ̸? (analytic funtion Ȱ) SELECT c.customer_id , c.first_name , c.last_name , COUNT(r.rental_id) AS CNT , ROW_NUMBER() OVER( ORDER BY COUNT(r.rental_id) DESC ) AS RANKS FROM rental r JOIN customer c ON r.customer_id = c.customer_id GROUP BY c.customer_id LIMIT 1; 2) ø dvd ̸? (analytic funtion Ȱ) Ǯ...
true
835942e59c77f2894b45a664c871716b25047058
SQL
DenisKvashnin/atom
/backend/atom-hackaton/src/main/resources/db/changelog/changes/9-okved_2_outer_type.sql
UTF-8
2,304
2.640625
3
[]
no_license
CREATE TABLE IF NOT EXISTS okved_2_outer_type ( id bigint, okved_code character varying, org_type_id bigint ); CREATE SEQUENCE okved_2_outer_type_seq; ALTER SEQUENCE okved_2_outer_type_seq OWNED BY okved_2_outer_type.id; ALTER TABLE okved_2_outer_type ALTER COLUMN id SET DEFAULT nextval('ok...
true
89623c41b328e11a8921357689eaf0e7ea4b60fa
SQL
geotim90/Nevini
/src/main/resources/db/migration/V4_3_0__alter_activity.sql
UTF-8
340
3.390625
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
-- id for "online" activity should always be -1 UPDATE activity SET id = -1 WHERE type = 1; -- add source column to activity table and include in primary key ALTER TABLE activity DROP PRIMARY KEY; ALTER TABLE activity ADD COLUMN source BIGINT NOT NULL DEFAULT -1; ALTER TABLE activity ADD PRIMARY KEY (user,...
true
93d01de2dc35a8a68695ab4f99e947424be2ed74
SQL
TangXW777/Paging
/lrfbeyond_demo.sql
UTF-8
8,668
2.875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50711 Source Host : localhost:3306 Source Database : lrfbeyond_demo Target Server Type : MYSQL Target Server Version : 50711 File Encoding : 65001 Date: 2016-10-31 12:20:21 */ SET ...
true
439c4fdcbbfbbfda56012d834f4f2c8c69e3056e
SQL
spajdz/appclay
/scripts/sql10239032.sql
UTF-8
2,959
3.65625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.1 -- https://www.phpmyadmin.net/ -- -- Host: sql10.freesqldatabase.com -- Generation Time: May 20, 2018 at 08:42 PM -- Server version: 5.5.58-0ubuntu0.14.04.1 -- PHP Version: 7.0.30-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET...
true
84463f4166f812dd765650661cb9695c6b099d3f
SQL
GiGaByTee/springMVC
/src/main/resources/schema.sql
UTF-8
345
2.515625
3
[]
no_license
CREATE TABLE user ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY , username VARCHAR(20) NOT NULL , email VARCHAR NOT NULL, password VARCHAR NOT NULL , create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP); INSERT INTO User(username, email, password) VALUES ('Cardinal', 'Stavanger', 'Norway'), ('Taras', 'Shev4e...
true
f1d10a4b74e981c0cb54404915ae1461d80e4834
SQL
k4cruise23/helo
/db/seed.sql
UTF-8
238
2.765625
3
[]
no_license
CREATE TABLE posts ( id SERIAL PRIMARY KEY, user_id INTEGER REFERENCES users(id), title TEXT, imageURL TEXT, content TEXT ); CREATE TABLE users ( id SERIAL PRIMARY KEY, username TEXT, profileImage TEXT, password TEXT );
true
26968762bc4a07f32a08d2a09712e3fcaeedb592
SQL
yourunSpb/card-call-ambulance
/cca-database/deploy_database.sql
UTF-8
10,649
3.515625
4
[]
no_license
/*==============================================================*/ /* CREATE SEQUENCE */ /*==============================================================*/ create sequence SEQ_ANSWER_ID increment by 1 start with 1; create sequence SEQ_BRIGADE_ID increment by 1 start with 1...
true
eeb431201429f4c6a792e2d01ccba30a8643b1fe
SQL
BankruptJere/Finale
/stockbarang.sql
UTF-8
2,966
3.1875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 31, 2021 at 06:51 PM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.3.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
fed28b5575804f9fa2893b2c91842b5be4409e1d
SQL
ldvalle/Rdd_Storeds
/sp_rdd_get_documento.sql
WINDOWS-1252
5,442
3.171875
3
[]
no_license
DROP PROCEDURE rdd_get_documento; CREATE PROCEDURE rdd_get_documento(valor_busqueda char(46)) RETURNING char(3) as codigo, char(100) as descri, float as monto, char(12) as nro_documento, char(10) as fecha_emision, char(10) as fecha_vcto; DEFINE ret_monto_deuda float; DEFINE ret_nro_documento char(12); DEFINE r...
true
191b2270a752fbafe3a062381c86e36e23e8a073
SQL
Sarius997/ReiseFieber
/ImportantSqlStatements/create_table_kunden.sql
UTF-8
522
2.875
3
[]
no_license
-- Table: kunden -- DROP TABLE kunden; CREATE TABLE kunden ( id integer NOT NULL DEFAULT nextval('kdid'::regclass), nachname character varying(128), vorname character varying(128), wohnort character varying(128), geburtstag character varying(128), volljaehrig character varying(128), telefonnummer chara...
true
50deb8bbb4ab8de24093f3744f3027b7e62b48bd
SQL
shagstone/yesimo_work_repo
/supplier_catalog/Tables/suppl_x12.sql
UTF-8
1,976
3.515625
4
[]
no_license
-- ----------------------------------------------------- -- Table suppl_x12 -- ----------------------------------------------------- SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; ...
true
1891bd07b71b52aac36ffc5032abf2223fa6c475
SQL
asanchezaguirre/sql-capstone-project
/sprint_3.sql
UTF-8
645
4.1875
4
[]
no_license
/*Show all students ordered by last name in ascendent way.*/ SELECT * FROM Student ORDER BY lastName DESC; /*Write a query to list all the students living in the Whitman dorm.*/ SELECT * FROM Student WHERE dormName="Whitman"; /*Write a query to list the number of students assigned to each faculty advisor.*/ SELECT CO...
true
290b4a6b2aa54b681ca11977c2d2246770722214
SQL
yunling0115/DBXML
/SQL/q7.sql
UTF-8
258
3.09375
3
[]
no_license
-- 'C:\Users\yling\workspace\Hw1\META-INF\q7.sql' -- Find users who have not posted any tweets, and output their user ids and full names select u.userid, u.fullname from Users u, Tweets t where u.userid=t.userid group by u.userid having count(t.tweetid)=0;
true
df0fd1493fd79b07036db3633e6a8b6ba8e9d2a6
SQL
jkstill/oracle-script-lib
/sql/getstat.sql
UTF-8
499
2.578125
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
set echo off verify off pause off feed on col stat new_value statname noprint prompt Enter Statname ( Partial OK ): set feed off term off select '&&1' stat from dual; set feed on term on @@ttitle 'V$SYSSTAT for &&statname' ttitle on clear col clear break break on class col name format a40 col value format 9999,9...
true
e264e8c3acbc5066b9f12e8c335250babd89494f
SQL
8moustapha8/website
/database/1.1/base/2_tables/payment_type.sql
UTF-8
1,250
3.5
4
[]
no_license
use moneyiq; SET NAMES utf8; -- Table payment_type -- required as we want to be able to refresh our db table by table SET FOREIGN_KEY_CHECKS = 0; -- turn off note warnings as tables don't exist during initial load SET sql_notes = 0; DROP TABLE IF EXISTS `payment_type`; DROP TABLE IF EXISTS `payment_type_history`; SE...
true
d95697f0e1cc53894c6cfef374e549ef83cb2c98
SQL
radtek/abs3
/sql/mmfo/bars/Table/skr_import_safes.sql
UTF-8
3,090
3.265625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/SKR_IMPORT_SAFES.sql =========*** Run PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
4ab8cd340a773c37055aa37756550e2b5f843950
SQL
ProfDema/uam
/pam/examples/anon_data/group_0093/q2.sql
UTF-8
241
2.71875
3
[]
no_license
truncate query2; INSERT INTO Query2( SELECT oid, pid, wid, ordqty, stockqty FROM orders, stock WHERE stock.status = 'O', stock.wid = orders.shipwid , stock.pid = orders.pid , stock.quantity<orders.quantity ) select * from query2;
true
ff73927cabfefcfffaf7135e937ffe0f659b55e7
SQL
PeterMcHoke/youchef-api
/migrations/001.do.create_savedrecipes.sql
UTF-8
216
3.3125
3
[]
no_license
CREATE TABLE saved_recipes ( user_id INT NOT NULL, recipe_id INT NOT NULL, date_viewed TIMESTAMP DEFAULT now() NOT NULL UNIQUE (user_id, recipe_id), FOREIGN KEY (user_id) REFERENCES users (id) );
true
697cb3e884de3af3f8a81a2bb3ff7e581adb5097
SQL
locmark/bazy_projekt
/sample_data.sql
UTF-8
2,405
2.90625
3
[]
no_license
INSERT INTO Akademiki(nazwa, adres) VALUES ('DS1', 'Traugutta 115, Gdansk-Wrzeszcz 80-226'), ('DS2', 'Traugutta 115b, Gdansk-Wrzeszcz 80-226'), ('DS3', 'Do Studzienki 32, Gdansk-Wrzeszcz 80-226'); INSERT INTO Pokoje(nazwa, pojemnosc, id_akademika) VALUES ('101a', 1, 1), ('101b', 2, 1), ('102a', 1, 1), ('102b', 2, 1)...
true
c16b60f6f66070d769b45db6a3ab5fb771d15cd9
SQL
Ncebakazi26/registration_numbers_webapp
/tables.sql
UTF-8
621
3.65625
4
[]
no_license
create table towns ( town_id serial not null primary key, town_name text not null, reg_string text not null ); create table registrationnumbers( id serial not null primary key, registration_num text not null, town_id int not null, foreign key (town_id) references towns (town_id) ); insert into towns (town_n...
true
6fdeab9727d43eb3cf6dadc3506b9fab9661ff34
SQL
ESSeRE-Lab/qualitas.class-corpus
/projects/castor-1.3.3/cpactf/src/test/ddl/org/castor/cpa/test/test86/sapdb-create.sql
UTF-8
343
2.546875
3
[]
no_license
create sequence test86_circ_brother_seq // create table test86_circ_brother ( brother_id integer not null, brother_sibling integer, primary key (brother_id) ) // create sequence test86_circ_sister_seq // create table test86_circ_sister ( sister_id integer not null, sister_sibling integer, primar...
true
25ec074bb69e9265b88efd4bed26d141ff671034
SQL
toha0730/user-device-ms
/schema.sql
UTF-8
2,950
4.0625
4
[]
no_license
-- ISYS2120 Assignment 3 Database -- Note: This uses PostgreSQL's non-standard MONEY data type. -- NUMERIC or DECIMAL is an acceptable alternative in these cases. -- Note however that it is a bad idea to store monetary values as -- floating point numbers due to rounding errors, so using REAL et al -- should be avoide...
true
b0f9eac4461a18258ec7f7d864a8b9c6d62ec8e9
SQL
ruiborda/escalafon
/escalafon.sql
UTF-8
1,349
3.046875
3
[ "MIT" ]
permissive
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for usuario -- ---------------------------- DROP TABLE IF EXISTS `usuario`; CREATE TABLE `usuario` ( `id` int UNSIGNED NOT NULL AUTO_INCREMENT, `tipo_identificacion` enum('DNI','CARNET_DE_EXTRANJERIA') CHARACTER SET ...
true
bb6dab33ee99d676cbbaa8c5514cef5bda863f89
SQL
BATO-FR/lancement
/stop.sql
UTF-8
3,612
3.75
4
[]
no_license
DROP VIEW IF EXISTS export; CREATE VIEW export AS SELECT osm_id, osm_type, tags->'train' AS train, tags->'subway' AS subway, tags->'tram' AS tram, tags->'bus' AS bus, tags->'highway' AS highway, tags->'line' AS line, tags->'trolleybus' AS trolleybus, tags->'public_transport' AS public_transport, t...
true
14232dd6c5d6890a9c11366fc793c09bdbcb69e5
SQL
tantraa21/CI-1218013
/ri32-konversiUkuranFile/ri32_db.sql
UTF-8
1,620
3.03125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Waktu pembuatan: 07. Juli 2013 jam 10:51 -- Versi Server: 5.1.41 -- Versi 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_SET_RE...
true
04d6518f882f55cea6dc20c10673f0e7f203a6ce
SQL
imajaydwivedi/SQLDBA-SSMS-Solution
/SQL Jobs/__General-Queries.sql
UTF-8
464
3.234375
3
[ "MIT" ]
permissive
use dba select * from dbo.CommandLog r where r.StartTime >= '2020-02-10 06:00:01.120' and r.StartTime <= '2020-02-10 08:00:01.120' and DatabaseName in ('StagingFiltered') --and ErrorMessage is not null -- 2020-02-10 07:17:57.660 select * from dbo.WhoIsActive_ResultSets r where r.collection_time >= '2020-02-10 07:...
true
9913f88e41fa5eb84aa2c72723f959c2c7bc5083
SQL
prottasha01/rms
/rmsystem.sql
UTF-8
8,359
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 10, 2020 at 12:17 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
9eebba8301ccf39c19af8079c42a233860f9b0e6
SQL
firas91187/SQLSERVER-COURSE
/16/Join_union.sql
UTF-8
761
3.28125
3
[]
no_license
SELECT ShoesModel , ShoesSize FROM [Shoes] UNION SELECT ShoesModel , ShoesSize FROM [KidsShoes] SELECT * FROM Customer; SELECT * FROM Shoes; SELECT * FROM Customer INNER JOIN Shoes ON Customer.size = Shoes.ShoesSize Where Customer.name = 'Ahmed' SELECT * FROM Customer LEFT JOIN Shoes ON...
true
b7e40658bb35ecaea4085bb92d152e07f5c85738
SQL
3dlink/opsu
/Config/Schema/coursebyusers.sql
UTF-8
2,130
3
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: Localhost (MySQL 5.6.21) # Database: mentr # Generation Time: 2015-06-01 15:05:27 +0000 # ***************************************************...
true
381d64c963fefd6574235a8fdb8489db7690e6f6
SQL
pravinboppuri-zz/TweetAnalysis
/toptrending.sql
UTF-8
301
2.890625
3
[]
no_license
#view script create view if not exists tweet.toptrending as select * from `tweet.wordcount` where LENGTH(word)>=5 and word like '%eclip%' or word like '%lunar%' or word like '%moon%' or word like '%sun%' or word like '%planet%' or word like '%shine%' or word like '%beautiful%' order by count desc
true