sql
stringlengths
6
1.05M
DROP DATABASE IF EXISTS todo_db; CREATE DATABASE todo_db; USE todo_db; CREATE TABLE todo( id INTEGER(11) AUTO_INCREMENT NOT NULL, task INTEGER(11), completed BOOLEAN(1), PRIMARY KEY (id) );
CREATE DATABASE IF NOT EXISTS `wejang` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `wejang`; -- MySQL dump 10.13 Distrib 8.0.17, for macos10.14 (x86_64) -- -- Host: localhost Database: wejang -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
<gh_stars>1-10 USE DbaData GO IF NOT EXISTS ( SELECT 1 FROM INFORMATION_SCHEMA.TABLES t WHERE t.TABLE_SCHEMA = 'dba' AND t.TABLE_NAME = 'InstanceConfiguration' ) CREATE TABLE dba.InstanceConfiguration ( InstanceConfigurationId INT IDENTITY CONSTRAINT PK_InstanceConfiguration PRIMARY KEY, Name V...
-- Time to execute: 3 sec (took all tests out) -- Warning: WITH RETURNS NULL ON NULL INPUT is fine for the main value, but if supporting arguments are null, it will also blow out a null. :SETVAR LibName MySQLCLRFunctions :R TestValueSettings.localuseonly SELECT ThisServer = @@servername, ThisDatabase = DB_NAME(), This...
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:arrays.sql ln:606 expect:true select array_replace(array[1,2,5,4],5,3)
<reponame>webdevhub42/Lambda /*Please add ; after each select statement*/ CREATE PROCEDURE newsSubscribers() BEGIN SELECT subscriber FROM half_year WHERE newspaper LIKE "%Daily%" UNION SELECT subscriber FROM full_year WHERE newspaper LIKE "%Daily%" ORDER BY subscriber ASC; END
load 'plpgsql'; load 'plpgsql_lint'; create table t1(a int, b int); create function f1() returns void as $$ begin if false then update t1 set c = 30; end if; end; $$ language plpgsql; select f1(); drop function f1(); create function g1(out a int, out b int) as $$ select 10,20; $$ language sql; create fu...
-- -- Backup create table backup.AD_UI_Section_BKP as select * from AD_UI_Section; create table backup.AD_UI_Column_BKP as select * from AD_UI_Column; create table backup.AD_UI_ElementGroup_BKP as select * from AD_UI_ElementGroup; create table backup.AD_UI_Element_BKP as select * from AD_UI_Element; create table backup...
<reponame>MammothGrowth/dbt-bing-ads {% macro stitch_bing_ads() %} {{ adapter_macro('bing_ads.stitch_bing_ads') }} {% endmacro %} {% macro default__stitch_bing_ads() %} select id as ad_id, status, type, text as ad_text, title, titlepart1 as title_part_1, titlepart2 as title_part_2...
<filename>doc/数据库/表/07_out_electronic.sql use out_clinic_sys; create table out_electronic( out_elec_id int primary key auto_increment comment '编号', patient_id int not null comment '病人ID', dept_id smallint comment '就诊科室ID', dept_name varchar(10) comment '就诊科室名称', emp_id smallint comment '就诊医生ID', emp_name varchar(10) co...
<filename>Saver/src/main/resources/mysql/Create_Indexes_Ru_MySql.sql /*Создание таблицы индексов для русскоязычных слов*/ CREATE TABLE IF NOT EXISTS INDEXES_RU( INDEXID INT(20) NOT NULL auto_increment, RUID INT(20) NOT NULL, DOCID INT(20) NOT NULL, POSIT INT(20) NOT NULL, TF FLOAT(20) NOT NULL, ...
/* Navicat Premium Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 80012 Source Host : localhost:3306 Source Schema : shop Target Server Type : MySQL Target Server Version : 80012 File Encoding : 65001 Date: 21/07/2019 16:04:31 ...
<filename>lab03/delete_keys.sql --eliminar atributos ALTER TABLE Opinion DROP CONSTRAINT CK_OPINION_TCONSECUTIVO; ALTER TABLE Perfil DROP CONSTRAINT CK_PERFIL_TCorreo; ALTER TABLE Opinion DROP CONSTRAINT CK_OPINION_TDETALLE; ALTER TABLE Temporal DROP CONSTRAINT CK_TEMPORAL_TDURACION; ALTER TABLE Temporal DROP CON...
/****** Object: StoredProcedure [dbo].[SetPurgeTaskComplete] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE Procedure dbo.SetPurgeTaskComplete /**************************************************** ** ** Desc: Sets archive state of dataset record given by @datasetNum ** according to g...
<gh_stars>10-100 CREATE TABLE stocks (date text, symbol text, price real)
<reponame>Tamaraalrashed/make-up DROP TABLE IF EXISTS makeup; CREATE TABLE makeup( id SERIAL PRIMARY KEY, image VARCHAR(500), name VARCHAR(255), price VARCHAR(255), description TEXT );
<filename>foreignKey2.sql ALTER TABLE employee ADD FOREIGN KEY (branch_id) REFERENCES branch(branch_id) ON DELETE SET NULL ; ALTER TABLE employee ADD FOREIGN KEY (super_id) REFERENCES employee(emp_id) ON DELETE SET NULL ;
-- Use the following 3 lines to create database on workbench drop database if exists contact_tracing_db; create database contact_tracing_db; use contact_tracing_db; -- This following for Test purpose only , we will be using Routes and Sequelize -- Visitor Table create table visitor ( id int auto_increment, first_...
CREATE TABLE IF NOT EXISTS feeds ( id INTEGER PRIMARY KEY AUTOINCREMENT, url TEXT NOT NULL, UNIQUE(url) );
-- Database generated with pgModeler (PostgreSQL Database Modeler). -- PostgreSQL version: 9.1 -- Project Site: pgmodeler.com.br -- Model Author: --- SET check_function_bodies = false; -- ddl-end -- -- object: public.device | type: TABLE -- CREATE TABLE public.device( id varchar(255) NOT NULL, hw_id varchar(2...
<filename>testdata/database-setup.sql DROP TABLE repository; CREATE TABLE repository ( id serial NOT NULL, prefix text NOT NULL, directory_id integer NOT NULL, category_id integer NOT NULL, arch_id integer NOT NULL, version_id integer NOT NULL, disabled boolean );
CREATE SCHEMA Search;
<filename>extra/lumen.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 03, 2019 at 03:53 AM -- Server version: 10.1.40-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+0...
<reponame>Shuttl-Tech/antlr_psql -- file:macaddr8.sql ln:9 expect:true SELECT ' 08:00:2b:01:02:03'::macaddr8
USE employeetracker_db; INSERT INTO department(name) VALUES('Super Geniuses'),('Finance'),('Legal'); INSERT INTO employees (FIRST_NAME, LAST_NAME, ROLE_ID, MANAGER_ID) VALUES('John', 'Doe', 1, NULL), ('Kanye', 'West', 2, 1), ('Jondan','Maxwell', 2, 1); INSERT INTO ROLES (EMPOLYEE_TITLE, EMPOLYEE_PAY_SALARY, DEP_ID ) ...
<reponame>dram/metasfresh -- 2019-08-24T07:58:11.871Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET OrderByClause='',Updated=TO_TIMESTAMP('2019-08-24 10:58:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=500221 ;
select c_last_name ,c_first_name ,ca_city ,bought_city ,ss_ticket_number ,amt,profit from (select ss_ticket_number ,ss_customer_sk ,ca_city bought_city ,sum(ss_coupon_amt) amt ,sum(ss_net_profit) profit from store_sales,date_dim,store...
<filename>bdd_mysql/dataviz_fish_uk-6.sql /** Quickstart-3.3 : * * By means of the Gmail API, this Programme permits to insert into MySQL tables * selected datas parsed from ‘xlsx’ files, and converted into ‘csv’ files. * * QUICKSTART.JS - Version 3.3 - Copyright [2018] [Seb, yanniscode, D...
-- Deploy ggircs-portal:function_search_application_list to pg -- requires: table_application begin; drop function ggircs_portal.search_application_list; commit;
<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 information. insert into [EdFi_Sample_ODS...
Rem Rem Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. Rem Rem Licensed under the Apache License, Version 2.0 (the "License"); Rem you may not use this file except in compliance with the License. Rem You may obtain a copy of the License at Rem Rem http://www.apache.org/licenses/LIC...
<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/table/table240.sql //// CHANGE name=change0 CREATE TABLE table240 ( id integer NOT NULL, field1 character varying(30), usertype1field usertype1 ); GO //// CHANGE name=change1 ALTER TABLE ONLY table240 ADD CONSTRAINT table240_pkey PRIMARY...
<reponame>kuro-channel/knowledge-1 ALTER TABLE KNOWLEDGES ADD COLUMN TAG_IDS character varying(1024); ALTER TABLE KNOWLEDGES ADD COLUMN TAG_NAMES text; ALTER TABLE KNOWLEDGES ADD COLUMN LIKE_COUNT bigint; ALTER TABLE KNOWLEDGES ADD COLUMN COMMENT_COUNT integer; comment on column KNOWLEDGES.TAG_IDS is 'タグID一覧'; comment...
SELECT * FROM alipay_gzentity AS qg where 1=1 <#include "AlipayGzentityDao_condition.sql">
UPDATE shopnc_vr_order_safe_common SET state = 1,start_time = ,end_time = WHERE imei_code = ''; UPDATE shopnc_vr_order SET order_state = 30,plyno = '' WHERE order_id = 1234; UPDATE shopnc_vr_order_safe_common SET state = 1,start_time = 1465228800,end_time = 1496678400 WHERE imei_code = '861353038785516'; UPDATE shopnc...
<reponame>xindalu/yii2_lix_a<filename>yii2advanced.sql /* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50611 Source Host : localhost:3306 Source Database : yii2advanced Target Server Type : MYSQL Target Server Version : 50611 File Encoding : 65...
create table t (a char(10), b varchar(1200),c date, d time, e timestamp); create index idx1 on t(adddate(a, 1)); create index idx2 on t(adddate(b, 1)); create index idx3 on t(adddate(c, 1.1)); create index idx4 on t(adddate(c, -1)); create index idx5 on t(adddate(c, interval 1 hour)); create index idx6 on t(subdate(a...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 23, 2018 at 02:43 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<reponame>JeresB/Jeres-CIR #------------------------------------------------------------ # Script MySQL. #------------------------------------------------------------ #------------------------------------------------------------ # Table: promo #------------------------------------------------------------ CREA...
select COUNT(distinct account.display_name) from tag t1, site s1, question q1, tag_question tq1, so_user u1, comment c1, account where -- underappreciated (high votes, low views) questions with at least one comment s1.site_name='quant' and t1.name in ('options', 'trading', 'risk', 'brownian-motion') and t1.site_id = s...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 14 Mar 2022 pada 23.06 -- Versi server: 10.4.21-MariaDB -- Versi PHP: 7.3.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
<reponame>timadax/rs-libs CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE EXTENSION IF NOT EXISTS "hstore"; CREATE TABLE todos ( id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (), text VARCHAR(255) NOT NULL, is_done BOOLEAN NOT NULL DEFAULT false, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, upd...
<reponame>caktoy/penilaian_bpt<filename>penilaian_bpt.sql -- phpMyAdmin SQL Dump -- version 3.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 25, 2014 at 10:50 AM -- Server version: 5.5.25a -- PHP Version: 5.4.4 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 S...
<gh_stars>0 INSERT INTO folders (title, description, role_required, workspace) VALUES ($1, $2, $3, $4) RETURNING id, title, description, role_required, workspace
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 30, 2020 at 04:28 PM -- Server version: 10.3.17-MariaDB-log -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
CREATE PROCEDURE [employer_financial].[CreateAccountTransfers] @transfers [employer_financial].[AccountTransferTable] READONLY AS INSERT INTO [employer_financial].[AccountTransfers] ( SenderAccountId, SenderAccountName, ReceiverAccountId, ReceiverAccountName, ApprenticeshipId, CourseName, CourseL...
<reponame>lete114/Discuss -- ---------------------------- -- Table structure for d_admin -- ---------------------------- DROP TABLE IF EXISTS "d_admin"; CREATE TABLE "d_admin" ( "id" varchar(24) NOT NULL DEFAULT substr(md5(gen_random_uuid()::text),1,24), "username" varchar NOT NULL DEFAULT '', "password" varchar ...
<filename>SQL Queries/Data Warehouse/Index_Maintenance_DW.sql select basetablename, optimizationstartdatetime, optimizationdurationseconds, beforeavgfragmentationinpercent, afteravgfragmentationinpercent, optimizationmethod, onlinerebuildlastperformeddatetime from StandardDatasetOptimizationHistory sdoh inn...
<reponame>dram/metasfresh -- Steuer OK -- 2021-06-25T12:41:44.617Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Steuer stimmt überein', PrintName='Steuer stimmt überein',Updated=TO_TIMESTAMP('2021-06-25 15:41:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Elemen...
<gh_stars>0 create database register_login_db; use register_login_db; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `email` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, PRIMARY KEY (ID) );
<gh_stars>0 --liquibase formatted sql --changeset andrey_pylypchuk:1 splitStatements:false runOnChange:true runAlways:true CREATE OR REPLACE FUNCTION update_krai_10() RETURNS void AS $$ DECLARE _tender RECORD; _related_process RECORD; _indicator_value integer; _previous_tender ...
<gh_stars>0 CREATE TABLE [dbo].[Carros] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY(1,1), [Modelo] VARCHAR(50) NOT NULL, [Cor] VARCHAR(50) NOT NULL, [Ano] INT NOT NULL, [Placa] VARCHAR(10) NOT NULL, [ValorDiaria] INT NOT NULL, [Obs] VARCHAR(250), [IdUsuario] INT NOT NULL, CONSTRAINT [FK_Carros_Usuarios] F...
<filename>public/timbrado/clave_unidad.sql INSERT INTO clave_unidad(clave, descripcion) values ('C81','radian'); INSERT INTO clave_unidad(clave, descripcion) values ('C25','milliradian'); INSERT INTO clave_unidad(clave, descripcion) values ('B97','microradian'); INSERT INTO clave_unidad(clave, descripcion) values ('DD'...
-- -- --<NAME> --DATE: 24/04/2021 -- -- ---------------------------------------------------------- /*ACTUALIZAR NOMBRE*/ -- Modo 1 DECLARE filas NUMBER; FUNCTION actualizador_nombre(nombre VARCHAR2, codigo NUMBER) RETURN NUMBER IS sentencia_sql VARCHAR2(1000); BEGIN sentencia_sql := 'UPDATE emp SET ename ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 20, 2019 at 04:39 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<reponame>lgcarrier/AFW<gh_stars>1-10 SET DEFINE OFF; create or replace package afw_25_publc_pkg is function obten_travl_courn (pva_imedt in varchar2) return number; function obten_travl_courn (pbo_imedt in boolean default true) return number; function obten_nouv_travl (pva_nom_raprt in varchar2 ...
<gh_stars>1-10 ----------------------------------------------------------------------------- CREATE FUNCTION FUNCTION_USER_LOGIN(@USERNAME CHAR(255), @PASSWORD CHAR(8)) RETURNS INT AS BEGIN DECLARE @userid AS INT SET @userid = (SELECT ID FROM USERNAME WHERE [NAME] = @USERNAME); IF (@userid IS NULL) ...
drop table if exists MB_BATCH_CHARGE; /*==============================================================*/ /* Table: MB_BATCH_CHARGE */ /*==============================================================*/ create table MB_BATCH_CHARGE ( BATCH_SEQ_NO varchar(50) not null comment ...
<filename>packages/server/src/db/sql/types.sql CREATE TYPE classes AS ( WR BOOLEAN, WZ BOOLEAN, CL BOOLEAN );
<reponame>lee-lindley/plsql_utilities<gh_stars>1-10 --ALTER SESSION SET plsql_code_type = NATIVE; --ALTER SESSION SET plsql_optimize_level=3; whenever sqlerror exit failure set serveroutput on set define on define use_html_email="FALSE" ALTER SESSION SET PLSQL_CCFLAGS='use_html_email:&&use_html_email.'; prompt calling ...
ALTER TABLE "#__extensions" ALTER COLUMN "enabled" SET DEFAULT 0;
SELECT h1.name AS id, h2.name AS objectid_s, cc.objectnumber AS objectnumber_s, mc.description AS description_s, b.name AS name_s, regexp_replace(mc.creator, '^.*\)''(.*)''$', '\1') AS creator_s, mc.creator AS creatorrefname_s, mc.blobcsid AS blob_ss, mc.copyrightstatement AS copyrightstatement_s, mc.identificationnumb...
<filename>src/main/resources/Apartment Creator Queries Kitchen presentation.sql /* --This query (s) should be copied and pasted into the query editor in the H2 database, --which is displayed in the browser at: http: //localhost:8080/h2-console/ --Kitchen presentation select kitchen.id , kitchen.kitchen_name , fu...
-- Remove old compression policy procedures DROP PROCEDURE IF EXISTS _timescaledb_internal.policy_compression_interval(INTEGER, INTEGER, INTERVAL, INTEGER, BOOLEAN, BOOLEAN); DROP PROCEDURE IF EXISTS _timescaledb_internal.policy_compression_integer(INTEGER, INTEGER, BIGINT, INTEGER, BOOLEAN, BOOLEAN);
<reponame>xanonid/steampipe-plugin-gcp select name, id, description, kind, self_link from gcp.gcp_compute_target_pool where name = 'dummy-{{resourceName}}'
-- -- Exercise query-finish flag in sort. -- with t6a as( select l_skewkey, count(*) over (partition by l_skewkey order by l_quantity, l_orderkey) from skewed_lineitem ), t6b as ( select * from skewed_lineitem order by l_orderkey ), t6c as ( select l_skewkey, median(l_quantity) med from skewed_lineitem group...
<reponame>clouserw/olympia<filename>migrations/529-remove-enable-search-suggestions-gaia.sql DELETE FROM waffle_switch_mkt WHERE name = 'enable-search-suggestions-gaia';
<filename>openGaussBase/testcase/KEYWORDS/Condition/Opengauss_Function_Keyword_Condition_Case0018.sql -- @testpoint: opengauss关键字condition(非保留),作为数据库名,关键字带单引号、反引号、不带引号时,合理报错 --关键字不带引号-成功 drop database if exists condition; create database condition; --关键字带双引号-成功 drop database if exists "condition"; create database "co...
<gh_stars>0 ALTER TABLE `users` ADD `driver` INT(5) NOT NULL AFTER `country`; ALTER TABLE `inputs` ADD `driver` INT(5) NOT NULL AFTER `billed`; /* RGP */ ALTER TABLE `family` DROP `adress`, DROP `postalcode`, DROP `town`; ALTER TABLE `users` DROP `adress`, DROP `postalcode`, DROP `town`; ...
<reponame>olyop/musicloud<gh_stars>0 SELECT {{ columnNames }} FROM genres WHERE genre_id in( SELECT genre_id FROM songs_genres WHERE song_id in( SELECT song_id FROM library_songs WHERE in_library = true AND user_id = '{{ userID }}' ) );
CREATE TABLE chef.measurement ( id SERIAL PRIMARY KEY, code TEXT NOT NULL UNIQUE, label TEXT NOT NULL UNIQUE );
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 02, 2019 at 02:31 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 INSERT INTO `quiz` (`id`, `description`, `name`) VALUES (null, 'Starting Desc Value', 'Starting Name Value'); INSERT INTO `question` (`id`, `question`, `answer`, `quiz_id`) VALUES (null, 'Example Q', 'Example A', 1);
<gh_stars>0 /*-----1 You are given a table 'random_string' that has the following format: ** random_string schema ** text The text field holds a single row which contains a random string. Your task is to take the random string and split it on each vowel (a, e, i, o, u) then the resultant substrings will be contain...
<filename>database.sql -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 22, 2021 at 11:01 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
<reponame>anton-studio/b2b<gh_stars>0 # different invoice management system create table ims_contract ( id bigint not null auto_increment comment 'id', contract_time datetime(3), delivery_time datetime(3), client_id bigint, total_amount bigint, actual_delivery_fee bigint, o...
<gh_stars>0 CREATE TABLE Models ( ModelID int PRIMARY KEY IDENTITY(101,1), Name nvarchar(50) NOT NULL, ManufacturerID int ) CREATE TABLE Manufacturers ( ManufacturerID int PRIMARY KEY IDENTITY, Name nvarchar(50) NOT NULL, EstablishedOn date ) INSERT INTO Models (Name, ManufacturerID) VALUES ('X1', 1), ('i6', 1)...
<filename>cahoots/parsers/location/data/country.sql .mode csv .import cahoots/parsers/location/data/country.csv country
\encoding UTF8 -- BEGIN; -- visitor (readonly) CREATE ROLE im_visitor CONNECTION LIMIT 8; ALTER ROLE im_visitor SET client_encoding=utf8; -- readonly account CREATE ROLE im_reader LOGIN PASSWORD '<PASSWORD>'; GRANT im_visitor TO im_reader; -- imsto database CREATE ROLE imsto LOGIN PASSWORD '<PASSWORD>'; CREATE D...
<reponame>kunalvohra94/parkinglotproblem-python -- MySQL dump 10.16 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: aps -- ------------------------------------------------------ -- Server version 10.1.26-MariaDB-0+deb9u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
drop function update_bid_price;
-- file:alter_table.sql ln:912 expect:true alter table atacc1 alter a drop default
/* Navicat Premium Data Transfer Source Server : MySQL Source Server Type : MySQL Source Server Version : 50642 Source Host : localhost:3306 Source Schema : express_admin Target Server Type : MySQL Target Server Version : 50642 File Encoding : 65001 Date: 27/08/2019 ...
<reponame>aszego/WhatTheHack /****** Object: Schema [Dimension] Script Date: 4/9/2020 9:00:54 AM ******/ CREATE SCHEMA [Dimension] GO /****** Object: Table [Dimension].[City] Script Date: 5/12/2020 3:25:15 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [Dimension].[City] ( [City Key...
select round(1000 * trigramDistance(materialize(''), '')) from system.numbers limit 5; select round(1000 * trigramDistance(materialize('абв'), '')) from system.numbers limit 5; select round(1000 * trigramDistance(materialize(''), 'абв')) from system.numbers limit 5; select round(1000 * trigramDistance(materialize('абвг...
<gh_stars>0 CREATE TABLE pagamento ( id bigint NOT NULL auto_increment, gateway_pagamento VARCHAR(255) NOT NULL, id_pagamento_no_gateway VARCHAR(255) NOT NULL, instante_do_pagamento datetime(6) NOT NULL, status VARCHAR(255) NOT NULL, compra_id bigint NOT NULL, PRIMARY KEY (id), CONSTRAIN...
-- Step 1 Change to the MarketDev Database -- Step 2 Alter procedure Reports.GetProductColors to execute as OWNER -- Step 3 Alter procedure Reports.GetProductsAndModels to execute as OWNER -- Step 4 Alter procedure Reports.GetProductsByColor to execute as OWNER
<filename>internal/storage/migrations/V0005.ConsentSubjectNULL.sqlite.up.sql PRAGMA foreign_keys=off; BEGIN TRANSACTION; DELETE FROM oauth2_consent_session WHERE subject IN(SELECT identifier FROM user_opaque_identifier WHERE username = '' AND service IN('openid', 'openid_connect')); DELETE FROM user_opaque_identifier...
<reponame>chhavip/debaised-analysis<gh_stars>1-10 version https://git-lfs.github.com/spec/v1 oid sha256:eb2f981b6e39dd26042d61c98aff1ea0368673c0802acc3cd7c42f5d044857e9 size 1364
alter table individuals add relationship_to_head int comment 'Relationship code.', add ubr_household_member_id bigint comment 'This id is assigned from UBR';
USE employeeDB; INSERT INTO employee (First_Name, Last_Name, Title, Department, Salary, Manager) VALUES('Sammy', 'Garcia', 'Night-Security', 'Security', '45000', '<NAME>'); INSERT INTO employee (First_Name, Last_Name, Title, Department, Salary, Manager) VALUES('Tommy', 'Hilfigg', 'Security Lead', 'Security', '80000',...
alter table etablissement add column perimetre boolean default true; alter table etablissement add column tranche_effectif text; alter table etablissement add column annee_effectif text; alter table etablissement add column code_activite_registre_metiers text; alter table etablissement add column etat_administratif tex...
<reponame>cjpdx-dev/cs340_database_project -- INSERT INTO PAY METHODS INSERT INTO PayMethods(address_id, card_type, last_four_digits, expiration_date) SELECT address_id, "AMEX" AS card_type, "1234" AS last_four_digits, "2024-12-13" AS expiration_date FROM Addresses WHERE address_id = 1; SELECT address_id, "VISA"...
<reponame>saskeli/BikeThinger -- -- heroku pg:psql < drop_tables.sql -- DROP TABLE IF EXISTS ut CASCADE; DROP TABLE IF EXISTS bike CASCADE; DROP TABLE IF EXISTS component CASCADE; DROP TABLE IF EXISTS gear CASCADE; DROP TABLE IF EXISTS tag CASCADE; DROP TABLE IF EXISTS biketag CASCADE; DROP TABLE IF EXISTS componentta...
CREATE TABLE IF NOT EXISTS Client ( id uuid PRIMARY KEY, name text NOT NULL ); CREATE TABLE IF NOT EXISTS ClientSecret ( secret text PRIMARY KEY, clientId uuid NOT NULL, UNIQUE(secret, clientId), CONSTRAINT client_id FOREIGN KEY (clientId) REFERENCES client (id) ON DELETE CASCADE ); CREATE TA...
-- we don't know how to generate schema CU_ONLINE_DW (class Schema) :( create or replace table ERROR_TABLE ( ROW_NR DECIMAL(18), ERROR_TEXT VARCHAR(1000) UTF8, TRUNCATED BOOLEAN, CSV_DATA VARCHAR(2000000) UTF8 ) / create or replace table ONLINE_STATUS ( PERSON_ID DECIMAL(18), TERM_SD VARCHAR(10) UTF8, ACAD_CAR_...
<filename>Database Files/Database Retrieve Files/RetrieveInventoryRecords.sql CREATE DEFINER=`root`@`localhost` PROCEDURE `RetrieveInventoryRecords`( IN AnimalID VARCHAR(32)) BEGIN SELECT IR.Item, IR.Description, IR.Qty, IR.Rate, IR.Amount FROM InventoryRecord IR WHERE R.AnimalID = AnimalID; END
INSERT INTO `pais` (`nombre`) VALUES ('Colombia'), ('España'), ('Mexico');
<gh_stars>0 DECLARE @asOf DATETIMEOFFSET = GETDATE() at time zone 'Eastern Standard Time' select c.CityName from application.cities c join application.stateprovinces s on c.StateProvinceID = s.stateprovinceid join application.countries ct on ct.CountryID = s.CountryID where ct.CountryName = 'United States' and s.State...
<filename>data/migrations/sample-fixtures.sql INSERT INTO location (id, name, address, url) VALUES ('6cf0fc0a-7ad4-4bf2-85c2-b63149f04a6b', 'Great Venue', '123 Main Street', 'https://great-venue.com'); INSERT INTO meetup (id, location_id, from_date, to_date) VALUES ('4264dea0-d91b-4105-8209-8ceb52c8a4ef', '6cf0...