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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ecc898e640f02d4a74b45b19061848c23514dc2d | SQL | eubans/parking_monitoring | /storage/sql/monitoring_db_01312020_for_test.sql | UTF-8 | 13,023 | 3.453125 | 3 | [
"MIT"
] | permissive | -- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.5.35 - MySQL Community Server (GPL)
-- Server OS: Win32
-- HeidiSQL Version: 8.2.0.4675
-- --------------------------------------------------------
/*... | true |
501e133e5ff6d8f27a4796680da151760228e325 | SQL | pavelaltman/ams_src | /sql/DEL_END.SQL | UTF-8 | 1,089 | 2.671875 | 3 | [] | no_license | ALTER SESSION SET nls_date_language=RUSSIAN ;
ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MM-YY' ;
alter rollback segment myroll online ;
commit ;
set transaction use rollback segment myroll ;
delete cor_items where op_id in (select op_id from opers where op_date>='1-1-98') ;
commit ;
set transaction use rollback segment... | true |
78717ae4b1a305c960f4ecfbd67f29931ca263b9 | SQL | Erjon95/finalproject | /ticketplatform.sql | UTF-8 | 9,539 | 3.234375 | 3 | [] | no_license | -- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.4.8-MariaDB - mariadb.org binary distribution
-- Server OS: Win64
-- HeidiSQL Version: 10.2.0.5599
-- ------------------------------------------------... | true |
257e4380eeb09d12f44ca019e0245f2f4a8e37a0 | SQL | jmgold/SQL-Queries | /Testing/diversity audit.sql | UTF-8 | 6,459 | 3.578125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | /*
Jeremy Goldstein
Minuteman Library Network
In development query to serve as rough starting point for a collection diversity audit
Identifies diverse subject areas based on keywords in LC subjects
*/
--subquery to create a binary is_fiction field
WITH is_fiction AS(
SELECT
subjects.record_id,
CASE
WHEN subjects.s... | true |
2df60fae896f33cebb47676efcb864134e485be0 | SQL | ANTHONY-ROSMAEL/Formation-SQL | /création tables.sql | UTF-8 | 788 | 3.625 | 4 | [] | no_license | # pour faire un commentaire on utilse '#'
#ON crée la table emplyer uniquement si elle nexiste pas deja
CREATE TABLE IF not exists employes (
# Ici je vais préciser les colonnes de ma table :
# 1. Nom de ma colonne
# 2.le type de la colonne
# 3. NULL / NOT NULL
# 4.Si auto_increment ecrire AUTO_INCREMENT
# default perm... | true |
315f3e60c7cbd49a9f986d827e337cf5730f7b69 | SQL | eric-pommereau/mnt_france_srtm_90 | /bboxes.sql | UTF-8 | 2,447 | 3.09375 | 3 | [] | no_license | -- Récupérer les rasters SRTM sur http://srtm.csi.cgiar.org/SELECTION/inputCoord.asp
-- Calculer les BBOX de la France (métropole, DOM et COM)
SELECT 'Métropole' AS territoire, '' AS dept, ST_Extent(geom)::text as bbox FROM communes_201507_4326_10m WHERE char_length(dpt) < 3 UNION
SELECT 'Guadeloupe' AS territoire, '... | true |
aa6296ddd85dff81e26b3cc9c497b496d04c8946 | SQL | GreyCat20142017/captured | /sql/schema.sql | UTF-8 | 6,878 | 3.28125 | 3 | [] | no_license | #Однозначно, такая схема - это перебор. Но застарелые предрассудки пока победили...
DROP DATABASE IF EXISTS captured;
CREATE DATABASE captured DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
USE captured;
CREATE TABLE categories (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
name ... | true |
68f84d4bf882365ee2f9ffeb17bcd2fe093def81 | SQL | muthmainnah234/WBD-Tubes1-PrOjek | /database/wbd_projek.sql | UTF-8 | 4,914 | 3.21875 | 3 | [] | no_license | -- MySQL dump 10.16 Distrib 10.1.19-MariaDB, for Win32 (AMD64)
--
-- Host: localhost Database: localhost
-- ------------------------------------------------------
-- Server version 10.1.19-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_... | true |
8bf6bff117d512d5cbe1527cffa8657982aae345 | SQL | chimtrangbu/pSQL | /SQL_join/05.sql | UTF-8 | 206 | 3.3125 | 3 | [] | no_license | SELECT last_name as ref_last_name
FROM ((persons
INNER JOIN referees ON persons.id = referees.person_id)
INNER JOIN matches ON referees.match_id = matches.id)
WHERE stage_name = 'Final'
ORDER BY last_name;
| true |
4f842a5cc5e24495bda536fb7f61019bd6c42ed2 | SQL | bbence98/proman-javascript | /sample_data/proman_sample.sql | UTF-8 | 3,847 | 3.234375 | 3 | [] | no_license | --
-- PostgreSQL database dump
--
-- Dumped from database version 9.5.6
-- Dumped by pg_dump version 9.5.6
ALTER TABLE IF EXISTS ONLY public.boards DROP CONSTRAINT IF EXISTS pk_boards_id CASCADE;
ALTER TABLE IF EXISTS ONLY public.cards DROP CONSTRAINT IF EXISTS pk_cards_id CASCADE;
ALTER TABLE IF EXISTS ONLY public.s... | true |
334216462c1200a1d4a2ce1b66316a9860914268 | SQL | markuszabel/dv_sql | /durchsatz int5.sql | UTF-8 | 418 | 3.046875 | 3 | [] | no_license | SELECT
TIMESTAMPDIFF(SQL_TSI_HOUR,createddatetime,now()), count(recid) as "Anzahl Aufträge"
--month(createddatetime) as "Monat", dayofmonth(createddatetime) as "Tag", hour(createddatetime) as "Stunde", count(recid) as "Anzahl Aufträge"
FROM
"AX.PROD_DynamicsAX2012.dbo.WMSPICKINGROUTE"
WHERE
TIMESTAMPDIFF(SQL_TSI_... | true |
848d36e42eff1c737a9ef1ce992492b19f6aefef | SQL | avolok/azdo-sql-server-dba | /src/dba-db/Scripts/JobDelivery/Metadata-Jobs.sql | UTF-8 | 638 | 3.015625 | 3 | [] | no_license | TRUNCATE TABLE dbo.Jobs
INSERT INTO dbo.Jobs (
[name]
, [category_name]
, [description]
, [deployment_mode]
)
-- Job: dba - cycle errorlog'
SELECT
N'dba - cycle errorlog' AS [name]
, N'DBA Jobs' AS [category_name]
, N'Closes and cycles the current error log file by running [sp_cycle_errorlog]' AS [description]
, ... | true |
b01293f09cd274a5e6d5596a440506a0bc29a77a | SQL | ioa-maellak/sports_clubs_management | /database/sportsclub_29102015.sql | UTF-8 | 16,156 | 3.203125 | 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='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema mydb
-- -... | true |
67ab9af1e31396dfd07ff3700c13f3fc60037978 | SQL | MaximMikolaenko/yii2-setra | /db_dump/yii2_setra.sql | UTF-8 | 2,331 | 3.0625 | 3 | [] | permissive | -- --------------------------------------------------------
-- Хост: 127.0.0.1
-- Версия сервера: 5.6.43 - MySQL Community Server (GPL)
-- Операционная система: Win32
-- HeidiSQL Версия: 10.1.0.5464
-- --------------------------------------------------------
/... | true |
25974e0722caaf17fba365f097ab2e13a515831f | SQL | lemyskaman/launchers_and_scripts | /scripts/mysql/create_full_user.sql | UTF-8 | 520 | 2.78125 | 3 | [] | no_license |
CREATE USER 'kaman'@'localhost' IDENTIFIED BY 'password_change';
GRANT ALL PRIVILEGES ON *.* TO 'kaman'@'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
FLUSH PRIVILEGES;
CREATE USER 'kaman'@'localhost' IDENTIFIED BY '128162(... | true |
c6f583f301bb8dd148bedf8aef1698b0207959c6 | SQL | ppedvAG/SQL_Abfragesprache_Inhouse_VC_2020_09_08 | /SQL_Abfragesprache/SQL_Abfragesprache/011_TOP.sql | ISO-8859-1 | 1,531 | 4 | 4 | [] | no_license | -- TOP
-- ORDER BY zwingend notwendig
USE Northwind
-- nur die erste Zeile ausgeben
SELECT TOP 1 * -- erste Zeile, alle Spalten
FROM Customers
-- bestimmte Spalten der ersten Zeile
SELECT TOP 1 CustomerID, CompanyName
FROM Customers
-- aber WAS ist die erste Zeile??
--> ORDER BY
SELECT TOP 1 CustomerID, CompanyN... | true |
8120ba73c67381239072ff3f6d22a77528aa176a | SQL | biepin7/leetcode | /0501-0600/0595.SQL | UTF-8 | 143 | 2.8125 | 3 | [] | no_license | # Write your MySQL query statement below
SELECT
name,population,area
FROM
World
WHERE
area>= 3000000 or population >= 25000000
; | true |
06ec22dd415a0863f17b3fe1e7da5d3ca4d4cedf | SQL | roxanavp87/MySQL | /group_by_exercise.sql | UTF-8 | 521 | 3.734375 | 4 | [] | no_license | USE employees;
SELECT DISTINCT title
FROM employees.titles;
SELECT title
FROM employees.titles
GROUP BY title;
SELECT last_name
FROM employees.employees
WHERE last_name LIKE 'E%E'
GROUP BY last_name;
SELECT last_name
FROM employees.employees
WHERE last_name LIKE '%q%'
AND last_name NOT LIKE '%qu%'
GROUP BY... | true |
b18a8b740d5c875e00ff29ed54500aa0a1e70041 | SQL | pangxie1987/interfaceTest | /interfaceTest-demo/sql/testresult.sql | UTF-8 | 1,181 | 3.03125 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : 172.16.101.223
Source Server Version : 50719
Source Host : 172.16.101.223:3306
Source Database : testresult
Target Server Type : MYSQL
Target Server Version : 50719
File Encoding : 65001
Date: 2019-10-10 17:30:07
*/
SET FOREIGN_KEY_CH... | true |
f77eae3f027c334bfde43618561612d284dca037 | SQL | hyejin000112/portfolio | /target/classes/com/zerostress/controller/replyQnA.sql | UTF-8 | 486 | 2.65625 | 3 | [] | no_license | create table replyQnA(
rno number(10,0),
bno number(10,0),
reply varchar2(1000),
replyId varchar2(50),
replyPw varchar2(50),
replyDate date default sysdate,
updateDate date default sysdate
);
select * from replyqna;
create table replyqna(
rno int(10) primary key auto_increment,
bno... | true |
7056692973265def6fc122034cf0a0d6b94e6852 | SQL | elizhd/PIA | /src/main/resources/sql/contact.sql | UTF-8 | 1,957 | 3.015625 | 3 | [] | no_license | CREATE TABLE IF NOT EXISTS contact
(
contact_id INT(32) PRIMARY KEY AUTO_INCREMENT,
user_id INT(32) NOT NULL,
name varchar(50),
phone varchar(13),
email varchar(50),
company varchar(50),
address varchar(64),
FOREIGN KEY (user_id) REFERENCES user (id)
);
INSERT I... | true |
a91f96ff73a51c8329d6ce6f48549f63ce9a1edc | SQL | alialperyuksel/CENG352 | /Mini Project-1/q5.sql | UTF-8 | 1,489 | 4 | 4 | [] | no_license | select concat(to_b.day, '/', to_b."month", '/', to_b."year" ) as flight_date,
to_b.plane_tail_number,
from_s.arrival_time as flight1_arrival_time,
to_b.departure_time as flight2_departure_time,
from_s.origin_city_name,
from_s.dest_city_name as stop_city_name,
to_b.dest_city_name,
from_s.flight_time + fro... | true |
631285f82affa73dbe8fe0cb84c4d837d98afa2e | SQL | TargetAppsChile/BD | /societyrockbd.sql | UTF-8 | 10,128 | 3.359375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.1.12
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 12-04-2015 a las 00:35:20
-- Versión del servidor: 5.6.16
-- Versión de PHP: 5.5.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA... | true |
fc9bf16a5a9aaa32a858092296bfc1c06a536423 | SQL | ekzalt/201709-php | /07/db/db01.sql | UTF-8 | 4,310 | 4.0625 | 4 | [] | no_license | /* ------------------------------------------------ */
/* SQL - Structured Query Language */
/* ------------------------------------------------ */
/*
Виды операций:
DDL - (Data Definition Language – язык описания данных) - операции со структурой таблиц
DML - (Data Modification Language – язык модификации данных) -... | true |
31adbadffb5c1e0cb098aabab8ac72c155c6c9ce | SQL | mmadhulatha1/data_analysis | /src/main/sql/setup.sql | UTF-8 | 518 | 2.828125 | 3 | [] | no_license |
drop table if exists customers_dim;
drop table if exists email_addresses_dim;
create table customers_dim (id int, firstName varchar(100), lastName varchar(100), gender char(1));
create table email_addresses_dim (id int, email varchar(100));
LOAD DATA INFILE 'customers_dim.tsv'
INTO TABLE customers_dim
FIELDS TERM... | true |
351ef96f6a75f666dd95deda19dc019f1597c95e | SQL | djsavaliya/hostel-management | /databases/students.sql | UTF-8 | 631 | 3.609375 | 4 | [] | no_license | DROP TABLE IF EXISTS `students`;
CREATE TABLE `students` (
`student_id` int(11) NOT NULL AUTO_INCREMENT,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`date_of_birth` date NOT NULL,
`mobile` varchar(30) NOT NULL,
`email` varchar(255) NOT NULL,
`college_id` varchar(255) NOT NULL... | true |
334f1c5d10142ad4ea76b1470f5283a825859ae6 | SQL | wvanheemstra/core | /apps/photos/models/tables/structures/sql/tbl_photo.sql | UTF-8 | 1,113 | 3.171875 | 3 | [
"MIT"
] | permissive | /*
Navicat MySQL Data Transfer
Source Server : wvanheem_core_local
Source Server Version : 50509
Source Host : 127.0.0.1
Source Database : core
Target Server Version : 50509
File Encoding : utf-8
Date: 06/29/2012 12:40:59 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ... | true |
ac931cdb49d8e3834e95cbf5e10b3d237d0ac22a | SQL | ShaunaChow/ShaunaIsComing2.0 | /scripts/db.sql | UTF-8 | 3,838 | 3.40625 | 3 | [] | no_license | create database ShaunaIsComing;
use ShaunaIsComing;
-- 创建用户表
create table users (
id int primary key auto_increment,
mail varchar(255) unique ,
password varchar(255) ,
name varchar (255) ,
home varchar (255) ,
registdata date ,
type int
);
create index phoneindex on users (mail);
insert into users
(m... | true |
88c95cfdda1a01a5063b74e39b6c33e8277217dc | SQL | MEDHASHRIKHANDE/Students_Assessments | /feedback.sql | UTF-8 | 2,086 | 3.140625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 11, 2019 at 12:38 PM
-- Server version: 10.1.39-MariaDB
-- PHP Version: 7.3.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
63e87ea4b3ebae575ff1dc73e65c268559ecdab5 | SQL | socv/holiday_in_japan | /dst/MySQL/1966.MySQL | UTF-8 | 508 | 2.96875 | 3 | [] | no_license | CREATE TABLE IF NOT EXISTS `holiday` (`date` date NOT NULL, `description` text, PRIMARY KEY (date));
BEGIN;
DELETE FROM `holiday` WHERE `date` LIKE '1966-%';
REPLACE INTO `holiday` (`date`,`description`) VALUES
('1966-01-01','元日'),
('1966-01-15','成人の日'),
('1966-04-29','天皇誕生日'),
('1966-05-03','憲法記念日'),
('1966-05-05','こ... | true |
bfcfff76d2f1259c9ce877839f9b236e21d90d46 | SQL | waggle-sensor/beehive-server | /beehive-mysql/init.sql | UTF-8 | 6,590 | 3.28125 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | -- ANL:waggle-license
-- This file is part of the Waggle Platform. Please see the file
-- LICENSE.waggle.txt for the legal details of the copyright and software
-- license. For more details on the Waggle project, visit:
-- http://www.wa8.gl
-- ANL:waggle-license
SET GLOBAL default_password_lifetime = 0;... | true |
a4e618a8d194795fd5bb290bd8c2e2306d550c42 | SQL | michaelchandrag/fabelio-test | /database/fabelio.sql | UTF-8 | 8,041 | 2.8125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 05, 2020 at 01:54 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
513750e3a6ffc8e367a73a122b3f51b42305aa93 | SQL | Jepp0103/Database_Exercises | /Source code/MySQL/lecture 6/lecture_6_exercises.sql | UTF-8 | 7,048 | 5.09375 | 5 | [
"MIT"
] | permissive | use sql_store;
#1.From sql_store database, show following data: full name, phone number.
#Full name should be one column. If there is no phone number record, show “Unknown”.
select concat(first_name, " ", last_name) as full_name,
case
when phone is null then 'Unknown' else phone
end
as phone
from... | true |
6d525da2fd64125908c17e55e6914356db4b430f | SQL | jftucker/sql | /manipulating_data/updating_mult_rows.sql | UTF-8 | 201 | 2.8125 | 3 | [] | no_license | -- UPDATE invoices
-- SET
-- payment_total = invoice_total * 0.5,
-- payment_date = due_date
-- WHERE client_id IN (3, 4)
UPDATE customers
SET points = points + 50
WHERE birth_date < '1990-01-01' | true |
cbbbfc4742713494840df204dabffb1efd855cb8 | SQL | keymanky/sites | /TRES/Bd/sitio3.5.sql | UTF-8 | 1,501 | 2.953125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 05-07-2011 a las 04:14:37
-- Versión del servidor: 5.5.8
-- Versión de PHP: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SE... | true |
4350fe1d149367fa3870c1fadfd5b6e3addb5ec9 | SQL | paulobeckman/Phottrol | /databasePhottrol.sql | UTF-8 | 1,120 | 3.75 | 4 | [
"MIT"
] | permissive | CREATE TABLE "events" (
"id" SERIAL PRIMARY KEY,
"client_name" text NOT NULL,
"address" text,
"date_event" timestamp NOT NULL,
"cost" text NOT NULL,
"category" text NOT NULL,
"shift" text
);
CREATE TABLE "employees" (
"id" SERIAL PRIMARY KEY,
"office" text NOT NULL,
"name" text NOT NULL,
"birth" ... | true |
f5d07553f930f9e14f943223a799651751ec2a7e | SQL | ohthatmarissa/BlogSite.Solution | /blog_site.sql | UTF-8 | 7,198 | 3.625 | 4 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: May 23, 2019 at 04:52 PM
-- Server version: 5.6.38
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN... | true |
c13023a0a83f52ee8c3bc06078197b0ab19b1601 | SQL | SobrancelhaDoDragao/Exercicio-De-Programacao | /Exercicios-PHP/DAO/DAO.sql | UTF-8 | 1,422 | 2.8125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Tempo de geração: 09/05/2019 às 18:10
-- Versão do servidor: 10.1.38-MariaDB
-- Versão do PHP: 7.3.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @O... | true |
e3ae0f9ba7331a58257243db2bddad35b9ed00cf | SQL | leukothea/LegacySQLFromOldJob | /MonetaAuditTesting.sql | UTF-8 | 7,178 | 3.59375 | 4 | [] | no_license | sql += " ,skuc.skuAverageCost as skuWeightedAverageCost ";
sql += " left outer join skucalc skuc on sd.skuId = skuc.sku_id "
sql += " SELECT ";
sql += " sku_id ";
sql += " ,null::date as skuReorderDate ";
sql += " ,null::float as skuReorderAge ";
sql += " ,null::float as skuPrice ";
sql += " ,null::float as skuAvera... | true |
afdfdb83342fe78913fdbe60e4aa4da3bb27370c | SQL | jgarzonext/packages | /paquete body/PK_BONUS.sql | ISO-8859-1 | 2,973 | 3.359375 | 3 | [] | no_license | --------------------------------------------------------
-- DDL for Package Body PK_BONUS
--------------------------------------------------------
CREATE OR REPLACE EDITIONABLE PACKAGE BODY "AXIS"."PK_BONUS" IS
FUNCTION f_nbonus (zbonus IN NUMBER,fefecto IN DATE, fcuando IN DATE, pbonush OUT NUMBER)
-- fefect... | true |
274789fa5c2a2142c36e4481a6852e74bd1e0f5c | SQL | arun231096/ofs | /arunkumar.angappan/db/db.jdbc.exercise/tablesForService.sql | UTF-8 | 763 | 3.859375 | 4 | [] | no_license | CREATE TABLE sr_address (
PRIMARY KEY(id),
id BIGINT(20) AUTO_INCREMENT,
street VARCHAR(100) NOT NULL,
city VARCHAR(15) NOT NULL,
postal_code INT(11) NOT NULL
);
CREATE TABLE sr_person (
PRIMARY KEY(id),
UNIQUE KEY (email),
id BIGINT(20) A... | true |
6ce4321278d9d8b786eb834a976f5a75c56d2883 | SQL | sprokushev/Delphi | /MASTER/_DATABASE/Procedures/RENEW_KLS_PREDPR_AKCIZ.sql | UTF-8 | 1,267 | 3.171875 | 3 | [] | no_license | --
-- RENEW_KLS_PREDPR_AKCIZ (Procedure)
--
CREATE OR REPLACE PROCEDURE MASTER.Renew_Kls_Predpr_Akciz (DATE_BEG DATE:=TRUNC(SYSDATE,'MONTH') ,DATE_END DATE:=SYSDATE, param1 VARCHAR2:='', param2 VARCHAR2:='', param3 VARCHAR2:='') IS
BEGIN
/* UPDATE KLS_PREDPR_AKCIZ
SET (PLAT_ID, DATE_BEG, DATE_END, EX_SVID, EX_S... | true |
0c74b79892f734542dcdc1191ba6b16a90919552 | SQL | wonjongah/multicampus_IoT | /mariadb/chapter3_9.sql | UTF-8 | 215 | 2.6875 | 3 | [] | no_license | USE sqldb;
SELECT num, groupname, sum(price * amount) AS '비용'
FROM buytbl
GROUP BY groupName, num
WITH ROLLUP;
SELECT num, groupname, sum(price * amount) AS '비용'
FROM buytbl
GROUP BY groupName
WITH ROLLUP; | true |
50b279db542568b0aa09b9a116c3a85f2107e890 | SQL | zsaronja/AplikacijaDemo | /ApplicationDemoDatabase/DodajPrimateljaSP.sql | UTF-8 | 195 | 2.578125 | 3 | [] | no_license | CREATE PROCEDURE dbo.DodajPrimatelja
@ImePrezime varchar(50),
@BrojMobitela varchar(12)
AS
INSERT INTO dbo.Primatelji (ImePrezime, BrojMobitela) VALUES (@ImePrezime, @BrojMobitela)
RETURN 0 | true |
8d6cb604cda625402030d07fe968f77348e523b4 | SQL | KALYANIHF/KolkataPoliceLBZ | /public/kolkata_lal_bazar.sql | UTF-8 | 4,746 | 3.015625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 23, 2021 at 12:05 PM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 8.0.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
f8b90e721e702acf79a8a32ad30e367df4a6c0fc | SQL | opengauss-mirror/openGauss-server | /src/test/regress/sql/vec_numeric.sql | UTF-8 | 8,536 | 3.4375 | 3 | [
"LicenseRef-scancode-mulanpsl-2.0-en",
"LicenseRef-scancode-unknown-license-reference",
"PostgreSQL",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-warranty-disclaimer",
"curl",
"GPL-1.0-or-later",
"LGPL-2.1-or-later",
"LGPL-2.1-only",
"CC-BY-4.0",
... | permissive | ---- prepare work
DROP SCHEMA IF EXISTS vec_numeric_to_bigintger CASCADE;
CREATE SCHEMA vec_numeric_to_bigintger;
SET current_schema = vec_numeric_to_bigintger;
SET enable_fast_numeric = on;
---- NUMERIC IS NOT DISTRIBUTE KEY
CREATE TABLE vec_numeric_1 (v_id int, v_numeric_1 numeric(15, 2), v_numeric_2 numeric(10, 5))... | true |
5eabec66771b2c5cf860e7a69d5ea569b8e768bc | SQL | SafeBlues/pms | /sql-scripts/create_all_tables.sql | UTF-8 | 1,129 | 3.046875 | 3 | [] | no_license | CREATE TABLE `participants` (
`id` int NOT NULL AUTO_INCREMENT,
`first_name` varchar(255) DEFAULT NULL,
`last_name` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`account_type` varchar(255) DEFAULT NULL,
`participant_id` varchar(255) CHARACTER SET utf8... | true |
94ef7036b5d1f043f30ab10b768d34e907e68e5f | SQL | SpamLark/Work_SQL | /Banner/Student Record Wiki/EXAM COMMITTEES - Post-Exam Committee Processing - GRID (MMP).sql | UTF-8 | 2,034 | 3.640625 | 4 | [] | no_license | SELECT
a1.spriden_last_name AS "Student_Last_Name",
a1.spriden_first_name AS "Student_First_Name",
a1.spriden_id AS "Spriden_ID",
b1.shrtckn_term_code AS "Term_Code",
b1.shrtckn_crn AS "CRN",
b1.shrtckn_subj_code || b1.shrtckn_crse_numb AS "Module_Number",
--b1.shrtckn_ptrm_code AS "Part_of_Term",
--c1.term_co... | true |
b905a20dcb83bdd5e2107bf630bf4fc99480f008 | SQL | JustGiving/Cedar.EventStore | /src/Cedar.EventStore.Postgres/SqlScripts/GetStream.sql | UTF-8 | 259 | 3.53125 | 4 | [
"MIT"
] | permissive | SELECT streams.id_internal,
streams.is_deleted,
events.stream_version
FROM $schema$.streams
LEFT JOIN $schema$.events
ON events.stream_id_internal = streams.id_internal
WHERE streams.id = :stream_id
ORDER BY events.ordinal DESC
LIMIT 1; | true |
79741f47401068d1814791f741df63d308537e33 | SQL | moutainhigh/dubbo-basic-framework | /basic-core/src/main/resources/db/sql/test_area_code.sql | UTF-8 | 480,027 | 2.703125 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50521
Source Host : localhost:3306
Source Database : test-area
Target Server Type : MYSQL
Target Server Version : 50521
File Encoding : 65001
Date: 2021-08-13 14:04:11
*/
SET FOREIGN_KEY_CHECKS=0;
--... | true |
78e88b4cf54878f775cbe3701ae1ee618d2d202f | SQL | ISpectruM/Java_DB_Fundamentals | /A_Databases_Basics_MySQL/A_DataDefinition_Types/Exercises/p15_create_softuni.sql | UTF-8 | 850 | 3.953125 | 4 | [] | no_license | CREATE TABLE `towns`
(
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(20) NOT NULL
);
CREATE TABLE `addresses`
(
id INT PRIMARY KEY AUTO_INCREMENT,
address_text VARCHAR(50) NOT NULL,
town_id INT NOT NULL,
CONSTRAINT `fk_town_id` FOREIGN KEY(`town_id`) REFERENCES `towns`(`id`)
);
CREATE TABLE `departments`
(
id INT P... | true |
ce2da4f1dc0effa876188378a549e801337e59db | SQL | dfernandosales/erp-hermes-api | /migrations/sqls/20210213182417-users-up.sql | UTF-8 | 518 | 2.578125 | 3 | [
"MIT"
] | permissive | CREATE TABLE public.users (
id SERIAL PRIMARY KEY,
created_at TIMESTAMPTZ DEFAULT NOW(),
updated_at TIMESTAMPTZ DEFAULT NOW(),
deleted_at TIMESTAMPTZ DEFAULT NULL,
email TEXT UNIQUE NOT NULL,
password TEXT NULL,
role TEXT NOT NULL,
name TEXT NOT NULL
);
INSERT INTO public.users (email, password, rol... | true |
7bb96625478e68ca5cee9421ab503a8254d1892d | SQL | shanemcfadden/budget-api | /src/database/queries/transactions/findAllByBudgetId.sql | UTF-8 | 303 | 3.75 | 4 | [] | no_license | SELECT
transactions.id,
amount,
transactions.description,
date,
account_id AS accountId,
subcategory_id AS subcategoryId
FROM
transactions
JOIN accounts ON transactions.account_id = accounts.id
WHERE
accounts.budget_id = ?
ORDER BY
date DESC,
description ASC; | true |
3170a51f850a537ce97e4201639be7753d4bb86a | SQL | TJ34/Local-Brew | /db/brewery/beer_brewery.sql | UTF-8 | 243 | 3.28125 | 3 | [] | no_license | SELECT br.brewery_name, br.brew_logo, br.brewery_address, br.brewery_city, br.brewery_state, br.brewery_zip, br.lat, br.long, b.id, b.beer_name, b.beer_label FROM breweries AS br
JOIN beers AS b
ON br.brewery_name = b.brewery
WHERE br.id = $1; | true |
fb7eae00e60c456282d5e9e50c46613741a94018 | SQL | sunjava2006/202102 | /plsql/cursor.sql | GB18030 | 1,969 | 4.03125 | 4 | [] | no_license | set serveroutput on;
begin
update t_type set type_name=type_name;
dbms_output.put_line(sql%rowcount);
end;
/
select * from t_type;
--================== ʾα======ʾʹ======================
declare
cursor cur(a number,b number) is select * from t_type where type_id between a and b;
i t_type%rowtype;
begin
open cur... | true |
316a7347003632eaeef93e18bcb0e18f1f7f12c1 | SQL | jepsonXing/struts2-mvc-demo | /create_database.sql | UTF-8 | 1,446 | 3.015625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2018 年 01 月 10 日 03:50
-- 服务器版本: 5.6.12-log
-- PHP 版本: 5.4.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACT... | true |
6e542812e9b8928c40b1acfe9df9a515a2b5ddc1 | SQL | dbanalyticsco/facebook-ads | /models/transform/fb_ad_performance_adapter.sql | UTF-8 | 680 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | with fb_keyword_performance as (
select * from {{ref('fb_ad_insights_xf')}}
),
fb_keyword_performance_agg as (
select
date_day as campaign_date,
adset_id as ad_group_id,
adset_name as ad_group_name,
campaign_id,
url_host,
url_path,
utm_source,
... | true |
a6921dff6b0dd8553f619f4ab10f11f47ada143f | SQL | CUBRID/cubrid-testcases | /sql/_33_elderberry/cbrd_23916/cases/spec_01.sql | UTF-8 | 559 | 3.015625 | 3 | [
"BSD-3-Clause"
] | permissive | drop table if exists tbl;
create table tbl (a int);
insert into tbl values(3);
truncate tbl;
select count(*) from tbl;
truncate tbl cascade;
select count(*) from tbl;
drop tbl;
create table tbl (a int primary key);
insert into tbl values(3);
truncate tbl;
select count(*) from tbl;
truncate tbl cascade;
select count(*)... | true |
a4efdddfa1786a760e78e952d618cd90eeb391d8 | SQL | molokovskikh/af_analitf-net | /migrations/1068_00_pending_mail_logs.sql | UTF-8 | 591 | 3.515625 | 4 | [] | no_license |
create table Logs.PendingMailLogs (
Id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
WriteTime DATETIME not null,
SendLogId INTEGER UNSIGNED,
UserId INTEGER UNSIGNED,
primary key (Id)
);
alter table Logs.PendingMailLogs add index (SendLogId), add constraint FK_Logs_Pendi... | true |
c5138bdcdb20c47af19c0369ea64a1c7e45f8a7b | SQL | rahul1307ghosh/CodeFuryProject | /createDBsampleBackup.sql | UTF-8 | 9,707 | 3.4375 | 3 | [] | no_license | -- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.4.21-MariaDB - mariadb.org binary distribution
-- Server OS: Win64
-- HeidiSQL Version: 11.3.0.6295
-- -----------------------------------------------... | true |
3fc48d34849765d396f3592cdc3f8d98bd306fc2 | SQL | MrAfterglow/Afterglow_blog | /day05.sql | UTF-8 | 21,804 | 3.1875 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : tenxun
Source Server Type : MySQL
Source Server Version : 50722
Source Host : 132.232.37.25:3306
Source Schema : day05
Target Server Type : MySQL
Target Server Version : 50722
File Encoding : 65001
Date: 06/... | true |
698b6d786d925da9c8af9560187e50b50b415f8d | SQL | LangWenqi/spring_boot | /demo/src/main/resources/sql/staff.sql | UTF-8 | 1,265 | 3.515625 | 4 | [] | no_license | create table jl_staff (
id bigint(16) unsigned auto_increment comment '主键',
uid varchar(8) default '' comment '工号',
name varchar(16) default '' comment '姓名',
password varchar(32) default '' comment '密码',
phone varchar(16) default '' comment '手机号',
delete_flag tinyint(1) unsigned default 1 comment '删除标记(1:未删... | true |
b7a40f5b40004964e9a3f6a97003620b9982c186 | SQL | celiseanderson/3005-Project | /SQL/DDL.sql | UTF-8 | 3,341 | 4.03125 | 4 | [] | no_license | --DDL
--Elise Anderson
--100945395
--tested on postgres/pgadmin
--Note: some tables names were changed from schema so postgres/pgadmin would accept it
create table address --stores address by name/addressee
(addressee varchar(20),
street_num numeric(8, 0),
street varchar(20),
city varchar(30),
province ... | true |
e9c2b61815795ea963275ed054a09c91343fcdda | SQL | LauraGashi/Grupi20 | /Database.sql | UTF-8 | 475 | 2.671875 | 3 | [] | no_license | drop database if exist Register;
create database Register;
use Register;
Create table 'Form'(
'FirstName' varchar(20) NOT NULL,
'SecondName' varchar(20) NOT NULL,
'Email' varchar(200) NOT NULL,
'ConfirmEmail' varchar(200) NOT NULL,
'Password' varchar(200) NOT NULL
)ENGINE=InnoDB DEFAULT CHARSET=la... | true |
bc2de5ea91ca7bb92d546d736a5241c4dec6127e | SQL | WindCrowAya/simple_web_app | /src/main/resources/db/initDB.sql | UTF-8 | 339 | 2.71875 | 3 | [] | no_license | DROP TABLE IF EXISTS task_list;
CREATE TABLE task_list (
id INT AUTO_INCREMENT PRIMARY KEY,
description VARCHAR(100) NOT NULL,
execution_status VARCHAR(20) DEFAULT 'В процессе' NOT NULL,
importance_status VARCHAR(20) DEFAULT 'Есть время' NOT NULL,
last_update_date TIMESTAMP DEFAULT now() NOT NULL
)... | true |
1a41a1c8466d8734b6397c2b03808a569cbe7ccf | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/high/day20/select0055.sql | UTF-8 | 271 | 3.109375 | 3 | [] | no_license |
SELECT sen.name
FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci
WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='Thermometer' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['2065','6019','4074','5204','3066','2056','3100_5','5100_3','5029','5231'])
| true |
1b0cf58b1e2d40b9ed0cce4bb99e94f24ab8c6af | SQL | vitor-amartins/sql_learning | /projeto/create.sql | UTF-8 | 3,665 | 3.75 | 4 | [] | no_license | DROP TABLE Aula;
DROP TABLE Cursa;
DROP TABLE Projeto;
DROP TABLE Ic;
DROP TABLE Sala;
DROP TABLE Disciplina;
DROP TABLE Email;
DROP TABLE Professor;
DROP TABLE Aluno;
DROP TABLE Endereco;
DROP TABLE Licenciatura;
DROP TABLE Bacharelado;
DROP TABLE Curso;
-------------------------
CREATE TABLE Curso (
codigo NUMBER,... | true |
8a61e1182cde232febf1ea903e5f8a2d299ece5a | SQL | Aakarshan20/blog_2019 | /blog_2.sql | UTF-8 | 431 | 2.5625 | 3 | [
"MIT"
] | permissive | create table user(
user_id int unsigned not null auto_increment primary key,
user_name varchar(50) not null default '',
user_pass varchar(255) not null default ''
)engine myisam charset utf8;
insert into user(user_name,user_pass)values('admin', 'eyJpdiI6ImRJU2pcL2E1YWp2YTZ1TURcL1wvZW9aQ1E9PSIsInZhbHVlIjoiTlREbmQyRkYr... | true |
3b82216249bb811b5f56a743fe62c37f5e532b6e | SQL | AbderrahmenBelazzouz/TP2_BDDA_PLSQL | /DDL_EX1.sql | UTF-8 | 1,090 | 2.625 | 3 | [] | no_license | drop table produit;
drop table PRODUIT_Etranger;
drop table categorie;
CREATE TABLE Categorie (IDCategorie number NOT NULL, nom varchar(45) DEFAULT NULL,
PRIMARY KEY (IDcategorie));
CREATE TABLE produit (
IDP number NOT NULL,
designation varchar(20),
prixunitaire number(*,0),
IDca... | true |
00f651110cc787d1bf5eb05be8caa853e1c8d517 | SQL | gpipperr/OraDBASQLScripts | /awr_call_sqlmonitor_report.sql | UTF-8 | 1,086 | 2.765625 | 3 | [] | no_license | --==============================================================================
-- GPI - Gunther Pippèrr
-- Desc: create AWR report from sql*Plus
-- Date: 10.2015
--==============================================================================
prompt
prompt !!!!You need the Tuning Pack for this feature!!!!
p... | true |
b71295eacaaf6c26b5272c56c41ea61455309a32 | SQL | kimrharper/thinkful | /unit1/unit1-2-4-sqlpractice/unit1-2-4-drill-3.sql | UTF-8 | 192 | 3.890625 | 4 | [] | no_license | SELECT
stations.dockcount,
stations.name,
COUNT(trips.start_station) trip_count
FROM
stations
JOIN
trips
ON
stations.name = trips.start_station
GROUP BY
1,2
ORDER BY
dockcount DESC | true |
880bb8a9499d9481fedea2756caafaec9d48f01e | SQL | julimastieri/SolvdCourse | /MySQL/Queries.sql | UTF-8 | 3,995 | 4.03125 | 4 | [] | no_license | USE online_shop;
#INSERTS
INSERT INTO Users (`name`,`last_name`,`age`,`email`,`password`,`mobile`)
VALUES ('Julian','Mastieri',22,'julimastieri@gmail.com',1234,123456789);
INSERT INTO Users (`name`,`last_name`,`age`,`email`,`password`,`mobile`)
VALUES ('Valeria','Tottene',null,'vale@mail.com',1234,123456789);
INSER... | true |
2c2a5df7a8e3cf9a0a764ad8d50d29080f74e261 | SQL | VasiliKnyazev/videoplayer | /src/main/resources/data.sql | UTF-8 | 8,017 | 2.75 | 3 | [] | no_license | insert into public.roles (id, role) values(1, 'ROLE_ADMIN');
insert into public.roles (id, role) values(2, 'ROLE_USER');
insert into public.users (name, login, password, email) values('admin', 'admin', 'admin', 'rcalculator2021@gmail.com');
insert into public.users_roles (user_id, role_id) values(1, 1);
/*videos fro... | true |
2695e001cf94f6c30a4915a71eb09cf2cbd92ca8 | SQL | guoxuantong/web-technology-project | /Xfcwj45_my_publications.sql | UTF-8 | 5,869 | 3.09375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 22, 2019 at 11:04 AM
-- Server version: 5.7.23
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN... | true |
ed51558841275c2b3585af4cea363c27fb69c3b0 | SQL | havennow/sageone_test | /sageone.sql | UTF-8 | 5,651 | 3.03125 | 3 | [
"BSD-3-Clause"
] | permissive | # ************************************************************
# Sequel Pro SQL dump
# Versão 4499
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: xguizao (MySQL 5.6.16)
# Base de Dados: sageone
# Tempo de Geração: 2015-11-10 03:42:03 +0000
# ********************************************... | true |
35d8dfd2993311061b5ae9fe7e990c05240d67ac | SQL | bellmit/origin | /family_order/sql/TD_S_CPARAM/IsAgentTrade.sql | UTF-8 | 261 | 3.015625 | 3 | [] | no_license | SELECT COUNT(1) recordcount FROM dual
WHERE :TRADE_DEPART_ID
IN (SELECT PARAM_CODE FROM TD_S_COMMPARA T
WHERE SUBSYS_CODE='CSM'
AND PARAM_ATTR='7711'
AND PARA_CODE1='1'
AND SYSDATE BETWEEN START_DATE AND END_DATE) | true |
2cc973750f6998da7ad7e715dabfda9cc28c1f4b | SQL | kritsanayawichai/coffeeshop | /coffeedb.sql | UTF-8 | 10,265 | 2.96875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 26, 2019 at 07:24 AM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
223c3eaa11836480d8d6615f2b79f7163e8da2bf | SQL | kazuanzo/BulletinBoard | /src/main/resources/schema.sql | UTF-8 | 1,526 | 3.78125 | 4 | [] | no_license | drop table if exists station cascade;
drop table if exists comment cascade;
drop table if exists board cascade;
drop table if exists board_type cascade;
drop table if exists account cascade;
create table if not exists station(
id int not null AUTO_INCREMENT,
station_name varchar(255) UNIQUE not null,
PRIMARY ... | true |
c5bd11c014d597573b5025777ed669624f0b0374 | SQL | achmadnabawi/sparkdata | /zlj/project/task/weibo/visualization/t_zlj_visual_weibo_baseinfo.sql | UTF-8 | 3,757 | 3.796875 | 4 | [] | no_license |
-- 418363499
-- step1
-- 关联基本信息与 教育 事业数据
DROP table t_zlj_visual_weibo_baseinfo ;
create table t_zlj_visual_weibo_baseinfo as
select
t1.id as weibo_id ,t1.screen_name,
case when LENGTH(t4.birthday)>6 and 2016 -CAST (split(t4.birthday,'-')[0] as int ) >10 and 2016 -CAST (split(t4.birthday,'-')[0] as int )<75
then... | true |
61bf40dc5f6294d158b6d6ba9e1ccc7c742088b3 | SQL | Abdulrahman2k/Fusion | /PTE_RATE_CARD_CONTRACTS.sql | UTF-8 | 2,183 | 3.25 | 3 | [] | no_license | --------------------------------------------------------
-- File created - Saturday-August-15-2020
--------------------------------------------------------
--------------------------------------------------------
-- DDL for Table PTE_RATE_CARD_CONTRACTS
--------------------------------------------------------
... | true |
77b13e3cf506f3afd89807e303ec2066303b2af9 | SQL | IWS-MS/Musterloesung | /basket/basket/dbscripts/seed.sql | UTF-8 | 1,291 | 4 | 4 | [] | no_license |
-- Table: public."Baskets"
-- DROP TABLE public."Baskets";
CREATE TABLE public."Baskets"
(
"Id" integer NOT NULL GENERATED BY DEFAULT AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ),
"CustomerId" integer NOT NULL,
CONSTRAINT "PK_Baskets" PRIMARY KEY ("Id")
)
TABLESPACE pg_defa... | true |
86215db3a4899fa98386b4791cbc98d1034ff19a | SQL | ruhengChen/automatic_tools4.0 | /tools/20170426/AP/AP_ODS_GAS_CUX_GL_OCR_SEQUENCE.SQL | GB18030 | 1,006 | 2.84375 | 3 | [] | no_license | SELECT 'Rows updated:',COUNT(1) FROM (SELECT 1 FROM DELTA.GAS_CUX_GL_OCR_SEQUENCE WHERE ETL_FLAG IN ('A','D','I')) S;
----ܣɾ
DELETE FROM GAS.CUX_GL_OCR_SEQUENCE WHERE JOB_SEQ_ID= New_JOB_SEQ_ID;
--
INSERT INTO GAS.CUX_GL_OCR_SEQUENCE(SEQUENCE_NUM,TRX_DATE,ORG_NUM,USER_NUM,ORIGINAL_TRX_CODE,CHECK_USER_NUM,APPROVE_FLAG,... | true |
18d38ce427ab3338133469599f22f25f9ed8f4d0 | SQL | vasilgramov/database-fundamentals | /DatabasesBasicsMySQL/Exam/AirportManagementSystem/14.sql | UTF-8 | 328 | 3.796875 | 4 | [] | no_license | SELECT f.flight_id, f.departure_time, f.arrival_time, air1.airport_name, air2.airport_name
FROM flights AS f
INNER JOIN airports AS air1
ON f.origin_airport_id = air1.airport_id
INNER JOIN airports AS air2
ON f.destination_airport_id = air2.airport_id
ORDER BY
f.departure_time DESC,
f.flight_id ASC
L... | true |
293a9038ad6c3a05b20a69e7e78ae453a45398ec | SQL | Jjcastiblanco/colegio_bd | /colegiobd (2).sql | UTF-8 | 7,443 | 3.21875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 14-10-2021 a las 07:14:09
-- Versión del servidor: 10.4.18-MariaDB
-- Versión de PHP: 7.3.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
1463d88e3e363f14f7b299a6817dee3491c95f06 | SQL | AomsinPtrc/SPShop | /sql/smartwatch.sql | UTF-8 | 13,871 | 3.421875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 08 เม.ย. 2020 เมื่อ 07:43 PM
-- เวอร์ชันของเซิร์ฟเวอร์: 10.4.11-MariaDB
-- PHP Version: 7.2.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!4... | true |
99919e3e09f40806681586e3b5fb520ebb7fe571 | SQL | Aleksiysh/stepic_trenager_SQL | /Abiturient/3.4.02.sql | UTF-8 | 501 | 3.671875 | 4 | [] | no_license | CREATE TABLE applicant AS SELECT program_id,
enrollee_subject.enrollee_id,
SUM(result) AS itog FROM
enrollee
JOIN
program_enrollee USING (enrollee_id)
JOIN
program USING (program_id)
JOIN
program_subject USING (program_id)
JOIN
enrollee_subject ON program_subj... | true |
c6bde01b984ae2065ee397d2f0ec125f78473350 | SQL | MartinSteffen/coma | /php2/sql_dumps/rights_structure.sql | UTF-8 | 1,293 | 2.984375 | 3 | [] | no_license | # phpMyAdmin MySQL-Dump
# version 2.2.3
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Dec 05, 2004 at 02:20 PM
# Server version: 3.23.47
# PHP Version: 4.1.1
# Database : `coma`
# -------------------------------------------------... | true |
b98401d722f53e20d752a2c48cc8f160682cb1a8 | SQL | sdss/sdssdb | /schema/sdss5db/apogee_drp/visit/apogee_drp_visit_indexes.sql | UTF-8 | 1,764 | 2.890625 | 3 | [
"BSD-3-Clause"
] | permissive |
CREATE INDEX apogee_id_pk
ON apogee_drp.visit (apogee_id); -- takes a long time, but doesn’t block queries
CREATE INDEX apogee_drp_visit_q3c_idx ON apogee_drp.visit (q3c_ang2ipix(ra, "dec"));
CLUSTER apogee_drp_visit_q3c_idx ON apogee_drp.visit;
ANALYZE apogee_drp.visit;
CREATE INDEX ON apogee_drp.visit USING ... | true |
b8b28c9e57bc713a72d4ae88d6c12459d034153f | SQL | agora-code-community/community_code | /testforum.sql | UTF-8 | 7,566 | 3.1875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 31, 2017 at 08:16 AM
-- Server version: 10.1.10-MariaDB
-- PHP Version: 7.0.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... | true |
3afb3de39c0faad21be98fc60384561f58a2059b | SQL | ramirezpineda-rd/ORACLE_TRAINING | /Proyecto.sql | ISO-8859-1 | 9,234 | 3.1875 | 3 | [] | no_license | /*
Rubn Daro Ramrez Pineda
Rentas de vehculos
*/
CREATE TABLE EMPLEADOS(
ID_EMPLEADO NUMBER(8) NOT NULL
,NOMBRE VARCHAR2(64) NOT NULL
,APELLIDO_PATERNO VARCHAR2(64) NOT NULL
,APELLIDO_MATERNO VARCHAR2(64) NOT NULL
,FECHA_NAC DATE NOT NULL
,SEXO CHAR(1) NOT NULL
,EMAIL VARCHAR... | true |
6f3821cfb471d5ad092b0f8b5c61385b7e3c889f | SQL | jakubowiczish/Introduction-to-Databases | /queries/tests/some_test.sql | UTF-8 | 2,289 | 4.28125 | 4 | [] | no_license | select c.CategoryName,
p.ProductName,
p.UnitPrice,
(select avg(p2.UnitPrice) from Products as p2 where p2.CategoryID = c.CategoryID),
(p.UnitPrice - (select avg(p2.UnitPrice) from Products as p2 where p2.CategoryID = c.CategoryID)),
(select sum(od.UnitPrice * od.Quantity * (1 - od.Dis... | true |
3ff88847db1d352d85c007a3a94d7adc2b784c47 | SQL | evrimulgen/Sapia_Oracle | /documentos_revisar/BASE_DATOS/Grants/ROLLBACK_PERMISOS_ENCUESTA.sql | WINDOWS-1250 | 919 | 2.515625 | 3 | [] | no_license | --usuario del aplicativo debe tener acceso para la ejecucin del paquete PKG_CC_ENCUESTA
REVOKE EXECUTE ON PCLUB.PKG_CC_ENCUESTA FROM USRCLAROCLUB;
--PERMISO PARA EL USUARIO USREAIPCLUB(INTEGRACION) SOBRE EL PAQUETE PKG_CC_ENCUESTA
REVOKE EXECUTE ON PCLUB.PKG_CC_ENCUESTA FROM USREAIPCLUB;
--usuario USRPCLUB(ejecuta la... | true |
726f5452c9f48587a5f6fc3f63be750bb4445b30 | SQL | smilga/analyzer | /api/datastore/mysql/migrations/008_filter_tags_table.sql | UTF-8 | 290 | 3.546875 | 4 | [] | no_license | CREATE TABLE IF NOT EXISTS filter_tags (
id INT NOT NULL AUTO_INCREMENT,
filter_id INT NOT NULL,
tag_id INT NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (filter_id) REFERENCES filters(id),
FOREIGN KEY (tag_id) REFERENCES tags(id)
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
| true |
37b913df6a8459f57511eb56c7dfaee2d9774884 | SQL | richardcjb/dubbo | /we-web-parent/dlws-we-game/src/main/resources/sql/ranking.sql | UTF-8 | 745 | 2.96875 | 3 | [] | no_license | /*ranking_list*/
SELECT MAX(sid.signDays) signDays,cme.headImgUrl,cme.wxname,scl.schoolName FROM up_sign_days sid INNER JOIN xiaoka.v2_wx_customer cme ON
sid.openId=cme.openId INNER JOIN xiaoka.tg_school_info scl ON scl.id=cme.tgSchoolId
GROUP BY cme.openId ORDER BY signDays DESC
/*ranking_list_count*/
SELECT coun... | true |
52b5d90b85a02930512e2b9da43e79c769827f6f | SQL | datntlocalhost/StudentSpringHiber | /StudentManager/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/datnt/WEB-INF/classes/sql/students/student_list.sql | UTF-8 | 464 | 3.34375 | 3 | [] | no_license | SELECT
st.student_id as studentId,
st.student_code as studentCode,
st.student_name as studentName,
st.student_startyear as schoolYear,
st.school_id as schoolId,
sc.school_code as schoolCode,
r.records_sex as sex,
r.records_birthday as birthday,
r.records_phone as phone,
r.records_email as email,
r... | true |
1292eecf05902398ba74a470fc82d4a08cad949f | SQL | Cerios/cerioscoop-web | /src/test/resources/derby-testdata.sql | UTF-8 | 1,577 | 3.265625 | 3 | [] | no_license | INSERT INTO customer (first_name, last_name, username, password, email) VALUES
('Rutger', 'van Velzen', 'faust', 'Fausttothemax', 'rutger.van.velzen@cerios.nl'),
('Marcel', 'Groothuis', 'marcel', 'HeerserMarcel', 'marcel.groothuis@cerios.nl'),
('Ron', 'Sanders', 'ron', 'SuperRon', 'ron.sanders@cerios.nl');
INSERT I... | true |
3d4987471cf3a5479fbced2a62d7199250a03eb4 | SQL | EtienneDouillard/JVD_Stock_Projet | /BDD/create.sql | UTF-8 | 615 | 3.328125 | 3 | [] | no_license | CREATE TABLE `reference` (
`id_ref` int(11) NOT NULL AUTO_INCREMENT,
`reference` varchar(50) NOT NULL,
`libelle` varchar(50) NOT NULL,
PRIMARY KEY (`id_ref`)
);
CREATE TABLE `lot` (
`id_lot` int(50) NOT NULL AUTO_INCREMENT,
`id_ref` int(255) NOT NULL,
`emplacement` varchar(100) NOT NULL,
`qte` int(255) ... | true |
910a463132bf23f5c913054d4eda4ca3002abcc3 | SQL | fzyang1227/cs3200-yangproj | /Assignment 2/assignment2_endtable/cs3200-a2_page_privileges.sql | UTF-8 | 1,900 | 2.515625 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: cs3200-a2
-- ------------------------------------------------------
-- Server version 8.0.21
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT... | true |
b3ce6b42f558703045bd71c114f3917be0c452b4 | SQL | RyllerO/rh-app-ws | /src/main/resources/db/migration/V02__cria_tabela_competencia.sql | UTF-8 | 2,668 | 3.390625 | 3 | [] | no_license | CREATE TABLE competencia (
id BIGINT(20) PRIMARY KEY AUTO_INCREMENT,
id_tipo_competencia BIGINT (20) REFERENCES tipo_competencia (id),
nome VARCHAR (100) NOT NULL,
descricao VARCHAR (800),
peso BIGINT(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO competencia (id... | true |
987c158ff68da60a5a43eaf0d0e5f1db7a1243c9 | SQL | komidawi/PostgreSQL-Classes | /lab09_2.sql | UTF-8 | 1,826 | 3.59375 | 4 | [] | no_license | --9.2.
--1. Wykonaj skrypt tworzący relacje w bazie danych kwiaciarnia
patrz: lab9_1.sql
--2. Przygotuj odpowiednio dane z pliku kwiaciarnia2dane-tekst.txt i zaimportuj je do bazy danych.
patrz: lab9_2_script.sql
--3. Sprawdź (np. wykonując zapytania), czy wszystkie dane zostały zaimportowane do bazy danych.
--4. Jak s... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.