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
ec727b2458eeecca10921c19560a80b0a78ba13e
SQL
hernanjhc/AngularVentas
/database/localhost.sql
UTF-8
23,198
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 22-05-2019 a las 20:53:45 -- Versión del servidor: 5.6.42-log -- Versión de PHP: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
809e9b83f417eb3b349eda40613f6b0a95c311f4
SQL
thona-seguros/Repositorio-Sicas
/Objetos-BD/Paquetes/oc_solicitud_detalle.sql
UTF-8
3,464
3.171875
3
[]
no_license
-- -- OC_SOLICITUD_DETALLE (Package) -- -- Dependencies: -- STANDARD (Package) -- STANDARD (Package) -- DBMS_STANDARD (Package) -- SOLICITUD_DETALLE (Table) -- CREATE OR REPLACE PACKAGE SICAS_OC.OC_SOLICITUD_DETALLE IS FUNCTION TIENE_DETALLES(nCodCia NUMBER, nCodEmpresa NUMBER, nIdSolicitud NUMBER) RETURN ...
true
779bb64f08b88f020c625ae04fa788beda20a74e
SQL
adrianpaolomolina/ecc-hibernate-annotations
/infra/buildtools/src/main/resources/20180814.sql
UTF-8
1,274
3.453125
3
[]
no_license
CREATE DATABASE employeedb OWNER amolina; CREATE TABLE addresses( addr_id SERIAL PRIMARY KEY, str_no VARCHAR(20) NOT NULL, street VARCHAR(25) NOT NULL, brgy VARCHAR(30) NOT NULL, city VARCHAR(30) NOT NULL, zipcode VARCHAR(10) NOT NULL ); CREATE TABLE contacts( contact_id SERIAL PRIMARY KEY, landline VARCHAR(2...
true
2466c9ba65c35257ec21ec7ad7b2fda327b6f9c0
SQL
riyan-web/pmii_bondowoso
/database/database_update_11-11-2020.sql
UTF-8
14,465
3.0625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 11 Nov 2020 pada 01.41 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
7f0233342838c55ea6fa01bd2af4584d86047e18
SQL
akhalid88/read-a-book-ya-nerd
/db/schema.sql
UTF-8
216
2.953125
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS books_db; CREATE DATABASE books_db; USE books_db; CREATE TABLE books ( id INT NOT NULL AUTO_INCREMENT, book_name VARCHAR(50) NOT NULL, devoured BOOLEAN DEFAULT false, PRIMARY KEY (id) );
true
6fd17b7227351b94b1ed08cdb5d131d25dcf2ec1
SQL
ksumrall/SumDataTierGenerator
/DataTierGenerator.SchemaExtractor/EmbeddedResources/ExtractDatabaseParameters.sql
UTF-8
536
3.46875
3
[]
no_license
SELECT SCHEMA_NAME(schema_id) AS schema_name ,o.NAME AS procedure_name ,o.type_desc ,p.parameter_id ,p.NAME AS parameter_name ,TYPE_NAME(p.system_type_id) AS data_type ,p.max_length ,p.precision ,p.scale ,p.is_output ,NULL AS default_definition ,ep.value AS [descri...
true
a77c5afe05de676a4c5f30a00c5c8dfb1d1514f9
SQL
jennieleegruber/sql-challenge
/sql-challenge_2.sql
UTF-8
346
3.796875
4
[]
no_license
select e.emp_no, last_name, first_name, department_name from employee e inner join dept_emp_forreal def on (e.emp_no = def.emp_no) left join departments d on (def.dept_no = d.dept_no) where department_name = 'Sales' or department_name = 'Human Resources'; select last_name, count(emp_no) from employee group by last_nam...
true
37dee9aba3e1ab44dee5fc52932160cc8d8c5af4
SQL
r99r99r99/shdb
/db/table/aiot/domain/aiot_domain.sql
UTF-8
993
2.96875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50625 Source Host : localhost:3306 Source Database : ytocean Target Server Type : MYSQL Target Server Version : 50625 File Encoding : 65001 Date: 2017-05-22 17:10:37 */ SET FOREIGN_KEY_CHECKS=0; -- -...
true
2d002db72513b8fe12f8c34a4a52964ba650fa50
SQL
TheWizardLlewyn/TheCampaign
/sql/tables.sql
UTF-8
1,831
3.40625
3
[]
no_license
CREATE TABLE `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `strength` int(11) NOT NULL, `creativity` int(11) NOT NULL, `stealth` int(11) NOT NULL, `integrity` int(11) NOT NULL, `investigation` int(11) NOT NULL...
true
4b427520841e010f73f0ab849012b8515c464008
SQL
fishedee/Demo
/skeema/init/schemas/bakeweb/t_classify_recommend.sql
UTF-8
462
2.796875
3
[]
no_license
CREATE TABLE `t_classify_recommend` ( `classifyRecommendId` int(11) NOT NULL AUTO_INCREMENT, `classifyId` int(11) NOT NULL, `link` varchar(256) NOT NULL, `image` varchar(256) NOT NULL, `createTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modifyTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPD...
true
7a14051213ac97b417d0457977dcafd492a49113
SQL
montaneva/PharmacoVigilance
/ATC-Classification/ATC.sql
UTF-8
2,359
2.953125
3
[]
no_license
-- ATC: Anatomical Therapeutic Chemical Classification System DROP TABLE IF EXISTS `atc_class`; CREATE TABLE `atc_class` ( `id` int(11) NOT NULL AUTO_INCREMENT, `atc_class` text COLLATE utf8_unicode_ci, `en` text COLLATE utf8_unicode_ci, `fr` text COLLATE utf8_unicode_ci, `es` text COLLATE utf8_unicode_ci, ...
true
e4627019e3f524cb318cdb93afc9c09b0a7ff7fd
SQL
FAHID-KHAN/tamk-5G00DM05-3001
/sql/051-case-1.sql
UTF-8
418
2.65625
3
[]
no_license
SELECT ename, CASE WHEN job = "SALESMAN" THEN "SALESPERSON" ELSE job END AS NEWJOB FROM emp ORDER BY job,ename /*FORD ANALYST SCOTT ANALYST ADAMS CLERK JAMES CLERK MILLER CLERK SMITH CLERK BLAKE MANAGER CLARK MANAGER JONES MANAGER KING PRESIDENT ALLEN SALESPERSON MARTIN SALESPERSON TURNER SALESPERSON...
true
0b56604f5ab2997178212ad32f831ade1f962e54
SQL
ArctosDB/DDL
/triggers/uam_ct_triggers/ctjournal_name.sql
UTF-8
484
3.0625
3
[]
no_license
CREATE OR REPLACE TRIGGER TR_CTJOURNAL_NAME_UD BEFORE UPDATE OR DELETE ON ctjournal_name FOR EACH ROW BEGIN FOR r IN ( SELECT COUNT(*) c FROM publication_attributes WHERE publication_attribute = 'journal name' AND pub_att_value = :old.journal_name ) LOOP IF r.c ...
true
c023284cab6b1fef3ce9f6557418dcde08a004b0
SQL
Sclenfa/WF3mars2017
/SQL/06-transaction/transaction.sql
UTF-8
1,301
3.375
3
[]
no_license
--************************************* -- Transactions --************************************* -- Une transaction permet de lancer une requetes, telles que des modifications et de les annuler si besoin comme si vous pouviez faire un "CTRL-Z" dans votre BDD. -- Transaction simple: START TRANSACTION; -...
true
d7252ea3743d28e797fff3d7e376bf1d742953ef
SQL
adarshkumarsingh83/spring_dao
/APPLICATIONS/SpringDaoStoredProcedureCallApplication/src/main/resources/sql/procedure.sql
UTF-8
1,963
3.796875
4
[]
no_license
-=========================================================== DELIMITER $$ DROP PROCEDURE IF EXISTS `EMPLOYEE_INSERT` $$ CREATE DEFINER=`root`@`%` PROCEDURE `EMPLOYEE_INSERT`(IN EMP_NO INT(3) ,IN EMP_NAME VARCHAR(45) ,I...
true
4d2261f1157cf8361ee13b0d1208c4f8b97be1c0
SQL
Luo20/zhe800
/zhe800.sql
UTF-8
22,265
2.828125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mycon Source Server Version : 50724 Source Host : localhost:3306 Source Database : zhe800 Target Server Type : MYSQL Target Server Version : 50724 File Encoding : 65001 Date: 2019-06-15 20:56:18 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
true
66ca82ad40278698a927cd787e11773f015e9e47
SQL
nislamovs/PiccaShop
/src/main/resources/schema.sql
UTF-8
2,965
3.28125
3
[]
no_license
CREATE TABLE IF NOT EXISTS app_user( id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL, age VARCHAR(255) NOT NULL, salary decimal NOT NULL, image IMAGE ); CREATE TABLE IF NOT EXISTS menu( id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, category VARCHAR(30) NOT NULL, image1 IMAGE ...
true
9b778c63bbb56037db6aa6ab685162b81e3b81ce
SQL
Sutterlin/BDD_Requetes_SUTTERLIN_Sebastien
/ALGOTP2_Gestion Hôtel_requetes.sql
UTF-8
3,553
4.125
4
[]
no_license
--Nombre de clients SELECT COUNT( distinct CLI_ID ) from T_CLIENT --Les clients triés sur le titre et le nom ? --Les clients triés sur le libellé du titre et le nom ? --Les clients commençant par 'B' SELECT CLI_NOM from T_CLIENT where CLI_NOM like "B%" --Les clients homonymes SELECT CLI_NOM FROM T_CLIENT GROUP ...
true
2108f76f18ab5183505c22499c010eb06ccc36de
SQL
mustafa-rahman/Telcobright
/ToolsAndScripts/queries/CarrierVsRoute.sql
UTF-8
112
3.03125
3
[]
no_license
select c.idpartner,c.partnername,c.partnertype,r.* from route r left join partner c on r.idpartner=c.idpartner;
true
342d987f33928bf4bf45eec712210c228ea73579
SQL
shimaomao/itac
/phase1-data/src/main/database/023_create_rolloverobservation_table.sql
UTF-8
2,198
3.4375
3
[]
no_license
DROP TABLE IF EXISTS rollover_reports CASCADE; CREATE TABLE rollover_reports ( id integer not null, site_id integer not null, report_type text, set_name text ); ALTER TABLE rollover_reports ADD PRIMARY KEY (id); ALTER TABLE rollover_reports ADD FOREIGN KEY (site_id) REFERENCES sites(id); DROP TABLE I...
true
4e886224ece301bae0bbdcd69cfee336e2449c3a
SQL
demihe1982/season0308
/season0308/src/main/resources/leason08.sql
UTF-8
1,421
3.359375
3
[]
no_license
DROP TABLE IF EXISTS tb_user; CREATE TABLE tb_user( username varchar(20) NOT NULL, password varchar(20) NOT NULL, PRIMARY KEY(username) ); DROP TABLE IF EXISTS tb_menu; CREATE TABLE tb_menu( menu_id varchar(20) NOT NULL, menu_name varchar(50) NOT NULL, url varchar(100), ord tinyint(4) NOT N...
true
005fe40f9ef92ebb33cc158750c9c875846969b2
SQL
Samyoo93/denunciarte
/Proyecto#2/Base de Datos/Tablas/14- Tabla Review.sql
UTF-8
734
2.734375
3
[]
no_license
CREATE TABLE Review ( review_id NUMBER(6) CONSTRAINT review_id_nn NOT NULL CONSTRAINT review_id_pk PRIMARY KEY, nota VARCHAR2(25) CONSTRAINT nota_nn NOT NULL, descripcion VARCHAR2(50) CONSTRAINT descripcion_review_nn NOT NULL, calificacion NUMBER(2) ...
true
9600ac6d98bc6b3890c1d0b1d00b1ee1a465fd92
SQL
Oriinks/PL-SQL-Projekt-na-studiach
/ProjectSQLOracle/apex.sql
UTF-8
686,605
2.84375
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
744a200c346d109042043ae8d4c7b73f3817283e
SQL
marcusgram/7381792102112121
/administration/sessions/SESSION_Kill_via_Triggers.sql
UTF-8
7,932
3.53125
4
[]
no_license
---------------------------------------------------------------------------- -- Script to create the trigger under SYS user to forbid access by SQL*Plus: ---------------------------------------------------------------------------- CREATE OR REPLACE TRIGGER on_logon AFTER LOGON ON DATABASE DECLARE --D...
true
9d903932dac8c244768fc60efa3b68204fd9a1ac
SQL
kind-lab/mimic-fhir
/tests/test_mimic_fhir_demo_row_count_approximate.sql
UTF-8
3,784
4.03125
4
[]
no_license
-- Compare an estimated row count with the expected row counts. -- Note the estimated row count uses a statistics table, and it is not -- an exact measure. As a result, we look for a match with a ~3% tolerance. WITH expected_counts AS ( SELECT 4506 AS n_row_expected, 'condition' AS table_name UNION...
true
38195f03fe67724af51768a8186a1aa355b1c8ae
SQL
saqibsaleem22/petshome
/petHome-DB-queries.sql
UTF-8
7,008
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 18-01-2021 a las 14:25:53 -- Versión del servidor: 5.7.32 -- Versión de PHP: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de datos: `petShelter` -- -- ...
true
8286a8d54605bca3d2abb59eff3e255ac9f20eb6
SQL
bellmit/report
/report/batch_dws_sys_user_snap/script/init_script.sql
UTF-8
1,218
3.171875
3
[]
no_license
drop table if exists dws.dws_sys_user_snap; create table if not exists dws.dws_sys_user_snap ( s_key bigint comment '代理键', user_id STRING COMMENT '用户id', user_name STRING COMMENT '用户姓名', user_status bigint comment '用户状态: 1 正常, 0 禁用', job_code STRING COMMENT '岗位编码', job_name STRING COMMENT '岗位', ...
true
94cf4d309dffbad9b7f14df0cfc81b3e0471dd5e
SQL
Sulejmancheg/Task2
/store.sql
UTF-8
10,335
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Апр 13 2021 г., 00:50 -- Версия сервера: 8.0.19 -- Версия PHP: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
bd34362b216aa2d5e60a38f49e20b9dc8744fe92
SQL
shooooori0128/express-sample
/docker/db/initdb.d/sample.sql
UTF-8
278
2.953125
3
[ "MIT" ]
permissive
DROP SCHEMA IF EXISTS sample; CREATE SCHEMA sample; USE sample; DROP TABLE IF EXISTS users; CREATE TABLE users ( id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL ); INSERT INTO users (id, name) VALUES (1, "山田太郎"), (2, "山田花子");
true
0ba63efe012a51b876af173219b265f81b865473
SQL
bimberlabinternal/BimberLabKeyModules
/GenotypeAssays/resources/assay/SnpAssay/queries/highConfidence.sql
UTF-8
271
3.5
4
[]
no_license
SELECT d.subjectId, COUNT(DISTINCT d.marker) as totalMarkers, COUNT(DISTINCT (CASE WHEN (d.confidence >= 0.6) THEN d.marker ELSE NULL END)) as highConfidenceMarkers, FROM Data d WHERE (d.statusflag IS NULL OR d.statusflag LIKE '%DEFINITIVE%') GROUP BY d.subjectId
true
33074696e0a89d357eb91a1db5e8105e87cc6a38
SQL
Adefioye/Udemy-SQL-for-Business-Analytics-Course
/SUBQUERIES AND IN OPERATOR.sql
UTF-8
1,114
4.46875
4
[]
no_license
/* Subqueries are queries embedded in a query. They can also be called inner queries/ nested queries they are a part of another query called outer query or outer select */ select * from dept_manager; -- Select first and last name from the 'employees' table for the same employee numbers that can -- be found in the 'd...
true
8605d17c9b659ba160d0c07d4586b432e4521121
SQL
friendscottn/ADNSFScripts
/CountCategoryXmlpackages.sql
UTF-8
109
2.703125
3
[]
no_license
select xmlpackage, count(*) as total, min(categoryid) as firstentityid from category group by xmlpackage
true
b41544bde2870e7c0b98d545e866fae3ddf56188
SQL
ATBMHTTT-2017/lab01-1412558-1412657-1412140
/policy_5_1412558.sql
UTF-8
1,693
3.390625
3
[ "Apache-2.0" ]
permissive
-- [X] Chỉ trưởng phòng, trưởng chi nhánh được cấp quyền thực thi stored procedure cập nhật thông tin phòng ban của mình (DAC) -- tạo procedure alter session set "_ORACLE_SCRIPT"=true; CREATE OR REPLACE PROCEDURE SP_UPDATE_PHONGBAN (p_TENPHONG IN VARCHAR2, p_TRUONGPHONG IN VARCHAR2, p_NGAYNHANCHUC IN DATE, p_SONHANV...
true
12892419102f50355d37b7a3b22fd84eb7e5965a
SQL
MingzheHu-Duke/AKI-Stages-Prediction-and-Detection
/SQL/creatine.sql
UTF-8
1,381
4.125
4
[ "MIT" ]
permissive
with cr as ( select ie.icustay_id , ie.intime, ie.outtime , le.valuenum as creat , le.charttime from `physionet-data.mimiciii_clinical.icustays` ie left join physionet-data.mimiciii_...
true
28229eed9f97d1f83941f018484e76379d8ecd20
SQL
sodiqafolayan/Dataengineering-projects-data-engineering-and-analysis
/SQL/subqueries.sql
UTF-8
6,164
4.46875
4
[]
no_license
/* README.md This repo will contain my sql queries against the data linked below. This is from Udacity course on sql-for-data-analysis https://video.udacity-data.com/topher/2020/May/5eb5533b_parch-and-posey/parch-and-posey.sql */ /* We want to find the average number of events for each day for each channel. */ SELEC...
true
8a810e9813a4a76967008eea856cd47a3666b621
SQL
junio-moreira-rocha/SQL-Server
/campos-identity.sql
ISO-8859-1
552
3.25
3
[]
no_license
-- Campos IDENTITY -- Na maioria das tabelas que so criadas em um banco de dados a chave primria composta por um campo com cdigo sequencial. O SQL Server possui uma soluo de auto incremento para esses casos, onde o prprio sistema gerencia a sequncia de cdigos. -- Podemos criar o auto incremento conforme a necessidade,...
true
5cff84d87e2fe165e990048cf1117a783b53cfdc
SQL
ppedvAG/TSQL-Tuning
/300_Logischer Fluss.sql
UTF-8
512
3.78125
4
[]
no_license
use demoDb select * from tblA left outer join tblb on tbla.pk = tblb.pk and tblb.pk=1 --besser select * from tbla left outer join tblb on tbla.pk = tblb.pk where tblb.pk = 1 --Design --Wie geht das besser select CompanyName, City from northwind..Customers group by CompanyName, City having City = 'Berlin' --Warum ...
true
4a1ea98b2daea2e64ab73d63ff5f6d815d4c62f6
SQL
zhuce2022/Financial_data_crawler
/init_sql/czce_create_table.sql
UTF-8
514
2.578125
3
[]
no_license
use tianyi; create table czce( datetime date, productname varchar(50), deliverymonth varchar(50), presettlementprice decimal(18,2), openprice decimal(18,2), highestprice decimal(18,2), lowestprice decimal(18,2), closeprice decimal(18,2), settlementprice decimal(18,2), zd1_chg decimal(18,2), zd2_chg decimal(18,2), volum...
true
0f821832ded8b16ad3612bd2da51b7f2f3aae66a
SQL
ItzelAlonsoG/DataBase
/OrderBy_Having_platziblog.sql
UTF-8
1,442
3.765625
4
[]
no_license
-- ORDER BY----- USE platziblog; -- Ordenar por de manera ascendente la fecha de publicación. SELECT * FROM posts ORDER BY fecha_publicacion ASC; -- Ordenar por de manera descenciente la fecha de publicación. SELECT * FROM posts ORDER BY fecha_publicacion DESC; -- Ordenar por cadenas lo pone en orden alfabético. S...
true
c88f82565c908c5595442aa4e7cffdf85c35dbb7
SQL
pfwrocks/explore-cville
/SQL_testing_commands.sql
UTF-8
4,243
4.0625
4
[]
no_license
SELECT * FROM ACTIVITY; SELECT * FROM CUSTOMER; SELECT * FROM EMPLOYEE; SELECT * FROM HOTEL; SELECT * FROM LIST; SELECT * FROM THEATER; SELECT * FROM RENTALCAR; SELECT * FROM HOTEL WHERE HOTEL_CURRCAPACITY < HOTEL_MAXCAPACITY; SELECT COUNT(EMPLOYEE_ID) FROM EMPLOYEE; SELECT AVG(RESTAURANT_RATING) FROM RESTAURA...
true
2eefa23bef2d4ae3baf1d262b352c8750f4a9ac3
SQL
tectronics/cookingbook-hung
/cooking.sql
UTF-8
1,530
2.9375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : hungth Source Server Version : 50508 Source Host : localhost:3306 Source Database : cooking Target Server Type : MYSQL Target Server Version : 50508 File Encoding : 65001 Date: 2014-07-16 16:32:07 */ SET FOREIGN_KEY_CHE...
true
808f8c57a3f410a0f3bc0a5209fb03b14c115f55
SQL
sagasu/SQL-Queries
/RowCountOverPartition.sql
UTF-8
201
2.9375
3
[ "Apache-2.0" ]
permissive
--query for [AdventureWorks2019].[Sales].[SalesOrderHeader] SELECT ROW_NUMBER() Over (Partition by [SalesPersonID] order by [OrderDate]) ,* FROM [AdventureWorks2019].[Sales].[SalesOrderHeader]
true
7a5c553131a247f77ba9906a2fa555851c91e4a0
SQL
EduardoDornel/crescer-2016-2
/src/CRESCER/modulo-5-.NET1/SQL_MOVIES.sql
UTF-8
156
2.59375
3
[]
no_license
Create Table Movies ( Id int PRIMARY KEY IDENTITY not null, Title varchar(255) not null ) insert into Movies(Title) Values('Titanic') select * from Movies
true
6344a5fd64577821cdeae68d820e162c01896d38
SQL
bellmit/flexdb
/2.HOST/1.View/v_getdealpaidbyaccount.sql
UTF-8
1,096
3.359375
3
[]
no_license
CREATE OR REPLACE FORCE VIEW V_GETDEALPAIDBYACCOUNT (dealpaidamt, afacctno) AS (/*( SELECT greatest(round(SUM (to_number(nvl(sy.varvalue,0)) * ( (df.remainqtty + df.rlsqtty - df.secured_match) / (df.remainqtty + df.rlsqtty) ...
true
541adc34963ceaee3f2347f622193d0d38cbf527
SQL
silentsoundz/phase-3-challenge
/part-2/schema.sql
UTF-8
537
3.59375
4
[ "MIT" ]
permissive
CREATE TABLE items ( item_id SERIAL PRIMARY KEY, name VARCHAR(250), price NUMERIC(5,2), section VARCHAR(100) ); CREATE TABLE shoppers ( shopper_id SERIAL PRIMARY KEY, last_name VARCHAR(77) , first_name VARCHAR(77), email VARCHAR(77) ); CREATE TABLE orders ( order_id SERIAL PRIMARY KEY, date DATE NOT NULL DEFAULT C...
true
4e926662d302afc430e76ae06d65837afc4e7956
SQL
amanda-wong/video-store-express
/database/genre.sql
UTF-8
565
2.75
3
[]
no_license
-- TABLE CREATION ------------------------------------------------------------------ CREATE TABLE genre ( id serial PRIMARY KEY, genre varchar(20) NOT NULL ); -- INSERTIONS ------------------------------------------------------------------ INSERT INTO genre (genre) VALUES ('comedy'), ('romance'), ...
true
dd656bb7bdf6a2cbd84493c47eb1f7a994c55946
SQL
marielitonmb/SQL_Exercicios
/inner-join-1.sql
UTF-8
626
3.90625
4
[ "MIT" ]
permissive
select nome, cursopreferido from gafanhotos; select nome, ano from cursos; select g.nome, g.cursopreferido, c.nome, c.ano from gafanhotos as g inner join cursos as c on c.idcurso = g.cursopreferido order by g.nome; select g.nome, c.nome, c.ano from gafanhotos as g join cursos as c # funciona também sem escrever "inn...
true
03e8436459616ce65c686b45216fe8d4dacc2c91
SQL
izabelamumic/SMN
/Exercicio BD - EstagioM/Script_Ex02.sql
UTF-8
813
3.734375
4
[]
no_license
/* [10/10/2018] Eduardo: Forma de Pagamento Desenvolver levantamento de contratos vendidos em 2008 e sua forma de pagamento. */ SELECT (CONVERT(VARCHAR(50), lt.Num_Empr) + ' - ' + lt.Cod_Quadra + ' - ' + CONVERT(VARCHAR(50), lt.Cod_Lot)) AS Eql, cl.Num_CliCPFCNPJ, cl.Nom_Cli, ct.Dat_Venda, ct.Dat_ConfirmaVen...
true
9e7b4b87b1264b4ab8a6ed75dca9a928c29c4aee
SQL
shamrat1/dsp
/database/sql/db.sql
UTF-8
30,176
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Dec 10, 2020 at 07:06 PM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `dropshipper` -- -- ------------------------...
true
8d58299a7bacc711527b9fc4b7a48eaf45857f06
SQL
cysisu/webim
/webim.sql
UTF-8
1,229
2.90625
3
[]
no_license
DROP DATABASE IF EXISTS webim; CREATE DATABASE webim DEFAULT CHARACTER SET utf8; USE webim; CREATE TABLE user( id int(10) auto_increment primary key, name char(50) , password char(10), status char(10), sign char(100), avatar char(100) ); insert user values (10000,'浮生一梦','1234','online','no zuo,no die'...
true
ceb135cc4803fec8288c88624a20d09ff45dddea
SQL
JonathanRH07/Control-de-versiones
/DB ICAAVweb/Suite_mig_demo/Stored_Procedures/sp_dash_cobranza_graf_cobros_c.sql
UTF-8
4,901
3.546875
4
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`%` PROCEDURE `sp_dash_cobranza_graf_cobros_c`( IN pr_id_grupo_empresa INT, IN pr_id_sucursal INT, IN pr_moneda_reporte INT, IN pr_id_idioma INT, OUT pr_message TEXT ) BEGIN /* @nombre: sp_dash_cobranza_graf_cobros_c @fecha: 2019/08/16 @descripción: Sp p...
true
4788fe95d8b9fc3fa6252ab10ff3fc18717d39a4
SQL
sgbenner/tsql-scripts
/Scripts/bufferpool-get-bufferpool-info.sql
UTF-8
1,897
3.890625
4
[ "MIT" ]
permissive
-- Pages in Memory by DB w/ % Of Total Server Memory WITH cteData AS (SELECT dm_os_buffer_descriptors.database_id , COUNT(*) AS TotalPages -- select top 1500 * FROM sys.dm_os_buffer_descriptors GROUP BY dm_os_buffer_descriptors.database_id WITH ROLLUP) SELECT CASE...
true
357c0517e4598923437fd66037a181bbb2113edf
SQL
tzabcd/yiiSpace
/protected/components/sysVoting/schema/thumb_rating_relax.sql
UTF-8
648
3.03125
3
[]
no_license
/** *@see https://github.com/phpnode/YiiBlocks/blob/master/voting/data/schema.sql */ CREATE TABLE IF NOT EXISTS `votes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ownerModel` varchar(50) NOT NULL, `ownerId` int(10) unsigned NOT NULL, `voterId` int(10) unsigned DEFAULT NULL, `voterIP` varchar(...
true
4f1484c1d86a63b773f9a5ed94b7f9f140754dd9
SQL
djbailey20/SQL-Challenge
/sql/queries.sql
UTF-8
1,965
4.0625
4
[]
no_license
--Question 1 SELECT employees.emp_no, employees.last_name, employees.first_name, salaries.salary FROM employees JOIN salaries ON employees.emp_no = salaries.emp_no --Question 2 SELECT * FROM employees WHERE EXTRACT(YEAR FROM hire_date)=1986; --Question 3 SELECT department.dept_no, department.dept_name, dept_manag...
true
e0db7245788a734d1e4da4edaeb7a4f8c6ad367a
SQL
Elmissa/Laboratorio-Base-de-Datos
/Query Todas las tablas.sql
UTF-8
3,607
3.359375
3
[]
no_license
select * from Direccion insert into Direccion values ('Alberto', 'San Isidro', 326, 'San Isidro', 66646, 1, 1, 1) insert into Direccion values ('Missael', 'Pueblo', 632, 'Pueblo', 66646, 1, 1, 1) insert into Direccion values ('Daniel', 'Huinala', 123, 'Portal', 66646, 1, 1, 1) update Direccion Set Nombr...
true
3bc2de953d3e88e596fe7a3248acb442b0963ebc
SQL
boxyBoxMcBox/Beginning-Comp-Sci
/DavidMurphySqlLab.sql
UTF-8
1,941
4.375
4
[]
no_license
#### Name: David Murphy #### use project; #### Question 1 #### select e.e_ID as 'Employee ID', e.e_fname as 'First Name', e.e_lname as 'Last Name', e.e_dept as 'Department', e.e_office as 'Office' , e.e_phone as 'Phone', e.e_hiredate as 'Hiring Date', e.e_hourlyrate as 'Hourly Rate' from employee e ...
true
8f7143c1a244c74618addf60deccdc05e799a325
SQL
luisschubert/uberJr
/databaseSetup.sql
UTF-8
2,648
3.859375
4
[]
no_license
CREATE TABLE drivers ( driver_id integer NOT NULL, license_plate text NOT NULL, car_color text NOT NULL, car_year text NOT NULL, car_make text NOT NULL, is_active boolean DEFAULT false, timed_out boolean DEFAULT false, timeout_time integer NOT NULL ); CREATE TABLE users ( id in...
true
70c31436c8bd7ab9dc467148bbd5423b2bcaccc0
SQL
wasm-compiler-bugs/wasm-compiler-bugs.github.io
/Code/Schema/webassembly_bugs_github_bugs.sql
UTF-8
2,598
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: 192.168.1.122 Database: webassembly_bugs -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
true
aee326d036a9d75a565e73881b3becf266a3d070
SQL
IndraGunawanBudiharjo/OCBC-H8
/SESI 06/General/Scripts/query_latihan.sql
UTF-8
3,193
3.09375
3
[]
no_license
-- B CREATE TABLE data_staff ( staff_id INT IDENTITY(1,1) PRIMARY KEY, nama VARCHAR(50) NULL, alamat VARCHAR(200) NULL, handphone VARCHAR(15) NULL ); -- C & D INSERT INTO data_staff(nama,alamat,handphone) VALUES('BEJO','SURABAYA','081234567895'); INSERT INTO data_staff(nama,alamat,handphone) VALUES('BUDI','MALANG...
true
b583b81662ef40dbb3dd2e1719e80244b276fc9e
SQL
ggombos/mtree
/data/other/cousineSong.sql
UTF-8
1,969
3.28125
3
[]
no_license
-- csv header: SongName;c1,c2 (c1,c2 = cousine first2 main component) DROP INDEX cousineSong_gist_index; DROP TABLE cousineSong; DROP EXTENSION mtree_gist; SELECT * FROM pg_extension; CREATE EXTENSION mtree_gist; SELECT * FROM pg_extension; CREATE TABLE cousineSong ( --id SERIAL PRIMARY KEY, songname TEXT, ...
true
06ec44d1c60bb2da61bc1987d92dd383318ac544
SQL
osorniochris/DOGS-COAdmin
/web/sqlscripts/base1.sql
UTF-8
2,520
3.4375
3
[]
no_license
drop database if exists doggos; create database doggos; use doggos; drop table if exists DireccionUsuario; create table DireccionUsuario(IdDireccion int(2) primary key not null, Calle varchar(30) not null, NumInt varchar(4) not null, NumExt varchar(4) not null, Cp varchar(5) not null, Colonia varchar(30) not null, De...
true
9d7f0f5cc681f14aac4868a3190c5aec4ed64fbd
SQL
AlaouiWebDev/projetweb_4
/eat_with_me/migrations/inittial.sql
UTF-8
922
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost:8889 -- Généré le : mar. 30 avr. 2019 à 12:08 -- Version du serveur : 5.7.25 -- Version de PHP : 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Structure de la table `User` -- CREATE TABLE...
true
1d449ce682ba25a78c99dea54ab38d4c0b8b2259
SQL
movieknight/movieknight-rest-api
/movieviews.sql
UTF-8
716
3.96875
4
[]
no_license
create or replace view get_movies_and_genres as select m.title, g.name, m.release_date from genres_movies gm join genres g on (g.id = gm.genre_id) join movies m on (m.id = gm.movie_id) ; create or replace view get_liked_movies as select m.id as movie_id, u.id as user_id, m.title, m.release_date, r.rat...
true
d99c18c6803325c8fafeaa1cf8d7a7fc13b55ac6
SQL
elokalo/UpTask
/uptask.sql
UTF-8
3,459
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 05-02-2019 a las 11:50:40 -- Versión del servidor: 5.7.23 -- Versión de PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
9e45a2551527c37bc21ddc52f496d69afaa2c606
SQL
zero12a/db
/CODESCHOOL_20220508.sql
UTF-8
5,647
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.3 -- https://www.phpmyadmin.net/ -- -- Host: 172.17.0.1:4306 -- 생성 시간: 22-05-08 12:19 -- 서버 버전: 10.7.3-MariaDB-1:10.7.3+maria~focal -- PHP 버전: 7.4.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
true
d9940f2cb5f3d1574d651acb563ab481bb6c3e20
SQL
wbrxcorp/cms.old
/jee/src/main/resources/db/cms/migration/V0001__Initial.sql
UTF-8
2,076
3.796875
4
[]
no_license
create table users ( id serial not null primary key, username varchar(32) not null unique, email varchar(64), password varchar(128) not null, nickname varchar(64), auth_token varchar(128) not null unique, auth_token_expires_at timestamp not null, admin_user boolean not null default false...
true
6ddd64bbc3525c8b9116b720cb95ecee786f0b36
SQL
lenam200996/Web
/webtmdt.sql
UTF-8
11,154
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 22, 2019 at 03:32 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
f32d5597e2d57e5319b69705eeb95810427016d0
SQL
RaviTejha/SqoopCommandsBasics
/mysql sql commad.sql
UTF-8
195
2.59375
3
[]
no_license
-- sql query to find host name and ip and port of a data base server SELECT SUBSTRING_INDEX(USER(), '@', -1) AS ip, @@hostname as hostname, @@port as port, DATABASE() as current_database;
true
beebcc54f6d26b5bad5cabd15fb63e9acdbb8fb9
SQL
ArctosDB/DDL
/procedures/parse_other_id.sql
UTF-8
3,933
3.390625
3
[]
no_license
CREATE OR REPLACE PROCEDURE PARSE_OTHER_ID ( collection_object_id IN number, other_id_num IN varchar2, other_id_type IN varchar, ID_REFERENCES IN varchar2) IS part_one varchar2(255); part_two varchar2(255); part_three varchar2(255); dlms VARCHAR2(255) := '|-.; '; td VARCHAR2(255); ...
true
b8c574201a9cb2a46eaa8ad3df79e0ffad9c55f2
SQL
inambioinfo/civic-server
/db/structure.sql
UTF-8
91,659
3.078125
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.3 -- Dumped by pg_dump version 9.6.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
true
08c23c4172628948d6a36288e935bafd3fa32cec
SQL
dyancl1024/CodeGenerator
/temp/tempfolder/RH/Training/Detail/TrainingHomeWorkTypeDetail.sql
UTF-8
296
2.640625
3
[]
no_license
/* RH_TrainingHomeWorkType - 查看详情脚本 */ DROP PROCEDURE IF EXISTS sp_SJ_RH_TrainingHomeWorkType_Detail; CREATE PROCEDURE sp_SJ_RH_TrainingHomeWorkType_Detail ( IN i_ID int ) BEGIN SELECT Name, Code, Sort FROM RH_TrainingHomeWorkType WHERE ID = i_ID ; END;
true
9f3f7f7e97f044620442d2a09cf6d1047a116457
SQL
alecnicdao/SQL-oracle-database-
/assignment9.sql
UTF-8
3,604
4.375
4
[]
no_license
/* Alastair Nicdao 11/20/18 Assignment #9 CS: 2550 */ --Assignment #9 --leave the next lines in your script set echo on; set pagesize 3500; set def off; --1.Write a statement that displays the first and last name of the student(s) that were the first to register for school (earliest registration date) SELEC...
true
d2374017aea877dceb2971247768e5edfa31b334
SQL
eli-siegel/project2
/db/seeds.sql
UTF-8
2,438
3.1875
3
[]
no_license
INSERT INTO questions (question) VALUES ('Who is the all-time leading scorer in NBA history?'), ('Who is the all-time leader in games played in NBA history?'), ('Which franchise has won the most NBA championships?'), ('Which number did Tim Duncan wear?'), ('Kobe Bryant won 5 NBA championships. How many times did h...
true
77bdc597394dfa38ebb189a600be6589557c7327
SQL
ccguilhermecosta/2020-LPBD
/Scripts_Aula05/Aula 05 - Consultas.sql
UTF-8
926
3.640625
4
[]
no_license
/* EXERCICIOS AULA 04 */ /*A*/ SELECT * FROM gravadora; /*B*/ SELECT cd_id, cd_nome, cd_preco_venda FROM cd; /*C*/ SELECT aut_id, aut_nome FROM autor; /*D*/ SELECT aut_id, aut_nome FROM autor ORDER BY aut_nome DESC; /*E*/ SELECT * FROM cd WHERE grav_id = 3; /*F*/ SELECT cd_nome, cd_preco_venda FROM cd WHERE cd_p...
true
46eb54688a40dd3a99cf5b935c71aab770c6b203
SQL
FSTDT/more-interesting
/migrations/2021-08-10-182737_idx_posts_domain/up.sql
UTF-8
79
2.578125
3
[ "Apache-2.0", "MIT", "AGPL-3.0-or-later" ]
permissive
CREATE INDEX idx_posts_domain ON posts (domain_id, initial_stellar_time DESC);
true
02c0d5cf8ce70c55059b5bfcb23ad79e004e0165
SQL
nagabhushanamn/lowes-java
/day3/code/demo-2/schema.sql
UTF-8
996
3.578125
4
[]
no_license
create database shop; use shop; CREATE TABLE publisher ( code VARCHAR(6) PRIMARY KEY, name VARCHAR(64) NOT NULL, address VARCHAR(128) NOT NULL, UNIQUE (name) ); CREATE TABLE book ( isbn VARCHAR(13) PRIMARY KEY, name VARCHAR(64) NOT NULL, publish_date DATE, price DECIMAL(8, 2), publisher VARCHAR(6), ...
true
0a05a6b695b29d966ac54c54e6fae0ba207eb162
SQL
arsozkan/news365
/MySQL File/db_news365.sql
UTF-8
5,808
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 04, 2016 at 06:35 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
6a57867c463598dd3ad3842e94363ad7debedfe4
SQL
caseycbrown/wspecomap
/db/d_taxon.sql
UTF-8
9,758
2.796875
3
[]
no_license
/* populate taxon list */ /*this is a list of species from nyc park's info*/ insert into taxon ( taxon_id, genus, species, common, usda_code, color_id ) values (1, null, null, null, null, 1), (2, 'Acer', 'negundo', 'Boxelder', 'ACNE2', 1), (3, 'Acer', 'platanoides', 'Norway maple', 'AC...
true
7bf609ae9d69d4efb2ada135cd9f950b78a8334b
SQL
erinaldo/ITSolution.FrameworkDeveloper
/ITSolution_Development/ITSolution.Admin/SQLs/util/cleanITE.sql
UTF-8
2,356
2.90625
3
[]
no_license
--A ORDEM DOS FATORES ALTERA O PRODUTO --NAO ALTERE A SEQUENCIA DOS COMANDOS --Base DELETE FROM EnderecoCliFor ; DELETE FROM CliFor ; DBCC CHECKIDENT ('EnderecoCliFor', RESEED, 0) DBCC CHECKIDENT ('CliFor', RESEED, 0) --Vendas DELETE FROM ItemVenda ; DELETE FROM Venda ; DELETE FROM Produto ; DELETE FROM AlteracaoP...
true
01146f0feeb853040d7bc914a49130f5cf7277e7
SQL
jisung0920/alpa-2018-winter-project
/table.sql
UTF-8
802
3.421875
3
[]
no_license
CREATE TABLE `post` ( `num` INTEGER(6) NOT NULL, `title` VARCHAR(50) NOT NULL, `content` TEXT NOT NULL, `writer` VARCHAR(30) NOT NULL, `date` DATE NOT NULL, `time` TIME NOT NULL, `hits` INTEGER(5) NOT NULL default 0, `field` INTEGER(1) NOT NULL, PRIMARY KEY(`num`,`field`), FOREIGN KEY(`writer`) REFE...
true
82bcb83de1e1c5d4d3794c7e30872a4c338f1414
SQL
armandoroman20/database-exercises
/index_lecture.sql
UTF-8
7,455
3.953125
4
[]
no_license
use codeup_test_db; drop table if exists pets; create table pets( id int unsigned, pet_name varchar(30) not null, owner_name varchar(30), age int ); describe pets; -- add a primary key alter table pets modify column id int unsigned primary key auto_increment; describe pets; -- dropping a primary key alter table...
true
7a3a81eb3aa3f771759e36a59f49fb7e8e8bd035
SQL
rentsoftSAS/rentsoft
/RentSoft/scriptsBD/udp_usuario.sql
UTF-8
1,235
3.34375
3
[]
no_license
use rentsoftbd; DELIMITER $$ DROP PROCEDURE IF EXISTS udp_usuario $$ CREATE PROCEDURE udp_usuario (in p_id int, in p_Nombre varchar(200), in p_Apellido varchar(200), in p_clave varchar(2184), in p_Usuario varchar(500), in p_Pseudonimo varchar(500), in p_Telefono varchar(200), in p_Estado tinyint, in p...
true
aadc497f3c0977e83e47339977140d8783b97dbd
SQL
jfallt/Quench_PowerBI_Reporting
/SQL Queries/Service Data/WO Attributes/wo_swap_identification.sql
UTF-8
21,763
4.15625
4
[]
no_license
/* Purpose: Assign reasons for swaps / remove sales swaps Step 1: Find opportunities tied to amendment or new sales Step 2: Connect the work order to the case to the opportunity and then the query from Step 1 Step 3: Identify accounts with more than 2 swaps created on the same day Step 4: Join step 3 with step 2 Step 5...
true
417a110eeb17fc30f9ebb465243db54b32fb4e52
SQL
cesar-gonzalez-sf/DesktopFX
/Deploy/config/Database/SecurityFX/Oracle/SECURITYFX$CAPACITY_DEL.sql
UTF-8
2,098
3.171875
3
[]
no_license
CREATE OR REPLACE PROCEDURE SECURITYFX$CAPACITY_DEL -------------------------------------------------------------------------------- -- Copyright (c) OBCOM INGENIERIA S.A. (Chile). All rights reserved. -- -- All rights to this product are owned by OBCOM INGENIERIA S.A. and may only be -- used under the terms of its ...
true
d7cb6fadd178ad2e9201d3da8589c30e9428ebf4
SQL
cohenjo/dbautils
/oracle/dbmon/sqls/sessmem.sql
UTF-8
724
3.109375
3
[]
no_license
REM ------------------------------------------------------------------------ REM REQUIREMENTS: REM SELECT on V$ REM ------------------------------------------------------------------------ REM PURPOSE: REM Show sessions memory usage REM ------------------------------------------------------------------------ se...
true
01a7e884d81f53c654e535b6219fc2497d6fa830
SQL
eric-jfire/blog
/blog.sql
UTF-8
2,790
3.03125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50519 Source Host : localhost:3306 Source Database : blog Target Server Type : MYSQL Target Server Version : 50519 File Encoding : 65001 Date: 2016-02-15 20:34:40 */ SET FOREIGN_KE...
true
b445ed51342f196153af169e144dd57b7bef0619
SQL
joeratzer/sql-server-investigation-scripts
/number-of-rows-in-all-tables.sql
UTF-8
284
3.890625
4
[]
no_license
-- return the number of rows in all user tables select t.name as table_name, s.row_count from sys.tables t inner join sys.dm_db_partition_stats s on t.object_id = s.object_id and t.name not like '%dss%' and t.type_desc = 'USER_TABLE' and s.index_id IN (0,1) order by t.name
true
fc48408363cd80052dfa4f8f9c6b7f24b0125ca5
SQL
fexofenadine/brcm63xx-tch
/source/telephony/kamailio4-mod-db-mysql_4.2.4-1_brcm63xx-tch/usr/share/kamailio/mysql/uid_uri_db-create.sql
UTF-8
927
2.953125
3
[]
no_license
INSERT INTO version (table_name, table_version) values ('uid_uri','3'); CREATE TABLE uid_uri ( id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL, uid VARCHAR(64) NOT NULL, did VARCHAR(64) NOT NULL, username VARCHAR(64) NOT NULL, flags INT UNSIGNED DEFAULT 0 NOT NULL, scheme VARCHAR(8) DEFA...
true
9d6a13dfb7c77623623c79f9f690874d2f7d7937
SQL
arnabs542/competitive-programming-1
/InterviewBit/neutral-reviewers.sql
UTF-8
156
2.59375
3
[]
no_license
-- https://www.interviewbit.com/problems/neutral-reviewers/ select distinct reviewer_name from reviewers natural join ratings where reviewer_stars is null;
true
31c3137b8aa4494ca2ce234f0962b9f8b4f470c9
SQL
MissUFO/GS.Recruitment
/GS.Recruitment.Db/GS.Recruitment.Db/Stored Procedures/Users_ChangePassword.sql
UTF-8
254
2.96875
3
[]
no_license
CREATE PROCEDURE auth.Users_ChangePassword @UserID uniqueidentifier ,@Password NVARCHAR(255) AS BEGIN SET NOCOUNT ON; UPDATE auth.Users SET [LastPasswordChangedOn] = GETDATE() ,[Password] = @Password WHERE Id = @UserID END
true
98047837809c1df1e929e20c6ff7ea7fbd555538
SQL
ypzer0/workSpace
/zqzd/_sql/_sql/coupon.sql
UTF-8
4,190
3.25
3
[ "Apache-2.0" ]
permissive
/** * a:zy * e:zgyxszyd@163.com * 2019-3-15 1:57 优惠劵**/ -- ---------------------------- -- Table structure for `nideshop_coupon` -- ---------------------------- DROP TABLE IF EXISTS `nideshop_coupon`; CREATE TABLE `nideshop_coupon` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(60) DEFAULT...
true
bf2149ef8198a22053cb0443006f7ef60513d793
SQL
apratapi/egov-services
/financials/egf-voucher/src/main/resources/db/migration/main/V20170706012553__egf-voucher_Voucher_ddl.sql
UTF-8
656
2.765625
3
[]
no_license
Create table egf_voucher( id varchar(50), type varchar(50) NOT NULL, name varchar(50) NOT NULL, description varchar(50), voucherNumber varchar(50), voucherDate date NOT NULL, fundId varchar(50), statusId varchar(50), vouchermisId varchar(50), originalVoucherNumber varchar(50), refVoucherNumber v...
true
aebd888bcbeb0c4692ac5b489b8ac6e2c8363656
SQL
tuanpmt38/demo-full-spring
/src/main/resources/liquibase/db.changelog-1.2.sql
UTF-8
394
3
3
[]
no_license
-- liquibase formatted sql -- changeset tuanpm:1.2 DROP TABLE IF EXISTS author; CREATE TABLE author( id serial, name VARCHAR (255) NOT NULL, created_at TIMESTAMP default null , updated_at TIMESTAMP default null, created_by BIGINT default null , updated_by BIGINT default null, is_active boo...
true
01d62e399e5afb5940739317646a74b80f7a1f33
SQL
framirov/SQL-course
/3/3.1/7.sql
UTF-8
416
3.484375
3
[]
no_license
SELECT name_question, name_answer, if(is_correct, 'Верно', 'Неверно') as Результат FROM question INNER JOIN testing USING(question_id) INNER JOIN answer USING (answer_id) INNER JOIN attempt USING (attempt_id) INNER JOIN student ...
true
685206ddf80ef787cc8db6a388f47f9edb7d643a
SQL
vgoel38/PQET
/inputs/really_final_outputs/original/without_mj/10a.sql
UTF-8
4,793
2.703125
3
[]
no_license
QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------------------------------...
true
ff56d37cbc633ff3c1c14a0dd462f7229a260e9c
SQL
vikramdhingra/shopify_ds_challenge
/Q2.sql
UTF-8
1,810
4.125
4
[]
no_license
-- A1 SELECT count(distinct(OrderID)) FROM [Orders] A LEFT JOIN [Shippers] B ON A.ShipperID=B.ShipperID WHERE ShipperName = 'Speedy Express' -- 54 -- A2 SELECT B.LastName, count(distinct(OrderID)) AS total_order FROM [Orders] A LEFT JOIN [Employees] B ON A.EmployeeID=B.EmployeeID GROUP BY A.Employee...
true
4d2e990166c69bf2349ccc1bbc18474f0e0cd92a
SQL
michigann/bazy_danych_projekt
/sql/init_db.sql
UTF-8
10,840
3.484375
3
[]
no_license
drop TABLE bagaz_cennik cascade; drop SEQUENCE samolot_id_samolot_seq cascade; drop TABLE samolot cascade; drop TABLE slownik cascade; drop TABLE samolot_miejsca cascade; drop SEQUENCE adres_id_adres_seq cascade; drop TABLE adres cascade; drop SEQUENCE lotnisko_id_lotnisko_seq cascade; drop TABLE lotnisko cascade; drop...
true
c50b78f4f5f417660f8f4661c090ea8624b02831
SQL
HectorVargas1984/AS_grupo1
/creacion_tablasA+S.sql
UTF-8
4,853
3.4375
3
[]
no_license
drop schema ProyectoJahuelito; CREATE SCHEMA IF NOT EXISTS ProyectoJahuelito; USE `ProyectoJahuelito` ; -- ----------------------------------------------------- -- Table `mydb`.`autores` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `ProyectoJahuelito`.`autores` ( `id_autor` INT...
true
47f358aecf30b6dc59d69aefd1f78d08e6e15714
SQL
klAndersen/Bachelor-development-projects
/Databases/INF 315 - Oracle/Øvelse2/Videre3.sql
UTF-8
588
2.84375
3
[]
no_license
create or replace type body lag_type as member function tostring return varchar2 is begin return lagkode || ' - ' || lagnavn; exception when others then return 'Ingen registrert'; End tostring; member function antall return integer is antDeltakere integer; begin select count(*) into antDeltakere from lagmedlem_Tbl ...
true
08df9a3779c1ab8434645d4f2ecba8ff09c253c6
SQL
serg239/db
/mysql/elt/02_procs/21_create_proc_get_elt_data.sql
UTF-8
17,406
3.53125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* Version: 2011.12.11.01 Script: 21_create_proc_get_elt_data.sql Description: Create Log records for active and valid (check before copying) tables and copy MASTER (first) and LOG (second) data from remote DB hosts and schemas to STAGE or DELTA schema. -------------------------...
true