sql stringlengths 6 1.05M |
|---|
<reponame>fatimahnurulinsani/kelola-kendaraan
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 27, 2017 at 07:11 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET... |
/*
Navicat MySQL Data Transfer
Source Server : local_mysql
Source Server Version : 50625
Source Host : 127.0.0.1:3306
Source Database : test_hz
Target Server Type : MYSQL
Target Server Version : 50625
File Encoding : 65001
Date: 2018-06-25 00:29:54
*/
SET FOREIGN_KEY_CHECKS=0;
--... |
<filename>src/hg/lib/txEdgeBed.sql<gh_stars>100-1000
# txEdgeBed.sql was originally generated by the autoSql program, which also
# generated txEdgeBed.c and txEdgeBed.h. This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly
# automatic way.
#A transcription edge ... |
<gh_stars>0
insert into exchange_value(id,currency_from,currency_to,conversion_multiple,port)
values(10001,'USD','TL',6,0);
insert into exchange_value(id,currency_from,currency_to,conversion_multiple,port)
values(10002,'EUR','TL',7,0);
insert into exchange_value(id,currency_from,currency_to,conversion_multiple,port)
va... |
create or alter proc dbo.uspSaveTotals @TVP dbo.TotalType READONLY as
begin
set nocount on
MERGE dbo.Total AS t
USING @TVP s
ON (t.LineId = s.LineId and t.Points = s.Points)
WHEN MATCHED THEN
UPDATE
SET t.AltLineId = s.AltLineId,
t.[Over] = s.[Over],
... |
-- UpdateTaskSuccess
-- 2015/04/13 Sandeep
UPDATE
[AsyncProcessingServiceStatusManagementTable]
SET
[CompletionDateTime] = @P2
,[ProgressRate] = @P3
,[StatusId] = @P4
WHERE
[Id] = @P1 |
<reponame>stephenfuqua/EdFi-Project-Buzz<gh_stars>1-10
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more informati... |
select * from salesman
where city = 'Paris' OR city = 'Rome'; |
<reponame>blinkops/blink-aws-query
select delivery_stream_name, arn, delivery_stream_status, version_id
from aws.aws_kinesis_firehose_delivery_stream
where akas::text = '["{{ output.resource_aka.value }}"]'; |
alter table ACT_HI_PROCINST add CALLBACK_ID_ nvarchar(255);
alter table ACT_HI_PROCINST add CALLBACK_TYPE_ nvarchar(255); |
<filename>牛客網練習題/創建resume_info表.sql
-- drop table if exists resume_info;
CREATE TABLE resume_info (
id int(4) NOT NULL,
job varchar(64) NOT NULL,
date date NOT NULL,
num int(11) NOT NULL,
PRIMARY KEY (id));
INSERT INTO resume_info VALUES
(1,'C++','2025-01-02',53),
(2,'Python','2025-01-02',23),
(3,'Java','2025-01-02',1... |
<gh_stars>1000+
-- +migrate Up
DROP INDEX idx_workflow_node_run_subnum;
SELECT create_unique_index('workflow_node_run', 'idx_workflow_node_run_subnum', 'workflow_run_id,workflow_node_id, num, sub_num');
-- +migrate Down
SELECT 1;
|
<gh_stars>0
IF OBJECT_ID('dbo.usp_WocBookSubCon') IS NOT NULL
BEGIN
DROP PROCEDURE dbo.usp_WocBookSubCon
IF OBJECT_ID('dbo.usp_WocBookSubCon') IS NOT NULL
PRINT '<<< FAILED DROPPING PROCEDURE dbo.usp_WocBookSubCon >>>'
ELSE
PRINT '<<< DROPPED PROCEDURE dbo.usp_WocBookSubCon >>>'
END
GO
SET A... |
select avg(nota) as 'média'
from boletim, disciplina
where boletim.iddisciplina = disciplina.iddisciplina
and disciplina = 'Banco de Dados'
and ano_semestre = '2019-1'; |
<reponame>tariusagi/hldsman<gh_stars>0
/* vim: set filetype=mysql : */
/* vim: set foldmethod=marker : */
/* ----------------------------------------------------------------------------
Written by <EMAIL>
----------------------------------------------------------------------------- */
DELIMITER ;
/*--------------------... |
<reponame>MGalego/php-docker
CREATE DATABASE IF NOT EXISTS demo_database CHARACTER SET utf8 COLLATE utf8_general_ci;
USE demo_database;
CREATE TABLE IF NOT EXISTS `logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`created` datetime DEFAULT NULL,
`description` text,
`mode... |
<reponame>prasoonsoni/Database-Management-Systems
-- 1
SELECT
first_name,
mid_name,
last_name
FROM
employee
WHERE
sex IN ('m', 'M')
AND salary > 75000;
-- 2
SELECT
first_name,
mid_name,
last_name
FROM
employee
WHERE
salary BETWEEN 50000
AND 80000;
-- 3
SELECT
*
FROM... |
create table clan
(
uuid VARCHAR(45) not null
constraint clan_pk
primary key,
tag VARCHAR(45) not null,
name VARCHAR(45) not null
);
create unique index clan_tag_uindex
on clan (tag);
create table player
(
uuid char(32) not null
constraint player_pk
primary key,
name v... |
INSERT INTO ren_cms_Content_Attachment_Roles (aType, RoleLangLine, RoleName) VALUES( 'image', 'LANG_AARGUMENTS_INDEXIMG', 'INDEXIMG')
INSERT INTO ren_cms_Content_Attachment_Roles (aType, RoleLangLine, RoleName) VALUES( 'image', 'LANG_AARGUMENTS_GALLERY', 'GALLERY')
|
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: apidoc
-- ------------------------------------------------------
-- Server version 5.5.37-0ubuntu0.12.04.1-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=... |
select field
from table
where field1 = 1 or field2 = 2 or field3 = 3 |
<gh_stars>1-10
--------------------------------------------------------
-- DDL for View LAST_NAME_COUNT_VIEW
--------------------------------------------------------
CREATE OR REPLACE VIEW "LAST_NAME_COUNT_VIEW" ("COUNT", "LAST_NAME") AS
SELECT COUNT(LAST_NAME) COUNT, LAST_NAME
FROM (SELECT REGEXP_SUBSTR(NAME,'\... |
MERGE Vacancy.VacancyLocationType AS dest
USING (SELECT 'S', 'Specific location') AS src (VacancyLocationTypeCode, FullName)
ON (dest.VacancyLocationTypeCode = src.VacancyLocationTypeCode)
WHEN MATCHED THEN
UPDATE SET FullName = src.FullName
WHEN NOT MATCHED THEN
INSERT (VacancyLocationTypeCode, FullName)
VALUES (sr... |
<reponame>chriscardillo/gusty
---
operator: airflow.providers.sqlite.operators.sqlite.SqliteOperator
---
SELECT *
FROM gusty_table
|
<gh_stars>0
TRUNCATE TABLE FUNDING_SOURCE_TYPE DROP STORAGE
/
INSERT INTO FUNDING_SOURCE_TYPE (FUNDING_SOURCE_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDATE_TIMESTAMP,OBJ_ID,VER_NBR)
VALUES (1,'Sponsor','admin',SYSDATE,SYS_GUID(),1)
/
INSERT INTO FUNDING_SOURCE_TYPE (FUNDING_SOURCE_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDA... |
--liquibase formatted sql
--changeset platform:create-extensions
-- Extension for P_DML procedure hstore parameter
create extension if not exists hstore;
-- Extension for contains indexes
create extension if not exists pg_trgm;
-- Extension for contains indexes to workers
SELECT run_command_on_workers($$create extens... |
<filename>src/services/external/database/docker/docker_postgres_init.sql
CREATE TABLE student
(
id bigint NOT NULL,
name text COLLATE pg_catalog."default",
CONSTRAINT student_pkey PRIMARY KEY (id)
);
INSERT INTO student(id, name) VALUES
(1, 'A'),
(2, 'C'),
(3, 'B')
|
ALTER TABLE ko_zone ADD COLUMN message VARCHAR(256) DEFAULT NULL COMMENT '错误信息' AFTER ip_pool_id;
|
DELETE FROM CSRF_TOKENS
WHERE
PROCESS_NAME = ?
AND USER_ID = ?
;
|
<reponame>zhubinsheng/sdb-mall
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50639
Source Host : 127.0.0.1:3306
Source Schema : sdb
Target Server Type : MySQL
Target Server Version : 50639
File Encoding : ... |
SELECT DISTINCT cat FROM foo ORDER BY 1;
cat
-------
cat1
cat2
cat3
cat4
|
<reponame>acrylic-origami/daylight-calendar
WITH cumsum AS (
SELECT id,
(UPPER(falls) - rise) AS delta,
(SUM(UPPER(falls) - rise) OVER (PARTITION BY loc_id ORDER BY rise ASC)) AS unix,
(SUM(UPPER(falls) - rise) OVER (PARTITION BY loc_id, year ORDER BY rise ASC)) AS yearly
FROM suns
) UPDA... |
<filename>egov/egov-bpa/src/main/resources/db/migration/main/V20180507132032__bpa_dcr_doc_checklist_ddl_and_dml.sql<gh_stars>0
insert into EGBPA_MSTR_CHECKLIST(id,checklisttype,servicetype,version,createdBy,createdDate)
values(nextval('SEQ_EGBPA_MSTR_CHECKLIST'),'BPADCRDOCUMENTS', (select id from egbpa_mstr_servicetyp... |
<filename>SQL/Scripts/ITENS_FORNECEDOR_MONIQUE.sql<gh_stars>0
select PREC.AGN_IN_CODIGO AS COD_AGENTE,
FORN.AGN_ST_FANTASIA AS FANTASIA_AGENTE,
PREC.Pro_In_Codigo AS COD_PRODUTO,
PROD.PRO_ST_DESCRICAO AS NOME_PRODUTO,
PF.MTF_ST_NOME AS NOME_PRODUTO_FORN,
PF.MTF_ST_SEUCODIGO AS COD_PRODUTO_FORNEC,
PREC.PRE_RE_PRECO AS V... |
<filename>droptable.sql
DROP TABLE IF EXISTS agents;
DROP TABLE IF EXISTS company;
DROP TABLE IF EXISTS customer;
DROP TABLE IF EXISTS daysorder;
DROP TABLE IF EXISTS despatch ;
DROP TABLE IF EXISTS foods;
DROP TABLE IF EXISTS listofitem;
DROP TABLE IF EXISTS orders;
DROP TABLE IF EXISTS student;
DROP T... |
<reponame>geophile/sql-layer
SELECT a_int FROM types_i WHERE a_float = ?
|
<reponame>ranielsan/myapp_laravel
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 14, 2018 at 05:31 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zo... |
CREATE TABLE `users` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`username` varchar(255) default NULL,
`email` varchar(255) default NULL,
`phone` varchar(100) default NULL,
`address` varchar(255) default NULL,
`city` varchar(255),
`state` varchar(50) default NULL,
`country` varchar(100) defaul... |
<filename>DATA_BACKUP/BD5W6_424P_sys_dm_repl_articles.sql
CREATE TABLE sys.dm_repl_articles
(
artcache_db_address varbinary(8),
artcache_table_address varbinary(8),
artcache_schema_address varbinary(8),
artcache_article_address varbinary(8),
artid int,
artfilter int,
artobjid int,
artpub... |
<reponame>heroblack/micro-mysql
CREATE TABLE `tipodocs` (
`tipodoc_id` int unsigned NOT NULL AUTO_INCREMENT,
`tipodoc_nom` varchar(80) NOT NULL,
CONSTRAINT tipodoc_tipodoc_id_PK PRIMARY KEY(tipodoc_id)
) ENGINE=InnoDB AUTO_INCREMENT=199 DEFAULT CHARSET=UTF8MB4;
CREATE TABLE `users` (
`user_id` varchar(32) NO... |
PRAGMA foreign_keys = ON;
DROP TABLE if exists users;
CREATE TABLE users (
id INTEGER PRIMARY KEY,
fname TEXT NOT NULL,
lname TEXT NOT NULL
);
INSERT INTO
users (fname, lname)
VALUES
("Ned", "Kelly"), ("Admiral", "Bulldog"), ("Kyle", "Freedman");
DROP TABLE if exists questions;
CREATE TABLE questions (
... |
CREATE TABLE UserRoles (
UserId UUID REFERENCES Users(Id) NOT NULL,
RoleId UUID REFERENCES Roles(Id) NOT NULL
); |
<gh_stars>1-10
select SERIES.TITLE from CHARACTERS_SERIES, CHARACTERS, SERIES
where CHARACTERS.ID = 6
and CHARACTERS_SERIES.id_character = CHARACTERS.ID
and CHARACTERS_SERIES.id_serie = SERIES.ID;
|
<filename>sqitch/revert/rename-two-user-cols.sql
-- Revert prc:rename-two-user-cols from sqlite
BEGIN;
-- Create a backup table
CREATE TEMPORARY TABLE user_backup (
user_id INTEGER PRIMARY KEY,
create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
update_time ... |
CREATE TABLE JOURNALPOST
(
ID BIGINT PRIMARY KEY,
FK_BEHANDLING_ID BIGINT REFERENCES BEHANDLING (id) NOT NULL,
JOURNALPOST_ID VARCHAR NOT NULL
);
CREATE SEQUENCE JOURNALPOST_SEQ INCREMENT BY 50 START WITH 1000000 NO CYCLE;
CREATE INDEX ON JOURNALPOST (FK_BEHANDLING... |
-- file:sequence.sql ln:95 expect:true
INSERT INTO serialTest2 (f1, f6)
VALUES ('bogus', -9223372036854775809)
|
<filename>@api/db/migrations/committed/000227.sql
--! Previous: sha1:74a04a4e036309ee8a8f44d49ddb8c8e6c3be073
--! Hash: sha1:e9b753df89fe52ce4c08169d9343911fab127431
--! split: 1-current.sql
-- Enter migration here
drop function person_full_name(selected_user app_public.users);
CREATE FUNCTION app_public.checkInStati... |
<gh_stars>0
--------------------------------------------------------
-- Constraints for Table USERS
--------------------------------------------------------
ALTER TABLE "PRMSADMIN"."USERS" MODIFY ("USERNAME" NOT NULL ENABLE);
ALTER TABLE "PRMSADMIN"."USERS" MODIFY ("USERPASSWORD" NOT NULL ENABLE);
ALTER TABLE "... |
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
UPDATE [edfi].[StaffCredential] SET StateOfIssueS... |
<filename>security-server/src/main/resources/import.sql<gh_stars>1-10
insert into role (id, name) values (1, 'USER');
insert into role (id, name) values (2, 'MANAGER');
insert into role (id, name) values (3, 'ADMIN');
insert into user (id, username, password, enabled, expired, locked) values (1, 'barry', '<PASSWORD>',... |
<reponame>gregory-akins/clinical_quality_language
library CMS146 version '3'
using QDM // version '4.2'
include Common version '1' called Common
valueset "Acute Pharyngitis": '2.16.840.1.113883.3.464.1003.102.12.1011'
valueset "Acute Tonsillitis": '2.16.840.1.113883.3.464.1003.102.12.1012'
valueset "Ambulatory/ED Vi... |
alter table paid_account add column todos_per_month integer default 0 not null;
alter table paid_account drop column free_form;
alter table paid_account add column free_form_per_month integer default 0 not null;
update paid_account set todos_per_month = 4; -- default for all, then set per type
update paid_account set... |
ALTER TABLE "public"."AttendeeProfile" DROP COLUMN "realName" CASCADE;
|
<filename>example/fund/fund_struct.sql
CREATE TABLE "fund" ("code" VARCHAR PRIMARY KEY UNIQUE, "name" VARCHAR, "type" VARCHAR, "create_date" DATE, "create_scale" FLOAT, "latest_scale" FLOAT, "update_date" DATE, "company_code" VARCHAR, "company_name" VARCHAR, "manager_id" VARCHAR, "manager_name" VARCHAR, "manage_exp" FL... |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 29, 2019 at 12:17 PM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<reponame>sarahjfreitas/lab_exp_2<filename>migrations/002_import_repositorios.sql
BULK INSERT repositorios
FROM 'D:\workspace_pessoal\lab2\results.csv'
WITH
(
FIRSTROW = 2,
FIELDTERMINATOR = ';', --CSV field delimiter
ROWTERMINATOR = '\n', --Use to shift the control to next row
TABLOCK
) |
-- \dt
|
select pc.* from prosecni_cenovnik pc
where pc.org_deo in (126,128,129)
and pc.datum_unosa in (select max(datum_unosa) from prosecni_cenovnik
where org_deo = pc.org_deo
and proizvod = pc.proizvod
)
order by pc.proizvod ,pc.org_deo, pc.datum_unosa
|
<reponame>liangzi4000/grab-share-info
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600826',@CutoffDate = N'2017-09-30',@EPS = N'0.24',@EPSDeduct = N'0',@Revenue = N'24.83亿',@RevenueYoy = N'14.26',@RevenueQoq = N'-22.61',@Profit = N'9942.70万',@ProfitYoy = N'-88.13',@ProfiltQoq = N'138.24',@NAVPerUnit = N'8.4831',@ROE = N'2.68',... |
CREATE VIEW "BudgetLevels" AS
SELECT OutlayId, BudgetLevel, BFY, FundCode, AhCode, OrgCode,
CASE
WHEN BocCode IN ('10', '17') THEN '06'
WHEN FundCode LIKE 'E%' AND
NpmCode = 'A' THEN '06J'
WHEN FundCode LIKE 'E%' AND
NpmCode = 'B' THEN '06K'
WHEN FundCode LIKE '... |
ALTER
SYSTEM SET
max_connections = '200';
ALTER
SYSTEM SET
shared_buffers = '2GB';
ALTER
SYSTEM SET
effective_cache_size = '6GB';
ALTER
SYSTEM SET
maintenance_work_mem = '512MB';
ALTER
SYSTEM SET
checkpoint_completion_target = '0.7';
ALTER
SYSTEM SET
wal_buffers = '16MB';
ALTER
SYSTEM SET
default_statistics_targ... |
<filename>storers/postgres/sql/grants_20160723_init.sql<gh_stars>0
-- +migrate Up
CREATE TABLE grants (
id CHAR(36) PRIMARY KEY,
source_type TEXT NOT NULL DEFAULT '',
source_id TEXT NOT NULL DEFAULT '',
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
scopes VARCHAR[] NOT NULL DEFAULT array[]::varchar[],
profile_id... |
<reponame>nabeelkhan/Oracle-DBA-Life<gh_stars>0
REM FILE NAME: con_file.sql
REM LOCATION: Backup Recovery\Generate Recreation Scripts
REM FUNCTION: Document control file location and status
REM TESTED ON: 7.3.3.5, 8.0.4.1, 8.1.5, 8.1.7, 9.0.1
REM PLATFORM: non-specific
REM REQUIRES: v$controlfile
REM
REM This... |
INSERT INTO premiums (ship_id, value, premium) VALUES ('ship1',10000,1000),('ship2',5000,200),('ship3',15000,2500),('ship4',20000,5000) |
<gh_stars>0
/*
Warnings:
- Made the column `username` on table `User` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE `User` MODIFY `username` VARCHAR(191) NOT NULL;
|
<reponame>pratikkumar-jain/Twitter-Mining
UPDATE tweets
SET
support_index = ?
WHERE tweet_id = ?
|
USE [master]
GO
/****** Object: Database [obiee_book] Script Date: 27/03/2016 11:03:35 ******/
CREATE DATABASE [obiee_book]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'obiee_book', FILENAME = N'C:\apps\mssql\MSSQL13.MSSQLSERVER\MSSQL\DATA\obiee_book.mdf' , SIZE = 73728KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536K... |
<filename>tests/poc/context_example/queries/query.sql
/*skip-formatter*/
SELECT *
FROM poc.examples_entity
WHERE id = {{ id }}
{% if name %}
and name ilike {{ name }}
{% endif %}
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 04 Jun 2021 pada 13.17
-- Versi server: 10.4.6-MariaDB
-- Versi PHP: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
DROP DATABASE IF EXISTS tripplanner_db;
CREATE DATABASE tripplanner_db; |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table difficulty (
id bigint auto_increment not null,
name varchar(255),
value integer,
when_created ... |
<reponame>TheWorldAtMyFingerTips/testrepo.github.io
USE MOVIES;
-- TO VIEW ALL UPLOADED TABLES --
SELECT * FROM movies_metadata;
SELECT * FROM genres;
SELECT * FROM credits;
SELECT * FROM ratings;
SELECT * FROM links;
------TABLE [movies_metadata] DELETE DUPLICATE ROWS -------------------------------------... |
SET MODE PostgreSQL;
CREATE DATABASE news_portal;
\c news_portal;
CREATE TABLE users(id serial PRIMARY KEY,name VARCHAR,position VARCHAR,role VARCHAR,departmentId INTEGER);
CREATE TABLE news(id serial PRIMARY KEY,content VARCHAR,userId INTEGER,departmentId INTEGER);
CREATE TABLE departments(id serial PRIMARY KEY,... |
CREATE OR REPLACE PYTHON3 SET SCRIPT ETL_UDFS.dawa_ejerlav (TXIDFRA DECIMAL(18,0), TXIDTIL DECIMAL(18,0))
emits (
kode decimal(9,0),
navn varchar(255),
geo_ændret timestamp,
geo_version decimal(9,0),
ændret timestamp,
visueltcenter varchar(10000),
bbox varchar(10000),
geometri varchar(10000)
) AS
utils = exa.import_s... |
<filename>buku_problem.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 24 Jul 2018 pada 11.49
-- Versi Server: 10.1.30-MariaDB
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zo... |
# Add frequency to feeds
# --- !Ups
create index "articles_link_idx" on "articles" ("link");
create index "articles_title_idx" on "articles" ("title");
create index "feeds_parse_version_idx" on "feeds" ("parse_version");
create index "feeds_timestamp_idx" on "feeds" ("timestamp");
create index "sources_group_idx" on ... |
<reponame>liangry/sqlparser
CREATE TABLE T1
AS (SELECT * FROM T2 WHERE name = 'Adam') WITH NO DATA |
<filename>bankaccount.sql
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Sep 11, 2019 at 11:41 PM
-- Server version: 5.7.21
-- PHP Version: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00... |
select display_name, id, freeform_tags, vcn_id
from oci.oci_core_nat_gateway
where display_name = '{{ resourceName }}'; |
<filename>resources/sql/autopatches/20150617.harbor.2.unit.sql
CREATE TABLE {$NAMESPACE}_harbormaster.harbormaster_buildunitmessage (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
buildTargetPHID VARBINARY(64) NOT NULL,
engine VARCHAR(255) COLLATE {$COLLATE_TEXT} NOT NULL,
namespace VARCHAR(255) COLLATE ... |
<reponame>Ideia-Boa/diva-distribution
BEGIN TRANSACTION
CREATE TABLE dbo.Tmp_land
(
UUID uniqueidentifier NOT NULL,
RegionUUID uniqueidentifier NULL,
LocalLandID int NULL,
Bitmap image NULL,
Name varchar(255) NULL,
Description varchar(255) NULL,
OwnerUUID uniqueidentifier NULL,
IsGroupOwned int NULL,
Area in... |
<gh_stars>0
ALTER TABLE user_groups ADD indicator_ids VARCHAR2(2048) NULL;
|
DROP DATABASE IF EXISTS m2ijdbctp;
CREATE DATABASE IF NOT EXISTS m2ijdbctp
CHARACTER SET = utf8mb4
COLLATE = utf8mb4_general_ci;
USE m2ijdbctp;
DROP TABLE IF EXISTS ingenieur;
CREATE TABLE IF NOT EXISTS ingenieur (
numMatricule INT UNIQUE PRIMARY KEY AUTO_INCREMENT,
nom VARCHAR(80),
prenom VARCHAR(80),
d... |
--------------------------------------------------------
-- File created - Wednesday-May-04-2016
--------------------------------------------------------
DROP TABLE "CSADMIN"."TBL_ACAD_ORG" cascade constraints;
DROP TABLE "CSADMIN"."TBL_CAREER" cascade constraints;
DROP TABLE "CSADMIN"."TBL_COMMENTS" cascade const... |
<filename>sql/bares_19032019.sql<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : localhost2018
Source Server Version : 100136
Source Host : localhost:3306
Source Database : nuestronegocio
Target Server Type : MYSQL
Target Server Version : 100136
File Encoding : 65001
Date... |
<filename>generated-sql/cra_2.sql
# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are set.
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------------------------------------------------
-- type
-- ----------------------------------------------------... |
<gh_stars>0
-- MySql script to return average score from table
SELECT AVG(score) AS average FROM second_table;
|
<filename>labs/web/DB/Suppliers.sql<gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Author: mood35-Laptop
*/
insert into SUPPLIERDB(Supname, SupAddress,SupType, ... |
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 29, 2020 at 09:57 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 16, 2019 at 12:23 AM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.2.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
create database FOREIGN_TEST;
use FOREIGN_TEST;
create table Adding(a int, b int, c char(10));
create table Minus(a char(10), b char(8), c int, d int);
create table Multiply(a int , b char(8), c int);
alter table Minus add constraint Foreign1 foreign key (c, d) references Adding(a, b);
alter table Multiply add constrai... |
<filename>db/src/data/profile/types/relationship_status.sql
\echo # Creating relationship_status type for profile
create type relationship_status as enum (
'single', 'seeing someone', 'married', 'open relationship', 'non-monogamous', 'it is complicated'
);
insert into data.uisetup (name, details)
values
('rela... |
<filename>src/test/resources/sql/insert/95d239af.sql
-- file:float4.sql ln:26 expect:true
INSERT INTO FLOAT4_TBL(f1) VALUES (' - 3.0')
|
<filename>EmployeeSQL.sql<gh_stars>0
-- Create tables
create table department(
dept_no VARCHAR not null,
dept_name varchar not null
);
-- dept_no has a letter and mostly numbers a001
select * from department
create table employee(
emp_no varchar not null,
dept_no VARCHAR not null
);
-- dept_no has a letter and mo... |
<gh_stars>0
-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64)
--
-- Host: localhost Database: mads
-- ------------------------------------------------------
-- Server version 5.7.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 16, 2016 at 08:48 AM
-- Server version: 5.5.16
-- PHP Version: 5.4.0beta2-dev
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT... |
<filename>working/manual_changes/2018/manual_changes_26-Sep-2018.sql<gh_stars>100-1000
--bugfix with valid_start_date (PPI)
update concept set valid_start_date=valid_start_date+interval '2000 year' where extract (year from valid_start_date)=17;
update concept set valid_start_date=to_date ('20170424', 'yyyymmdd') where ... |
ALTER TABLE biocase.abcd_unit ADD COLUMN the_geom GEOMETRY;
UPDATE biocase.abcd_unit
SET the_geom=ST_GeomFromText('POINT('||longitude_decimal||' '||latitude_decimal||')', 4283);
CREATE INDEX abcd_unit_the_geom ON biocase.abcd_unit USING GIST (the_geom);
CREATE INDEX ibra61_sub_the_geom ON spatial.ibra61_sub USING GIS... |
CREATE PROCEDURE total_amount_of_books_by_given_author(first_name VARCHAR(50), last_name VARCHAR(50))
BEGIN
SELECT COUNT(*)
FROM books b
JOIN authors a on a.id = b.author_id
WHERE a.first_name = first_name
AND a.last_name = last_name;
end; |
<gh_stars>0
/*
Setting total nights in reservations
Author: <NAME>
*/
update ownershipreservation ownRes
set ownRes.own_res_nights = DATEDIFF(ownRes.own_res_reservation_to_date,ownRes.own_res_reservation_from_date)
where ownRes.own_res_nights is null;
update generalreservation genRes
set genRes.gen_res_nights = (SEL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.