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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
70887bf950c386a849e9667122bcda7cb364ae71 | SQL | GregoryOrd/CPSC471 | /DATABASE_BACKUP.sql | UTF-8 | 60,807 | 3.15625 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64)
--
-- Host: localhost Database: cpsc471_rental_system
-- ------------------------------------------------------
-- Server version 8.0.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R... | true |
0191c20c2e37b73affbb9d5f3973ded6b8caf505 | SQL | GabrielC92/tpDatosC9gc | /tpDatosC9gc.sql | ISO-8859-1 | 1,071 | 3.78125 | 4 | [] | no_license | -- TP Mainpulacin y consulta de datos
-- Micro desafo 1
insert into genres (name, ranking, active)
values ('Investigacin', 13, 1);
update genres
set name = 'Investigacin Cientfica'
where name = 'Investigacin';
delete from genres
where name = 'Investigacin Cientfica';
select * from movies;
select first_name,last_na... | true |
b10ba1fbeb9e9eabead38af68fd079fab798e187 | SQL | zhonghuayichen/crawler | /gsxt-jpa/sql/srdb/renfawang.sql | UTF-8 | 2,106 | 3.609375 | 4 | [] | no_license | drop table IF EXISTS t_renfawang_searchresult CASCADE;
drop table IF EXISTS t_renfawang_detail CASCADE;
/*==============================================================*/
/* Table: t_renfawang_searchresult */
/*==============================================================*/
create t... | true |
23ade2612fa8dd693290ba3081d73d47e9eaed74 | SQL | ywf1215/gps-server | /conf/bus_geo.sql | UTF-8 | 1,138 | 3 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50618
Source Host : localhost
Source Database : CMS
Target Server Version : 50618
File Encoding : utf-8
Date: 01/29/2016 18:26:17 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- -----------... | true |
9f2c909ee8725f5e2e0ce8d85d4dfef94683c649 | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/high/day15/select2106.sql | UTF-8 | 191 | 2.609375 | 3 | [] | no_license |
SELECT timeStamp, temperature
FROM ThermometerObservation
WHERE timestamp>'2017-11-14T21:06:00Z' AND timestamp<'2017-11-15T21:06:00Z' AND SENSOR_ID='b3561273_8e33_400a_bed2_b708cdc91779'
| true |
d3dbc0c595eb964b6508820e039edc022f1cd535 | SQL | sofie77/Bookish-1 | /CreateBookishSQLQuery1.sql | UTF-8 | 868 | 3.4375 | 3 | [] | no_license | DROP DATABASE IF EXISTS bookish_dataBase;
CREATE DATABASE bookish_dataBase;
USE bookish_dataBase;
CREATE TABLE Books(
Book_ID INT NOT NULL PRIMARY KEY IDENTITY(1,1),
Book_Name VARCHAR(255) NOT NULL,
Barcode VARCHAR(255) NOT NULL,
ISBN int NOT NULL,
Author VARCHAR(255) NOT NULL
);
CREATE TABLE Users(
UserID INT... | true |
8e517676456708d55c2f79acb55e501a7e11a2f5 | SQL | TestBasedRPG/midterm | /midterm-q3.sql | UTF-8 | 684 | 4.21875 | 4 | [] | no_license |
DROP TABLE if exists authors cascade ;
DROP TABLE if exists books cascade ;
CREATE TABLE if not exists authors (
id serial not null PRIMARY KEY,
author_name text
);
CREATE TABLE if not exists books (
id serial not null PRIMARY KEY,
author_id int4 not null,
title varchar not null,
year... | true |
8cf91bd7781bf5d1c45b3fee9817d79d4c2bf97d | SQL | yona77/MI3C_GriyaBusanaWanita_Kel.7_FadilaYona | /griyabusanawanita_api/griyabusanawanita_api_db.sql | UTF-8 | 3,698 | 2.921875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 13 Des 2018 pada 14.31
-- Versi Server: 10.1.21-MariaDB
-- PHP Version: 7.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... | true |
6cb909bb86b647f23b19dcd58102bdc6d67d9f96 | SQL | derrickdjoe/CSE111 | /derrick-joe-lab3/2.sql | UTF-8 | 97 | 2.75 | 3 | [] | no_license | SELECT s_name, s_acctbal FROM supplier WHERE s_acctbal == (SELECT MIN(s_acctbal) FROM supplier);
| true |
b93f69034dde563b8d0ec7f63212af197ee62dcf | SQL | sarithdm/OS-AND-DBMS-LAB-10CS6212 | /explain.sql | UTF-8 | 659 | 2.765625 | 3 | [] | no_license | CREATE TABLE STUDENT (STUDENTNO INT, STUDENTNAME VARCHAR(20), MATHS INT(10), PHYSICS INT(10), CHEMISTRY INT(10), CPROGRAMMING INT(10), DEPARTMENT VARCHAR(10), ADDRESS VARCHAR(10));
INSERT INTO STUDENT VALUES (100, 'HARI',50,60,45,75,'CSE','KASARAGOD');
INSERT INTO STUDENT VALUES (101, 'DEVI',60,55,78,40,'CSE','KASARAGO... | true |
7056c92d5a16cbe59cb38a3375999fbf7d0d3b2f | SQL | ollej/brewnit | /db/structure.sql | UTF-8 | 49,959 | 2.984375 | 3 | [
"MIT"
] | permissive | 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_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row... | true |
a654fdbdff44997756843737ad1ebe23f0211271 | SQL | Yrp/explorer | /model/src/main/resources/trxplorer/db/migration/common/schema/V0044__AccountVote_add_table.sql | UTF-8 | 247 | 2.546875 | 3 | [] | no_license | CREATE TABLE `account_vote` (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`vote_address` VARCHAR(45) NOT NULL,
`vote_account_id` VARCHAR(45) NULL,
`vote_count` BIGINT UNSIGNED NOT NULL,
`account_id` BIGINT NULL,
PRIMARY KEY (`id`));
| true |
8bd3ebf7e6a6d1ffbd958d5f6a357759968ce4f2 | SQL | Cassiep1986/MySQL-Homework-Employee-Tracker | /seed.sql | UTF-8 | 803 | 3.4375 | 3 | [
"MIT"
] | permissive | use tracker_db;
INSERT INTO
department (name)
VALUES
('Pharmacy'),
('HR'),
('Corporate');
INSERT INTO
role (title, salary, department_id)
VALUES
('Pharmacy Tech', 40000, 1),
('Pharmacy Lead', 45000, 1),
('Pharmacist', 120000, 1),
('Human Resources Manager', 80000, 2),
('CEO',... | true |
da8af8b4b84361c62830aa9feadf3769db5c2a9f | SQL | radtek/Database-3 | /oracle/admin/scripts/OWB_refrescos.sql | UTF-8 | 2,671 | 3.703125 | 4 | [] | no_license | set linesize 300
set pagesize 100
col NOMBRE_WORKBOOK format a100
select c.scd_surrgt_pk, c.scd_ins_surrgt_fk, COUNT(a.cch_url) cant_work,
MIN(substr(a.CCH_URL,instr(a.CCH_URL,'wb_k=')+5,instr(substr(a.CCH_URL,instr(a.CCH_URL,'wb_k=')+5),']') -1)) nombre_workbook,
max(scd_last_updated) max_scd_last_update,
max(... | true |
222e8599b82a2023528b04935cda4f92656799a2 | SQL | pedjasim/OraclePosttest_NovcanoPoslovanje | /PackageBodies/F9_PACKAGE.sql | UTF-8 | 3,343 | 3.21875 | 3 | [] | no_license | CREATE OR REPLACE PACKAGE BODY F9_PACKAGE is
PROCEDURE UGOVOR_F9(P_DELOVODNI_BROJ UGOVOR.DELOVODNI_BROJ%TYPE,
P_DATUM IN VARCHAR2,
P_CURSOR OUT T_CURSOR) IS
BEGIN
open P_CURSOR for
select u.id_ugovor,
trim(u.delo... | true |
74b97dda0a2f70e2f1b9ad56a5475f35e3cd6f03 | SQL | Mkkiyoi/Burger | /db/schema.sql | UTF-8 | 251 | 2.578125 | 3 | [] | no_license | -- Schema for BurgerDB
DROP DATABASE IF EXISTS BurgerDB;
CREATE DATABASE BurgerDB;
USE BurgerDB;
CREATE TABLE Burgers (
BurgersID INT PRIMARY KEY AUTO_INCREMENT,
BurgerName VARCHAR(30) NOT NULL,
DEVOURED BOOLEAN NOT NULL DEFAULT FALSE
); | true |
10a5ba433c9f1507864c404e2b313284d200b868 | SQL | mohd874/Projects | /java/Temp_design_change/web/WEB-INF/sql/dhp_db_script2.sql | UTF-8 | 5,391 | 3.4375 | 3 | [] | no_license | /*
Created 2/6/2006
Modified 3/18/2006
Project
Model
Company
Author
Version
Database mySQL 4.0
*/
drop table IF EXISTS sysuser;
drop table IF EXISTS shops;
drop table IF EXISTS services;
drop table IF EXISTS service_schedule;
drop table IF EXISTS rooms;
drop table IF EXISTS reservat... | true |
56ccda32ae2468aa105c71ec90f878cda8d9c582 | SQL | benzsnabenz/testyi | /php api/database/mydb.sql | UTF-8 | 3,680 | 3.046875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 27, 2020 at 02:32 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
368d9dda3c9813637bad0c4390d2bfe0a8fb4258 | SQL | Al-x-R/pg-DB_node-example | /db_commands/case_and_view.sql | UTF-8 | 2,132 | 4.5 | 4 | [] | no_license | SELECT *,
(CASE "isMale"
WHEN true THEN 'male'
WHEN false THEN 'female'
ELSE 'other'
END) as "GENDER"
FROM users;
SELECT brand,
(CASE
WHEN brand ILIKE 'iphone'
THEN 'apple'
ELSE 'other'
END) as "manufaturer"... | true |
56f1321b94b6b04b745e51a0a4745a826093a0fb | SQL | doogn/query | /함수활용_20180515.sql | UHC | 2,042 | 3.890625 | 4 | [] | no_license |
--(P.23)
-- KOPO_CUSTOMERDATA ڵ10ڸ̴
-- 10ڸ ƴϸ ʿ 0 ä
-- ڵ 4ڸ ȣȭ * ó
--ؾմϴ.
SELECT
REPLACE(LPAD(CUSTOMERCODE, 10, '0')
,SUBSTR(CUSTOMERCODE, -4), '****')
AS CUSTOMERCODE_SECRET
FROM KOPO_CUSTOMERDATA;
SELECT
CONCAT(
SUBSTR(
LPAD(CUSTOMERCODE, 10, '0'), 0, 6
),'****'
) AS CUSTOM... | true |
2af818e683bdd45056e56299c6f5c006569cbc72 | SQL | Jyawhurh/una | /modules/boonex/quoteofday/install/sql/uninstall.sql | UTF-8 | 637 | 3.234375 | 3 | [
"MIT"
] | permissive | SET @sName = 'bx_quoteofday';;
-- TABLES
DROP TABLE IF EXISTS `bx_quoteofday_internal`;
-- FORMS
DELETE FROM `sys_objects_form` WHERE `module` = @sName;
DELETE FROM `sys_form_displays` WHERE `module` = @sName;
DELETE FROM `sys_form_inputs` WHERE `module` = @sName;
DELETE FROM `sys_form_display_inputs` WHERE ... | true |
9777f4c772f68a5c345b6bb0a2f135d22b7a8165 | SQL | LX1993728/mybatis_plus_practice | /mybatis-plus-multidb-transaction/src/main/resources/db/db2-schema-mysql.sql | UTF-8 | 274 | 2.6875 | 3 | [] | no_license | DROP TABLE IF EXISTS `book`;
CREATE TABLE `book` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`book_name` varchar(255) NOT NULL COMMENT '书名',
`author` varchar(255) NOT NULL COMMENT '作者',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | true |
24e275add6a62e91a0b411c9ed0f13d2e1d42b10 | SQL | ricaralan/merchant | /documents/merchant.sql | UTF-8 | 19,103 | 3.453125 | 3 | [] | no_license | -- MySQL Script generated by MySQL Workbench
-- Sat 27 Jun 2015 03:32:15 PM CDT
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_M... | true |
c9af7c29a6dd23544cec3e41f781aba556556d8d | SQL | GoSteven/9321-Assignment | /MM_Movie_ass3.sql | UTF-8 | 28,648 | 3.359375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.3.10
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 31, 2011 at 01:48 AM
-- Server version: 5.5.11
-- PHP Version: 5.3.4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_... | true |
0185ee888168c83e349f8cd95e7828ce588208cb | SQL | Velocity-Engineering/airbyte | /airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/postgres/test_primary_key_streams/final/airbyte_tables/test_normalization/nested_stream_with_c__lting_into_long_names.sql | UTF-8 | 533 | 2.625 | 3 | [
"MIT",
"Elastic-2.0"
] | permissive |
create table "postgres".test_normalization."nested_stream_with_c__lting_into_long_names__dbt_tmp"
as (
-- Final base SQL model
select
"id",
"date",
"partition",
_airbyte_emitted_at,
_airbyte_nested_stre__nto_long_names_hashid
from "postgres".test_normalization."nested_stream_with_c__ltin... | true |
748ea2f4ab15d600fc4132fd89ecc78cb3cc00ec | SQL | Salekchowdhury/Toll-Tax-Management | /online toll tax management/Database/online_toll_tax_management.sql | UTF-8 | 7,909 | 3.03125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 29, 2021 at 11:06 PM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 7.3.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
a3c3715191d533495abe4bc68f28481721bd85a9 | SQL | ooad008/SQL | /Script.sql | UTF-8 | 1,184 | 3.484375 | 3 | [] | no_license | create database AmazonDB;
create table UserProfile(`name` varchar(50) not null,countrycode varchar(4),mobileno varchar(10),
email varchar(50),`password` varchar(50) not null,profilepic varchar(200),primary key(email));
create table UserAddress(email varchar(50),addressline1 varchar(100),addressline2 varchar(100)... | true |
521f3ea7a1e6ae43786a28c4611f9f06f6b4f247 | SQL | guillermocastro/DBM-DB | /dbmdb/dbm/Tables/TableUsage.sql | UTF-8 | 574 | 3.078125 | 3 | [
"MIT"
] | permissive | CREATE TABLE [dbm].[TableUsage]
(
[Id] INT NOT NULL IDENTITY(1,1),
CONSTRAINT [PK.TableUsage.Id] PRIMARY KEY CLUSTERED ([Id]),
[InstanceId] NVARCHAR(128) NOT NULL,
CONSTRAINT [FK.TableUsage.InstanceId] FOREIGN KEY ([InstanceId]) REFERENCES [dbm].[Instance] ([InstanceId]) ON DELETE CASCADE ON UPDATE CASCADE,
[DBNa... | true |
eb68a628cdb494ec32edba5bd366dd9ad941bd8d | SQL | jarivera94/spring | /bancol_avaluos/scripts/1.3.8.2/001-ALTER TABLE formato_informe_hipotecario ADD COLUMN.sql | UTF-8 | 677 | 2.734375 | 3 | [] | no_license | ALTER TABLE avaluos.formato_informe_hipotecario ADD COLUMN fecha_remodelacion timestamp with time zone;
COMMENT ON COLUMN avaluos.formato_informe_hipotecario.fecha_remodelacion IS 'Fecha de remodelación';
ALTER TABLE avaluos.formato_informe_hipotecario ADD COLUMN licencia_construccion character varying(255);
COMME... | true |
8a1d08df2d4cce726fca15ba4d5f507dca58fb71 | SQL | arachid3/orasash | /sash_dev/config.sql | UTF-8 | 1,923 | 2.71875 | 3 | [] | no_license | set linesize 200
set pagesize 999
SET HEAD OFF
SET VER OFF
set feedback off
spool exit.sql
select 'exit' from dual where SYS_CONTEXT ('USERENV', 'SESSION_USER') != upper('SYS');
spool off
@exit.sql
prompt "------------------------------------------------------------------------------------"
prompt Creating repositor... | true |
b226db74294a7216f7289c0f6c088018fc1e1ab5 | SQL | evrimulgen/FCR | /T_PERSON_ADDR_CONSTRAINT.sql | UTF-8 | 667 | 3.140625 | 3 | [] | no_license | --------------------------------------------------------
-- Constraints for Table T#PERSON_ADDR
--------------------------------------------------------
ALTER TABLE "FCR"."T#PERSON_ADDR" ADD CONSTRAINT "CP#PERSON_ADDR" PRIMARY KEY ("C#PERSON_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTIC... | true |
4967b8c176cdd245bd43d49f05c39c4e70d62120 | SQL | pazazz/doctor | /doctor.sql | UTF-8 | 3,575 | 3.59375 | 4 | [] | no_license | -- 用户信息
create table user
(
user_tel int pk, /* 用户的手机号 */
user_password text, /* 用户密码 */
user_type int /* 用户类型, 医生/患者/其它 */
)
;
-- 患者信息
create table patient_info
(
patient_id int pk,
patient_tel int,
patient_name text,
patient_birth_year int,
patient_medical_history text,
allergy text,
patient_a... | true |
a0e9485d45b521ad7fb6bd85896eb8da4e423ac4 | SQL | Amreshhub/SQL | /SUBQUERY/moviess.sql | UTF-8 | 191 | 2.53125 | 3 | [] | no_license | create table moviess
(mid varchar2(10) constraint mm_ip_kk primary key,movie_name varchar2(30) not null,category varchar2(20) not null,
cost number(12,2) not null,relesd_date date not null)
/ | true |
62f7ab94a97ed0cf34dbd3a1f2e79444beb9b773 | SQL | Krismix1/db_mandatory_1 | /task2/triggers_subroutines.sql | UTF-8 | 4,173 | 4.5 | 4 | [] | no_license | USE library;
-- -------------------------------------------------- --
-- Check if there is a book copy available for a name --
-- -------------------------------------------------- --
DROP FUNCTION IF EXISTS `book_copy_available`;
DELIMITER $
CREATE FUNCTION `book_copy_available`(title varchar(64))
RETURNS tinyint(... | true |
500eb7db1c5e947a27754e69ed948019ad5e708f | SQL | JonathanCh022/pedidos | /basepedidos (3).sql | UTF-8 | 7,993 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 24-07-2016 a las 23:27:53
-- Versión del servidor: 5.6.17
-- Versión de PHP: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA... | true |
bb3f10bd6f8665232f3bead83ef4907fdc70e38a | SQL | pjuliano/glowing-waffle | /Dropped/KD_WWSS Views.sql | UTF-8 | 12,459 | 3.65625 | 4 | [] | no_license | Create or Replace View KD_WWSS_Yesterday As
Select
A.Part_Product_Family,
A.Corporate_Form,
Sum(A.AllAmounts) As Yesterday
From
Kd_Sales_Data_Request A
Where
A.Invoicedate = Trunc(Sysdate-1)
Group By
A.Part_Product_Family,
A.Corporate_Form
Order By
A.Part_Product_Family,
A.Corporate_Form;
Create or... | true |
6c586d8d388807c980099d19c26942e89b44ada6 | SQL | ScribesZone/ModelScript | /resources/classroom-root/XXX-CASESTUDY/bd/sql/requetes/Q091_ThePhilsCinemas2.sql | UTF-8 | 135 | 3.34375 | 3 | [
"MIT"
] | permissive | SELECT Cinemas.name, Cinemas.city
FROM Cinemas JOIN Frequents ON (Cinemas.name = Frequents.cinema)
where Frequents.spectator = 'Phil' ; | true |
923496e61cb18f5f4767fb5469f61bc82e33071a | SQL | Jpub/OraclePLSQL | /list11-04.sql | UTF-8 | 423 | 2.6875 | 3 | [] | no_license | CREATE OR REPLACE PROCEDURE emp_pro2(
empcur IN cur_pack.emp_type)
IS
emp_var1 emp.empno%TYPE;
emp_var2 emp.ename%TYPE;
emp_var3 emp.sal%TYPE;
BEGIN
LOOP
FETCH empcur INTO emp_var1, emp_var2, emp_var3;
EXIT WHEN empcur%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(emp_var1||' '||
... | true |
b8f162a7a0a06a7def72bc113782c9e684acf6ce | SQL | Sankarb475/Project_On_Spark_Cassanrda_Scala | /Desktop/Noah/FindingDataBasedOnCountries/src/main/resources/InputFile/cassandraQueries.cql | UTF-8 | 1,069 | 3.28125 | 3 | [] | no_license | CREATE KEYSPACE IF NOT EXISTS SparkToCassandra WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
CREATE TABLE SparkToCassandra.AdultDataTable (
age int,
employer text,
salary int,
education text,
educationyear int,
colour text,
country text... | true |
ff29675ca385636ccf0dcb334df24bc550c58b23 | SQL | KBNLresearch/Demosaurus | /ML_Nizar/experiment2/AT.sql | UTF-8 | 2,261 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | WITH link AS (
SELECT publication_ppn,
author_NTA.foaf_familyname AS last_name,
authorship_ggc.author_ppn,
"role",
kind,
rank
FROM authorship_ggc
LEFT JOIN author_NTA
on authorship_ggc.author_ppn = author_NTA.author_ppn
WHERE authorship_ggc.kind LIKE 'primair'
),
ppns AS (SELECT DIST... | true |
157dcfc353b76b92a8994d719712847d88c193ec | SQL | fashionbrot/mars-example | /sql/initSql.sql | UTF-8 | 11,799 | 3.65625 | 4 | [] | no_license |
DROP TABLE IF EXISTS `user_info`;
CREATE TABLE `user_info` (
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`user_name` varchar(30) NOT NULL COMMENT '用户名',
`real_name` varchar(20) NOT NULL COMMENT '真实姓名',
`password` varchar(32) NOT NULL COMMENT '加密密码',
`salt` varchar(32) NOT NULL COMMENT '密... | true |
980fdc22201264f3e6f897a7dcac175b24efc30e | SQL | basicinside/heartbeat-monitor | /sql/schema.sql | UTF-8 | 31,523 | 2.953125 | 3 | [] | no_license | --
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with... | true |
61622ab4d59e6bd3611f7fb6ab1000616d572050 | SQL | NeoJax/Bookstore | /db/schema.sql | UTF-8 | 631 | 3.28125 | 3 | [
"MIT"
] | permissive | DROP DATABASE IF EXISTS bookstore;
CREATE DATABASE bookstore;
\c bookstore;
CREATE TABLE books (
title VARCHAR(255) NOT NULL,
author VARCHAR(255) NOT NULL,
genre VARCHAR(255) NOT NULL,
height INTEGER NOT NULL,
publisher VARCHAR(255) NOT NULL
);
CREATE TABLE users (
username VARCHAR(255) NOT NULL,
password ... | true |
c9168c1233b297a7943e8e490387871bed653984 | SQL | PhilippSalvisberg/plscope-utils | /database/demo/demo_script/02_demo_lineage.sql | UTF-8 | 11,102 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | -- 1. parse the insert statement using sys.utl_xml.parsequery
select full_text, parse_util.parse_query(in_parse_user => user, in_query => full_text)
from user_statements
where type = 'INSERT'
and object_name = 'LOAD_FROM_TAB'
and type = 'INSERT';
-- 2. get taget tables via XQuery
select t.schema_name,
... | true |
f4dc521e9f47e3a1943f8e0938e37d0606c89261 | SQL | DevonEnergyHackathon2018/Team7 | /Griedy/Griedy/Griedy.DB/Jobs/JobDetail.sql | UTF-8 | 506 | 3.40625 | 3 | [
"MIT"
] | permissive | CREATE TABLE [Jobs].[JobDetail]
(
[JobDetailId] INT NOT NULL IDENTITY,
[JobInstanceId] INT NOT NULL,
[Message] NVARCHAR(MAX),
[TimeStamp] DATETIME NOT NULL,
[Severity] NVARCHAR(10) NOT NULL,
CONSTRAINT [JobDetailKey] PRIMARY KEY ([JobDetailId]),
CONSTRAINT [JobDetailJobInstanceRef] FOREIGN KEY (... | true |
821c0576010e5c5d58fe6103074da8d3dab3850b | SQL | chibao99/Khoa-luan-tot-nghi-p | /QuerryHotel.sql | UTF-8 | 4,479 | 3.90625 | 4 | [] | no_license |
-- tìm phiếu đặt phòng khong co trong khoảng ngày
select distinct p.*,pdp.* from PhieuDatPhong as pdp join Phong as p on pdp.maPhong = p.maPhong
where (pdp.ngayDen >= '2020-12-26' or pdp.ngayDi <='2020-12-11')--di-den
-- tìm phiếu đặt phòng trong khoảng ngày neesu null thi cho thue
select p.*, tinhtrang= 1 from P... | true |
02da09b51b62ddacb945b3baf7de1da55e00098d | SQL | SebasGarcia08/inserts-sql-generator | /DDl.sql | UTF-8 | 975 | 3.65625 | 4 | [] | no_license | CREATE TABLE Employee (
empNo INT,
fName VARCHAR(50),
lName VARCHAR(50),
address VARCHAR(100),
DOB DATE,
sex CHAR(1),
position VARCHAR(30),
deptNo INT,
PRIMARY KEY (empNo)
);
CREATE TABLE Department (
deptNo INT,
deptName VARCHAR(50),
mgrEmpNo INT,
PRIMARY KEY (deptNo),
FOREIGN KEY (mgrEmpNo... | true |
a9e47fae8cc9e8e85369bfb72ce679b68741abfa | SQL | johnthomson91/sql-challenge | /employee_data3.sql | UTF-8 | 336 | 3.109375 | 3 | [] | no_license | --List the manager of each department with the following information:
--department number, department name, the manager's employee number, last name, first name.
select * from dep_manager;
INSERT INTO dep_manager
SELECT
e.dept_no
, e.emp_no
, e.dept_name
, e.last_name
, e.first_name
FROM main_ta... | true |
8186292d67c5c0f869e769ed7bd84435fa3d74a9 | SQL | swcho/ex_sql | /30_final/problem.sql | UTF-8 | 207 | 2.609375 | 3 | [] | no_license |
select PLAYER_NAME, HEIGHT, WEIGHT from PLAYER_T order by PLAYER_NAME;
create index PLAYER_IDX_PLAYER_NAME on PLAYER_T(PLAYER_NAME);
select PLAYER_NAME, HEIGHT, WEIGHT from PLAYER_T order by PLAYER_NAME;
| true |
b56864ff53eeb72454f8d4128920e2adfed36004 | SQL | citusdata/pgconfus-tutorial-multi-tenant | /setup.sql | UTF-8 | 3,238 | 4 | 4 | [] | no_license | CREATE SCHEMA tutorial;
CREATE TABLE tutorial.users (
user_id uuid NOT NULL DEFAULT uuid_generate_v4(),
email text NOT NULL UNIQUE,
encrypted_password text NOT NULL ,
created_at timestamptz NOT NULL DEFAULT now(),
updated_at timestamptz NOT NULL DEFAULT now(),
PRIMARY KEY (user_id)
);
SELECT create_refere... | true |
532d1b48620ab7910f4a45422f9a67421d1a0d16 | SQL | P79N6A/beidou-report | /src/main/archive/database/2.0.0/report.2.0.0.sql | UTF-8 | 1,923 | 3.0625 | 3 | [] | no_license | CREATE DATABASE IF NOT EXISTS `beidoureport` /*!40100 DEFAULT CHARACTER SET utf8 */;
use beidoureport;
CREATE TABLE `stat_user_yest` (
`userid` int(10) NOT NULL,
`srchs` bigint(20) NOT NULL,
`clks` int(11) NOT NULL,
`cost` int(11) NOT NULL,
UNIQUE KEY `userid` (`userid`),
KEY `cost` (`cost`)
) ... | true |
025550647a3d6ebac2d5a4de285b9fb32a732bab | SQL | CherryProject/CherryProject | /CherryProject/src/main/resources/sqlFiles/Oracle_CreateTable.sql | UTF-8 | 5,782 | 3.96875 | 4 | [] | no_license | -- BusinessCard Project 테이블 생성 및 샘플 데이터 입력 sql
-- 2018.03.30. 정보승
-- 회원정보 TABLE
CREATE TABLE tbl_userinfo (
userid VARCHAR2(50) PRIMARY KEY -- 회원 ID
, userpw VARCHAR2(100) NOT NULL -- 회원 비밀번호
, username VARCHAR2(100) NOT NULL -- 회원 이름
, emailverify CHAR(... | true |
32c0f51d4e3879b0627ae40da5300e06f20f47c4 | SQL | CodechefVaibhav/helpJsp | /src/mydatabase.sql | UTF-8 | 2,694 | 3.25 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 17, 2014 at 10:31 AM
-- Server version: 5.5.27
-- PHP Version: 5.4.7
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/... | true |
027daf351e0b094cd78dcc1f479915cc7e1cbdde | SQL | johnray10/Library_Management_System | /librarydb.sql | UTF-8 | 4,775 | 3.390625 | 3 | [] | no_license | /*
SQLyog Community v13.1.5 (64 bit)
MySQL - 10.1.36-MariaDB : Database - librarydb
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHEC... | true |
98d0b39c885217ed1a09b279f84eacf8b2f19289 | SQL | har-ki/anahita | /packages/Sightings/src/administrator/components/com_sightings/schemas/migrations/1.sql | UTF-8 | 290 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | CREATE TABLE IF NOT EXISTS `#__sightings_sightings` (
`sightings_sighting_id` bigint(20) NOT NULL auto_increment,
`node_id` bigint(11) NOT NULL,
PRIMARY KEY (`sightings_sighting_id`),
UNIQUE KEY `node_id` (`node_id`)
) ENGINE=InnoDB CHARACTER SET `utf8` COLLATE `utf8_general_ci`;
| true |
3de8e786f46ea5f24cbe2c00a2be97a8a99c6a4e | SQL | rvyshnivskyi/car-sale | /src/main/resources/database/queries.sql | UTF-8 | 1,404 | 4.28125 | 4 | [] | no_license |
--------------------------------------------------------------------------------
--- List of cars available on sale with the best deal proposed at the moment;
--------------------------------------------------------------------------------
SELECT c.id, c.plate_number, c.brand, c.year, c.color, MAX(o.price) FROM ca... | true |
d250f826a4a864689950e0410fc7eab5ba234564 | SQL | jonananas/tdd-the-database | /create_db.sql | UTF-8 | 246 | 3.25 | 3 | [] | no_license | CREATE SCHEMA IF NOT EXISTS APPSCHEMA;
CREATE TABLE IF NOT EXISTS "APPSCHEMA"."PERSON"
(
ID VARCHAR(36) NOT NULL,
CONSTRAINT PK_PERSONID PRIMARY KEY (ID)
);
CREATE UNIQUE INDEX IF NOT EXISTS PK_PERSONID ON "APPSCHEMA"."PERSON"
(
ID
);
| true |
99addad64315f6f93a9aad86346bc849a0898fb1 | SQL | TheSlavaHero/Blu | /src/main/resources/database/initDB.sql | UTF-8 | 613 | 2.65625 | 3 | [] | no_license | drop table if exists clients;
create table clients
(
id serial not null
constraint clients_pkey
primary key,
name varchar(255) not null,
surname varchar(255) not null,
password varchar(255) not null,
role varchar(255) not null,
email varchar(255) n... | true |
027fe8b53f43e9072528300fd066228b76813718 | SQL | alin-tandea/ClinicApp | /init.sql | UTF-8 | 11,266 | 3.703125 | 4 | [] | 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 assignmen... | true |
fe3f47ae2901187036f3813ae865fbabe876a900 | SQL | IvAvde/mysql-homeworks | /mysql hw/hw5.sql | UTF-8 | 4,847 | 3.359375 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: new_schema1
-- ------------------------------------------------------
-- Server version 8.0.23
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;... | true |
49203d09e35e6bb34bb82f410b86e1d7ee0c52b5 | SQL | YoungHan-Jo/db-study | /sql/07_집합.sql | UTF-8 | 815 | 3.046875 | 3 | [] | no_license | --집합 연산자
--UNION
SELECT EMPLOYEE_ID, JOB_ID
FROM employees
UNION
SELECT EMPLOYEE_ID, JOB_ID
FROM job_history;
--UNION ALL
SELECT EMPLOYEE_ID, JOB_ID
FROM employees
UNION ALL
SELECT EMPLOYEE_ID, JOB_ID
FROM job_history;
--INTERSECT
SELECT EMPLOYEE_ID, JOB_ID
FROM employees
INTERSECT
SELECT EMPLOYEE_ID, JOB_ID
FROM job... | true |
d97939222203ab6c20ec28f9306e9ca7b7c907a3 | SQL | laurenheff/FebCodeLib | /fizzbuzz.sql | UTF-8 | 566 | 2.5625 | 3 | [] | no_license | DECLARE
fizz NUMBER(10);
buzz DECIMAL(10,2);
BEGIN
FOR fizz in 0..99 LOOP
buzz := (fizz + 1);
IF NOT REGEXP_LIKE((buzz / 3 ), '^([0-9])*[.period.]([0-9])*$') THEN
IF NOT REGEXP_LIKE((buzz / 5 ), '^([0-9])*[.period.]([0-9])*$')THEN
dbms_output.put_line('FIZZBUZZ');
ELSE
dbms_out... | true |
a59ed9ea08f78b56390f2480f52779421e18442a | SQL | camicasii/Mysql-notas | /curso.5.sql | UTF-8 | 2,599 | 3.953125 | 4 | [] | no_license | /*Consultas de agrupación o totales. y funciones de agregados*/
/* seleccional la col seccion y la suma de los precios de todos los articulos
agrupandolos por seccion seccion*/
SELECT SECCIÓN, SUM(PRECIO) FROM PRODUCTOS GROUP BY SECCIÓN;
/*ESTA LINEA ARROJA UN ERROR PUESTO NO HAY CAMPO PRECIO EN LA CONSULTA
(NOTA QUE ... | true |
cf4bbbcd2c54e208aa6c6cbc49b5c16990a694ea | SQL | blee025/SG-Summatives | /SummativeSums/SuperheroSightingsMastery/SuperheroSightingsDB.sql | UTF-8 | 3,648 | 3.609375 | 4 | [] | no_license | DROP DATABASE IF EXISTS SuperheroSightingsDB;
CREATE DATABASE SuperheroSightingsDB;
USE SuperheroSightingsDB;
Create table Powers (
Id int Primary Key auto_increment,
`Name` varchar(30) not null
);
Create table Supes (
Id int Primary Key auto_increment,
`Name` varchar(30... | true |
40ee4cf0097b89c62ce6c2d073487c7c811a23d4 | SQL | baijiupeng/PropertyManagementSystem | /database/property_management_system_course.sql | UTF-8 | 4,553 | 3.359375 | 3 | [] | no_license | /*
Navicat Premium Data Transfer
Source Server : LocalMySQL
Source Server Type : MySQL
Source Server Version : 80014
Source Host : localhost:3306
Source Schema : property_management_system_course
Target Server Type : MySQL
Target Server Version : 80014
File Encoding : ... | true |
1ae7bd267a6f248c1f04457c44d53f0cdb9d75e9 | SQL | beatrizsnichelotto/curso-spring-rest-AlgaWorks | /curso-spring -rest (AlgaWorks)/src/main/resources/db/migration/V004_cria-tabela-comentario.sql | UTF-8 | 327 | 2.96875 | 3 | [] | no_license | create table comentario (
id bigint not null auto_increment,
ordem_servico_id bigint not null,
descricao text not null,
data_envio datetime not null,
primary key (id)
ORDEM_SERVICO_COMENTARIOS
);
alter table comentario and constraint fk_comentario_ordem_servico
foreign key (ordem_servico_id) references ordem_servic... | true |
e10f95d04d0cbdb93abfaf601c97e6d9dab7b5e8 | SQL | Sinosaurus/example | /php/myPhp/test/day6/one.sql | UTF-8 | 1,064 | 3.609375 | 4 | [] | no_license | #创建表格
create table jd_goods (
goods_id int primary key auto_increment,
goods_name varchar(30) not null unique key,
price decimal(7, 2) not null default 300,
cat_name varchar(20),
sales int not null default 0,
is_post_free tinyint not null default 1 comment '1包邮 0不包邮',
pics varchar(200)
);
insert into jd... | true |
6699fd5178f912f95ed05ad410fa5ef4a67fc957 | SQL | krimmkr/MIPT-Programming | /1 Sem/DataBases/SQL/047.SQL | UTF-8 | 312 | 3.703125 | 4 | [] | no_license | SELECT x ,maker ,model FROM
(SELECT ROW_NUMBER() OVER(ORDER BY y ,model) AS x ,y ,maker ,model FROM
(SELECT * FROM
(SELECT ROW_NUMBER() OVER(ORDER BY c1 DESC,maker) AS y ,maker AS maker1,c1 FROM
(SELECT maker,COUNT(model) c1 FROM Product GROUP BY maker)t )q
JOIN Product
ON maker1=Product.maker)o)p
| true |
43cdf5e62bacf70889eda8d457e3eea1d81a9214 | SQL | VI-Suji/Athena21 | /athena.sql | UTF-8 | 6,322 | 2.984375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3308
-- Generation Time: Apr 17, 2021 at 06:05 PM
-- Server version: 8.0.18
-- PHP Version: 7.3.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... | true |
ae3dfe684e73f1bbdd75892a8b61653254f858f1 | SQL | ahmetbozaci/SQL | /2-select_world.sql | UTF-8 | 1,091 | 3.84375 | 4 | [] | no_license | -- 2
SELECT name
FROM world
WHERE population > 200000000;
-- 3
SELECT name, GDP / population
FROM world
WHERE population > 200000000;
-- 4
SELECT name, population / 1000000
FROM world
WHERE continent = 'South America';
-- 5
SELECT name, population
FROM world
WHERE name IN ('France', 'Germany', 'Italy');
-- 6
SELECT... | true |
f9b930097fbaab2154a8180dd12ce981c80f5471 | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/high/day15/select0925.sql | UTF-8 | 178 | 2.671875 | 3 | [] | no_license |
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o
WHERE timestamp>'2017-11-14T09:25:00Z' AND timestamp<'2017-11-15T09:25:00Z' AND temperature>=42 AND temperature<=69
| true |
5384ffcf16d70af57f11d1165e2a0777220d471a | SQL | jenguin777/bamazon | /bamazon.sql | UTF-8 | 7,279 | 3.546875 | 4 | [
"MIT"
] | permissive | -- DDL for bamazonCustomer.js and bamazonManager.js
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Grape777!'
drop database if exists bamazon;
create database bamazon;
use bamazon;
CREATE TABLE products (
item_id INT NOT NULL AUTO_INCREMENT,
product_name VARCHAR(255) NOT NULL,
depart... | true |
05f50a174f8bcdd280e5b1e1a066bebf858613e4 | SQL | AirDnD/CustomerReview | /database/PSQL/postgreSchema.sql | UTF-8 | 1,360 | 3.890625 | 4 | [] | no_license |
-- \l reviews_db
CREATE TABLE users (
id int NOT NULL,
name text,
photo text,
PRIMARY KEY (id)
);
CREATE TABLE listings (
id int NOT NULL,
name text,
PRIMARY KEY (id)
);
CREATE TABLE reviews (
id SERIAL NOT NULL,
listing_id int NOT NULL,
user_id int NOT NULL,
accuracy DECIMAL(2,1) NOT NULL,
c... | true |
e14db922b623e5b25d2dd2f38100be426c5980b3 | SQL | MauricioMichels/UC3M | /ComputacionWeb/Projeto Final/splittex/tables.sql | UTF-8 | 2,031 | 3.75 | 4 | [] | no_license | DROP TABLE IF EXISTS Invitations;
DROP TABLE IF EXISTS Transactions;
DROP TABLE IF EXISTS GroupUser;
DROP TABLE IF EXISTS Groups;
DROP TABLE IF EXISTS Users;
CREATE TABLE Users (
id INT NOT NULL auto_increment,
userName VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
password VARCHAR(25... | true |
b306c2bfbdc48a342f5715075b977ca1cee1ddd8 | SQL | wilnelmpls/CDM | /CDM/CDM/Tables/ContactBridge.sql | UTF-8 | 903 | 3.171875 | 3 | [] | no_license | CREATE TABLE [CDM].[ContactBridge] (
[ContactBridgeID] INT IDENTITY (1, 1) NOT NULL,
[CustomerAccountID] INT NULL,
[ContactID] INT NULL,
[SourceSystemID] INT NULL,
[Status] BIT NULL,
[ContactPurpose] VARCHAR (35) NULL... | true |
e24228433173e50e1c72d0c7ad83d0d289a1e6f9 | SQL | SDC-Haskell/QuestionsandAnswers | /Schema.sql | UTF-8 | 1,109 | 3.671875 | 4 | [
"Unlicense"
] | permissive | DROP DATABASE IF EXISTS qanda;
CREATE DATABASE qanda;
\c qanda;
CREATE TABLE questions (
id serial PRIMARY KEY,
product_id int NOT NULL,
body varchar NOT NULL,
date_written DATE,
asker_name varchar,
asker_email varchar,
reported int,
helpful int
);
CREATE TABLE answers (
id serial PRIMARY KEY,
... | true |
f6006d8908cbba6ab0c9bbb043f0a6b2367f759e | SQL | VijayEluri/user-manager-example | /src/main/resources/db/init_db.sql | UTF-8 | 260 | 3.015625 | 3 | [] | no_license | CREATE DATABASE IF NOT EXISTS finance;
USE finance;
CREATE TABLE IF NOT EXISTS users (
id INT(6) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
login VARCHAR(30),
name VARCHAR(30),
email VARCHAR(30),
phone VARCHAR(30),
INDEX(name)
) engine=InnoDB; | true |
2888589d5342d9e5df6f6a970dc556bacb3a52f4 | SQL | PlamenaMiteva/Databases | /Databese Systems Overview Homework/10. SQL Language.sql | UTF-8 | 715 | 3.265625 | 3 | [] | no_license | Problem 10. SQL Language
SQL is a special-purpose programming language designed for managing data held in a relational database management system (RDBMS),
or for stream processing in a relational data stream management system (RDSMS).
Originally based upon relational algebra and tuple relational calculus, SQL consi... | true |
072d624da38eeb0273aa3c8d2ddd16032adccb68 | SQL | 4uqills/Lab2c | /pessdb .sql | UTF-8 | 5,463 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 04, 2021 at 05:04 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
79c0a3e123351767948c4f7dfd84b4ce2e7c8572 | SQL | darwin1234/tictactoe-java-ee | /database/tictactoegame.sql | UTF-8 | 4,419 | 2.953125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 28, 2019 at 02:00 AM
-- Server version: 10.1.40-MariaDB
-- PHP Version: 7.1.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
c39ef1a0397181eef51278af2d9a2db810dd9f6a | SQL | swathigoru/Yelp-Dataset | /sgoru/bin/hw3createdb.sql | UTF-8 | 1,694 | 3.828125 | 4 | [] | no_license | /*CREATE STMTS */
CREATE TABLE users(
user_id varchar2(30),
user_name varchar2(50),
PRIMARY KEY (user_id)
);
/* business table columns:
loc = city + state
checkin_count = sum of all checkins for that bid */
CREATE TABLE business(
bid varchar2(30),
full_address varchar2(255),
open... | true |
29a48d0fc05dbd3103793d895bedc78e437bd8ab | SQL | Kell-Stack/Where-Was-That-Filmed | /server/commands.sql | UTF-8 | 666 | 2.640625 | 3 | [] | no_license | CREATE TABLE media
(
actor_1 varchar(1000) default null,
actor_2 varchar(1000) default null,
actor_3 varchar(1000) default null,
director varchar(1000) default null,
distributor varchar(1000) default null,
fun_facts varchar(1000) default null,
locations varchar(1000) default null,
production_company var... | true |
28c287abc7f70772c052e5cc9252efd7dba2ca1b | SQL | HuanaMari/project-Bank | /Bank-sql's/insertInto-branchAndAccount.sql | UTF-8 | 952 | 2.625 | 3 | [] | no_license | INSERT INTO branch (name,city,assets) VALUES
('Westpack','Sydney ',652898742),
('Westpack','Melbourne',574228365);
select * from branch;
INSERT INTO account (account_number,createdOn,balance,branchId)
VALUES
(FLOOR(30012346789 + RAND() * 3000000 ),now(),254127,1),
(FLOOR(30012346789 + RAND() * 3000000 ),now(),7862... | true |
b918b23e304c42e1e42a76a855fc206c1a368e60 | SQL | sakho3600/OpenData_BolsaFamilia | /bf/queries.sql | UTF-8 | 1,307 | 4.125 | 4 | [] | no_license | -- Seleciona todos as ordens de pagamento na base de dados
SELECT
NIS_FAVORECIDO AS nis,
MES_COMPETENCIA as mes,
VALOR_PARCELA as valor
FROM
PAGAMENTO;
-- Seleciona todos os favorecidos na base de dados em ordem alfabetica
SELECT
NOME_FAVORECIDO AS nis,
CODIGO_SIAFI_MUNICIPIO AS nome
FROM
F... | true |
39627156a9cee6b65b3f7b09e142cddf7fb661d5 | SQL | PhoenixSinister/FinalTest | /Complementos/DURALEX.sql | UTF-8 | 1,409 | 3.296875 | 3 | [] | no_license | CREATE DATABASE /*!32312 IF NOT EXISTS*/`duralex` /*!40100 DEFAULT CHARACTER SET utf8 */;
/*ACTUALIZACION */
USE `duralex`;
CREATE TABLE ROLES(
ID INT PRIMARY KEY NOT NULL,
DESCRIPCION VARCHAR(100)
);
insert into ROLES (ID, DESCRIPCION) values (0 , 'Sin Perfil');
insert into ROLES (ID, DESCRIPCION) values... | true |
de6849407a86e15fb70c7f05755c2befba41cb42 | SQL | a11exe/job4j | /chapter_007/src/main/resources/create.sql | UTF-8 | 628 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | -- CREATE DATABASE items
-- WITH OWNER = "user"
-- ENCODING = 'UTF8'
-- TABLESPACE = pg_default
-- LC_COLLATE = 'Russian_Russia.1251'
-- LC_CTYPE = 'Russian_Russia.1251'
-- CONNECTION LIMIT = -1;
-- GRANT ALL ON DATABASE tracker TO "user";
-- REVOKE ALL ON DATABASE tracker FROM public;
DROP TABLE IF EXISTS comments;
D... | true |
6c4775b7eb5b4b9957138067e6e0c16addbcd1b7 | SQL | ibrahimyesill/Akademi | /akademi.sql | UTF-8 | 6,981 | 3.234375 | 3 | [
"MIT"
] | permissive | /*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 100417
Source Host : localhost:3306
Source Schema : akademi
Target Server Type : MySQL
Target Server Version : 100417
File Encoding : 65001
Date: 05/05/2021 ... | true |
7501603329b1d0fc4cf3054bb02a78c982feaf10 | SQL | JulianArbini97/holbertonschool-higher_level_programming | /0x0D-SQL_introduction/4-first_table.sql | UTF-8 | 168 | 2.609375 | 3 | [] | no_license | -- Script that creates a table called first_table in the current database --
CREATE TABLE first_table (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(256));
| true |
920c7b3648bbc8b8dfaa9937b11f9159d0d61a96 | SQL | maartenpaauw/IRDBMS | /Week 1/opdracht_11.sql | UTF-8 | 1,063 | 2.84375 | 3 | [] | no_license | /**
Opdracht 11
Voeg jezelf toe als patient aan de tabel patient_archief om deze testen.
Gebruik SYSDATE om de kolom lst_bijwerkdatum te vullen.
*/
-- EIGEN ANTWOORD
INSERT INTO patient_archief
(patient_nr, patient_sofi_nr, patient_achternaam, patient_voornaam, patient_tussenvoegsel, patient_adres, patient_pla... | true |
cb84f3d96af87b3144cb2595fae368b83f41fefe | SQL | MLClark/Bookmarks | /Benefit Specific/COBRA/BEK/BEK PROBENEFITS QE/bek-qe-research.sql | UTF-8 | 3,231 | 3.359375 | 3 | [] | no_license | select * from benefit_plan_desc where current_date between effectivedate and enddate and current_timestamp between createts and endts;
select * from person_bene_election where current_timestamp between createts and endts and personid = '324' and benefitsubclass = '60';
(select distinct personid from person_bene_electi... | true |
4dab79782a8847419930a41d22a52b9cadad896f | SQL | khl1956/amis | /km42/Mykolenko/database.sql | UTF-8 | 2,826 | 3.375 | 3 | [] | no_license | /*==============================================================*/
/* DBMS name: ORACLE Version 11g */
/* Created on: 12.11.2017 16:27:47 */
/*==============================================================*/
alter table "Booking"
drop constraint FK... | true |
b06d179a7dbfef3064c6b6003d5e6c94bafc7e3d | SQL | zheynov/Instwitt | /src/main/resources/SQLStartScript/StartScript.sql | UTF-8 | 1,064 | 3.796875 | 4 | [] | no_license | DROP DATABASE IF EXISTS profiles_db;
CREATE DATABASE IF NOT EXISTS profiles_db;
USE profiles_db;
CREATE TABLE profiles_db.profile
(
profile_id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
firstName VARCHAR(30),
lastName VARCHAR(30),
birthDate DATE,
email VARCHAR(30) UNIQUE ,
age INT(30)... | true |
8ff004f4f207bb5b0823c5a34cbfa75971ce1704 | SQL | mtalbot1516/final-project | /Archived:Legacy/schema.sql | UTF-8 | 1,566 | 2.671875 | 3 | [
"MIT"
] | permissive | -- Creating table for finalProject
CREATE TABLE realtor_data (
last_update_date DATE NOT NULL,
permalink VARCHAR(150) NOT NULL,
status VARCHAR(20) NOT NULL,
list_date DATE NOT NULL,
list_price INT NOT NULL,
property_id INT NOT NULL,
community VARCHAR(10) NOT NULL,
listing_id INT NOT NULL... | true |
efe01d3a52d318f30e759ee23b98355322e70994 | SQL | VeselinAtanasov/mysql-database-demos | /mysql-database-demos/12_DatabaseBasicsMySQLRetake Exam-30Jul2019/tasks/01_CreateTable.sql | UTF-8 | 1,590 | 4.0625 | 4 | [] | no_license | CREATE DATABASE `colonial_blog_db`;
USE `colonial_blog_db`;
CREATE TABLE `users` (
`id` INT AUTO_INCREMENT PRIMARY KEY,
`username` VARCHAR(30) NOT NULL UNIQUE,
`password` VARCHAR(30) NOT NULL,
`email` VARCHAR(50) NOT NULL
);
CREATE TABLE `categories` (
`id` INT AUTO_INCREMENT PRIMARY KEY,
`category` VA... | true |
f02b4931820582cb350c7c043a137db7e2c4682a | SQL | ManviMM/TSF_bank | /bankingsys.sql | UTF-8 | 2,745 | 3.34375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 10, 2021 at 06:26 PM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 8.0.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
7543e5891d8fb4122873f680098af7d21e40ac37 | SQL | MeGaDeTH91/SoftUni | /C# DB/Databases Basics/04 Definition and DataTypes/Def and DataTypes/04. Insert Records in Both Tables/08 Create Table Users.sql | UTF-8 | 957 | 3.21875 | 3 | [] | no_license | USE Minions
CREATE TABLE Users(
Id BIGINT IDENTITY NOT NULL,
Username VARCHAR(30) UNIQUE NOT NULL,
Password VARCHAR(26) NOT NULL,
ProfilePicture VARBINARY(MAX),
LastLoginTime DATETIME,
IsDeleted BIT
CONSTRAINT PK_Users PRIMARY KEY(Id)
)
INSERT INTO Users(Username, Password, ProfilePicture, LastLoginTime, IsDeleted)
... | true |
22c4d96b4659de8cdf14853d7d0040dcbb679553 | SQL | vijayalakshmikulkarni/CoronaPreventionKit | /target/m2e-wtp/web-resources/ims.sql | UTF-8 | 359 | 2.609375 | 3 | [] | no_license | DROP DATABASE imsDb;
CREATE DATABASE imsDb;
USE imsDb;
CREATE TABLE products(
id int primary key,
productName varchar(40) not null,
cost int not null,
productDescription varchar(40) not null,
);
CREATE TABLE kitDetails(
id int not null,
coronaKitId int not null,
productId int not null,
quantity int ... | true |
fc79be89b5b32e28fdf2d7ef5edcc710f1f62872 | SQL | clarasmith/collegeconnect | /build_database.sql | UTF-8 | 2,243 | 3.75 | 4 | [] | no_license | -- Francys Scott, Cali Stenson, Megan Chen, Clara, Jessie.
-- Rosie Hackathon - March 8 2014
-- SQL for basic database for events.
-- This script only gets run one time! from this point onwards, the website should update the database.
-- First, specify the database / server that we access.
-- Note: haven't made thi... | true |
a5e69c6df712f5316e0f3a371e86465d98c3b496 | SQL | markbellingham/HyperAV | /Database scripts/queries.sql | UTF-8 | 1,549 | 3.921875 | 4 | [] | no_license | SELECT stFName AS "First Name",stLName AS "Last Name",loName AS "Location"
FROM hyperAV_staff join hyperAV_location ON hyperAV_location.locationid = hyperAV_staff.locationid
WHERE hyperAV_location.loName = 'HyperAv London';
SELECT su.suName AS "Supplier Name", pr.prName AS "Product Name", sod.stOrderQuantity ... | true |
9964797f187299dec4b32df34dc5278f53fb16bc | SQL | johnmahugu/angel | /labour/labour.sql | UTF-8 | 3,174 | 3.125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 10, 2014 at 10:29 PM
-- Server version: 5.5.24-log
-- PHP Version: 5.3.13
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.