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
cfd1cc2e83d454b3d32621766817a0a12d7a3f3f
SQL
km-aero/SQLProject
/SQLProject.sql
UTF-8
5,219
4
4
[]
no_license
/*Q1.1*/ SELECT CustomerID, CompanyName AS 'Company Name', Address, City, Region, PostalCode AS 'Postal Code', Country FROM Customers WHERE (City IN ('Paris', 'London')); /*Q1.2*/ SELECT ProductID AS 'Product ID', SupplierID AS 'Supplier ID', CategoryID AS 'Category ID', ProductName AS 'Product Nam...
true
8367897738f876425d594dc4e991db06bf8ecf90
SQL
liwangadd/leetcode
/src/main/java/leetcode/T100_T200/T180.sql
UTF-8
167
3.34375
3
[]
no_license
SELECT DISTINCT l1.Num AS ConsecutiveNums FROM Logs l1 JOIN Logs l2 ON l1.Num = l2.Num AND l2.Id = l1.Id + 1 JOIN logs l3 ON l3.Num = l1.Num AND l3.Id = l1 .Id + 2
true
c61d06601148a4005ecdd242fc62da67cbeb0c0f
SQL
HTTPArchive/almanac.httparchive.org
/sql/2021/markup/html_dir.sql
UTF-8
880
3.625
4
[ "Apache-2.0" ]
permissive
#standardSQL # page almanac metrics grouped by device and html dir # returns all the data we need from _almanac CREATE TEMPORARY FUNCTION get_almanac_html_dir(almanac_string STRING) RETURNS STRING LANGUAGE js AS ''' try { var almanac = JSON.parse(almanac_string); if (Array.isArray(almanac) || typeof almanac ...
true
44ff30b56f37e793e0d14ea2c48ac8361a342dde
SQL
csmanioto/CTA
/adds/sql_reports/instance_kernel_details_qadev.sql
UTF-8
393
2.984375
3
[ "MIT" ]
permissive
select instance_type, aws_region, aws_region_name, instance_linux_distribution, instance_linux_kernel_version from aws_instances where workload_tag = 'QADEV' and instance_linux_kernel_version is not null group by instance_type, aws_region, aws_region_name, ...
true
468eb5ec84d41677073dd019099ea6dfa7d706dd
SQL
luisaugustomelo/pre-processing-srt
/docs/task1.sql
UTF-8
911
2.65625
3
[]
no_license
DROP DATABASE IF EXISTS crowdsub; CREATE DATABASE crowdsub; use crowdsub; CREATE TABLE task1(id int NOT NULL, start_legend TIME(3) NOT NULL, end_legend TIME(3) NOT NULL, legend VARCHAR(255) NOT NULL, PRIMARY KEY (id)); INSERT INTO task1 (ID, start_legend, end_legend, legend) VALUES (33, '00:09:32.622', '00:09:34.289'...
true
9985c242181c161ab61fc7636dff332f0ef48b63
SQL
ShaikhInaam/servicemarket-be
/src/main/resources/db/script-for-analysis-db.sql
UTF-8
265
2.578125
3
[]
no_license
CREATE SEQUENCE usage_analysis_seq; CREATE TABLE usage_analysis ( method VARCHAR(200) NOT NULL , operation VARCHAR(200) NOT NULL , url VARCHAR(500) NOT NULL , ip VARCHAR(200) NOT NULL ,id INT NOT NULL DEFAULT NEXTVAL ('usage_analysis_seq') , PRIMARY KEY (id));
true
2adcd82d122a2ba9888fc4701945d88a95e65159
SQL
lcapriles/GenDtl
/DB/GD_HM_ORTO_MORDIDAANT_CONSTRAINT.sql
UTF-8
373
2.546875
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table GD_HM_ORTO_MORDIDAANT -------------------------------------------------------- ALTER TABLE "GDCNO"."GD_HM_ORTO_MORDIDAANT" MODIFY ("CODIGO" NOT NULL ENABLE); ALTER TABLE "GDCNO"."GD_HM_ORTO_MORDIDAANT" ADD CONSTRAINT "GD_HM_MORDIDA_...
true
e9cd5b9a94324d60c35bc854d50f156fc8dc62dc
SQL
HHirpara/HarshMit
/SQL/MY_VEHICLE.sql
UTF-8
1,303
3.375
3
[]
no_license
CREATE TABLE `sharemyridewebservice`.`my_vehicle` ( `MY_VEHICLE_ID` BIGINT(20) NOT NULL, `VEHICLE_MAKE_ID` BIGINT(20) NOT NULL, `VEHICLE_MODEL_ID` BIGINT(20) NOT NULL, `STYLE` VARCHAR(45) NULL, `COLOR` VARCHAR(45) NULL, `TOTAL_SEATS` INT NULL, `CREATED_DATE` TIMESTAMP NULL, `MODIFIED_DATE` TIMES...
true
5eb63f5f47e4028190e974d390d699243bcb3e5b
SQL
cesar-gonzalez-sf/DesktopFX
/Deploy/config/Database/DesktopFX/MySQL/DESKTOPFX$LOGIN_PROFS.sql
UTF-8
2,062
3.84375
4
[]
no_license
DROP PROCEDURE IF EXISTS DESKTOPFX$LOGIN_PROFS; DELIMITER $$ CREATE PROCEDURE DESKTOPFX$LOGIN_PROFS ( -- ----------------------------------------------------------------------------- -- Copyright (c) OBCOM INGENIERIA S.A. (Chile). All rights reserved. -- -- All rights to this product are owned by OBCOM INGENIERIA S.A....
true
1efddcc44c5a1ae63cce6503a2b12f1517524f2e
SQL
hreskonorbert/NorthwindQueriesHresko
/task1.sql
UTF-8
179
3.796875
4
[]
no_license
SELECT ProductName AS Product, suppliers.companyname AS Company FROM Products INNER JOIN Suppliers ON products.supplierid = suppliers.supplierid ORDER BY Product ASC, Company ASC;
true
9026925791dd481ce137083ddf1a95260df8d082
SQL
openacs/lors
/sql/postgresql/lors-imsmd-sc-drop.sql
UTF-8
2,886
2.71875
3
[]
no_license
-- This is LORS IMS Metadata implementation of the FtsContentProvider -- service contract -- for manifests metadata select acs_sc_impl__delete ( 'FtsContentProvider', -- impl_contract_name 'ims_manifest' -- impl_name ); select acs_sc_impl_alias__delete ( 'FtsContentProvider', -- impl_contract_name...
true
b27ada3f5be4f20aad4c8b9e2765610fd64fb2cd
SQL
Hnineight98/PKL
/aset1.sql
UTF-8
2,351
3.1875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 28, 2019 at 01:34 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
a18dd7d758ff887551163d89ed753465c90e97a9
SQL
bobbylog/SQLQueries
/OldVersions/ChangeStudentStatusQry2.sql
UTF-8
2,513
3.609375
4
[]
no_license
drop table #TBCurTerm drop table #TBNextTerm drop table #TBCurActive drop table #TBNextActive SELECT dbo.studentstatus.StudentStatusID, dbo.StudentStatus.StudentUID, dbo.EnrollmentStatus.Status, dbo.EnrollmentStatus.EnrollmentStatusID into #TBNextTerm FROM dbo.TermCalendar INNER JOIN dbo.Stu...
true
cd8eee6f0f7ecc359d89248a570c90112a9c3679
SQL
j-cali/LeetCode
/src/easy/P196.sql
UTF-8
256
2.921875
3
[]
no_license
/** * Problem: 196. Delete Duplicate Emails * Link: https://leetcode.com/problems/delete-duplicate-emails/description/ * Date (MDY): 02/08/2018 * Notes: */ DELETE p1 FROM Person AS p1, Person AS p2 WHERE p1.Email = p2.Email AND p1.Id > p2.Id;
true
7f7d9bc1867aa4b4395e764011b9d18dd4e01377
SQL
SM-Leee/sql
/숫자함수.sql
UTF-8
1,287
3.703125
4
[]
no_license
-- ABS(x) : x의 절대값을 구한다. select abs(10), abs(-10); -- MOD(n,m) : n을 m으로 나눈 나머지 값을 출력한다. select mod(234, 10), 254 % 10; -- FLOOR(x) : x보다 크지 않는 가장 큰 정수를 반환한다. BIGINT로 자동 변환됨. select floor(1.23),floor(-1.23); -- CEILING(x) : x보다 작지 않은 가장 작은 정수를 반환한다. select ceiling(1.23), ceiling(-1.23), ceil(1.23), ceil(-1.23); -- R...
true
3d3a096aaf8611287378f95277acf3e551e774b4
SQL
reetsme/aemcommunities
/ui.content/src/main/content/jcr_root/libs/social/config/datastore/dsrp/schema/init-schema.sql
UTF-8
1,837
3.359375
3
[]
no_license
-- Soco init schema for communities -- version 1.0.0 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema communities -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `communities` DEFAULT CHARA...
true
7614bfc9aa81d80ee5c0e29df4614e02a1ed986f
SQL
sallyalrawi/Bamazon
/bamazon.sql
UTF-8
303
3.046875
3
[]
no_license
#DROP DATABASE IF EXISTS bamazon_DB; #CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products( item_id INT(10) NOT NULL auto_increment, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(45) NOT NULL, price INT default 0, stock_quantity INT default 0, PRIMARY KEY (item_id) );
true
4ea9da9c473979322874e636e50c78f06bf652dc
SQL
coderdude1/totp_experiment
/Common/src/main/resources/sql/common/V2__AddRoles.sql
UTF-8
553
3.921875
4
[]
no_license
CREATE TABLE ROLES ( id serial primary key, role varchar(40) NOT NULL UNIQUE ); -- ALTER TABLE ROLES ALTER COLUMN role SET NOT NULL; -- ALTER TABLE ROLES ADD CONSTRAINT UNIQUE(role); CREATE TABLE USER_ROLE ( user_id integer, role_id integer ); ALTER TABLE USER_ROLE ADD CONSTRAINT user_role_uk UN...
true
a60d963fdcbbf743c65d96b69a44e11b4594257f
SQL
vijaydairyf/TimelyFish
/PigChamp/caredata/Views/caredata.CFV_Sow_Delete.sql
UTF-8
773
3.53125
4
[]
no_license
 CREATE VIEW [caredata].[CFV_Sow_Delete] AS SELECT SUBSTRING(farm.[farm_name],1,8) AS FarmID , SUBSTRING(IH.[primary_identity],1,12) as SowID , ID.[tattoo] as AlternateID , IH.deletion_date as deletion_date FROM [caredata].[BH_IDENTITY_HISTORY] IH (NOLOCK) inner join [careglobal].[FARMS] far...
true
7c7b2f2c2aa017c4445febce122f45a829328697
SQL
benImran/Appartoo_Test
/database.sql
UTF-8
3,463
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Mar 11 Juillet 2017 à 02:50 -- Version du serveur : 5.6.35 -- Version de PHP : 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de données : `appartoo` -- -- -...
true
0f22128410368475ea5ef2b5b99a385bbf2bd624
SQL
MrDonatello/library
/sql/lib.sql
UTF-8
10,288
3.109375
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.18 -- Dumped by pg_dump version 10.18 -- Started on 2021-09-05 22:25:29 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_cata...
true
51b5bee39f50597bb70494694e3c086bbf8ff433
SQL
davidchoi220/cs262
/Lab08/monopoly-queries.sql
UTF-8
1,519
4.3125
4
[]
no_license
-- Get the number of Game records. SELECT * FROM Game ; -- Get the player records. SELECT * FROM Player ; -- Get all the users with Calvin email addresses. SELECT * FROM Player WHERE emailAddress LIKE '%calvin%' ; -- Get the highest score ever recorded. SELECT score FROM PlayerGame ORDER BY score ...
true
e091384d919ea2e8dfae1afdf72dc33556a0e25d
SQL
francolmenar-UC3M/Data-Bases
/Assignment-2/view A a pelo.sql
UTF-8
1,319
4.125
4
[]
no_license
CREATE OR REPLACE VIEW predictSerie AS( SELECT clientId, title, (episode+1) AS nextEpisode, season FROM( SELECT clientId, title, episode, season, validation, RANK() OVER (PARTITION BY clientId ORDER BY mostRecent desc) as ultimo FROM ( SELECT clientId, title, episode, season, validation, mostRecent from ( S...
true
eb7491d337f45e8f5e5279e644fb154bebe10d49
SQL
abhi741/CSE-7B-DWM-LAB
/lab2/B1/Lab2_07_PoonamAgrawal.sql
UTF-8
27,360
4.53125
5
[]
no_license
ROLL NO : B1-07 PRACTICAL NO. : 02 Aim: Write and Execute SQL aggregation queries for data warehouse. QUERIES: ---------------------------------------------------------------------------------------------------------------------------------------- Q1. Find the total sales by country_id and channel_desc for the US and...
true
8ae3c149d560409a26bf983b5b7437b008321622
SQL
Faserfso/SQL_EMIAS
/супп13.sql
UTF-8
660
3.90625
4
[]
no_license
SELECT routing_point.lpu_id, rO.volume_id, rO.datetime as take_in_datetime, jI.datetime as near_from_cardstore, rN.type, rN.name, rN.room_id FROM routing_journal rO JOIN routing_point ON rO.point_id = routing_point.id LEFT JOIN routing_journal jI ON jI.volume_id = rO.volume_id AND jI.datetime = (select m...
true
9976d782675e264b67aa7bd60017312d4e385a25
SQL
surajb24/PanProXRepo
/db/sex.sql
UTF-8
1,086
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 02, 2015 at 03:07 PM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
9edc60f609498edf26ee35ab0a0b0666660e7540
SQL
423x42/423x42.github.io
/lessons.sql
UTF-8
1,998
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 12 2020 г., 03:04 -- Версия сервера: 10.3.22-MariaDB -- Версия PHP: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
352ab0cadd23ec460fe5b7724af40cf36ec3e528
SQL
simplesoft-duongdt3/PythonCourse
/src/advanced_practice/SQLITE/Querry001.sql
UTF-8
878
3.328125
3
[ "MIT" ]
permissive
-- select e.EmployeeId,e.LastName,e.FirstName,e.Title ,e.City from employees AS e -- select e.EmployeeId,e.LastName,e.FirstName,e.Title ,e.City , e.address -- from employees AS e -- ORDER BY e.Address DESC -- select e.EmployeeId,e.LastName,e.FirstName,e.Title ,e.City , e.address -- from employees AS e -- WHERE E...
true
fa88e5a3883d65d4050b8dd295ea0f91ab8d18ca
SQL
KnPk11/Google_BigQuery_Notes
/Show discrepancies in the record count of a table.sql
UTF-8
1,046
4.15625
4
[]
no_license
-- Search for period-over-period discrepancies in the count of records grouped by date WITH raw AS ( SELECT DATE_TRUNC(DATE(datepartition), MONTH) AS time_interval, COUNT(*) current_count FROM `bigquery-analytics-workbench.gold_read.ff_sessions` WHERE DATE(datepartition) > (SELECT DATE_SUB(CURRENT_DATE...
true
c925b1ec4ee8cbfb915e85dfa8c8c47ab20fbf5b
SQL
nestorivanmo/sql-class
/lab-teoria/7-practica/scripts/s-04-oper-ddl.sql
UTF-8
2,994
3.5625
4
[]
no_license
--@Autor(es): Néstor Iván Martínez Ostoa --@Fecha creación: 19/04/2020 --@Descripción: Práctica 07 Complementaria - Caso 1 Prompt conectando nimo_p0701_oper connect nimo_p0701_oper/oper -- -- sequence: seq_empleado -- create sequence seq_pizzeria start with 10 increment by 3 min...
true
48d9f8a2d77a5923f798ea4e2100af95b37297f8
SQL
trieudev245/tech-overview-note
/database/sql/join.sql
UTF-8
2,383
4.375
4
[]
no_license
DROP TABLE IF EXISTS employee; DROP TABLE IF EXISTS department; CREATE TABLE employee ( id int NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, department_id int, salary int, PRIMARY KEY (id) ); insert into employee (name, department_id, salary) values ('cuong', 1, 2000); insert into employee ...
true
632ad28658ae322f0fc65453f37fdee172b828f0
SQL
HrudenIvan/library_servlet
/sql/library.sql
UTF-8
10,131
3.4375
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBST...
true
82ee7f389c323bf79b65a5fda6db8293a434bb62
SQL
damiana/puc_daw_2015
/exercicios/1_sem/modulo_1/desenvolvimentoAplicacoesWebPHP/daw_turismo_dump.sql
UTF-8
8,576
3.09375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: daw_turismo -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS...
true
76c1defe3384f3287019982866d6ed2ea9428633
SQL
ravi-krovvidi/project-management-application
/src/test/resources/schema.sql
UTF-8
545
3.265625
3
[]
no_license
CREATE TABLE IF NOT EXISTS employee ( employee_id BIGINT NOT NULL AUTO_INCREMENT, email VARCHAR(100) NOT NULL, first_name VARCHAR(100) NOT NULL, last_name VARCHAR(100) NOT NULL, PRIMARY KEY(employee_id) ); CREATE TABLE IF NOT EXISTS project ( project_id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NU...
true
e8d42128628d9919bbe4e4065622f6cc7057d10a
SQL
Eleazar1991/Curso-PHP
/23-Aprendiendo SQL/8-Vistas/vistas.sql
UTF-8
374
3.859375
4
[]
no_license
/*Mostrar las entradas y mostrar en vez del usuario_id el nombre del usuario y la categoria_id el nombre de la categoria*/ CREATE VIEW entradas_con_nombre AS SELECT entradas.titulo, usuarios.nombre AS "Autor", categorias.nombre AS "Categoria" FROM entradas INNER JOIN usuarios ON entradas.usuario_id=usuarios.id INNER J...
true
e57f5e0ee3375b0b98c7153715d61089bd7539c6
SQL
ducthanh512/MusicAppServer
/MySQLScripts/MusicDB.sql
UTF-8
1,289
3.40625
3
[]
no_license
CREATE DATABASE MusicDB; use MusicDB; CREATE TABLE topic( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, image VARCHAR(255) NOT NULL, PRIMARY KEY ( id ) ) ENGINE=INNODB; CREATE TABLE genre( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, image VARCHAR(255) NOT NULL, ...
true
f97ffd23253d5304fb3dddca4519e03b15179482
SQL
LapNV23/BT_PHP
/FPT_APTECH/list_ebookstore.sql
UTF-8
1,728
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th8 20, 2021 lúc 09:52 AM -- Phiên bản máy phục vụ: 10.4.19-MariaDB -- Phiên bản PHP: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
40afd0932e643cd8fd66b208d454740ebd85647e
SQL
ziyunli/pgexercises
/updates.sql
UTF-8
4,459
4.34375
4
[]
no_license
-- -- Insert some data into a table -- Question -- -- The club is adding a new facility - a spa. We need to add it into the facilities table. Use the following values: -- -- facid: 9, Name: 'Spa', membercost: 20, guestcost: 30, initialoutlay: 100000, monthlymaintenance: 800. -- INSERT INTO cd.facilities (fa...
true
12aa87f6e67b72e08146e44577d06df28e3e8645
SQL
andang72/architecture-community-studio
/src/main/resources/schema/database-mysql.sql
UTF-8
294
2.78125
3
[ "Apache-2.0" ]
permissive
-- testdb 생성 CREATE DATABASE islanddb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; -- test 계성 생성 CREATE USER 'studio'@'%' IDENTIFIED BY 'studio007A@'; -- testdb에 대한 권한을 test 에게 부여한다. GRANT ALL PRIVILEGES ON islanddb.* TO 'studio'@'%' WITH GRANT OPTION;
true
b15c984524c9465fd48d0c2d9f0363d85347ee82
SQL
jorgediazok/alkemy-sql-ejercicio1-2
/ejercicio1-2.sql
UTF-8
438
3.140625
3
[]
no_license
-- PUNTO 1 SELECT nombre, apellido, fecha_nacimiento from PROFESOR order by fecha_nacimiento; -- PUNTO 2 SELECT * from PROFESOR where salario >= 65000; -- PUNTO 3 SELECT * from PROFESOR where fecha_nacimiento like "%198_%"; -- PUNTO 4 SELECT * from PROFESOR where id <= 5; -- PUNTO 5 SELECT * from PROFESOR whe...
true
a2642bb8e239ab48cb76dd19ce6da57b4252c700
SQL
hetoney/173g4g
/04 SQLServer2005基础/第6章 课程设计/上机作业/17033081011段紫薇/建表.sql
GB18030
1,150
3.75
4
[]
no_license
--½ݱ ---Ʒ create table Category( ----ţԶ Cid int primary key identity(1,1), Cname nvarchar(20) not null unique, Description nvarchar(50) null ) --ƷϢ create table Ware( Wid int primary key , Wname nvarchar(20)not null unique, Cid int not null foreign key references Category(Cid), PurchasePrice float no...
true
04134ef4e22ed4800ce627f296cfd4b2f63f984c
SQL
UAMS-DBMI/PosdaTools
/posda/posdatools/queries/sql/SeriesInActivityWithProblematicCrossTalk.sql
UTF-8
849
3.84375
4
[ "Apache-2.0" ]
permissive
-- Name: SeriesInActivityWithProblematicCrossTalk -- Schema: posda_files -- Columns: ['sop_instance_uid', 'series_instance_uid', 'activity_id'] -- Args: ['activity_id'] -- Tags: [] -- Description: Get a list of series_instance_uid, sop_instance_uid, activity_id -- for all occurances of series in the latest activity_tim...
true
5eb0d005da2a3d5a4cb20424f8fa2dd1b6779c17
SQL
stilatore/lbi
/2015_05_28_MT2/sql.sql
UTF-8
751
4.34375
4
[]
no_license
WITH view_m_i AS ( SELECT c.country, c.city, COUNT(DISTINCT c.customer_id) AS m_i FROM sales_fact s JOIN customer c ON s.customer_id = c.customer_id WHERE c.gender = 'F' GROUP BY c.country, c.city ), view_t_i AS ( SELECT c.country, c.city, COUNT(DISTINCT c.customer_id) AS t_i FROM sales_fact s JOIN cust...
true
f96dee1f1bf87c9c82edaa10369270e6c5ec9680
SQL
Cycvez/casestudynosecurity
/casestudywithoutsecurity/CaseStudyNoSecurity.sql
UTF-8
1,630
3.375
3
[]
no_license
drop database if exists CaseStudyNoSecurity; create database CaseStudyNoSecurity; use CaseStudyNoSecurity; create table User( Id int primary key auto_increment, firstname varchar(30) not null, lastname varchar(30) not null, email varchar (45) not null, Phone varchar(50) not null, username varcha...
true
f959b3bf170b0ccb4b406b7a975506e4d410b30d
SQL
jimmyalf/temp
/Spinit.Wpc.Synologen.Database/dbo/Functions/sfContGetPageLinks.sql
UTF-8
1,334
3.703125
4
[]
no_license
create FUNCTION sfContGetPageLinks ( ) RETURNS @retTbl TABLE ( [FleId] INT NULL, [ObjId] INT NULL, [ObjName] NVARCHAR (50) NULL, [ObjDescription] NVARCHAR (4000) NULL, [Component] NVARCHAR (50) NULL) AS BEG...
true
862d734fbdeb0dfd729b0f0e0ba7c870b7701dd9
SQL
oryjk/crm
/src/main/resources/db/migration/V1_4__sms_temp_sql.sql
UTF-8
927
2.59375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50508 Source Host : localhost:3306 Source Database : phpok Target Server Type : MYSQL Target Server Version : 50508 File Encoding : 65001 Date: 2015-11-18 16:49:11 */ -- ----------...
true
1481eac5f76ee5401e19124fa41e0d7df6f19d83
SQL
dmensah1/museum-catalog
/assignment 3/sql/ex6.sql
UTF-8
565
3.3125
3
[]
no_license
USE `museum` ; -- insert new favourite INSERT INTO favoritedetails SELECT current_date(), v.visitorNo, 'Ancient Clothes' FROM visitor v WHERE v.name = 'Aitana Savage'; -- see artifacts SELECT f.*, v.name, v.email FROM favoritedetails f JOIN visitor v on v.visitorNo = f.visitorNo WHERE v.visitorNo = 75; -- update all...
true
28f27a00552b72dc0f1c176e4ed4765725df525b
SQL
GavinMendelGleason/gamook
/sql/db-init.sql
UTF-8
958
3.296875
3
[]
no_license
drop table if exists universe; create table worlds ( wid int(11) not null auto_increment, title varchar(100) not null, initial_state text not null, primary key (wid) ); drop table if exists worldstate; create table worldstate ( session_id int(11) not null auto_increment, ...
true
448838efde75af3225fa27df160ec18e4979294d
SQL
ghostproducer/mySqlStudies
/consultarEstados.sql
UTF-8
436
3.28125
3
[]
no_license
-- Seleciona todo o banco de dados select * from estados; -- Seleciona sigla e nome do estado mudando a label titulo da coluna -- select sigla as 'Sigla do Estado', nome as 'Nome do Estado' from estados -- where regiao = 'Norte' -- seleciona nome, regiao e populacao, filtrando populacao maior que 10 e ordena de ma...
true
751e736f8dc73c5b4dc1623a90be4a6f6cb6f379
SQL
des-tinyDM/grassrts
/db/data/getUserChart.sql
UTF-8
353
3.546875
4
[]
no_license
Select count(com.outcome), CONCAT(u.first_name,' ', u.last_name) as canvasser, u.user_id, com.outcome, e.event_id, e.event_name, e.starttime from communication com join users u on u.user_id = com.user_id join events e on com.event_id = e.event_id where u.user_id = $1 and endtime < current_date group by u.user_id, com.o...
true
adbc5027d0f6d36c47754ea041b04274485a88b6
SQL
frombetelgeuse/javaee-proj
/src/main/resources/db.sql
UTF-8
7,267
3.40625
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
6e09a6cc2e819ea27c92592b343894b04c9e63ee
SQL
ceccs18c35/Application-Software
/exp11/exp11.sql
UTF-8
1,199
3.421875
3
[]
no_license
USE lab_1; CREATE TABLE EMPLOYEE (CODE INT(10),NAME CHAR(20), DOB DATE NOT NULL,DESIGNATION CHAR(25), SALARY INT); INSERT INTO EMPLOYEE VALUES ('006','AMY','1989-04-24','PROJECT DESIGNER','80000'), ('014','RAYMOND','1976-02-08','SALES MANAGER','60000'), ('023','JAKE','1988-08-18','ACCOUNTANT','50000'), ('026','R...
true
6e6da68c28b2085786202f999587c30f3f467cab
SQL
monchito007/aparcamiento
/BBDD/aparcamiento.sql
UTF-8
1,228
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.8 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 09-09-2014 a las 12:45:18 -- Versión del servidor: 5.1.73-14.12 -- Versión de PHP: 5.4.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
0222a858a8711280efa458e868c4519852aa9d07
SQL
AntoshaChekhonte23/Instagram
/posts.sql
UTF-8
2,100
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 04 2020 г., 11:21 -- Версия сервера: 5.6.38 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
7647509fef231a89bc88c9c05c52537ef14e08fb
SQL
Ceregol/App-Web2
/Sistema Web trivias 2.2/SQL/crear_Pregunta.sql
UTF-8
451
2.859375
3
[]
no_license
Delimiter $$ DROP PROCEDURE IF EXISTS crear_Pregunta$$ CREATE PROCEDURE crear_Pregunta(in inId_Pregunta INT, in inTitulo VARCHAR(50), in inQuestion VARCHAR(300),in inDescripcion VARCHAR(45),in inId_Trivia INT) BEGIN insert into Pregunta(Id_Pregunta, Titulo,Question,Descripcion) values (inId_Pregunta, inTitulo,in...
true
e695b4884627cbba046a290b99e899f8429b03fd
SQL
dazrand/SQL-Class
/SQL-James/code.sql
UTF-8
6,002
4.8125
5
[]
no_license
-- to get familiar with the table - select 100 rows SELECT * FROM subscriptions LIMIT 100; -- get number of segments in table SELECT COUNT(DISTINCT segment) FROM subscriptions; -- determine range of months, get earliest date, start of any churn, and last churn date SELECT MIN(subscription_start) AS "start", MIN(subsc...
true
110288ec1a08a1bc06f5243e3f44ef926aa02c83
SQL
dnoonan1/bookWebApp
/src/main/java/edu/wctc/drn/bookwebapp/model/book.sql
UTF-8
197
2.75
3
[]
no_license
CREATE SCHEMA `book` ; CREATE TABLE `book`.`author` ( `author_id` INT NOT NULL AUTO_INCREMENT, `author_name` VARCHAR(80) NULL, `date_added` DATE NULL, PRIMARY KEY (`author_id`));
true
b0395af5b328f4b64eee41cee5706f9d803680fa
SQL
nataliascit/church
/payment-management-webapp/src/main/resources/data-h2.sql
UTF-8
837
2.78125
3
[]
no_license
/* INSERT INITIAL DATA FOR CHURCH. */ INSERT INTO `CHURCH` (`NAME`) VALUES ('PARÓQUIA SÃO JOAQUIM'); /* INSERT INITIAL DATA FOR PROVING TYPE */ INSERT INTO `PROVING_TYPE` (`NAME`, `MNEMONIC`) VALUES ('TALÃO', 'TLO'); INSERT INTO `PROVING_TYPE` (`NAME`, `MNEMONIC`) VALUES ('SEM COMPROVANTE', 'SCT'); /* INSERT INITIAL ...
true
713f6faa5fef31abce2f3ba1005ec5b2648fc612
SQL
Aswin-MN/personal
/scripts/database/mosip_regprc/ddl/regprc-biometric_exception.sql
UTF-8
1,721
3.546875
4
[]
no_license
-- create table section ------------------------------------------------- -- schema : regprc - Registration Processor -- table : biometric_exception - Registration processor Applicant's Biometric Exception details -- table alias : bioexcp -- schemas section ------------------------------------------------...
true
315451aa5189dfd119c06eab45f8dc27331e9e65
SQL
Gabrielgvl/lantern-challenge
/db/migrations/20210717163213_/migration.sql
UTF-8
513
2.90625
3
[]
no_license
/* Warnings: - You are about to alter the column `amount` on the `Transaction` table. The data in that column could be lost. The data in that column will be cast from `DoublePrecision` to `Decimal(65,30)`. - Added the required column `convertedAmount` to the `Transaction` table without a default value. This is n...
true
882d797823d0bac853b142ef722396a3f821b906
SQL
sandeshwani/HackerRank-solutions
/SQL/Basic Select/Weather Observation Station 3.sql
UTF-8
376
3.625
4
[]
no_license
/* Query a list of CITY names from STATION with even ID numbers only. You may print the results in any order, but must exclude duplicates from your answer. Input Format The STATION table is described as follows: Station.jpg where LAT_N is the northern latitude and LONG_W is the western longitude. */ SELECT DISTINCT...
true
01c9c56f6aef4b93a01aee0c21211ba59c0c584d
SQL
w407477841/zhlk
/src/sql/update20171219/t_warehouse_archives_his.sql
UTF-8
1,537
2.890625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50528 Source Host : localhost:3306 Source Database : zhlk Target Server Type : MYSQL Target Server Version : 50528 File Encoding : 65001 Date: 2017-12-19 10:19:34 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
054150013dd093b6cbca9986c428bb6bada2970b
SQL
Smotora/startjava
/src/com/startjava/lesson_5/querise.sql
UTF-8
531
3.1875
3
[]
no_license
SELECT * FROM Jaegers; SELECT * FROM Jaegers WHERE status = 'Y'; SELECT * FROM Jaegers WHERE mark IN ('5', '7'); SELECT * FROM Jaegers ORDER BY mark DESC; SELECT * FROM Jaegers WHERE launch = (SELECT MIN(launch) FROM Jaegers); SELECT * FROM Jaegers WHERE kaijuKill = (SELECT MAX(kaijuKill) FROM Jaegers); SELECT * ...
true
cf3069df9d39ed3a492e7c4c21fd70595b523dcf
SQL
nildiert/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/11-genre_id_all_shows.sql
UTF-8
348
3.921875
4
[]
no_license
-- Query to do a list with left joins -- This query lists movies with genre SELECT tv_shows.title, tv_show_genres.genre_id FROM tv_shows LEFT JOIN tv_show_genres ON tv_show_genres.show_id = tv_shows.id LEFT JOIN tv_genres ON tv_genres.id = tv_show_genres.genre_id ORDER BY tv_shows.title, t...
true
0b09ff89e65061f5bd1953e7b68e1c9c2595f58f
SQL
rohit-agg/bill-processing-system
/sql/Bill_Processing.sql
UTF-8
5,018
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 07, 2009 at 03:54 AM -- Server version: 5.0.45 -- PHP Version: 5.2.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `bill_processing` -- -- ---------------------------------------------------...
true
c919517d009ea0eb0af83a8d4b2b322c963bcc36
SQL
adangub/Barangay_28-C
/_sql/28c (blank).sql
UTF-8
30,034
3.6875
4
[]
no_license
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'; CREATE SCHEMA IF NOT EXISTS `28C` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; USE `28C` ; -- -----------------------------...
true
3b226566c5927c3787df1ff25acd7781c14d485c
SQL
anilchaurshiya22/EPOSTMAN
/src/main/resources/sql/create.sql
UTF-8
1,529
3.265625
3
[]
no_license
CREATE TABLE IF NOT EXISTS MAIL_BOX ( `ID` bigint(20) AUTO_INCREMENT NOT NULL, `CODE` varchar(255) NOT NULL, `NUMBER` int(11) NOT NULL, `STATUS` varchar(1) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS USER ( `ID` bigint(20) AUTO_INCREMENT NOT N...
true
6bf98da0f24d74526e61f1fffbbd66e1bae6ee8e
SQL
harirajibstest/SqlDevCloudTest
/SourceControlOracleRedGate/TEST_VSTSRedgate/Views/VEWOPTOUTSTANDING.sql
UTF-8
2,688
3.25
3
[]
no_license
CREATE OR REPLACE FORCE VIEW "TEST_VSTSRedgate".vewoptoutstanding (company,dealnumber,executedate,trader,initiator,dealtype,contracttype,exchangetype,counterparty,currency,bc,bp,sp,sc,baseamount,maturitydate,outstanding,tradetype,remarks,premiumamount,companycode) AS Select Pkgreturncursor.Fncgetdescription(Copt_Compan...
true
e695c12cb27dc1b2bb0282c9e5f9ea7b1aa687be
SQL
vramku/gtfs-transfer-matrix
/transfers_multi_table_part_2.sql
UTF-8
1,114
4.34375
4
[ "Apache-2.0" ]
permissive
drop table if exists gtfs_stops_nearby; create table gtfs_stops_nearby as select distinct p.stop_id , n.stop_id as nearby_stop from gtfs_stops p inner join gtfs_stops n on ST_DWithin(p.the_geom::geography, n.the_geom::geography, 150) inner join gtfs_stop_agency_map m on n.stop_id = m.stop_id where m.agency_id !='LI...
true
00048c3ffb9480212e5602ff4a270b9080ffaee4
SQL
dotnet/AspNetDocs
/aspnet/web-forms/overview/older-versions-getting-started/tailspin-spyworks/tailspin-spyworks-part-7/samples/sample13.sql
UTF-8
604
4.28125
4
[ "MIT", "CC-BY-4.0" ]
permissive
ALTER PROCEDURE dbo.SelectPurchasedWithProducts @ProductID int AS SELECT TOP 5 OrderDetails.ProductID, Products.ModelName, SUM(OrderDetails.Quantity) as TotalNum FROM OrderDetails INNER JOIN Products ON OrderDetails.ProductID = Products.ProductID WHERE OrderID IN ( /* This inne...
true
fdf6cf180ff600523ef14a821b44d620db66a200
SQL
22yuu/Sql
/수행평가/수행평가.sql
UTF-8
1,624
3.84375
4
[]
no_license
#날짜 : 2021/05/21 #이름 : 이진유 #내용 : 수행평가 DROP TABLE `tbl_user`; DROP TABLE `tbl_buy`; CREATE TABLE `tbl_user`( `userId` VARCHAR(10) PRIMARY KEY, `userName` VARCHAR(10) NOT NULL, `userHp` CHAR(13) NOT NULL, `userAddr` VARCHAR(100) ); CREATE TABLE `tbl_buy`( `userId` VARCHAR(10) NOT NULL, `prodName` VARCHAR(10) NOT...
true
5eb3dcb13702dec55fe21f797385e624b88266e5
SQL
AntoniadisPanos/Private_Scool-ConsoleApp-Ado.NET-SQL-Database-First
/SELECT_Queries/AssignmentPerCourse_List.sql
UTF-8
468
3.46875
3
[]
no_license
---------------Assignment Per Course------------------ SELECT Assignment.ID, Assignment.Title, Assignment.[Description], Assignment.SubDateTime, Assignment.OralMark, Assignment.TotalMark, Course.ID, Course.Title, Course.Stream, Course.[Type], Course.StartDate, Course.EndDate FROM AssignentsPerCourse ...
true
f7e37b05c97b16575ab29e79c938a933b016d6c1
SQL
gurpreet19/ec198392_wht
/Database/06_CVX_template/01_RP_Packages/RPBP_DISPATCHING_MAPPING.sql
UTF-8
3,194
2.84375
3
[]
no_license
-- START PKG_GEN_PKGS.sf_get_functions at:05/08/2019 03.38.57 AM CREATE or REPLACE PACKAGE RPBP_DISPATCHING_MAPPING IS FUNCTION GETCELLVALUE( P_CLASS_NAME IN VARCHAR2, P_OBJECT_ID IN VARCHAR2, P_ATTRIBUTE_NAME IN VARCHAR2, P_DAYTIME IN DATE) RETURN NUMBER; FUNCTION ...
true
1870d4ff07b339a765242ec66384ebadb9bcc44f
SQL
bradybyrd/REPO
/postgres/rlm/TABLE/locations.sql
UTF-8
537
2.6875
3
[]
no_license
-- Name: locations; Type: TABLE; Schema: public; Owner: deploy -- CREATE TABLE public.locations ( "LOCATION_ID" integer NOT NULL, "STREET_ADDRESS" character varying(255), "POSTAL_CODE" character varying(255), "CITY" character varying(255), "STATE_PROVINCE" character varying(255), "COUNTRY_ID" ch...
true
60302863eb7cf69c9783c376c83fec2f1118d16d
SQL
dpshkhnl/consultancy
/consultancy.sql
UTF-8
6,525
3.484375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : Local Mysql Source Server Version : 50626 Source Host : localhost:3306 Source Database : consultancy Target Server Type : MYSQL Target Server Version : 50626 File Encoding : 65001 Date: 2016-12-21 10:00:45 */ SET FOREIG...
true
ec310f1b4746a5208979b06b82d1a40b3400bb3e
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Scripts/Script-162089-rollback-02.sql
UTF-8
1,142
3.3125
3
[]
no_license
begin declare ln_contador number; cursor c_sga_intraway is select a.codcli, a.idproducto, a.macaddress_sga, a.macaddress_intraway, trunc(a.fecreg) from historico.actmacaddresspc_log a where trunc(a.fecreg) = sysdate and a.mac...
true
955a4e4b135475735f09854b2ae31f9e3b24aaaa
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day09/select1559.sql
UTF-8
191
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-08T15:59:00Z' AND timestamp<'2017-11-09T15:59:00Z' AND SENSOR_ID='a586c969_a92a_4086_b187_651cdf569dc6'
true
0e64cf5d472bd0ec91d42ce2df256ae14f9b91fd
SQL
nberardi/hMailServer
/trunk/source/DBScripts/Upgrade5002to5003MSSQLCE.sql
UTF-8
696
3.125
3
[]
no_license
drop table hm_acl create table hm_acl ( aclid bigint identity(1,1) not null, aclsharefolderid bigint not null, aclpermissiontype tinyint not null, aclpermissiongroupid bigint not null, aclpermissiondomainid bigint not null, aclpermissionaccountid bigint not null, aclvalue bigint not null ) ALTE...
true
00784a7659d5e7557c70fd434ed3cd51ddbac486
SQL
DataViva/dataviva-etl
/censo_escolar/ddl/create_SC_2011_ESCOLA.sql
UTF-8
6,017
2.6875
3
[]
no_license
use dataviva_raw; create table SC_2011_ESCOLA_BLOCO( dados varchar(2000) not null); load data local infile 'Y:/Censo Escolar/2011/DADOS/TS_ESCOLA.txt' into table SC_2011_ESCOLA_BLOCO character set 'latin1' fields terminated by '\t' lines terminated by '\n'; drop table if exists SC_2011_ESCOLA; create table SC_2011_E...
true
37d8c649d5dc1930aab14218f1022983f1ba1e41
SQL
john-zou/flexwork
/backend/sql/generated/insert_data_small.sql
UTF-8
7,967
2.984375
3
[ "BSD-2-Clause" ]
permissive
-- Features INSERT INTO feature VALUES (1, 'TV'); INSERT INTO feature VALUES (2, 'Private'); INSERT INTO feature VALUES (3, 'Conference Phone'); -- Employees -- INSERT INTO user VALUES (1, 'CLEFAIRYC.3', 'charizard.clefairy@icbc.com', 'Charizard', 'Clefairy', 'IT', 1); -- INSERT INTO user VALUES (2, 'DROWZEEM.4', 'ma...
true
ecf58cdbac64ca764a74a37d2901c9e4da6e03fc
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day24/select2250.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-23T22:50:00Z' AND timestamp<'2017-11-24T22:50:00Z' AND temperature>=47 AND temperature<=51
true
ca90b715abee631c2080403b960d2595127106f2
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Views/V_LIST_PLATEL.sql
UTF-8
324
3.4375
3
[]
no_license
-- -- V_LIST_PLATEL (View) -- CREATE OR REPLACE FORCE VIEW MASTER.V_LIST_PLATEL (ID, SHORT_NAME, PREDPR_NAME) AS SELECT DISTINCT KLS_PREDPR.ID, KLS_PREDPR.SHORT_NAME, KLS_PREDPR.PREDPR_NAME FROM KLS_PREDPR,KLS_DOG WHERE (KLS_PREDPR.ID = KLS_DOG.PREDPR_ID AND KLS_DOG.DOG_YEAR>1999) ORDER BY KLS_PREDPR.SHORT_NAME...
true
013d7883e5d1ac4b08533ad0436ca8fd05efc213
SQL
NavenAllen/VisioNITT
/visionitt/schema.sql
UTF-8
857
3.171875
3
[]
no_license
DROP TABLE IF EXISTS nitt_user; DROP TABLE IF EXISTS vehicle_entry; DROP TABLE IF EXISTS person_entry; CREATE TABLE nitt_user ( id INTEGER PRIMARY KEY AUTOINCREMENT, user_name VARCHAR(255) NOT NULL, nitt_id VARCHAR(255) UNIQUE NOT NULL ); CREATE TABLE person_entry ( id INTEGER PRIMARY KEY AUTOINCREMENT, pe...
true
a823860aa591455e75b5dccabee1c8a29433a837
SQL
MarianDCrafter/GommeHD.net-DevAthlon-2
/Runde1/Einsendung/database.sql
UTF-8
1,777
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 11. Jul 2015 um 14:50 -- Server Version: 5.6.25 -- PHP-Version: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4...
true
c11247d5d1c20c2ba0ae7294637d70e37dd5c210
SQL
VladT-Tempest/MisionTIC2022-Ciclo2
/Modelos proyecto/Sentecias SQL/SELECT.sql
UTF-8
830
3.515625
4
[ "MIT" ]
permissive
use sakila; -- comentario SELECT * FROM customer; SELECT first_name, last_name, email FROM customer; SELECT first_name, last_name, email FROM customer LIMIT 10; SELECT first_name, last_name, email, active FROM customer WHERE active = 0 LIMIT 10; SELECT first_name, last_name, email, active FROM customer WHERE active...
true
1bca534206050a6974b1782293d418fb0ce5fad9
SQL
zhengjr/bis
/sql/callcenter/mssql/install/065_create_view_S_DEBTOR_STATIONS.sql
WINDOWS-1251
1,088
3.875
4
[]
no_license
/* ???? */ CREATE VIEW S_DEBTOR_STATIONS AS SELECT DB.SURNAME AS SURNAME, DB.NAME AS NAME, DB.PATRONYMIC AS PATRONYMIC, DB.DATE_BIRTH AS DATE_BIRTH, DB.PASSPORT AS PASSPORT, DB.INDEX_RESIDENCE AS INDEX_RESIDENCE, DB.ADDRESS_RESIDENCE AS ADDRESS_RESIDENCE, DB.INDEX_ACTUAL AS INDEX_ACTUAL, DB.ADD...
true
4414b905548f59509ad8ae389c9709b6b3a50fb6
SQL
aadityatadas/nabhitsolutions
/html/application/data__1/tbl_eqp_upld.sql
UTF-8
1,016
2.828125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 100128 Source Host : localhost:3306 Source Schema : test_db_old Target Server Type : MySQL Target Server Version : 100128 File Encoding : 65001 Date: 20/07/2...
true
4881a40c98f0cecae07f97013adaeb2759faf5a1
SQL
datagrok-ai/public
/packages/UsageAnalysis/queries/extra_queries.sql
UTF-8
432
3.625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
--name: GetUsersInGroups --input: list groups --connection: System:Datagrok with recursive selected_groups as ( select id from groups where name = any(@groups) union select gr.child_id as id from selected_groups sg join groups_relations gr on sg.id = gr.parent_id ) select u.login from selected_groups sg join gr...
true
4a51027f88d422df88f2985cec6e192a15ea5c16
SQL
reolac/Java-4
/ICP_2151_Lab_2/src/main/resources/2-create.sql
UTF-8
798
3.3125
3
[]
no_license
CREATE TABLE student ( student_id VARCHAR(6), student_name VARCHAR(40), degree_scheme VARCHAR(40), PRIMARY KEY (student_id) ); CREATE TABLE `module` ( module_id VARCHAR(5), module_name VARCHAR(40), credits INT(2), PRIMARY KEY (module_id) ); CREATE TABLE staff ( staff_id VARCHAR(6), staff_name VARCHAR(40), gra...
true
f7ca29178ee2b8784bdc48d3c292076b37ccb40e
SQL
karrot0195/9Finder
/database/data_v1/9finder_v2.0.sql
UTF-8
17,231
3.484375
3
[]
no_license
/*database: 9finder*/ SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /* CREATEA TABLES */ CREATE TABLE `account` ( `token_id` char(24) COLLATE utf8_unicode_ci NOT NULL, `username` varchar(24) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(48) COLLATE utf8_unicode_ci NOT NULL, `fulln...
true
baf8112240cd305b5b2ae1b6cba260d3256de8d7
SQL
Missael-Peralta/Proyecto-final-sesiones-chat
/chat.sql
UTF-8
3,380
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 10-06-2021 a las 21:05:04 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
0b2cca0f7b865202750368956bec04808cfa3aa4
SQL
Salmon1900/SchoolIdan
/DB/SubjectTable.sql
UTF-8
275
2.796875
3
[]
no_license
DROP TABLE IF EXISTS t_subjects CASCADE; CREATE TABLE public.t_subjects ( subject_id serial NOT NULL, subject_name character varying(30) NOT NULL, isActive boolean DEFAULT true, PRIMARY KEY (subject_id) ); commit; ALTER TABLE t_subjects OWNER to postgres;
true
a9afe89c0f2eb112a3bdf7b1bf1f47fa6d3074d7
SQL
bjavanderdoef/NWD
/Database SQL Sample.sql
UTF-8
1,198
3.3125
3
[]
no_license
-- Sample SQL for creating the Orders table in Northwind (without check/default contrataints) CREATE TABLE Orders( OrderID int IDENTITY(1,1) CONSTRAINT PK_Orders PRIMARY KEY NOT NULL, CustomerID nchar(5) CONSTRAINT FK_Orders_Customers FOREIGN KEY REF...
true
6b8ed6af98c539b3c1abc611f65af6f09017ad3d
SQL
webster17/swabhav-tech
/sql-app/chap4/LeftOuterJoin.sql
UTF-8
84
2.5625
3
[]
no_license
SELECT * FROM Course c LEFT OUTER JOIN Prereq p ON c.course_number = p.course_number
true
38f62d90e74c2f3fb2b201560b02e5dc762cfe9c
SQL
Ch3shireDev/WIT-Zajecia
/semestr-4/Bazy danych 2/lab/Laboratorium BD03/lab_BD3_check.sql
UTF-8
335
2.75
3
[]
no_license
--Sprawdzenie liczności wierszy w tabelach select 'BD3_KATEGORIE' "Tabela", count(*) "Liczba wierszy" from bd3_kategorie union select 'BD3_KLUBY', count(*) from bd3_kluby union select 'BD3_WYNIKI', count(*) from bd3_wyniki union select 'BD3_ZAWODNICY', count(*) from bd3_zawodnicy union select 'BD3_ZAWODY', count(*) fr...
true
473860c620d6960ce1af0bb01b3a927df0940f49
SQL
tangya3158613488/add
/MySQL单表查询作业.sql
UTF-8
5,232
3.484375
3
[]
no_license
create database My_db; use My_db; 1.员工表 create table employee ( employeeid char(3) unsigned primary key not null comment '员工编号', name varchar(10) not null comment '姓名', gender enum('男','女') default '女' not null comment '性别', maritalstatus enum('是','否') comment '婚否', employeetime date not null comment '聘用日期', Email varc...
true
5880977d2565534c37268622348f24466800bc23
SQL
Abhishek2696-sources/EF-DEmo
/MVCWebApplication/MVCWebApplication.DAL/EmbeddedReources/EmployeeListAndFilter_DomainOwner.sql
UTF-8
2,761
3.984375
4
[]
no_license
DECLARE --@statusId AS INT, --will be passed from backend --@employeeName AS VARCHAR(50) , ----will be passed from backend --@employeeCode AS INT,--will be passed from backend --@resignationStatus AS VARCHAR(20),--will be passed from backend --@approvedFromDate AS DATE = null,--will be passed from backend --@approved...
true
45b264a9b74ef82fa62a09f75d326397df15cbe4
SQL
argenis1763/vc
/protected/data/SQL/categories_majors.sql
UTF-8
1,669
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-07-2014 a las 23:54:39 -- Versión del servidor: 5.5.36 -- Versión de PHP: 5.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
59943070122cae61169a3d0640a739ef226be689
SQL
anna199/cloud
/mysql/tenant/cmpe281-data-model-v2.0.sql
UTF-8
9,189
3.6875
4
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS `cmpe281`.`LP_TASK` ( `ID` INT NOT NULL, `DESC` VARCHAR(45) NULL, `OWNER` VARCHAR(45) NULL, `PLAN_START` DATETIME NULL, `PLAN_FINISH` DATETIME NULL, `DONE` VARCHAR(45) NULL) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `cmpe281`.`TENANT_TA...
true
d9229b76979ed8f8a74636106591b92117013375
SQL
soliverr/mview
/sql/create_dblink.sql
UTF-8
768
3.328125
3
[]
no_license
-- -- Create database link if it not exists -- set define on set verify off set serveroutput on define L_DB_LINK_NAME = &&ORA_DB_LINK_NAME declare l$cnt integer := 0; l$sql varchar2(1024) := ' create database link &&L_DB_LINK_NAME connect to excellent identified by "&&ORA_PASSWORD" using ''billing'' '; begin...
true