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
0ace1ea2fd5633d40c995df7b2cc7fe3cc7b4eb3
SQL
AdrianSalem/intranet-saiko-sp
/sp_GetAssociatedCorporative.sql
UTF-8
227
2.6875
3
[]
no_license
CREATE PROCEDURE sp_GetAssociatedCorporative( @idCorporative INT ) AS BEGIN SELECT customerID AS corporativeId, shortName AS shortNameCorporative FROM Customers WHERE customerID = @idCorporative END
true
28b1027e2684e06287dbcdde4ea3b4d214d45b06
SQL
koothooloo/openfire
/src/plugins/monitoring/src/database/extras/import_oracle.sql
UTF-8
803
2.59375
3
[ "Apache-2.0" ]
permissive
TRUNCATE TABLE ofConversation; INSERT INTO ofConversation (conversationID, room, isExternal, startDate, lastActivity, messageCount) SELECT conversationID, room, isExternal, startDate, lastActivity, messageCount FROM entConversation; TRUNCATE TABLE ofConParticipant; INSERT INTO ofConParticipant (conversationID,...
true
a51def706a58775ded807b602b1d298a148d53c4
SQL
tareqjoy/Educational-Institue-Management-DBMS
/9.6. trigger (autoincreament teacher_info) - Copy.sql
UTF-8
366
3.09375
3
[]
no_license
set serveroutput on create or replace trigger find_id_teacher_info before insert or update of teacher_id on teacher_info for each row declare last_id number(7); begin select max(teacher_id) into last_id from teacher_info; if last_id is null then :new.teacher_id:=1; else :new.t...
true
e461979cd8b75e67dabd571a4d42367f4c609939
SQL
Kibrael/geo_viz
/sql/s2155_lar_counts_by_county.sql
UTF-8
427
4
4
[]
no_license
SELECT CONCAT(state, county), COUNT(*) FROM s3_out.lar_2018_07_24 WHERE CONCAT(agency_code, respondent_id) IN ( SELECT CONCAT(agency_code, respondent_id) FROM s3_out.lar_2018_07_24 GROUP BY CONCAT(agency_code, respondent_id) HAVING COUNT(*) >=500) AND CONCAT(state,county) NOT LIKE '%NA%' ...
true
0ff874679dcf06b8448701f4a1d098df946b914a
SQL
tockata/Databases
/05-Advanced-SQL/16.sql
UTF-8
145
3.15625
3
[]
no_license
CREATE VIEW [Users have been logged in today] AS SELECT Username, FullName FROM Users WHERE CAST(LastLoginTime AS DATE) = CAST(GETDATE() as DATE)
true
d0a57c833ee87a428ea89871610c330553c5fa71
SQL
ogobrecht/sample-data-sets-for-oracle
/dvd_rental_store/tables/drs_customer.sql
UTF-8
650
3.09375
3
[ "BSD-3-Clause", "MIT" ]
permissive
prompt - table drs_customer create table drs_customer ( customer_id integer generated by default on null as identity, store_id integer not null , first_name varchar2(45 char) not null , last_name varchar2(45 char) not null , email varchar...
true
7c7de7d199617c3cb33820f3d7092972ba2df20b
SQL
ScarZa/new_hrd-OOP-
/DataBase/hrd(master).sql
UTF-8
111,605
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.3 -- http://www.phpmyadmin.net -- -- โฮสต์: localhost -- เวลาในการสร้าง: 09 เม.ย. 2015 10:37น. -- รุ่นของเซิร์ฟเวอร์: 5.0.95 -- รุ่นของ PHP: 5.1.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- ฐานข้อมูล: `hrd` -- -- ---------------------------------------------...
true
8e93e48c368ad89c16584919111db242ab104844
SQL
mahmoudmohamed22/Cinema-Ticket-Booking-Online
/sql_database.sql
UTF-8
9,603
4.125
4
[]
no_license
create DataBase CinemaTicketBooking; --create a table Cinemas create table Cinema ( Cinema_ID INTEGER not null, Location varchar(20) not null, No_Hall INTEGER not null, Phone varchar2(20) not null , constraint Cinema_location unique (Location), constraint Cinema_Phone unique (Phone), constraint Cinema_ID...
true
78410ff1ed3e57e0fced77d2dc2c1243132973c5
SQL
QOAM/qoam
/src/Core/Scripts/201403171503325_InitialCreate_function_MinimumFloat.sql
UTF-8
144
2.625
3
[ "MIT" ]
permissive
CREATE FUNCTION MinimumFloat(@a AS float, @b AS float) RETURNS float AS BEGIN RETURN CASE WHEN @a < @b THEN @a ELSE COALESCE(@b,@a) END END
true
6ed3fa1cc3937520784ead795fd7008998137bbe
SQL
djole-petrovic-js/real_time_polls
/cli/queries/createRoleTable.sql
UTF-8
194
2.953125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `Role` ( `id_role` INTEGER auto_increment , `role` VARCHAR(20) NOT NULL UNIQUE, UNIQUE `Role_role_unique` (`role`), PRIMARY KEY (`id_role`) ) ENGINE=InnoDB;
true
50fe9aadad15dbc11b393df7ea1d18baca0a4dee
SQL
stephane-klein/poc-postgraphile-forum
/sqls/seed/100_clean.sql
UTF-8
537
2.65625
3
[]
no_license
\echo "Database cleaning..." SET client_min_messages TO WARNING; DROP SCHEMA IF EXISTS forum_example CASCADE; DROP SCHEMA IF EXISTS forum_example_private CASCADE; DROP ROLE IF EXISTS forum_example_postgraphile; DROP ROLE IF EXISTS forum_example_anonymous; DROP ROLE IF EXISTS forum_example_person; CREATE EXTENSION IF...
true
a6026f7f9ba8488126a85f3deba51c271046a0c4
SQL
m3rciful/mysite
/kurator.sql
UTF-8
13,598
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Апр 27 2016 г., 01:36 -- Версия сервера: 5.5.47-0+deb8u1 -- Версия PHP: 5.6.19-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
1818eff9be64c9da9f36d9d52d2d6b1fb658b662
SQL
aayushi491995/WebApi-Custom-Application
/AssignmentWebApi/AssignmentWebApi/SQLScripts.sql
UTF-8
938
3.40625
3
[]
no_license
--Create Database create database Product --Use Database use Product --Create table for Products create table tblProducts ( id int identity(1,1) primary key, pname varchar(100), pdesc varchar(8000), price float, ) --Indert values in Products table insert into tblProducts values ('Table','This is a tabl...
true
b483bad4e2a0b250497262017a134b427b06c2fe
SQL
xueleicug/saml-demo
/script/saml.sql
GB18030
4,131
3.09375
3
[]
no_license
-- 1 -- saml.saml_idp_user CREATE TABLE saml.`saml_idp_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `update_date` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `login_name` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '', `ema...
true
241c2b49a6cd9bcd2fc83e3d0a4e4f1a2004364d
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_STORED_PROCEDURE/spr_Vendor_Rating.sql
UTF-8
259
2.625
3
[]
no_license
Create Procedure spr_Vendor_Rating (@FromDate datetime, @ToDate datetime) As Select Vendors.VendorID, "VendorID" = Vendors.VendorID, "Name" = Vendors.Vendor_Name, "Contact Person" = Vendors.ContactPerson, "Rating" = Vendors.VendorRating From Vendors
true
95d0c685490407098df0dfa47c945c18a9500754
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day18/select2201.sql
UTF-8
178
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-17T22:01:00Z' AND timestamp<'2017-11-18T22:01:00Z' AND temperature>=35 AND temperature<=77
true
113d649d52c62f3b01049a5ffbf8f37e25be1645
SQL
travisjohnston622/Solo-Project-Outdoor-Planner
/database.sql
UTF-8
836
3.578125
4
[]
no_license
-- USER is a reserved keyword with Postgres -- You must use double quotes in every query that user is in: -- ex. SELECT * FROM "user"; -- Otherwise you will have errors! -- Database is named Outdoor_Planner CREATE TABLE "user" ( "id" SERIAL PRIMARY KEY, "username" VARCHAR (80) UNIQUE NOT NULL, "password"...
true
6ba69824150fef4b24a268995f9789b1257e59a1
SQL
ericcastro92/CS174-Project
/users.sql
UTF-8
1,331
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 17, 2014 at 08:36 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
866bd22a7cd15381e26a95957b67ec42f683ca24
SQL
ryanriopelle/blockchain_takehome
/bigquery/sql/transfers.sql
UTF-8
464
3.828125
4
[]
no_license
SELECT 'btc' AS chain, block_timestamp, block_hash, input_address AS sender, output_address AS receiver, SAFE_DIVIDE(LEAST(input_value, output_value), POW(10, 8)) AS value, FROM `bigquery-public-data.crypto_bitcoin.transactions`, UNNEST(inputs) AS input, UNNEST(input.addresses) AS input_address, UNN...
true
90bd6aae803752a69321900ed69c898a07c55215
SQL
kippum99/relational_databases
/PS 4/cs121hw4/cs121hw4-jooeun/submit-stats.sql
UTF-8
3,674
4.65625
5
[]
no_license
-- [Problem 1] DROP FUNCTION IF EXISTS min_submit_interval; DELIMITER ! -- Create a function that takes an integer argument sub_id and -- returns an integer value of minimum submit interval in seconds -- If the submission has less than 2 filesets, return null CREATE FUNCTION min_submit_interval(sub_id INT) RETURNS IN...
true
79c79f099e21d77e7b9c030a3a4229a18be44b9b
SQL
SteeveJ/sql_blog_dut
/database/tables.sql
UTF-8
371
3.109375
3
[]
no_license
drop table if exists sujet; drop table if exists tag; create table tag( id serial primary key, name varchar(50) ); create table sujet( id serial primary key, name varchar(60), hide boolean DEFAULT false, created_at timestamp default current_timestamp, updated_at timestamp default current_t...
true
d1e43e9c085c442fe19895ddd5026f9e4b16185b
SQL
rominad/Practica_DML
/Unidad1_EJ_6.sql
ISO-8859-1
1,527
3.859375
4
[]
no_license
--/ Alumna: Bazan Daniela Romina - 3ro Analista en sistemas - 2018 /-- --DML use editorial ----***************************************************************************************************************************** /*EJERCICIO NUMERO 6: Funciones agregadas. No olvidar renombrar las columnas obtenidas por fun...
true
4346c1120ee935beff830818b4fe189d5a23a144
SQL
Acasale992/ITBOOTCAMP_Domaci
/Nedelja_9/Nedelja/33D_6126_Aleksandar_Stojanovic/upiti.sql
UTF-8
3,022
3.109375
3
[]
no_license
/* Zadatak 1*/ /* Dodavanje proizvoda*/ INSERT INTO `proizvodi` (`barkod`, `naziv`, `cena`) VALUES ('123', 'krastavac', '100'), ('456', 'paprika', '129'), ('098', 'jabuka', '55'), ('918', 'kruska', '99'); /* Dodavanje prodaja */ INSERT INTO `prodaja` (`id`, `barkod`, `kolicina`, `cena`, `datum`) VALUES (NULL, '98',...
true
878cf7c0e739f8e99e578bd9e6439c2c035b824d
SQL
dgpreethamroy/project
/art.sql
UTF-8
2,185
2.65625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Sep 21, 2017 at 04:58 PM -- Server version: 5.7.19 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
e775f1163d4edbe19cc5db4c498584bf29ea14e9
SQL
radtek/abs3
/sql/mmfo/bars/Data/tts/et_sm4.sql
WINDOWS-1251
6,753
2.921875
3
[]
no_license
set lines 1000 set trimspool on set serveroutput on size 1000000 prompt / SM4 prompt : SM4-³ declare cnt_ number; begin -------------------------------- -- -- -------------------------------- begin insert into tts(tt, name, dk, nlsm, kv, nlsk, kvk, nlss, nlsa, nlsb, mfob, flc, ...
true
43faec9f0f46a027308c616f19b8c04c221f0f3b
SQL
lingtima/baseLibs
/init.sql
UTF-8
498
3.5
4
[ "MIT" ]
permissive
CREATE TABLE `uuid` ( `uuid` VARCHAR(40) BINARY not null DEFAULT '' COMMENT 'UUID', `used` TINYINT(3) NOT NULL DEFAULT 0 COMMENT '是否使用:0未使用,1已使用', `remark` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '说明备注', `createTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `updateTime` TIMESTAMP NOT NULL DEFAULT CURREN...
true
9c53d274b7aeada1ba56fa0e37243bfd4e4aa089
SQL
EliezerMisaelGomez10/Tareas
/Problema_07.sql
UTF-8
728
3.0625
3
[]
no_license
-- Problema 07 drop table if exists agenda; create table agenda( nombre varchar(20), domicilio varchar(30), telefono varchar(11) ); describe agenda; insert into agenda(nombre, domicilio,telefono) values( 'Alberto Mores','Colon 123','4234567'); insert into agenda(nombre, domicilio,telefono) values( 'Juan...
true
a95834dd5ba8116b91694c762852426b6cf2a2aa
SQL
NadineOliveira/AD_DateWarehouse
/triggersAud.sql
UTF-8
5,837
2.984375
3
[]
no_license
Use `trabalho-ar`; DROP TRIGGER IF EXISTS trigger_aud_customers; DELIMITER $$ CREATE TRIGGER trigger_aud_customers AFTER INSERT ON `trabalho-ar`.aud_dim_customer FOR EACH ROW BEGIN DECLARE last_id INT; IF(new.operation like 'INSERT') THEN INSERT INTO trabalho.dim_customer VALUES(new.idaud_dim_costumer,new....
true
89a192729065dbc32babe0696a7d307f33a862cc
SQL
clintonnzedimma/Flimbit-Campus-Market
/Engine/rc/flimbit_db.sql
UTF-8
3,774
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 19, 2018 at 08:10 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.0.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+01:00"; /*!40101 SET @OL...
true
5bc454e1baefbdf56a615fb4c3fe2148b29dc4ee
SQL
Liedekerke/COGIP-app
/database/cgpi.sql
UTF-8
8,738
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 03, 2018 at 10:58 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
8e57fa1acb94705977949db06bab7f524c3a21ca
SQL
ll9527/test1
/totalshop.sql
UTF-8
17,603
3.625
4
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.5.49 : Database - totalshop ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHEC...
true
52ee74280aaa0d9de002de109aa4ecbb8caa015d
SQL
jesx0347/EksamensProjekt
/SQL/Procedure tests.sql
ISO-8859-15
1,160
2.640625
3
[]
no_license
EXECUTE spInsertEvent @EventNavn='ODEON' ,@Markedsfring='500.55' ,@Koda='10' ,@Garantisum='4599.346' ,@ArtistSplit='70' ,@VariableOmkostninger='300' ,@OmkostningerNote='Ekstra lys: 300kr' ,@VariableIndtgter='300' ,@IndtgterNote='Dkning af lys: 300' ,@UnderskudsGodtg...
true
35608810175bee0889b400a912ad28d14963bd84
SQL
seonhan427/SQL_practice
/2021.04.29/SQL카페예제.sql
UHC
1,816
3.921875
4
[]
no_license
--2021-04-29 -- database Ѵ. create database CafeManagement use CafeManagement --̺ ϱ create table ȸ ( -- ÷, ڷ,  Ծ ȸid char(13) not null , char(1) not null , ȣ޴1 smallint , ȣ޴2 smallint ) select * from ȸ -- ̺ Էϱ --insert into ̸̺ --values ( ) insert into ȸ values ('010-4613-4487','M',1,2)...
true
0acdd5961baa7c3b6164229d2f0e5ee8882c8d0a
SQL
thangduong3010/PL-SQL
/Script/rdbms_admin/exechae.sql
UTF-8
2,008
2.953125
3
[]
no_license
Rem Rem $Header: exechae.sql 06-jun-2006.09:14:49 kneel Exp $ Rem Rem exechae.sql Rem Rem Copyright (c) 2006, Oracle. All rights reserved. Rem Rem NAME Rem exechae.sql - EXECute HA Event setup Rem Rem DESCRIPTION Rem pl/sql blocks for HA events (FAN alerts) Rem Rem NOTES Rem <other useful comm...
true
f128a3112be5b1052a859f26db0f41f784d4e6e6
SQL
throp/pfecrm-old
/scripts/db/create_tables.sql
UTF-8
4,650
3.5625
4
[]
no_license
USE bennort_crm; CREATE TABLE action_log ( action_log_id int primary key, description_tx text not null, employee_id int not null ); CREATE TABLE chemical ( chemical_id int primary key, name_tx varchar(30) not null, abbreviation_tx varchar(5) not null, is_active_bn boolean default 1 ); CREATE TABLE contact ( ...
true
12658d5a955273d0032d28d4ccfb9d1ee616d451
SQL
AlejandroProgrammer/OracleDatabaseEjemplos
/Group By, Having/group_by_having.sql
UTF-8
1,843
3.65625
4
[]
no_license
//CREAMOS LA TABLA MASCOTA CREATE TABLE MASCOTA( CHIP INT, NOMBRE VARCHAR2(20), FEC_NAC DATE, TIPO_MASCOTA VARCHAR2(20), RAZA VARCHAR2(20) ); //CREAMOS LA PK ALTER TABLE MASCOTA ADD CONSTRAINT PK_MASCOTA_CHIP PRIMARY KEY(CHIP); //INSERTAMOS DATOS EN LA TABLA MASCOTA INSERT INTO MASCOTA VALUES(1111, 'JONNY', '1/1/2...
true
b7c4c14a6be95d17b5820f5ca95e28a0c75ea6a4
SQL
DMilmont/mode
/Mode/roadster/spaces/team PRODUCT/Soft Credit Pulls.2bcaed831c84/Soft Credit Pull by DPID (last 6-months).b4546c1831bc.sql
UTF-8
390
3.640625
4
[]
no_license
select l.dealer_partner_id , dp.dpid , count(distinct l.id) from public.lead_submitted l JOIN public.dealer_partners dp ON l.dealer_partner_id = dp.id where l.type = 'SoftCreditInquiry' AND l.in_store = true and l.timestamp::date >= date_trunc('month', current_date) - interval '6 month' and l.timestamp::date < dat...
true
d8eb1ab9d6c45242a00c7b8ed010ccd7fa6d8ee3
SQL
mrogove/rogoveNCDA
/create stored procs/deprecated - do not use/scoreReturn - deprecated.sql
UTF-8
225
3.421875
3
[]
no_license
DELIMITER // CREATE PROCEDURE scoreReturn (root_id SMALLINT, second_id SMALLINT) BEGIN select count(*) AS score from results where w_id in (root_id, second_id) and l_id in (root_id, second_id); END // DELIMITER ;
true
3fd89ece1f48dd074a5463d427b67b6f13235251
SQL
radtek/abs3
/sql/mmfo/bars/Table/sw_stmt.sql
WINDOWS-1251
3,817
3.21875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/SW_STMT.sql =========*** Run *** ===== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
d738e80e3e35f15483c54d79fcdf7daab0d87202
SQL
alfianfl/Frontend-developer
/My Project/Code Igniter Project/buyyo-marketplace/db/database.sql
UTF-8
6,656
3.34375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- ****************** SqlDBM: MySQL ******************; -- ***************************************************; -- ************************************** `User` -- create database db_buyyo; -- use db_buyyo; CREATE TABLE `User` ( `id_user` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(45)...
true
1b569d1bc9f954eb3ed12261b08ad54f383ebf4a
SQL
chaesiong/rtp-database
/production/DL_STAGING4PIBICS/tables/occupation.sql
UTF-8
2,552
2.921875
3
[]
no_license
CREATE TABLE "DL_STAGING4PIBICS"."OCCUPATION" ( "OCC_SEQNO" NUMBER NOT NULL ENABLE, "OCCCD" VARCHAR2(4 CHAR) NOT NULL ENABLE, "OCCTNM" VARCHAR2(60 CHAR) NOT NULL ENABLE, "OCCENM" VARCHAR2(60 CHAR), "ACTFLAG" VARCHAR2(1 CHAR), "CREATE_BY" VARCHAR2(20 CHAR), "CREATE_DATE" TIMESTAMP (6), "UPDATE_...
true
6801b06e0374bee2280963a638dfb0484fd926c0
SQL
jampaniuday/ABROracle
/sql/audit_login_fails.sql
UTF-8
337
2.796875
3
[ "Apache-2.0" ]
permissive
col USERHOST format a17 col os_username format a20 col USERNAME format a17 set linesize 120 set pagesize 120 select os_username, username, userhost, to_char(timestamp,'mm/dd/yyyy hh24:mi:ss') timestamp, returncode from dba_audit_session where action_name = 'LOGON' and returncode > 0 and timestamp > (sysdate-20) order...
true
0479f0a5dee7e3daba2310c5c0d85ba0a0d0fc4d
SQL
rayu1988/svn-jeanbruno
/APP/ECLIPSE_PROJECT/laptracker/laptracker/sql/3_trackmessage_create_table.sql
UTF-8
417
3
3
[]
no_license
create table LAP ( id_lap int not null auto_increment primary key, id_lap_track int not null, identifier varchar(10) not null, format varchar(10) not null, time varchar(10) not null, distance_unit tinyint null, distance_value varchar(10) not null, break_time varchar(20) null )ENGINE=INNODB; alter tabl...
true
f68b34472904dc0596a3ff5a32cee363655b3c10
SQL
radtek/Oracle-4
/SQL/Administração/!Script_Andre/ScriptOracle/role-info.sql
UTF-8
2,953
4.21875
4
[]
no_license
-- role-info.sql -- Last updated: 08/27/1998 -- Update by: Mary Gail Manes -- Shows all roles within the database and all users -- This can be a very large report and take several minutes to -- complete if there are a large number of users in the database. set pause off; set echo off; set termout off; set linesize ...
true
9ae3518b0e001058d41671fa3c763eed7177408f
SQL
Sheena15M/WorkTrack
/db/seed.sql
UTF-8
745
3.390625
3
[]
no_license
use employees; INSERT INTO department (name) VALUES ('Development'), ('Quality Assurance'), ('Human Resources'), ('Operations'); INSERT INTO role (title, salary, department_id) VALUES ('Development Lead', 150000, 1), ('Developer', 100000, 1), ('Lead Test Engineer', 150000, 2), ('Test Engineer', 100000, 2), ('HR Mana...
true
98d06479f70faf9693c96d1fb040b2f0d4162fea
SQL
alisaleh1984/Oracle-APEX-Classic-Report-Template
/f45114.sql
UTF-8
436,341
2.640625
3
[]
no_license
prompt --application/set_environment set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle...
true
c551f0c8def021b328374dd4ee2f5fe717548e16
SQL
MaryamGowifel/cafetrai
/cafeteria.sql
UTF-8
8,490
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 13, 2020 at 02:51 AM -- Server version: 5.7.29-0ubuntu0.18.04.1 -- PHP Version: 7.2.24-0ubuntu0.18.04.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
af33183c743353b52238e6871b351b9b3d7a6db4
SQL
MiichaelD/fundamentosBD
/src/backupRefaccionaria.sql
UTF-8
7,295
2.90625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.11, for Win64 (x86) -- -- Host: localhost Database: refaccionaria -- ------------------------------------------------------ -- Server version 5.5.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
d058609a5c1a5b28f1c726ca7ffbc255386edf23
SQL
alvirarhiza/Tugas-Keamanan-Perangkat-Lunak-2
/kpl (2).sql
UTF-8
2,197
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 21 Sep 2021 pada 07.03 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
1e0d603ed240e3e375cbc75bd3ec1622f6930126
SQL
galeb/galeb
/api/src/main/resources/db/migration/V2__rolegroup_roles_on_delete.sql
UTF-8
223
2.765625
3
[ "Apache-2.0" ]
permissive
ALTER TABLE `rolegroup_roles` DROP FOREIGN KEY `FK_rolegroup_role_id`; ALTER TABLE `rolegroup_roles` ADD CONSTRAINT `FK_rolegroup_role_id` FOREIGN KEY (`rolegroup_id`) REFERENCES `rolegroup` (`id`) ON DELETE CASCADE;
true
80090b1a1764a853426330bd77754ce6fb019c25
SQL
KristelDi/DB
/script.sql
UTF-8
5,511
3.828125
4
[]
no_license
use forum; DROP TABLE IF EXISTS Followers; DROP TABLE IF EXISTS Subscribers; DROP TABLE IF EXISTS Posts; DROP TABLE IF EXISTS Threads; DROP TABLE IF EXISTS Forums; DROP TABLE IF EXISTS Users; CREATE TABLE Users ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, email VARCHAR(50) NOT NULL, username VARC...
true
145a9a01f82b07d532507f9746ddab972948000e
SQL
leduardovb/Modelagem-SQL
/Trabalho de Modelagem Fazenda - FÍSICA.sql
UTF-8
1,869
3.59375
4
[]
no_license
CREATE DATABASE fazenda; USE fazenda; CREATE TABLE cultura ( culturaId int not null auto_increment, nome varchar(40) not null, primary key (culturaId) ); CREATE TABLE praga ( pragaId int not null auto_increment, nome varchar (40) not null, primary key (pragaId) ); CREATE TABLE agrotoxico ( agrotoxicoId int n...
true
9f9f342714488c1a8ee98120545d615a4f2df301
SQL
jonamuen/sql-reduce
/test/sqlsmith/sqlite/966.sql
UTF-8
289
2.546875
3
[ "MIT" ]
permissive
select ref_0.name as c0, ref_0.id as c1, ref_0.id as c2, case when ref_0.id is not NULL then ref_0.name else ref_0.name end as c3, ref_0.id as c4, ref_0.id as c5, ref_0.name as c6, ref_0.name as c7 from main.t0 as ref_0 where ref_0.name is NULL limit 130;
true
e4cecec4b8159d16788fcfc19e117d002823398a
SQL
HYBG/DX
/live/backstage/dx.sql
UTF-8
3,655
3.609375
4
[]
no_license
CREATE TABLE `dx`.`dx_global` ( `name` varchar(32) NOT NULL COMMENT '变量名称', `value` varchar(32) NOT NULL COMMENT '变量值', PRIMARY KEY (`name`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; CREATE TABLE `dx`.`dx_code` ( `code` varchar(6) NOT NULL COMMENT '股票代码', `name` varchar(20) NOT NULL COMMENT '股票名称', `s...
true
3eb4a98db0755671806f8b7eab9b7d5f99d982ea
SQL
engwesterberg/piproject
/sql/ddl.sql
UTF-8
8,101
4.5
4
[]
no_license
DROP DATABASE IF EXISTS internetbanken; CREATE DATABASE internetbanken; USE internetbanken; SHOW GRANTS; DROP USER 'user1'@'localhost'; CREATE USER 'user1'@'localhost' IDENTIFIED BY 'pass'; GRANT ALL PRIVILEGES ON * . * TO 'user1'@'localhost'; -- ----------------------------------------- tabeller --------------------...
true
2073373f786335d3c9810d37cbda92278d55ff7f
SQL
ManojKumarPatnaik/citytransportsystem
/cts-datasource/src/main/resources/sql/m_view_static_stops.sql
UTF-8
697
3.984375
4
[]
no_license
CREATE MATERIALIZED VIEW IF NOT EXISTS static_stops AS SELECT route_short_name, stop_name, stop_lat, stop_lon, route_color, route_text_color FROM trips t INNER JOIN calendar_dates USING(service_id) INNER JOIN routes USING(route_id) INNER JOIN ( select trip_id, stop_sequence, stop_name, departure_time, ...
true
047fbf1792702cadd5e22ca0477f58461fce3d1e
SQL
Perezc1143/MVP
/seed.sql
UTF-8
434
2.671875
3
[]
no_license
DROP DATABASE IF EXISTS dealership; CREATE DATABASE dealership; INSERT INTO customer (name, phone_number, address, new_customer) VALUES ('Rick James', '951-258-6325', '2504 N Alxander Ave', TRUE), ('Mike Jones', '281-384-8004', '234 Houston Dr', TRUE); INSERT INTO vehicle (make, model, year, mileage, under_w...
true
c596d365264fa8c83e684bb803edcd58ca04fdc3
SQL
Ubagaly/les_database
/lessons5/Задание 3 к 6 уроку.sql
UTF-8
745
3.828125
4
[]
no_license
-- 3. Подсчитать общее количество лайков, которые получили 10 самых молодых пользователей. -- 3.1 получаем посты самых молодых пользователей select id as post_id from posts where user_id in ( SELECT * FROM ( SELECT id as user_id FROM users ORDER by birthday DESC LIMIT 10 ) as user_id ); -- 3.2 считаем количеств...
true
284545d3cea7befd8838dc54e78741fc3ef13560
SQL
lcliucheng/springboot-micro-service-temp
/lc-micro-service/lc-services/lc-service-xx-admin/src/main/resources/sql/sql.sql
UTF-8
1,361
3.046875
3
[]
no_license
CREATE TABLE `cms_dict` ( `id` BIGINT(20) UNSIGNED NOT NULL COMMENT '主键', `code` VARCHAR(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '代码', `value` VARCHAR(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '值', `name` VARCHAR(64) CHARACTER SET utf8mb4 COLLA...
true
515dc124806bc9376a4887d2f8f89bb1cfa2251b
SQL
devzer01/complaints
/cmp.sql
UTF-8
5,314
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.57, for apple-darwin10.0.0 (i386) -- -- Host: localhost Database: complaintsbbb -- ------------------------------------------------------ -- Server version 5.1.57 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
true
ee8f0da792e3acad02c8fe724ba4b08008527cd0
SQL
celiaxie816/MOOC
/Relational Database and SQL Programming/HW2_DB.sql
UTF-8
2,910
4.125
4
[]
no_license
#db_hw2 is the database name for table Region, Product and Sales_Totals. INSERT INTO db_hw2.Region (region_id, region_name, super_region_id) VALUES (101, 'North America', null), (102, 'USA', 101), (103, 'Canada', 101), (104, 'USA-Northeast', 102), (105, 'USA-Southeast', 102), (106, 'USA-West', 102), (107, 'Mexico...
true
18be8e97e82f9fa94c3d78358f37cb14cd1d884d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day17/select1327.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-16T13:27:00Z' AND timestamp<'2017-11-17T13:27:00Z' AND temperature>=35 AND temperature<=44
true
95d484531c94cb4aefc1a083d340a18ad8bbfe6a
SQL
jccode/spring-boot-sample
/spring-cloud-integrated-demo/account-service/account-service-app/src/main/resources/db/hsqldb/schema.sql
UTF-8
441
3.609375
4
[]
no_license
DROP TABLE account IF EXISTS ; CREATE TABLE account ( id INTEGER IDENTITY PRIMARY KEY, user_id INTEGER NOT NULL , name VARCHAR(50) NOT NULL , balance INTEGER, create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL , update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL );...
true
03b086f176739b44d85e3905fefc197e2fcc5a6c
SQL
rgjr/battleship-code-challenge
/database/install_db.sql
UTF-8
6,944
2.984375
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 0.0.0.0 (MySQL 5.5.62) # Database: battleship # Generation Time: 2020-01-02 04:50:49 +0000 # **********************************************...
true
948dc3263b6616c51432dff973a23b010799d2de
SQL
seguracarlos/gamification
/data/gamification.sql
UTF-8
12,100
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 09-05-2019 a las 12:55:04 -- Versión del servidor: 5.6.21 -- Versión de PHP: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
0ad201b7a9ec0d369d5d063720130ed4b4a2d1fa
SQL
shu-csas-changgar/assignment-1-josdes
/Josephine_DesRosiers_Homework1.sql
UTF-8
1,559
3.59375
4
[]
no_license
#Josephine Des Rosiers Homework #1 /* Question 1 */ SELECT first_name, last_name FROM actor WHERE first_name = "Penelope"; /* Question 2 */ SELECT first_name, last_name FROM actor JOIN film_actor ON actor.actor_id = film_actor.actor_id JOIN film ON film_actor.film_id = film.film_id AND film.title = "ZOOLANDER F...
true
91140a39156c613b4650a02bc961272e00ad1283
SQL
zivarbabayeva/Hospitaldb
/SQLQuery1hospital.sql
UTF-8
1,177
2.640625
3
[]
no_license
Create Database Hospital Create Table Doctors( Id int identity primary key, Name varchar(100), Surname varchar(100), Phonenumber varchar(100), Speciality_Id int, Email varchar(100) ) Create Table Registration( Id int identity primary key, [Date] datetime, Doctors_Id int, Patient_Id int, [Time] time, Room...
true
21e25f81af79e73f1f5e3919e9c73e6bb9bdcf9d
SQL
shijianzsh/fenggubao
/update/v2.0/upgraded/释放锁定资产.sql
UTF-8
1,966
3.6875
4
[]
no_license
DROP PROCEDURE IF EXISTS `Release_lock`; DELIMITER ;; CREATE PROCEDURE `Release_lock`(OUT error INT(11)) BEGIN DECLARE done INT DEFAULT 0; DECLARE c_user_id INT DEFAULT 0; DECLARE c_lock_amount INT DEFAULT 0; # 获取所有释放队列 DECLARE c_user CURSOR FOR SELECT m.id, a.account_bonus_...
true
fb3d52ccabc0c7f239527fa243c5366ef986788f
SQL
Archanam5282/Medplus-Database-Design-using-Oracle-SQL
/sql/ins_customer.sql
UTF-8
5,986
2.5625
3
[]
no_license
---------------------------------------------------------------------- -- File: ins_customer.sql -- Date : 17 Nov, 2019 -- Purpose: To insert data into customer table ---------------------------------------------------------------------- Prompt ... Inserting into customer INSERT INTO CUSTOMER VALUES (101,'...
true
aa5d6df2b0d24ee3c3f09f4d91b247cdafb9c16a
SQL
repitaneo/DWES_2019_IniciandoJDBC
/cinesbd.sql
UTF-8
1,490
2.84375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `cines` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */; USE `cines`; -- MySQL dump 10.13 Distrib 8.0.11, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: cines -- ------------------------------------------------------ -- Server version 8.0.11 /*!40101 SET @OLD...
true
aaa4c57a0b1a3f0567fc551354db0204fda36d91
SQL
pratima5/training
/sql/create_car2_functionality.sql
UTF-8
221
2.78125
3
[]
no_license
create table car2.functionality ( ID int primary key auto_increment, feature varchar(20), value boolean, created_on timestamp DEFAULT CURRENT_TIMESTAMP, carID INT, FOREIGN KEY (ID) REFERENCES car2.car(carID) );
true
aeed9377bf31aea8146e1ce7b36a107ceec5a10c
SQL
pirangy/turma30java
/SQL/listas/lista1/exercicio3_todasAsQuerys.sql
UTF-8
1,876
3.765625
4
[]
no_license
CREATE DATABASE db_escola; -- criar banco de dados "db_escola" USE db_escola; -- realizar operações no banco de dados "db_escola" -- criar tabela "tb_alunos" CREATE TABLE tb_alunos ( id_aluno bigint(5) auto_increment, -- atributo "id_aluno" com auto_increment (preenchimento automático de identificação: 1, 2, 3...)...
true
02d6977e2d3d985bcb7fdc2c5a3449d6275a7347
SQL
ringolip/Learn-Java
/Day44/<Day3>SQL99语法连接查询习题解答.sql
UTF-8
678
4.46875
4
[]
no_license
-- 一、查询编号>3 的女神的男朋友信息,如果有则列出详细,如果没有,用 null 填充 SELECT b.id, b.`name`, y.* FROM `beauty` AS b LEFT OUTER JOIN boys AS y ON b.`boyfriend_id` = y.id WHERE b.id > 3; -- 二、查询哪个城市没有部门 SELECT city, `department_name` FROM `locations` AS l LEFT OUTER JOIN `departments` AS d ON d.`location_id` = l.`location_id` WHERE d.`departme...
true
78a106b38d14dc3def083e12d5392a5339385abc
SQL
minziappa/basic_sample
/document/make_table.ddl
UTF-8
363
3.234375
3
[]
no_license
/* DROP TABLE sample_user; */ CREATE DATABASE sample_db; CREATE TABLE user ( user_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, user_name VARCHAR(45) NOT NULL, user_status CHAR(1) NOT NULL, insert_date TIMESTAMP NOT NULL, update_date TIMESTAMP NOT NULL, PRIMARY KEY (user_id) ) ENGINE=innoDB DEFAULT CHARSET=utf8; ...
true
345d7f8a7f27c89d8cf5dd33e4456437e521d2d1
SQL
hezhiquan/softwareTest
/src/main/resources/banks.sql
UTF-8
5,428
3.234375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `bank`; USE `bank`; DROP TABLE IF EXISTS `institutions`; CREATE TABLE `institutions` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `name` varchar(40) NOT NULL COMMENT '机构名', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `institutions` WRITE; /*!40000 AL...
true
de75177708623d02989383211364296598ffc4d0
SQL
CFRealEstateServices/DomoCLR
/dbo/Stored Procedures/AddUserMapping.sql
UTF-8
545
2.703125
3
[ "MIT" ]
permissive
 -- ============================================= -- Author: Ryan Nigro -- Create date: 3/18/17 -- Description: Add user mapping -- ============================================= CREATE PROCEDURE AddUserMapping -- Add the parameters for the stored procedure here @domain varchar(200), @DOMOUserId int, @ExternalUser...
true
e9d9f550573f3176bbaee89c6781b18768bc881e
SQL
miguelmontiel30/BD-GMG
/Procedimientos/Search Procedures.sql
UTF-8
479
2.640625
3
[]
no_license
use sistema_gmg; /*PROCEDIMIENTO BUSQUEDA DE USUARIOS*/ DELIMITER $$ CREATE PROCEDURE validacion(user varchar(20), pass varchar(50)) BEGIN SELECT tipo_usuario FROM login where usuario = user and password = pass; END $$ /* PROCEDIMIENTO BUSQUEDA */ DELIMI...
true
fdaf7fa907c964e180eb16b2cefa9a22e36a011a
SQL
Pontus12345/shoes
/sami_Database_Mysql/running_shoes.sql
UTF-8
30,317
3.203125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Värd: localhost -- Skapad: 04 maj 2016 kl 22:08 -- Serverversion: 5.5.46-0ubuntu0.14.04.2 -- PHP-version: 5.5.9-1ubuntu4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
true
de97ed4b6ff70567e58f0023fbbdae28e8fe2f84
SQL
wdaweb/etax-list-leohsu999
/invoice.sql
UTF-8
4,038
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: 2019-11-15 14:34:19 -- 伺服器版本: 10.4.6-MariaDB -- 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_CHARACTER_SET_CLIENT=@@CHARACT...
true
d20a189f8396dac79bb1727a0f5eb25519b0c24f
SQL
opabekova/fire-system-application
/php/src/fire_sensors/fire_sensors.sql
UTF-8
2,272
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 08, 2021 at 12:07 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.3.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
8accbecfedefda86501a98757f812a59c9205322
SQL
AlRusMil/db_231120
/topic11/Optimization/task1(log).sql
UTF-8
2,922
4.1875
4
[]
no_license
-- 1. Создайте таблицу logs типа Archive. -- Пусть при каждом создании записи в таблицах users, catalogs, products -- в таблицу logs время и дата создания записи, название таблицы, -- идентификатор первичного ключа и содержимое поля name. USE shop; DROP TABLE IF EXISTS logs; CREATE TABLE logs( create_at DATETIME ...
true
e21fac0d6d7e494106428408f44be5624fce1122
SQL
kiko-g/feup-bdad
/SQL/gatilho3_adiciona.sql
UTF-8
340
3.34375
3
[]
no_license
.mode columns .headers on .nullvalue NULL PRAGMA foreign_keys = ON; -- Inserir na tabela de Stock o produto e por stock = 0 para cada loja CREATE TRIGGER insertProduto AFTER INSERT ON Produto FOR EACH ROW BEGIN INSERT INTO Stock(codigoBarras, idLoja, stock) SELECT NEW.codigoBarras, Loja.idLoja , 0 ...
true
88c4735d8061270392f7dc0e876adc66d6b44658
SQL
eliwitt/SqlWork
/tva/dds/Mine he.sql
UTF-8
254
3.109375
3
[]
no_license
select e_name, e_ina01, itmv02_e_name, i.itmv02_value from chaaedmn1.site_accp.dbo.element he inner join chaaedmn1.site_accp.dbo.item_mv_custom02 i on he.e_name = i.itmv02_e_name where he.e_ina01 like 'HOLDER,%' aND left(i.itmv02_value,3) = 'tva'
true
1a2768a05b782dae0e68c161acc0e74fb4df7f8b
SQL
Malagutte/training-back-base
/dbs/transactions/files/sql/transaction-manager/oracle/upgrade_2_9_0_to_2_10_0/transaction-manager.sql
UTF-8
533
3.40625
3
[]
no_license
DROP INDEX ix_ap_trans_01; ALTER TABLE add_prop_transaction MODIFY add_prop_transaction_id VARCHAR2(255) NOT NULL; ALTER TABLE add_prop_transaction MODIFY property_key VARCHAR2(50) NOT NULL; ALTER TABLE add_prop_transaction ADD CONSTRAINT pk_add_prop_transaction PRIMARY KEY (add_prop_transaction_id, property_key); ...
true
23098e0bbdf7a1c1910cfb7afe231635c8207be9
SQL
Maksim-Yeudakimenka/Northwind
/Northwind/Scripts/Point 1/Subpoint 1.3/Task 3.sql
UTF-8
432
3.625
4
[]
no_license
-- Выбрать всех заказчиков из таблицы Customers, у которых название страны -- начинается на буквы из диапазона b и g, не используя оператор BETWEEN SELECT CustomerID, Country FROM Customers WHERE LEFT(Country, 1) >= 'B' AND LEFT(Country, 1) <= 'G' --WHERE LEFT(Country, 1) IN ('B', 'C', 'D', 'E', 'F', 'G') ORDER B...
true
4662d923521fe5f2c87eb233f3b92b70a001336d
SQL
ikhalid356/software-construction-labs
/Lab6_Haseeb_Shah/Task2/db.sql
UTF-8
610
3.078125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS University; CREATE TABLE IF NOT EXISTS Student ( ID INT auto_increment primary key, RegNo INT unique, Name VARCHAR(100), Section VARCHAR(5), Contact VARCHAR(20), Address VARCHAR(20) ); INSERT INTO Student (RegNo, Name, Section, Con...
true
710d966d6c461f48332d3f13f3cc16f37aded1e4
SQL
fbscott/BYU-I
/CIT225 (Database Design & Development)/final/create_tables.sql
UTF-8
4,952
3.484375
3
[]
no_license
/****************************************************************************** * Drop all tables before adding *****************************************************************************/ DROP TABLE IF EXISTS studentdb.pres_details; DROP TABLE IF EXISTS studentdb.quote; DROP TABLE IF EXISTS studentdb.document_sign...
true
ad9c997861f78842d8924f9f90fe31573bb6caa1
SQL
sonitgregorio/taclobanairsofter
/tag.sql
UTF-8
6,374
3.125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 02, 2017 at 06:29 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
69b7ba0fcf42f73293e3cefe07ebc94b200a04a4
SQL
hqottsz/MXI
/assetmanagement-database/src/upgrade/plsql/lib/current/sql/0040-OPER-25604.sql
UTF-8
1,917
2.765625
3
[]
no_license
--liquibase formatted sql --changeSet OPER-25604:1 stripComments:false endDelimiter:\n\s*/\s*\n|\n\s*/\s*$ --comment insert new config parm BEGIN utl_migr_data_pkg.config_parm_insert( 'CONTENT_SECURITY_POLICY_MIXED_CONTENT_DIRECTIVE', 'HTTP', 'Declares which mixed-content directive to append to t...
true
4438f3ed8ac88787c92015510e17c29f014969d0
SQL
Wagsnerlund/bloom
/express-back-end/db/schema/03_plots.sql
UTF-8
232
2.625
3
[]
no_license
DROP TABLE IF EXISTS plots CASCADE; CREATE TABLE plots ( id SERIAL PRIMARY KEY NOT NULL, user_id INTEGER REFERENCES users(id) ON DELETE CASCADE, dimensions_length SMALLINT, dimensions_width SMALLINT, location VARCHAR(50) NOT NULL );
true
359acf92c294fa8a57c84bc65b3a427379987f56
SQL
thomasfuhringer/pylax
/Hinterland/Hinterland.sql
UTF-8
4,074
3.734375
4
[]
no_license
-- Create script for Hinterland -- Thomas Führinger, 2017-03-16 -- modified 2017-08-29 ; PRAGMA application_id = 7; PRAGMA encoding = "UTF-8"; DROP TABLE Person; CREATE TABLE Person ( PersonID INTEGER PRIMARY KEY, FirstName TEXT, MiddleName TEXT, LastName TEXT, Transcription TEXT, EMail TEXT, Phone TEX...
true
8ae5ee71800f6b5deee9a20097d70c6f9b4e9365
SQL
NandunGodage/Year1-Sem2
/ISDM/Lab Sheets/Lab Sheet 6/db_Script.sql
UTF-8
1,930
4.40625
4
[ "MIT" ]
permissive
# 1. Make a list of customer names and the respective states they live in. SELECT (fname + lname) AS 'Name', s.sname AS 'State' FROM customer c, state s WHERE s.code = c.state; # 2. Display the stock details with the corresponding manufacture’s name. SELECT s.description,m.manu_name AS 'Manufacture Name' FROM manufa...
true
cc4c978c7e4cce04bb2641689dd55ddef4395b76
SQL
leprekon91/AES14
/src/createDB.sql
UTF-8
11,293
3.84375
4
[ "MIT" ]
permissive
-- 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema AES -- --...
true
a1e2b6e8b150b883dcecf5c202afc1650555181d
SQL
kaoutharElbakouri/contactManagement
/contacts.sql
UTF-8
4,394
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : sam. 14 août 2021 à 13:28 -- 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
cc88b9f2838737532225ff96debe386d39cf1daa
SQL
DougZheng/kingdom_training
/bin/gmall_build.sql
UTF-8
53,014
3.453125
3
[]
no_license
use gmall; drop table if exists ods_log; CREATE EXTERNAL TABLE ods_log ( line string) PARTITIONED BY ( dt string) -- 按照时间创建分区 STORED AS -- 指定存储方式,读数据采用LzoTextInputFormat; INPUTFORMAT 'com.hadoop.mapred.DeprecatedLzoTextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATIO...
true
194646405d34d43b45761e1d057abeb5c91f6f96
SQL
jasonblog/note
/ds_algo/src/leetcode_v2/database/DepartmentHighestSalary/solve.sql
UTF-8
916
4.4375
4
[ "MIT" ]
permissive
use leetcode; drop table if exists Employee; create table Employee(Id int, Name varchar(20), Salary int, DepartmentId int); insert into Employee values (1, "Joe", 70000, 1), (2, "Henry", 80000, 2), (3,"Sam", 60000, 2), (4,"Max", 90000, 1); drop table if exists Department; create table Department(Id int, Name varchar(2...
true
0c83425ee447fc646bcf8f1e305713d42d06a3ca
SQL
gravesmedical/CONNECT
/Product/DBScripts/nhincdb/nhincdb_oracle.sql
UTF-8
37,952
2.90625
3
[ "BSD-3-Clause" ]
permissive
-------------------------------------------------------- -- File created - Tuesday-February-25-2014 -------------------------------------------------------- CREATE USER nhincuser identified by nhincpass; GRANT RESOURCE,CONNECT to nhincuser; CREATE USER configuser identified by configpass; GRANT RESOURCE...
true
c6e4848ea190b008201605ecc3c20cb5e0ea28d0
SQL
panye7606/SSMWebDemo
/src/main/resources/mysql/ibooker.sql
UTF-8
10,420
3.875
4
[]
no_license
CREATE USER ibooker@localhost IDENTIFIED BY 'ibooker006008.'; CREATE DATABASE ibookerdata; GRANT ALL ON ibookerdata.* TO ibooker@localhost; #用户表 CREATE TABLE IF NOT EXISTS t_user( u_id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL COMMENT '编号', u_phone BIGINT NOT NULL COMMENT '账号-手机号', u_passwd VARCHAR(100) NOT NULL COMME...
true
5a4b2a3d8f5f56768eac13057f292ccee35c5e4a
SQL
bdeske/WEB289_project
/dump.sql
UTF-8
15,138
3.359375
3
[]
no_license
# # DUMP FILE # # Database is ported from MS Access #------------------------------------------------------------------ # Created using "MS Access to MySQL" form http://www.bullzip.com # Program Version 5.3.259 # # OPTIONS: # sourcefilename=C:\Users\william\Desktop\WEB289\littlebirdDB.accdb # sourceusername= # so...
true
b641b3374dd901c7a02c3c3762dcda4e0a481f20
SQL
zgdkik/springcloud-g
/sql/user_permission.sql
UTF-8
1,709
3.203125
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : cat Source Server Type : MySQL Source Server Version : 50724 Source Host : 193.112.113.194:3366 Source Schema : books Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 Date: 26/10/2018 14:0...
true