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
35197969c5cd8baafa6a57de48481921fbbdd9d5
SQL
alldatacenter/alldata
/dts/airbyte/airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/bigquery/test_simple_streams/first_output/airbyte_incremental/test_normalization/dedup_exchange_rate.sql
UTF-8
889
2.9375
3
[ "MIT", "Elastic-2.0", "Apache-2.0", "BSD-3-Clause" ]
permissive
create or replace table `dataline-integration-testing`.test_normalization.`dedup_exchange_rate` partition by timestamp_trunc(_airbyte_emitted_at, day) cluster by _airbyte_unique_key, _airbyte_emitted_at OPTIONS() as ( -- Final base SQL model -- depends_on: `dataline-integration-testing`.test_normalizat...
true
02f82e14e77c05af40637c827d0e361dc1921405
SQL
59364202/test
/tools/installer/initdata/database/001_public/schema/2004_m_canal_station.sql
UTF-8
5,834
4
4
[]
no_license
-- Table: public.m_canal_station -- DROP TABLE public.m_canal_station; CREATE TABLE public.m_canal_station ( id bigserial NOT NULL, -- รหัสสถานีวัดระดับน้ำในคลอง canal station's serial number subbasin_id bigint, -- รหัสลุ่มน้ำสาขา basin's serial number geocode_id bigint, -- ลำดับข้อมูลขอบเขตการปกครองของประเทศไท...
true
7c7c3dc3435d74ac43ebf167263d734da3dc8989
SQL
AndTras/soap
/soap.sql
UTF-8
51,071
2.703125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-02-2020 a las 03:59:07 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
44b257d49b266d5bbb51675d681b7cc402c4a8ba
SQL
BetsabetBastidas/predictfire
/Predict-fire/space_app_challenger_usuarios.sql
UTF-8
2,892
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 29-04-2017 a las 20:31:19 -- Versión del servidor: 5.5.24-log -- Versión de PHP: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
1a50fb7a84b387af16dce316c47cc25a4f9d968d
SQL
semantix/RXNORMCDS
/docs/ReportQueryAsColumns.sql
UTF-8
1,409
3.734375
4
[]
no_license
select distinct scd_review.SCD_rxcui, scd_review.review_status, scd_df.DF_str, scd_df.SCD_str, scd_rxterms.ROUTE_rxt, scd_rxterms.NEWDF_rxt, maps.orig_term_name, maps.orig_term_source, maps.prop_attrib_id, maps.prop_attrib_categ, maps.prop_attrib_attrib, maps.prop_term_id, maps.prop_term_pare...
true
b4421fd35238e5e01390fb9cb543645cb3f97a18
SQL
mochamadhaikal/book_store
/db/bukuquy.sql
UTF-8
5,522
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 24, 2021 at 04:14 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
975047bc0baa6c3a4ee678ac4b6bfb218f576cd3
SQL
kyawzinhtoonaing/spring-boot-test
/sql/ms-reconciliation/ddl_table.sql
UTF-8
9,616
3.609375
4
[]
no_license
-- Table: public.tbl_job -- DROP TABLE public.tbl_job; CREATE TABLE public.tbl_job ( col_id character varying(21) COLLATE pg_catalog."default" NOT NULL, col_file1name character varying(500) COLLATE pg_catalog."default" NOT NULL, col_file2name character varying(500) COLLATE pg_catalog."default" NOT NULL, ...
true
ff5a17f7faf9a44d75c4d0a4e94d67d2b6ae1ba5
SQL
cachufleto/model
/export/SQL/fonction.sql
UTF-8
3,635
4.15625
4
[]
no_license
--# Fonctions prédéfinies --# Prévue par le langage et exécuté par le developpeur. SELECT DATABASE(); --# indique la BDD actuellement selectionnée SELECT VERSION(); --# indique la version Mysql INSERT INTO employes (prenom) VALUES ('test_insert_id'); SELECT LAST_INSERT_ID(); --# permet d'afficher le dernier id inséré...
true
28e6207be8978d3b01a995387ef71b11dc5c6fdb
SQL
Vinaysh259/Spring-Projects
/hb-01-one-to-one-bi/src/sql/hb_01_one_to_one_uni.sql
UTF-8
969
3.859375
4
[]
no_license
create table instructor ( id int(11) not null auto_increment, first_name varchar(45) default null, last_name varchar(45) default null, email varchar(45) default null, instructor_detail_id int(11) default null, primary key (id), key FK_DETAIL_idx (instructor_detail_id), constraint FK_DETAIL foreign key (instructor_detai...
true
4f3070b95711404580741fd8b75b73ed9f87670d
SQL
buddzbuddy/crm-admin-deabee
/sometabledata.sql
UTF-8
1,646
2.90625
3
[]
no_license
insert into dbo.DynamicType (Name) Values ('string'); insert into dbo.DynamicTemplate (Name, Description) Values ('SomeTable', 'Dynamic Table'); insert into dbo.DynamicAttribute (Name) Values ('Firstname'); insert into dbo.DynamicAttribute (Name) Values ('Surname'); insert into dbo.DynamicAttribute (Name) Values ('Gen...
true
fe583ada96610e8c3f86367c56f0e0bd412e23a6
SQL
tomshaw/resource-datastore
/database/functions/CHECK_CALENDAR_DATE.sql
UTF-8
599
3.703125
4
[]
no_license
DROP FUNCTION IF EXISTS CHECK_CALENDAR_DATE; DELIMITER $$ CREATE FUNCTION `CHECK_CALENDAR_DATE`(`currentDate` DATE) RETURNS tinyint(1) BEGIN DECLARE total INT(11) UNSIGNED; DECLARE total_result INT(11) UNSIGNED; SELECT COUNT(calendar_date) INTO total_result FROM `calendar_table` WHERE YEAR(...
true
e4e6a5538eead0b2a8ab5ccf4701826aefb5d6ae
SQL
JuanOrdaz/BABUSHA
/dataBaseScript.sql
UTF-8
983
2.703125
3
[]
no_license
CREATE TABLE Users ( fName VARCHAR(50) NOT NULL, lName VARCHAR(50) NOT NULL, username VARCHAR(50) NOT NULL PRIMARY KEY, passwrd VARCHAR(50) NOT NULL, correo VARCHAR(50) NOT NULL, gender VARCHAR(2) NOT NULL, direccion VARCHAR(200), tel int ); CREATE TABLE Mensaje ( id int NOT NULL PRIMARY KEY AUTO_INCREMENT...
true
05b283f7f0eb24c73572be834b0b456e1f39547c
SQL
silpashinto/bamazon
/bamazon_db/bamazon.sql
UTF-8
1,534
4.09375
4
[]
no_license
drop database if exists bamazon ; create database bamazon ; USE bamazon; drop table if exists products; create table products(item_id integer(11) auto_increment not null, product_name varchar(100) not null, department_name varchar(100) not null, price DECIMAL(11,4) not NULL, stock_quantity integer(11) not null, pro...
true
a23d3e46c3ba844cec14c74a58a171dd5efe88d4
SQL
ahmadtechcampus2/ahmad4
/برنامج الامين المحاسبي/Bin/System/fnConnections_GetLanguage.sql
UTF-8
399
2.59375
3
[]
no_license
######################################################### CREATE FUNCTION fnConnections_GetLanguage() RETURNS [INT] AS BEGIN /* this function returns the language of current connection. 0 - arabic 1 - english */ RETURN (ISNULL( (SELECT [Language] FROM [connections] WHERE [HostName] = HOST_NAME() AND [HostId] = HOST...
true
48d986776b137e33aa294835cb5b272128779ec9
SQL
Project-Doper/czwong-SDC
/mysql.sql
UTF-8
3,176
3.203125
3
[]
no_license
-- --- -- Globals -- --- -- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- SET FOREIGN_KEY_CHECKS=0; -- --- -- Table 'Products' -- -- --- DROP TABLE IF EXISTS `Products`; CREATE TABLE `Products` ( `product_id` INTEGER NULL AUTO_INCREMENT DEFAULT NULL, `name` VARCHAR NULL DEFAULT NULL, `slogan` VARCHAR NULL DEFAULT ...
true
e183f91202edce6dd72325a1c6f8b9bac3411721
SQL
EllieMcQueen/helo
/db/get_post_by_title.sql
UTF-8
189
3.0625
3
[]
no_license
SELECT post.title, post.img, post.content, post.username, post.profile_picture, hp.author_id, post.id FROM post post JOIN user user ON user.author_id = user.user_id WHERE post.post_id = $1;
true
0615ab718344cb98337990c5ff64045a30d6ba71
SQL
mrjdomingus/SQL_Python_R
/SQL_FILE.sql
UTF-8
215
3.03125
3
[ "MIT" ]
permissive
--- 6) Read in SQL queries without copying and pasting --- We want to extract only records for ID '19228' and '19272' SELECT * FROM CURRENT_TABLE DAT WHERE ID_VAR IN ('ID_LIST') ORDER BY ID_VAR, SEQ_VAR
true
3263ea253748e1197ea0ac4a35f992b2e7767047
SQL
kpartain/launch-academy-assignments
/java-car-dealership/src/main/resources/db/migration/V1__add_cars_table.sql
UTF-8
236
2.578125
3
[]
no_license
CREATE TABLE car_dealership ( id SERIAL PRIMARY KEY, vin VARCHAR(20) NOT NULL, year INT NOT NULL, MAKE VARCHAR(255) NOT NULL, price INT NOT NULL, model VARCHAR(255) NOT NULL ); CREATE UNIQUE INDEX car_vin ON car_dealership(vin);
true
0fc38390de2450645e1b6dedf85c42168af333a9
SQL
CBailey589/chinook-ConnorBailey
/SQLqueries/total_sales_{year}.sql
UTF-8
281
3.796875
4
[]
no_license
SELECT YEAR(i.InvoiceDate) [Year], SUM(i.Total) [YearTotalSales] FROM Invoice i WHERE (i.InvoiceDate BETWEEN '2011-01-01 00:00:00.000' AND '2011-12-21 23:59:59.999') OR (i.InvoiceDate BETWEEN '2009-01-01 00:00:00.000' AND '2009-12-21 23:59:59.999') GROUP BY YEAR(i.InvoiceDate)
true
252d3c8c6326dfcc7734de2be8f62147ba618e84
SQL
shaoyulan/Hi24_New
/DB/hi24_new 2012.sql
UTF-8
13,077
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3307 -- Generation Time: Feb 12, 2019 at 08:35 AM -- Server version: 5.6.34-log -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
aa004d1481cd64192436afb7cdcb3b887744f155
SQL
ozi3ozi/royaltours
/royaltours.sql
UTF-8
52,408
2.625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 07, 2020 at 08:05 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4dc1b153d705217f4c3f5f89cd2bcf4b39ba5149
SQL
haileykim5418/night
/oracle/myTest.sql
UHC
1,368
3.234375
3
[]
no_license
DROP TABLE actors CASCADE CONSTRAINTS; CREATE TABLE actors(NAME VARCHAR2(13) CONSTRAINT PK_ACT PRIMARY KEY, JOB VARCHAR(10), GENDER CHAR(5), LOC VARCHAR2(15), FILM VARCHAR2(15)); DROP TABLE DRAMA CASCADE CONSTRAINTS; CREATE TABLE DRAMA (DNAME VARCHAR2(15) CONSTRAINT PK_DRAMA PRIMARY KEY, GENRE VARCHAR(10)); INSERT I...
true
62019f4a8d2e3e08788fb4a880140b49f90018a2
SQL
pipee26/TacoAdmin
/prueba01.sql
UTF-8
5,472
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 02-12-2018 a las 11:12:31 -- Versión del servidor: 5.7.17-log -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
4b13fed7a883fb54cfd380b549eed6e3be689474
SQL
rsantiestevanwork/mybcnc
/bcncard/tables.sql
UTF-8
1,949
2.890625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
INSERT INTO `Data` (`IDNUMBER`, `LAYOUT`, `TAG`, `TEXTFREE1`, `TEXTFREE2`, `TEXTFREE3`, `TEXTFREE4`, `TEXTFREE5`, `TEXTFREE6`, `TEXTFREE7`, `TEXTFREE8`, `TEXTFREE9`, `TEXTFREE10`, `TEXTFREE11`, `TEXTFREE12`, `TEXTFREE13`, `TEXTFREE14`, `NUMFREE1`, `NUMFREE2`, `NUMFREE3`, `NUMFREE4`, `NUMFREE5`, `NUMFREE6`, `DATEFREE1`...
true
f07e7bc9a58bfa4fd894488c54408548f6b67885
SQL
RLudchenko/internet-shop
/src/main/resources/init_db.sql
UTF-8
2,836
3.796875
4
[]
no_license
CREATE SCHEMA `internet-shop` DEFAULT CHARACTER SET utf8; CREATE TABLE `orders` ( `order_id` bigint NOT NULL AUTO_INCREMENT, `user_id` bigint NOT NULL, PRIMARY KEY (`order_id`), KEY `user_order_id_fk_idx` (`user_id`), CONSTRAINT `user_order_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_i...
true
99d74686c2c516af336d4908048f37161fe0c340
SQL
LarryLamEtml/SmartTheausorus
/scriptDb.sql
UTF-8
2,391
3.234375
3
[]
no_license
#------------------------------------------------------------ # Script MySQL. #------------------------------------------------------------ #------------------------------------------------------------ # Table: t_educanetFile #------------------------------------------------------------ CREATE TABLE t_educane...
true
49c6dd85318daf4b577c915665c25a75436600c7
SQL
radtek/abs3
/sql/mmfo/bars_intgr/View/vw_ref_sw_banks.sql
UTF-8
184
2.546875
3
[]
no_license
prompt create view bars_intgr.vw_ref_sw_banks create or replace force view vw_ref_sw_banks as select cast(bars.F_OURMFO_G as varchar2(6)) MFO, BIC, NAME from bars.sw_banks t;
true
511125928fe5fc6de43eebf204908f19453ff901
SQL
Aaronphilip2003/MOSH-SQL-SCRIPTS
/EXERCISE - 8.sql
UTF-8
105
2.53125
3
[]
no_license
-- Get the orders that are not shipped already SELECT * FROM sql_store.orders WHERE shipped_date IS NULL
true
d2acae5f18ebacb442a3c97ab68ef8ad4f5b40bf
SQL
GSxavier/Banco-de-Dados
/Optus.sql
IBM852
2,773
3.578125
4
[]
no_license
CREATE DATABASE Optus_Tarde; USE Optus_Tarde; CREATE TABLE TipoUsuario ( IdTipoUsuario INT PRIMARY KEY IDENTITY, Titulo VARCHAR(200) ); CREATE TABLE Usuario ( IdUsuario INT PRIMARY KEY IDENTITY, Nome VARCHAR (200), IdTipoUsuario INT FOREIGN KEY REFERENCES TipoUsuario (IdTipoUsuario) ); CREATE TABLE Artista...
true
369484e955aaf2e5393cb5287760dc952f0cc251
SQL
apex-kosova/Life-Insurance
/CONSTRAINTS/T_20_UW_CUS_IMG.sql
UTF-8
401
2.734375
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table T_20_UW_CUS_IMG -------------------------------------------------------- ALTER TABLE "T_20_UW_CUS_IMG" MODIFY ("R_K" NOT NULL ENABLE); ALTER TABLE "T_20_UW_CUS_IMG" MODIFY ("IMG_CONT" NOT NULL ENABLE); ALTER TABLE "T_20_UW_CUS_IMG...
true
2b8f59a30c7b97371e563d7d026bb230006dad1f
SQL
LAITRUNGMINHDUC/MVA_TSQL_Solution
/Lab1.sql
WINDOWS-1252
1,293
4.03125
4
[]
no_license
-- Lab 1 Introduction to Transact-SQL -- Challenge 1: Retrieve Customer Data -- 1. Retrieve customer details SELECT * FROM SalesLT.Customer; -- 2. Retrieve customer name data SELECT Title, FirstName, MiddleName, LastName, Suffix FROM SalesLT.Customer -- 3. Retrieve customer names and phone numbers SELECT SalesPer...
true
8a21c12bc734aa6b8290a00498aa2601fc5f5860
SQL
hakushi/oophp
/kmom04/game_db.sql
UTF-8
876
2.671875
3
[]
no_license
CREATE TABLE Game ( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, title VARCHAR(100) NOT NULL, console VARCHAR(100), publisher VARCHAR(100), genre VARCHAR(20), year INT NOT NULL DEFAULT 1900, image VARCHAR(300) ) ENGINE INNODB CHARACTER SET utf8; INSERT INTO Game (...
true
9aad64347e4cd15dea0ec765baf3f7e463e215bb
SQL
Kaper156/call_recognizer
/SQL/dump.sql
UTF-8
5,211
3.421875
3
[]
no_license
create table project ( id serial not null constraint project_pkey primary key, name varchar(256), description text ); alter table project owner to postgres; INSERT INTO public.project (id, name, description) VALUES (1, 'TestProject', null); INSERT INTO public.projec...
true
a7332ee8ac97739d1abf16367279281728884073
SQL
radtek/abs3
/sql/mmfo/bars/Function/f_get_ost.sql
WINDOWS-1251
4,029
3.46875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/f_get_ost.sql =========*** Run *** PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
c0e2c95fcc06e63a3879e76adaff53e9b3264b31
SQL
DpadamsX/DpadamsX
/views/ascendco/text_collection_plus.sql
UTF-8
804
2.875
3
[]
no_license
DROP VIEW IF EXISTS ascendco.text_collection_plus; CREATE OR REPLACE VIEW ascendco.text_collection_plus AS SELECT text_collection.id, text_collection.collection_name, coalesce(facility.name_,'') AS facility_name, (select count(*) from text_collection_item where collection_id = text_c...
true
4b3e7b57f1369f67ba586fc9ff89d0beef0fc8e9
SQL
lyswty/nowcoder-solutions
/数据库SQL实战/使用子查询的方式找出属于Action分类的所有电影对应的title,description.sql
UTF-8
173
3.59375
4
[]
no_license
select f.title, f.description from film f where f.film_id in(select fc.film_id from film_category fc, category c where fc.category_id = c.category_id and c.name = 'Action')
true
6610b307fc39be6d1a3611824771fa224b906eaa
SQL
ppzhuk/info_table
/databases/our/rtdb.sql
UTF-8
5,617
3.6875
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 05/15/16 13:29:31 -- Model: New Model Version: 1.0 -- 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='TRADITION...
true
87a6f1fddfdf45dcd3f4d8665004ad03c2811ff4
SQL
dappsh/ajeng-question-api
/question-rest.sql
UTF-8
1,487
3.90625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS `question-rest`; USE `question-rest`; -- Table structure for option DROP TABLE IF EXISTS `respondent_option`; CREATE TABLE `respondent_option` ( `id` int (9) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, PRIMARY KEY (id) ); INSERT INTO `respondent_option` (`id`, `name`) ...
true
db104581e6951b1ba78023ffa43a8443b34cbf2d
SQL
vezona/Php-Practice
/test.sql
UTF-8
545
3.109375
3
[]
no_license
INSERT INTO `address_book` (`sid`, `name`, `email`, `mobile`, `birthday`, `address`, `created_at`) VALUES ('2', '李曉明2', '123@gmail.com', '0922381933', '2000-04-05', '台北市大安區', '2020-11-05 15:37:56') -- SQL裡面文字的值一定要單引號標,日期中間用-,時間用: -- 結尾一定要有分號 UPDATE `address_book` SET `mobile` = '092238193' WHERE `address_book`.`s...
true
09d3bfe01b21e6bdc41bbfe0b0aaee6a2d874e01
SQL
K0sta/DSD
/DATABASE/FARMACY/VIEW/MovementItem/MovementItem_Check_View.sql
WINDOWS-1252
4,017
3.265625
3
[]
no_license
-- View: Object_Unit_View DROP VIEW IF EXISTS MovementItem_Check_View; CREATE OR REPLACE VIEW MovementItem_Check_View AS SELECT MovementItem.Id AS Id , MovementItem.ObjectId AS GoodsId , Object_Goods.goodscodeInt AS GoodsCode ...
true
10d9fdbf30a1f81d9ae9ad1065b6eec25c16ceab
SQL
jomedinas7/luciddb
/farrago/unitsql/optimizer/calc.sql
UTF-8
621
3.1875
3
[ "Apache-2.0", "GPL-2.0-only", "GPL-1.0-or-later" ]
permissive
-- $Id$ -- Test queries which instantiate the calculator (filter and/or project) set schema 'sales'; !set outputformat csv -- force usage of Fennel calculator for single expression explain plan for select lower(name), IN_FENNEL(empid + 1) from sales.emps; -- force usage of Fennel calculator alter system set "calcVir...
true
ae20711390a72462490fcda041711109c591a782
SQL
danslavov/Databases-Frameworks-Hibernate-SpringData-2018-MAR
/src/T06_DBApps/mySQL_queries.sql
UTF-8
4,628
4.375
4
[]
no_license
-- create DB and tables CREATE DATABASE minionsDB; USE minionsDB; CREATE TABLE towns ( town_id INT AUTO_INCREMENT PRIMARY KEY, town_name VARCHAR(50), country VARCHAR(20)); CREATE TABLE villains ( villain_id INT AUTO_INCREMENT PRIMARY KEY, villain_name VARCHAR(20), evilness VARCHAR(10)); CREATE TABLE minions ( minio...
true
d682bdbb71f80fad673a0e76a77376d50a10d742
SQL
zhongsangyang/mybatisplus-spring-mvc
/src/main/resources/doc/logback.sql
UTF-8
1,108
2.828125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
use `mybatis-plus`; DROP TABLE IF EXISTS `logging_event`; CREATE TABLE `logging_event` ( `timestmp` LONG NOT NULL, `formatted_message` TEXT NOT NULL, `logger_name` VARCHAR(255) NOT NULL, `level_string` VARCHAR(255) NOT NULL, `thread_name` VARCHAR(255) NOT NULL, `reference_flag` SMALLINT NOT NULL, `caller_...
true
70f2f4b0fe9efbcced4593e4fe0220e0282b1633
SQL
Pragith/PretendYoureXyzzy
/cah_cards.sql
WINDOWS-1252
59,951
3.0625
3
[]
no_license
-- Pretend You're Xyzzy cards by Andy Janata is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. -- Based on a work at www.cardsagainsthumanity.com. -- For more information, see http://creativecommons.org/licenses/by-nc-sa/3.0/ -- This file contains the Black Cards and White...
true
deff62bcb89b20d7df757cfd707c5e8a3d68a9ee
SQL
gabrielcrupa/Database-of-management-system-of-airport-
/cod-sql-tabele.sql
UTF-8
7,731
2.96875
3
[]
no_license
CREATE TABLE "ANGAJAT" ( "CNP" NUMBER NOT NULL ENABLE, "NUME" VARCHAR2(50) NOT NULL ENABLE, "PRENUME" VARCHAR2(50) NOT NULL ENABLE, "ADRESA" VARCHAR2(50) NOT NULL ENABLE, "TELEFON" VARCHAR2(20) NOT NULL ENABLE, "SALARIU" NUMBER NOT NULL ENABLE, "NR_LEGITIMATIE" NUMBER, "DATA_INSCRIERE" DATE...
true
6c6764bdc84ee99dfe134c70b570a5d5e5c26c95
SQL
camilo8/App_Evaluation
/BD/eval.sql
UTF-8
8,254
3.3125
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-02-2019 a las 22:50:02 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
4b0e22f6da3d7931d8678e8e90654904d24168d3
SQL
z1075315/etl_clone
/sql/top_full_adj_merch_lvl_cap_plng/1_2_Stage_Adjacency.sql
UTF-8
2,082
4.28125
4
[]
no_license
/* build the left and right hierarchy for all the hierarchy by concatenating department, subdepartment and category. */ --Insert Record-- CREATE OR REPLACE TABLE `{{params.project_ID}}.{{params.Optumera_Stage_DS}}.Stage_Adjacency` ( SALES_ORG STRING ,STORE_NO STRING ,VALLEY STRING ,AISLE STRING ,AISLESIDE ST...
true
c0c960ac5c380349158e5b367e0eb98392951c98
SQL
untxi/basesdatos
/Laboratorios-SQL/Lab Campos de Auditoria/6-bitacora.sql
UTF-8
577
3.359375
3
[]
no_license
---- DESDE AD --GRANT SELECT ON AD_BITACORA TO GE; --GRANT INSERT ON AD_BITACORA TO GE; ---DESDE GE CREATE OR REPLACE TRIGGER Employee_Update_Salary_Audi BEFORE update of SALARY on EMPLOYEE for each row begin INSERT INTO AD.AD_BITACORA (NOM_ESQUEMA,NOM_TABLA,NOM_CAMPO,FEC_CAMBIO,VALOR_ANTERIOR,VALO...
true
47a8fa9290a6ce403c4052fe9dceb418e5aa74b8
SQL
rythos42/SkillsDB
/db/Tables/Correction.sql
UTF-8
287
3.109375
3
[]
no_license
USE SkillsDB; CREATE TABLE IF NOT EXISTS Correction ( CorrectionId INT AUTO_INCREMENT NOT NULL PRIMARY KEY, SkillId INT NOT NULL, Problem VARCHAR(5000) NOT NULL, Reason VARCHAR(5000) NOT NULL, Correction VARCHAR(5000) NOT NULL, FOREIGN KEY (SkillId) REFERENCES Skill(SkillId) );
true
e79d8e37971264b6999f1326e697d71bba30cab6
SQL
edwinveenendaal/semesterofcode
/installation/db/drupal_soc.sql
UTF-8
6,826
3.578125
4
[]
no_license
CREATE TABLE IF NOT EXISTS `soc_agreements` ( `agreement_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT, `student_id` mediumint(8) unsigned NOT NULL, `supervisor_id` mediumint(8) NOT NULL, `mentor_id` mediumint(8) NOT NULL, `proposal_id` mediumint(8) unsigned NOT NULL, `project_id` mediumint(8) unsigned ...
true
fb12c72c3b3a9776ebf9951ebf28caf47f71794e
SQL
brajbhar/java-projects
/cyberom/db_script_in_sequence.sql
UTF-8
4,863
3.6875
4
[]
no_license
CREATE TABLE `tbl_state` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; CREATE TABLE `tbl_status` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) E...
true
9309584885bfe3242b3332fadd8998d7143d54f2
SQL
mbaugus/bootcamp_sql_queries
/SQLLearningDeletes.sql
UTF-8
206
2.734375
3
[]
no_license
delete from schedule WHERE ClassId in ( select id from class WHERE Description = 'English 101' ) select * from major delete from major where id = 3 --select * from schedule --select * from class
true
4e1ee19e1cf6ae2958922d01b03d15b1683c4b85
SQL
tjca1/Livraria
/tb_livros.sql
UTF-8
260,813
2.96875
3
[]
no_license
# MySQL-Front 3.2 (Build 14.8) /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='SYSTEM' */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */...
true
c509c9fe92abc1514112fe7a53c7b7b5e1dadfa8
SQL
krishnamohankaruturi/secret
/aart-web-dependencies/db/dml/698.sql
UTF-8
7,515
3.109375
3
[]
no_license
-- F510: F510 Student Tracker Enhancements INSERT INTO category(categoryname, categorycode, categorydescription, categorytypeid, originationcode, createddate, createduser, activeflag, modifieddate, modifieduser) VALUES ('EMERGENT', 'EMERGENT', 'Writing: emergent', (select id from categorytype where ty...
true
b4131fc5ad52b72117f04d87eed8a649137faab7
SQL
YannickGestin/nuitInfo
/db.sql
UTF-8
497
2.78125
3
[]
no_license
CREATE DATABASE nuit CHARACTER SET utf8; use nuit; CREATE TABLE Users ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, mail VARCHAR(50) NOT NULL, sexe CHAR(1), date_naissance DATE NOT NULL, nom VARCHAR(50), prenom VARCHAR(50), password VARCHAR(50), PRIMARY KEY (id) )ENGINE=INNODB; CREATE TABLE Covoitura...
true
df672d06ea86ba4b2ed27cf4c8a2966ea5bf4a12
SQL
NTXpro/NTXbases_de_datos
/DatabaseNTXpro/ERP/Tables/MovimientoTesoreria.sql
UTF-8
2,660
2.53125
3
[]
no_license
CREATE TABLE [ERP].[MovimientoTesoreria] ( [ID] INT IDENTITY (1, 1) NOT NULL, [IdEmpresa] INT NULL, [IdPeriodo] INT NULL, [IdCuenta] INT NULL, [IdTipoMovimiento] INT ...
true
ca8b96b9eb1e6524fe501efc6da8e80c51e2d3e7
SQL
amrendrabagga/SQLPractice
/leetcode/DeleteDuplicateEmails.sql
UTF-8
142
2.71875
3
[]
no_license
-- this is MySQL script with cte as (select min(id) as id from person group by email) delete from person where id not in (select id from cte);
true
26c2416c2bdafdc8388a08015a8b4c9a9a0a17ee
SQL
hamzaansarics/MYSQL-Scripts
/Exercise 1.sql
UTF-8
707
3.921875
4
[]
no_license
#Q-1) How we can filter Duplicate Data in a table ? select * from emp; #Q-2) How can we retrive portion of a column value -- pakistan , pak select substring(location,2,5) from emp; #Q-3) How to convert male to female & 1 to 0 update emp set gender = if(gender="M","F","M"),stats=if(stats=1,0,1) ; update emp set ge...
true
8a093583eb06184936ecd2a49c406e2673b580bb
SQL
ehdrb7900/dbSql
/191104.sql
UHC
8,220
4.125
4
[]
no_license
-- where 11 -- job SALESMAN̰ų Իڰ 1981 6 1 ȸ SELECT * FROM emp WHERE job = 'SALESMAN' OR hiredate >= TO_DATE('19810601', 'YYYYMMDD'); -- ROWNUM SELECT ROWNUM, emp.* FROM emp; -- ROWNOM -- ORDER BY SELECT Ŀ -- ROWNUM ÷ ǰ ĵDZ -- 츮 ϴ´ ù° ͺ ȣ ο ʴ´. SELECT ROWNUM, e.* FROM emp e ORDER BY ename; -- ORDER BY ...
true
09b05e4d7852c4a107795013e2e5f13bcec73e97
SQL
zhuangjunfeng/springNetty
/src/main/resources/sql/sems_air.sql
UTF-8
2,757
3.515625
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : wamp Source Server Version : 50612 Source Host : localhost:3306 Source Database : sems_air Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2017-01-19 19:46:56 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
true
dd32537ce3bd15ddfcf87abbf48d907d6ed5fe66
SQL
kanz-fikri99/promnetuas
/db_mahasiswa.sql
UTF-8
1,971
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 12 Jan 2021 pada 06.07 -- Versi Server: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
cac00a6863e108b2b74a023be79c0c55b223140f
SQL
JackLaBarba/dbt-lab
/models/marts/covid/county_model.sql
UTF-8
728
3.484375
3
[]
no_license
{{ config(materialized='table') }} {% set day = '_4_17_20' %} with confirmed_cases as ( select * from {{ ref('stg_confirmed_cases') }} ), census_acs as ( select * from {{ ref('stg_census_county_acs_2018') }} ), final as ( select census_acs.geo_id, confirmed_cases.county_name, ...
true
3e83cb711507315d4d8a8b3fc40c6645785fa1b9
SQL
apache/drill
/exec/java-exec/src/test/resources/window/first_value_range_current_current_baseline.sql
UTF-8
120
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT", "LicenseRef-scancode-unknown" ]
permissive
SELECT employee_id, position_id, sub, FIRST_VALUE(sub) OVER(PARTITION BY position_id, sub) AS `first_value` FROM %s
true
129a1e97afeb55db3cbd6b2452b00de2afeb8752
SQL
Ilia23/mptest
/gittest/gtds_db.sql
UTF-8
449
2.65625
3
[]
no_license
create table arbeitsliste ( supervisor_id VARCHAR2(30), benutzer_id VARCHAR2(30), reftab VARCHAR2(100), pk1 VARCHAR2(100), pk2 VARCHAR2(100), pk3 VARCHAR2(100), pk4 VARCHAR2(100), pk5 VARCHAR2(100), datetime Date ) CREATE SEQUENCE PAKET_ID_SEQ INCREMENT BY 1 MINVALUE 1 MAXVALUE 9999999999999999999999999999 ...
true
0ce2b9b0d05b6c7a00db63a025d4f02bfaac24db
SQL
vlftkak2/DataBase01
/서브쿼리.sql
UHC
1,099
4.28125
4
[]
no_license
---- --1 select COUNT(*) from EMPLOYEES where salary < (select avg(salary) from employees); --2 select EMPLOYEE_ID "",last_name "",salary "" from employees where (DEPARTMENT_ID,salary) in (select DEPARTMENT_ID,max(salary) from employees group by DEPARTMENT_ID) order by salary desc; --3 select a.JOB_TITLE, b....
true
c5d3e0689432ac627810abb1511e2f1cc9611d93
SQL
wrestrtdr/social-network
/u176311566_clasa.sql
UTF-8
9,377
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 27, 2017 at 12:28 PM -- Server version: 10.1.24-MariaDB -- PHP Version: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
a2de7ea02778ecf0092351f120a0b5320955c65c
SQL
andete/esb_db
/migrations/2018-03-12-150222_create_government/up.sql
UTF-8
536
3.203125
3
[]
no_license
CREATE TABLE government ( id SERIAL PRIMARY KEY, name VARCHAR NOT NULL UNIQUE ); CREATE UNIQUE INDEX government_name_idx ON government (name); INSERT INTO government (id, name) VALUES (16, 'Anarchy'), (32, 'Communism'), (48, 'Confederacy'), (64, 'Corporate'), (80, 'Cooperative')...
true
56a60cc5e9502011180bfb8db72f2335c834b5e8
SQL
krsteele/daily-journal-server
/dailyjournal.sql
UTF-8
3,815
3.671875
4
[]
no_license
CREATE TABLE `Entries` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `concept` TEXT NOT NULL, `date` INTEGER NOT NULL, `entry` TEXT NOT NULL, `mood_id` INTEGER NOT NULL, FOREIGN KEY(`mood_id`) REFERENCES `Moods`(`id`) ); CREATE TABLE `Moods` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCR...
true
a4a62e07bc1c95688ef6b0706811c3b3e167bb92
SQL
anastluc/ColorsOfTheWeb
/src/main/resources/db_creation.sql
UTF-8
1,151
3.71875
4
[]
no_license
-- CREATE USER 'colorsotw'@'localhost' IDENTIFIED BY '***'; -- GRANT USAGE ON *.* TO 'colorsotw'@'localhost' IDENTIFIED BY '***' -- WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; CREATE DATABASE IF NOT EXISTS `colorsotw`; GRANT ALL PRIVILEGES ON `colorsotw`.* TO ...
true
88e286d0a7a8e9c7322fc9eac16f73ab615a89e8
SQL
viktorstoilov/sk03extended
/mysql_test.sql
UTF-8
6,144
3.96875
4
[]
no_license
-- 1. Брой на потребители. select count(*) from users; -- 2. Най-стария потребител. select * from users order by birthDate asc limit 1; -- 3. Най-младия потребител. select * from users order by birthDate desc limit 1; -- 4. Колко юзъра са регистрирани с мейли от abv и колко от gmail и колко с различни от двата. union п...
true
87133f997501961ede14f5a735556375391c979b
SQL
limsubin/shopping_mall
/src/main/SQL/query.sql
UTF-8
14,438
3.953125
4
[]
no_license
CREATE DATABASE `shopping-mall`; -- //사용자 CREATE TABLE `shopping-mall`.`members` ( `index` INT UNSIGNED NOT NULL AUTO_INCREMENT, `email` NVARCHAR(50) NOT NULL, -- 이메일 `password` NVARCHAR(128) NOT NULL, -- 비말번호 `nickname` NVARCHAR(10) ...
true
21f5c282c34a500b8fae8f6c4dc6875a71e7d001
SQL
Gomez1Ever1/Revised-Portfolio
/seeds.sql
UTF-8
1,192
2.84375
3
[]
no_license
USE projects_db; DROP TABLE IF EXISTS Projects; CREATE TABLE Projects( id INT NOT NULL AUTO_INCREMENT, project_name VARCHAR(250), link VARCHAR(250), image_link VARCHAR(350), href VARCHAR(350), PRIMARY KEY(id) ); INSERT INTO Projects(project_name, link, image_link, href) VALUES ("EatDaBurger!", "https://eat-burger-da.he...
true
eda4d2b206f0b772fec9da2511c627e4ae307900
SQL
liveqmock/liyiwei.cfw
/docs/cfw.sql
UTF-8
6,979
3.5
4
[]
no_license
USE cfw; DROP TABLE IF EXISTS channel; CREATE TABLE channel ( id Int NOT NULL auto_increment, name Varchar(80) NOT NULL, seq Int, parentId Int, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS article; CREATE TAB...
true
deff98952942bf5b2baa30fa7f8fee061f687281
SQL
exZStas/ordering-system
/src/main/resources/data.sql
UTF-8
2,712
4.09375
4
[]
no_license
DROP TABLE IF EXISTS catalogue; DROP TABLE IF EXISTS user_order; DROP TABLE IF EXISTS catalogue_product; DROP TABLE IF EXISTS product; DROP TABLE IF EXISTS product_type; DROP TABLE IF EXISTS product_type_attribute_value; DROP TABLE IF EXISTS attribute_value; DROP TABLE IF EXISTS attribute; DROP SEQUENCE IF EXISTS order...
true
68464ddbb35d7a40d97aed26e30e0eac9de32254
SQL
programiko/java-library
/LibraryApp/WebContent/resources/db_files/db_library_book_publisher.sql
UTF-8
2,216
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: db_library -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
0ad018ac8d8e779f1030c6ee07b4ab44c643ff4f
SQL
IGNACIO199406/compensaciones
/db/compensaciones.sql
UTF-8
9,887
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 25-02-2019 a las 03:17:38 -- Versión del servidor: 5.7.21 -- Versión de PHP: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
32b79d63c6ac7ce9e29abed8fefebf550dc6e6a5
SQL
robdubrish/MYSQL-Homework
/UCI SQL Assignment/Sakila 6d.sql
UTF-8
198
3.3125
3
[]
no_license
USE sakila; SELECT COUNT(I.INVENTORY_ID), F.TITLE FROM FILM AS F INNER JOIN INVENTORY I ON F.FILM_ID = I.FILM_ID WHERE F.TITLE = 'HUNCHBACK IMPOSSIBLE' GROUP BY F.TITLE ;
true
25ebb5638e3e75e54e18bde24e6be8590cf01e4a
SQL
malgorzata-szczypior/DataScience_Course
/SQL/analytic_functions.sql
UTF-8
4,878
4.875
5
[]
no_license
/* Write a query to generate a list of employees with the following characteristics: · All employees must be returned. · The report must include the following columns from the table: Id, name, department_id, email. · The report must also include the following calculated columns: - The length of the email. ...
true
49ef9f9193106b0c935bf8b30644c7563c7d9c0e
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select1148.sql
UTF-8
177
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T11:48:00Z' AND timestamp<'2017-11-16T11:48:00Z' AND temperature>=4 AND temperature<=91
true
5d7eef1193c706ec8ff8b6595a3439b42f3f77bf
SQL
junior-upgi/overdueMonitor
/backend/sql_script/2016-10-19/maintenance_paymentTermRecord.sql
UTF-8
372
3.015625
3
[]
no_license
SELECT a.CUS_NO ,c.SNM ,'未建立客戶付款條件記錄' AS ISSUE ,'INSERT INTO UPGI_OverdueMonitor.dbo.paymentTerm VALUES ('''+a.CUS_NO+''',0,NULL,1,0);' AS INSERT_STATEMENT FROM UPGI_OverdueMonitor.dbo.observedClient a LEFT JOIN UPGI_OverdueMonitor.dbo.paymentTerm b ON a.CUS_NO=b.CUS_NO LEFT JOIN DB_U105.dbo.CUST c ON a.CUS_NO=c....
true
d14bf5aaaaa8686b8f8d0fe98629af073e7b4372
SQL
clarkdev700/patients_follow_up
/Optica/obj/Debug/tmp58FA.sql
UTF-8
15,062
3.1875
3
[]
no_license
CREATE SCHEMA dbo ; CREATE TABLE "dbo"."ActeMedicals"("Id" serial4 NOT NULL,"Code" text,"Designation" text,"DateEnreg" timestamp NOT NULL DEFAULT '-infinity',"Del" boolean NOT NULL DEFAULT FALSE,CONSTRAINT "PK_dbo.ActeMedicals" PRIMARY KEY ("Id")) ; CREATE TABLE "dbo"."Traitements"("Id" serial4 NOT NULL,"PrixAssur" f...
true
2f7512d37ad4d97f65141deccab8eb8b6589d77a
SQL
nonsene/training-path
/projeto-01-git/projeto-SQL/SQL Notes/Lession1.sql
UTF-8
7,346
4.1875
4
[]
no_license
/*Tente usar limitar-se a seguir ao escrever uma consulta que exibe todos os dados no occurred_at, account_ide channelcolunas da tabela de web_events, e limita a saída apenas para as primeiras 15 linhas. */ SELECT occurred_at, account_id, channel FROM web_events LIMIT 15; /*Escreva uma consulta para retornar os 1...
true
0534aa8c28db05870008eec9207106bd050b800f
SQL
tecumsehmaverick/sym-form-builder
/workspace/install.sql
UTF-8
97,022
3.078125
3
[ "MIT" ]
permissive
-- *** STRUCTURE: `tbl_fields_author` *** DROP TABLE IF EXISTS `tbl_fields_author`; CREATE TABLE `tbl_fields_author` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `field_id` int(11) unsigned NOT NULL, `allow_author_change` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL, `allow_multiple_selection` enum...
true
36e31d4148c1132f6996eade23b8b50eb77b86c8
SQL
JonathanRH07/Control-de-versiones
/DB ICAAVweb/Suite_mig_demo/Stored_Procedures/sp_fac_imp_ser_prov_c.sql
UTF-8
892
3.375
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`suite_deve`@`%` PROCEDURE `sp_fac_imp_ser_prov_c`( IN pr_id_imp_ser_prov INT, OUT pr_message VARCHAR(500)) BEGIN /* Nombre : sp_fac_imp_ser_prov_c Fecha : 05/09/2016 Descripcion : SP para consultar id_prove_servicio y id_impuesto. Autor : Odeth Negrete Cambios : */ DECL...
true
33da84d034ed281d244fd4ba029aaabbf7b0f41c
SQL
nsada/SocialQ-A
/socialSTRUCTURE.sql
UTF-8
20,920
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: social -- ------------------------------------------------------ -- Server version 5.7.15-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
ca074a1ebe931d59d131aa4dae457add2f91d91c
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day23/select1432.sql
UTF-8
191
2.921875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-22T14:32:00Z' AND timestamp<'2017-11-23T14:32:00Z' AND SENSOR_ID='1582cafa_4a33_42ff_bddb_8eed9c1e7667'
true
d71711f88b42d187e0e7a7713fe6302785d08d99
SQL
yujiansong/work-notes
/mysql/20180423.sql
GB18030
5,913
3.8125
4
[]
no_license
#ת mysql> show table status like '%ss_test%' \G; *************************** 1. row *************************** Name: ss_test Engine: InnoDB Version: 10 Row_format: Dynamic Rows: 34 Avg_row_length: 481 Data_length: 16384 Max_data_length: 0 Index_length: 0 Data_...
true
a1798a00ab224f4bdbfd11ec0d8e48cc15dbc31a
SQL
Cho-D-YoungRae/univ-lecture
/DataBase-Lecture/데베 자료/source/4장/b41_2.sql
UTF-8
269
3
3
[]
no_license
SELECT price+100 FROM Mybook WHERE bookid=3; SELECT SUM(price), AVG(price), COUNT(*), COUNT(price) FROM Mybook; SELECT SUM(price), AVG(price), COUNT(*) FROM Mybook WHERE bookid >= 4; SELECT * FROM Mybook WHERE price IS NULL; SELECT * FROM Mybook WHERE price='';
true
c6b44d107258f13deb1fd9eecdd27a9c48ffcef1
SQL
meera-ramesh19/sololearn-python
/sqladvancedclass/class4and5/hw problem 2.sql
WINDOWS-1252
324
3.578125
4
[]
no_license
/* Return orders and their order totals for orders that were above the average order total amount for the dates between 8/7 8/27. */ select [4P_Order], order_total from Shipping_Carrier where [order_total] > (select avg(order_total) from Shipping_Carrier where order_date between '08-07-2019' and '08-27-2019') ...
true
5f11cd4081a116309e87166e19bde1fc94ff8516
SQL
jiadaizhao/LeetCode
/0601-0700/0626-Exchange Seats/0626-Exchange Seats.sql
UTF-8
162
3.859375
4
[ "MIT" ]
permissive
SELECT s1.id, COALESCE(s2.student, s1.student) AS student FROM seat s1 LEFT JOIN seat s2 ON ((s1.id + 1) ^ 1) - 1 = s2.id ORDER BY s1.id;
true
06ebfaba6b9e7dd7b6fcb19eb8b91d191c0c1518
SQL
chathuri123/Curo_Education
/CuroEducation/web/database/studentinfo.sql
UTF-8
8,683
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 04, 2015 at 08:00 AM -- 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
6dd6ee0a8e2b9d35957d174a5ad330bb833223f4
SQL
applekw/477proj
/Web/lcwebapp.sql
UTF-8
7,031
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 15, 2012 at 12:30 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
56f2cb9f2c53401c1c95236ead62c75fd54ea3fe
SQL
danstoyanov/CSharp-Databases
/01 - [MS SQL Problems]/10 - [Subqueries and Joins - Exercise]/P02_AddressesWithTowns.sql
UTF-8
237
3.671875
4
[ "MIT" ]
permissive
SELECT TOP (50) e.FirstName, e.LastName, t.Name, a.AddressText FROM Employees AS e JOIN Addresses AS a ON e.AddressID = a.AddressID JOIN Towns AS t ON t.TownID = a.TownID ORDER BY e.FirstName, e.LastName
true
9ceaa82bdc2a7dfa96fdf1c870cc227a88d510fd
SQL
ayyappan3m/CRM
/crm.sql
UTF-8
3,450
3.109375
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2017 at 11:21 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
f57d3ad7bc10100506a816de33b8b1c4d4a82b1c
SQL
chekos/calabaza-bot-analytics
/models/getlogs_view/getlogs_view.sql
UTF-8
237
2.796875
3
[]
no_license
/* Cleaning up /logs into a nicer view to choose for /getlogs */ {{ config(materialized='view') }} with text_logs as ( select * from {{ source('calabaza', 'notes') }} where text is not null ) select * from text_logs
true
912bae58c02201eeb2cc6d2eb6801bc1b1128229
SQL
tain198127/lintcode
/mytest/src/main/resources/db/schema-h2.sql
UTF-8
330
2.734375
3
[]
no_license
CREATE SCHEMA SS_1; DROP TABLE IF EXISTS SHARDING_TEST; CREATE TABLE SHARDING_TEST ( id BIGINT(20) NOT NULL COMMENT '主键ID', REG_DATE DATE NULL DEFAULT NULL COMMENT '注册日期', name VARCHAR(255) NULL DEFAULT NULL COMMENT '姓名', SHARDING_KEY VARCHAR(50) NULL DEFAULT NULL COMMENT '分片id', PRIMARY KEY (id) );
true
b63089753924f9c85233725fe566fb8690f18317
SQL
shashank80-0/GeekSynergy
/database/geek_synergy_user.sql
UTF-8
2,880
2.953125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `geek_synergy` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `geek_synergy`; -- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: geek_synergy -- -------------------------------------...
true
0d5743504f76edf91c8c75416c7774cf5e236d4b
SQL
rrafaelramos/projeto_as
/projeto/sgpec.sql
UTF-8
9,695
3.28125
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 20-Dez-2018 às 13:43 -- Versão do servidor: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
ff97b8d0157d160ffff4e250c39508e404abc0bd
SQL
rockneu/misc
/sql_tip/ebs-多线路方案-预算迁移-获取待迁移预算行.sql
GB18030
2,986
3.859375
4
[]
no_license
/* SELECT SUM(TTL.PRICE) FROM ( */ SELECT -- TRS.ORGANIZATION_ID, -- TRS.BUD_YEAR, TRS.Center_Name -- TRS.BUD_TYPE, , TRS.ITEM_CAT2 --, TRS.ITEM_CAT2_DESC, , NVL(TRS.BUD_AMOUNT,0) Ԥ , NVL(TRS.RSV_AMOUNT,0) , NVL(TRS.USE_AMOUNT,0) ݿ , NVL(TRS.FINAL_AMOUNT,0) ʵ ...
true
d1b18b5d619b4221c637438b63a7e0e725a927d9
SQL
artlevan/blackburn
/Ruby/cs220/homework5/genretrackinfo.sql
UTF-8
168
3.15625
3
[]
no_license
SELECT m.title, m.length, ar.genre FROM mp3 m, artist ar, album a WHERE a.album_name = m.album_title AND a.artist_name = ar.artist_name ;
true