sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Apr 15, 2021 at 08:29 PM -- Server version: 8.0.21 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
<filename>5.2.3/Database/Packages/AFW_25_PUBLC_PKG.pkb SET DEFINE OFF; create or replace package body afw_25_publc_pkg is function obten_travl_courn (pva_imedt in varchar2) return number is begin if ( pva_imedt = 'YES' or pva_imedt = 'TRUE') then return afw_25_publc_noyau_pkg.obten_tra...
<reponame>lgcarrier/AFW SET DEFINE OFF; create or replace package body afw_14_formt_pkg as gva_seprt_decml varchar2 (1) default ','; function formt_texte (pnu_valr in number) return varchar2 is vnu_valr number default pnu_valr; vnu_part_decm number (38, 38); vnu_part_entir numbe...
<reponame>fm107/WebTorrent-v2<filename>src/WebTorrent.DataAccess/Scripts/InsertNewNode.sql<gh_stars>1-10 --CREATE PROCEDURE InsertNewNode -- @pparent_id INT, -- @name NVARCHAR(MAX), -- @file_type INT --AS --BEGIN -- DECLARE @nodeId INT; -- --insert home directory -- IF(@pparent_id = -1) -- BEGIN -- INSERT INTO dbo....
-- /////////////////////////////////////////////////////////// -- // PROJECTOR // -- //-------------------------------------------------------// -- // Version : 4.1.0 // -- // specific updates for flash report // -- //...
<filename>migrations/2018-07-15-173144_unique_positions/up.sql -- Each photo may only have one single position DROP INDEX positions_photo_idx; CREATE UNIQUE INDEX positions_photo_idx ON positions (photo_id);
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/rollback_prepared/cca34dcb.sql<gh_stars>10-100 -- file:prepared_xacts.sql ln:84 expect:true ROLLBACK PREPARED 'foo4'
Create table departments ( dept_no varchar PRIMARY KEY, dept_name VARCHAR NOT NULL ); select * from departments Create table dept_emp ( id serial primary key, emp_no int not null, foreign key (emp_no) references employees(emp_no), dept_no varchar not null, foreign key (dept_no) references departments(dept_no), ...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 26, 2020 at 01:57 AM -- Server version: 10.3.22-MariaDB -- PHP Version: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/* * TABLE keyword with translated keywords in keyword_tr */ CREATE TABLE keyword ( id serial PRIMARY KEY, search_override text NULL, version integer DEFAULT 1, created TIMESTAMP DEFAULT current_timestamp, created_by integer DEFAULT 1, last_modified TIMESTA...
<filename>openGaussBase/testcase/SQL/DDL/table/Opengauss_Function_DDL_Table_Case0090.sql -- @testpoint: 创建带DEFAULT约束的表(列级),默认值和数据类型匹配 DROP TABLE IF EXISTS tab_12; CREATE TABLE tab_12 (id int DEFAULT '123', name VARCHAR2(20), filename VARCHAR2(255), text VARCHAR2(2000) ...
<reponame>omarathon/tabula alter table recordedassessmentcomponentstudent add column assessment_type varchar, add column resit_sequence varchar; update recordedassessmentcomponentstudent set assessment_type = 'OriginalAssessment' where id in ( select racs.id from recordedassessmentcompon...
CREATE USER shore_analytics WITH PASSWORD '<PASSWORD>'; CREATE DATABASE shore_analytics WITH OWNER = shore_analytics; ALTER USER shore_analytics CREATEDB;
CREATE MATERIALIZED VIEW tokemak.view_tokemak_lookup_reactors ( reactor_address, underlyer_address, reactor_name, is_deployable ) AS ( SELECT '\xD3B5D9a561c293Fb42b446FE7e237DaA9BF9AA84'::bytea as reactor_address, '\xdBdb4d16EdA451D0503b854CF79D55697F90c8DF'::bytea as underlyer_address, 'ALCX Reactor', true ...
/*const { resolve } = require("path/posix");*/ USE employeetracker_db; /* Insert into department */ INSERT INTO department (name) VALUES ("Sales"), ("Engineer"), ("Finance"), ("Legal"); /* Insert into role */ INSERT INTO role (title, salary, department_id) VALUES ("Sales Lead", 35000, 1), ("Salesperson", 20000, 1...
<reponame>qotrunnadawidadu/Praktikum_CRUD -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 28 Mar 2017 pada 16.49 -- Versi Server: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
<gh_stars>0 --DROP TABLE quiz_topics; CREATE TABLE quiz_topics ( topic_id VARCHAR2(30) NOT NULL, topic_name VARCHAR2(100) NOT NULL, badge_name VARCHAR2(100), badge_file BLOB, badge_mime VARCHAR2(100), note VARCHAR2(4000), created_at DATE, -...
<filename>schema.sql -- ****************** RESILIENCIA QI ******************; -- ***************************************************; -- ************************************** %TABLE_PREFIX%preguntas CREATE TABLE %TABLE_PREFIX%preguntas ( id INT NOT NULL AUTO_INCREMENT, pregunta VARCHAR(500) NOT NULL , tipo ...
<gh_stars>0 create or replace FUNCTION getAllRentsByEmail(email in VARCHAR) RETURN SYS_REFCURSOR is resultado sys_refcursor; BEGIN OPEN resultado FOR SELECT * FROM Rent WHERE user_email = email; RETURN (resultado); END; /
<reponame>ajsnow56/Burgz ### Schema DROP DATABASE IF EXISTS burgz_db; CREATE DATABASE burgz_db; USE burgz_db; CREATE TABLE burgz ( id int NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, ate BOOLEAN DEFAULT false, PRIMARY KEY (id) );
 /* ---------------------------------------------------- */ /* Generated by Enterprise Architect Version 15.0 */ /* Created On : 16-Jul-2020 12:22:02 AM */ /* DBMS : SQL Server 2012 */ /* ---------------------------------------------------- */ USE [UnitCostApp] GO /* Drop Foreign Key Constraints...
SELECT r.RESTAURANT_ID, r.RESTAURANT_NAME, r.RESTAURANT_ADDRESS, r.RESTAURANT_RESERVATIONS, r.RESTAURANT_WIFI, r.RESTAURANT_DELIVERY, r.RESTAURANT_MULTIBANCO, r.RESTAURANT_OUTDOOR_SEATING, r.RESTAURANT_POINTS, r.RESTAURANT_IMAGE, c.LATITUDE, c.longitude FROM RESTAURANTS r JOIN COORDS c ON r.RESTAURANT_ID = c.RESTAURANT...
<gh_stars>0 SELECT URL FROM OPENMM_WEB_CACHE WHERE HASH = ?
<filename>SQL/SQL_Trainer/1.3_GROUP_REQUESTS/book.sql CREATE TABLE book( book_id INT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(50), author VARCHAR(30), price DECIMAL(8, 2), amount INT ); INSERT INTO book(title, author, price, amount) VALUES ('<NAME>', 'Булгаков М.А.', 670.99, 3), ('<NAME>дия', 'Бул...
<filename>app/install/relations/schools.sql<gh_stars>1-10 CREATE TABLE IF NOT EXISTS `schools` ( `id` int(11) NOT NULL, `name` text NOT NULL, `account_type` int(11) NOT NULL, `level` text NOT NULL, `from_date` date NOT NULL, `to_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB AUTO_INCREMENT=...
SELECT ST_Extent(geometry) AS bbox FROM staging.taxi_zones; SELECT ST_AsText(ST_Centroid(ST_Extent(geometry))) AS center FROM staging.taxi_zones;
DELETE FROM contact_person; insert into contact_person (ID, SALUTATION, TITLE, FORENAME, SURNAME, CONTACT_INFORMATION, COMPANY_NAME, DEPARTMENT, SECTOR, CORPORATE_DIVISION) values (1001, 'HERR', '', 'John', 'Doe', '<EMAIL>', 'msg', 'testDepartment', 'testSector', 'testDivision');
-- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: localhost Database: employment -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
 DROP INDEX IF EXISTS c_ordertax_c_order_id; CREATE INDEX c_ordertax_c_order_id ON c_ordertax (c_order_id ASC NULLS LAST);
<reponame>CeInnovationTeam/ApexLab -- Copyright © 2021, Oracle and/or its affiliates. -- All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl declare l_schema VARCHAR2(30) := '&1'; l_apex_admin_user VARCHAR2(30) := '&2'; l_workspace_admin VAR...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : service Target Server Type : MySQL Target Server Version : 50724 File Encoding : 65001 Date: 20/02/2020 20...
<reponame>Mastercard/udap-spark-s3-tpc-ds-performance-test<filename>src/ddl/individual/inventory.sql drop table if exists inventory_text; create table inventory_text ( inv_date_sk int, inv_item_sk int, inv_warehouse_sk int, inv_quantity_on_hand bigint ) USING cs...
truncate `global`; truncate `player`; truncate `rolegroup`; truncate `rolesocial`; truncate `playername`;
<gh_stars>10-100 SELECT current_catalog() as cat
/*pga4dash*/ {% set add_union = false %} {% if 'session_stats' in chart_names %} {% set add_union = true %} SELECT 'session_stats' AS chart_name, row_to_json(t) AS chart_data FROM (SELECT (SELECT count(*) FROM pg_stat_activity{% if did %} WHERE datname = (SELECT datname FROM pg_database WHERE oid = {{ did }}){% endi...
<filename>test/db/db2/rake_test_data.sql CREATE TABLE EMPLOYEE ( EMPNO CHAR(6) NOT NULL, FIRSTNME VARCHAR(12) NOT NULL, MIDINIT CHAR(1), LASTNAME VARCHAR(15) NOT NULL, WORKDEPT CHAR(3), PHONENO CHAR(4), HIREDATE DATE, JOB CHAR(8), EDLEVEL SMALLINT NOT NULL, SEX CHAR(1), BIRTHDATE DATE, SALARY DE...
<gh_stars>10-100 -- +goose Up -- +goose StatementBegin CREATE TABLE upvotes ( user_id UUID NOT NULL REFERENCES users(id), post_id UUID NOT NULL REFERENCES posts(id), created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), CONSTRAINT upvotes_pkey PRIMARY KEY (user_id, post_id) ); -- +goose StatementEnd -- +goose Down --...
Filename: h5stat_newgrat.h5 Small # of attributes (objects with 1 to 10 attributes): Total # of objects with small # of attributes: 0 Attribute bins: # of objects with 100 - 999 attributes: 1 Total # of objects with attributes: 1 Max. # of attributes to objects: 100
/* Enter your query here. */ /* Min */ SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY), CITY LIMIT 1; -- SELECT CITY, LENGTH(CITY) -- FROM STATION -- WHERE LENGTH(CITY) = -- ( -- SELECT MIN(LENGTH(CITY)) -- FROM STATION -- ) -- ORD...
<reponame>nicferrier/crudi CREATE OR REPLACE FUNCTION setup_rtrigger(tablename text) RETURNS void AS $$ begin PERFORM tgname FROM pg_trigger WHERE tgname = 'repl_' || tablename; if NOT FOUND then EXECUTE 'CREATE TRIGGER repl_' || quote_ident(tablename) || ' ' || 'AFTER INSERT OR UPDATE OR DELETE...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Jun 2021 pada 14.32 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
BEGIN TRANSACTION; INSERT INTO Article VALUES(1,'Test title 1','Test content 1',1637303793517,1637303793519,5); INSERT INTO Article VALUES(3,'Test title 3','Test content 3',1637304068343,1637304068343,5); INSERT INTO User VALUES(3,'<EMAIL>','$argon2i$v=19$m=4096,t=3,p=1$V3EamwW5cuZo8zv/92gzYQ$HBz+eQ0ZP8EXSkM29uKCsK3ySQ...
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for phone_account -- ---------------------------- DROP TABLE IF EXISTS `mini_program_account`; CREATE TABLE `mini_program_account` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `user_identity` char(64) ...
<reponame>xhostcom/adonis-node-fullstack-starter -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 08, 2020 at 08:21 PM -- Server version: 10.4.12-MariaDB-1:10.4.12+maria~disco-log -- PHP Version: 7.2.24-0ubuntu0.19.04.2 SET SQL_MODE = "NO_AUT...
<gh_stars>0 -- 19030735 <NAME> SELECT student.person_id, person.first_name || ' ' || person.last_name "Name", course.course_name, specification.specification_name, student.fees "Old Fees", CASE student.specification_id WHEN (SELECT specification_id FROM specification ...
<reponame>Sashuu6/CET-MCA-S3-Internet_Programming<filename>cycle_2/hospital/extra/library.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 06, 2018 at 02:46 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE...
/* The BETWEEN operator selects values within a given range. The values can be numbers, text, or dates. The BETWEEN operator is inclusive: begin and end values are included. */ SELECT LAST_NAME FROM Employees WHERE Salary BETWEEN 4200 AND 6000; /* LAST_NAME ------------------------- Ernst Austin P...
<filename>5.2.3/Database/Constraints/AFW_21_PLUGN_ITEM_MENU_UK1.sql SET DEFINE OFF; ALTER TABLE AFW_21_PLUGN_ITEM_MENU ADD ( CONSTRAINT AFW_21_PLUGN_ITEM_MENU_UK1 UNIQUE (REF_ITEM_MENU, REF_PLUGN_MENU) ENABLE VALIDATE) /
\c tajinaste CREATE SCHEMA IF NOT EXISTS api; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE IF NOT EXISTS api.people ( id smallserial PRIMARY KEY, uuid uuid UNIQUE NOT NULL DEFAULT uuid_generate_v4(), dni character(9) UNIQUE NOT NULL, name text NOT NULL CHECK(length(name) < 64), surname text NOT NULL...
CREATE OR REPLACE PACKAGE TT_Log_Set AS /*************************************************************************************************** Name: tt_log_set.pks Author: <NAME> Date: 17-Mar-2019 Package spec component in the Oracle log_set_oracle module. This is a logging fram...
-- file:tsearch.sql ln:501 expect:true SELECT plainto_tsquery('SKIES My booKs')
<reponame>sidikfaha/camerdevs insert into jobtitles (title) values ('Office Assistant I'); insert into jobtitles (title) values ('Assistant Manager'); insert into jobtitles (title) values ('Software Test Engineer I'); insert into jobtitles (title) values ('Statistician II'); insert into jobtitles (title) values ('Devel...
<gh_stars>1000+ -- 2021-05-05T09:10:02.708Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Element_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,Upda...
<reponame>chris-stanton/APP-wrap-designer-fullStack /*DH blank mesurements, measure from guide to guide all other blanks measure from tip to butt*/ -- <--- threads table ---> CREATE TABLE threads ( id SERIAL PRIMARY KEY, mfgName VARCHAR(80) NOT NULL, color VARCHAR(80) NOT NULL, image VARCHAR(80), threadNum...
#standardSQL -- Copyright 2021 The Nomulus Authors. All Rights Reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0...
ALTER TABLE content ADD column val_cyber_10x6 bigint NOT NULL DEFAULT 0, DROP column val_gold_10x6; ALTER TABLE users ADD column val_cyber_10x6 bigint NOT NULL DEFAULT 0, DROP column val_gold_10x6; ALTER TABLE users_history ADD COLUMN val_cyber_change_10x6 bigint NOT NULL DEFAULT 0, DROP COLUM...
-- +migrate Up ALTER TABLE authd_user ADD COLUMN disabled boolean; UPDATE authd_user SET "disabled" = FALSE;
<reponame>lbouma/Cyclopath<gh_stars>10-100 /* Copyright (c) 2006-2013 Regents of the University of Minnesota For licensing terms, see the file LICENSE. */ /* This script creates and indexes columns for full text search support. */ /* Run this script once against each instance of Cyclopath @once-per-instance...
-- adoption_all_products_30day (view) SELECT adoption_30day.date AS date, adoption_30day.doc_adoption_30day AS doc_adoption_30day, adoption_30day.forms_adoption_30day AS forms_adoption_30day, adoption_30day.slides_adoption_30day AS slides_adoption_30day, adoption_30day.sheets_adoption_30day AS sheets_adoptio...
-- Copyright (C) 2017 <NAME> -- See the LICENSE file in the project root for more information. CREATE TABLE IF NOT EXISTS log( id TEXT NOT NULL PRIMARY KEY, message TEXT NOT NULL COLLATE NOCASE, messageTemplate TEXT NOT NULL, level VARCHAR(64) NOT NULL, ti...
------------------------------------------------------------------------------- -- -- PLEASE NOTE -- -- No warranty, no liability, no support. -- -- This script is 100% at your own risk to use. -- ------------------------------------------------------------------------------- select extractvalue(value(d),'/hint') as o...
<reponame>NarrativeApp/diesel CREATE TYPE user_job AS ENUM ('programmer', 'director', 'writer', 'mathematician'); CREATE TABLE users ( id INTEGER PRIMARY KEY, job user_job NOT NULL );
<gh_stars>0 -- Counting Laporan for Numbering CREATE OR REPLACE FUNCTION sp_laporan_count_month( _id_jenis int, _id_satker int, _month integer, _year integer ) RETURNS INTEGER AS $$ BEGIN RETURN ( SELECT COUNT(*) AS count FROM laporan WHERE satker_id = _id_satker AND jenis_id = _id_jenis AND EXTRAC...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Bulan Mei 2020 pada 08.32 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
SELECT * FROM pg_catalog.pg_tables WHERE schemaname = 'bot';
<reponame>GiorgiVepkhvadze/TestProject<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 06, 2020 at 02:35 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone =...
<reponame>alcantarajp/projects CREATE DATABASE IF NOT EXISTS `laravel-express` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `laravel-express`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: laravel-express -- ------------------------------------------------------ -- Ser...
<reponame>treebat1/SQLSecurity EXECUTE AS LOGIN = 'EC2\husain.lokhandwala'; SELECT * FROM fn_my_permissions('dbo', 'schema') ORDER BY subentity_name, permission_name ; REVERT; GO
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Jun 2020 pada 15.10 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3308 -- Generation Time: Aug 21, 2020 at 11:41 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...
/* -- Query: SELECT * FROM demande_creation_article.wa_sous_famille LIMIT 0, 50000 -- Date: 2016-11-09 10:28 */ INSERT INTO `wa_sous_famille` (`id_sous_famille`,`CODE`,`LIBELLE`,`persistenceVersion`,`WA_famille_id_famille`,`listeWA_sous_famille_ORDER`) VALUES (1,'497','<NAME> ET GARAGES - 497',0,14,0); INSERT INTO `wa...
<reponame>gavenda/studio-helper CREATE TABLE playlist ( playlist_id bigserial NOT NULL, discord_user_id BIGINT NOT NULL, name character varying NOT NULL, PRIMARY KEY (playlist_id) ); CREATE SEQUENCE playlist_song_playlist_song_id_seq; CREATE TABLE playlist_song ( playlist_song_id BIGINT NOT NULL DE...
USE `my-moments`; CREATE TABLE `user` ( `id` INT NOT NULL AUTO_INCREMENT, `username` VARCHAR(40) NOT NULL, `password` VARCHAR(100) NOT NULL, `email` VARCHAR(100) NOT NULL, PRIMARY KEY(`id`), UNIQUE KEY `USER_USERNAME_UNIQUE` (`username`), UNIQUE KEY `USER_EMAIL_UNIQUE` (`email`) ) ENGINE=INN...
CREATE DATABASE IF NOT EXISTS `project`; USE `project`; -- MySQL dump 10.13 Distrib 5.7.17, for Linux (x86_64) -- -- Host: localhost Database: project -- ------------------------------------------------------ -- Server version 5.7.18-0ubuntu0.16.04.1 -- -- Table structure for table `admin` -- DROP TABLE IF EXI...
<filename>Database Basic/Programmability and Transactions - Exercises/Programmability and Transactions - Exercises/16. Deposit Money.sql CREATE PROCEDURE usp_DepositMoney(@AccountId INT, @MoneyAmount MONEY) AS BEGIN TRANSACTION UPDATE Accounts SET Balance += @MoneyAmount WHERE Id = @AccountId COMMIT
<reponame>albrektsson/kabal-api<filename>src/main/resources/db/migration/V11__add_ytelse_to_mottak.sql<gh_stars>1-10 ALTER TABLE klage.mottak ADD COLUMN ytelse TEXT;
USE [VipunenTK_DW] GO /****** Object: Table [dbo].[f_5_3_Yliopistojen_tutkimustyovuodet_ja_tutkimusmenot_rahoituslahteittain_menolajeittain_yliopistoittain] Script Date: 28.5.2019 15:52:13 ******/ DROP TABLE [dbo].[f_5_3_Yliopistojen_tutkimustyovuodet_ja_tutkimusmenot_rahoituslahteittain_menolajeittain_yliopistoit...
<reponame>Shuttl-Tech/antlr_psql -- file:select_distinct.sql ln:72 expect:true SELECT 1 IS NOT DISTINCT FROM 2 as "no"
-- file:privileges.sql ln:767 expect:true DROP FUNCTION dogrant_fails()
<filename>samples/features/ssms-templates/Sql/Table/Add Memory Optimized Constraint.sql<gh_stars>1000+ --====================================================== -- Add Constraint to a Memory Optimized Table Template -- Use the Specify Values for Template Parameters command (Ctrl-Shift-M) to fill in the parameter values ...
-- Titles table creation CREATE TABLE titles ( title_id VARCHAR(5) PRIMARY KEY NOT NULL, title VARCHAR(20) NOT NULL ); -- Employees table creation CREATE TABLE employees ( emp_no INT PRIMARY KEY NOT NULL, emp_title_id VARCHAR(5) NOT NULL, birth_date DATE NOT NULL, first_name VARCHAR(20) NOT NULL, last_name VARC...
<filename>ole-app/ole-db/ole-sql/ole-master-sql/src/main/resources/sql/mysql/PUR_SHP_TTL_T.sql TRUNCATE TABLE PUR_SHP_TTL_T / INSERT INTO PUR_SHP_TTL_T (VNDR_SHP_TTL_CD,OBJ_ID,VER_NBR,VNDR_SHP_TTL_DESC,DOBJ_MAINT_CD_ACTV_IND) VALUES ('CI','BD3A73C7-BA3E-A68C-8C3D-B2BAE3304C7B',1.0,'CUSTOMS-INTERNATIONAL PORT','Y') / ...
CREATE TABLE `TaskFile`( `tid` INT(11) NOT NULL AUTO_INCREMENT, `chapId` INT(11) NULL, `classId` INT(11) NULL, `filename` VARCHAR(100) NOT NULL, `filepath` TEXT NULL, `author` INT(11) NULL, PRIMARY KEY(`tid`), FOREIGN KEY(`classId`) REFERENCES `Class`(`cid`), FOREIGN KEY(`chapId`) RE...
<reponame>AurumGallente/blackdog<filename>dumps/custom.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Май 19 2014 г., 14:45 -- Версия сервера: 5.6.12-log -- Версия PHP: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00";...
<reponame>akrherz/iem-database<filename>upgrade/sustainablecorn/0.sql<gh_stars>0 --- Support additional columns in the Management Datastore ALTER TABLE operations ADD plantryemethod varchar; ALTER TABLE operations ADD plantmaturity varchar; ALTER TABLE operations ADD growthstage varchar; ALTER TABLE operations ADD can...
INSERT INTO anm_report.dim_anm (anmIdentifier) SELECT 'srir1' WHERE NOT EXISTS (SELECT dim_anm FROM anm_report.dim_anm WHERE anmIdentifier='srir1'); INSERT INTO anm_report.dim_anm (anmIdentifier) SELECT 'budg1' WHERE NOT EXISTS (SELECT dim_anm FROM anm_report.dim_anm WHERE anmIdentifier='budg1'); INSERT INTO anm_re...
-- http://philip.greenspun.com/sql/views.html select users.user_id, users.email, classified_ads.posted from users, classified_ads where users.user_id = classified_ads.user_id(+) and users.email like 'db%' and classified_ads.posted > '1999-01-01' order by users.email, posted; USER_ID EMAIL ...
<filename>pp3/config/pp3.sql -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2....
<filename>oscm-devruntime/javares/sql/upd_postgresql_02_09_01.sql ALTER TABLE subscription ADD "external" boolean NOT NULL DEFAULT false; ALTER TABLE subscriptionhistory ADD "external" boolean NOT NULL DEFAULT false;
<filename>src/test/regress/sql/tuple_serialization.sql -- Check if motion layer correctly serialize & deserialize tuples in particular cases CREATE TYPE incomplete_type; CREATE FUNCTION incomplete_type_in(cstring) RETURNS incomplete_type AS 'textin' LANGUAGE internal IMMUTABLE STRICT; CREATE FUNCTION incomple...
<reponame>unepwcmc/SAPI<filename>db/views/valid_term_purpose_view/20141223141125.sql SELECT terms.code AS term_code, terms.id AS term_id, purposes.code AS purpose_code, purposes.id AS purpose_id FROM term_trade_codes_pairs INNER JOIN trade_codes as purposes ON purposes.id = term_trade_codes_pairs.trade_code_i...
<reponame>Zhaojia2019/cubrid-testcases --+ holdcas on; --order by skip error set system parameters 'dont_reuse_heap_file=yes'; create class xoo ( a int, b int); create index idx1 on xoo(a asc, b desc); create index idx2 on xoo(a desc, b desc); create reverse index idx3 on xoo(a,b); insert into xoo values(1,100); ins...
<reponame>DCMidwood/dap-admin-api<gh_stars>0 INSERT INTO dap_project VALUES (1, "ProjectA", "dbA"), (2, "ProjectB", "dbB"); INSERT INTO dap_workpack VALUES (1, "WorkpackAlpha", "1", "39.77,-86.15"), (2, "WorkpackBeta", "1", "40,-79.9"), (3, "WorkpackCharlie", "2","40.565,-120.5959"), (4, "Workpac...
SELECT DISTINCT DepartmentID , Salary FROM ( SELECT DepartmentID , Salary , DENSE_RANK() OVER (PARTITION BY DepartmentID ORDER BY Salary DESC) AS [SalaryRank] FROM Employees ) AS e WHERE SalaryRank = 3
/* * Error.sql * Chapter 4, Oracle10g PL/SQL Programming * by <NAME>, <NAME>, <NAME> * * This script demonstrates error functions SQLERRM and SQLCODE */ SET SERVEROUTPUT ON DECLARE v_error VARCHAR2(10); BEGIN SELECT dummy INTO v_error FROM dual WHERE 1=2; EXCEPTION WHEN OTHERS THEN DBM...
<reponame>uicodefr/postit<filename>postit-server/src/main/resources/db/migration/V0.7.1.4__add_ordernum_on_board.sql -- Add column "order_num" in "postit_board" /* ROLLBACK SCRIPT : * * ALTER TABLE postit_board DROP COLUMN order_num; * */ ALTER TABLE postit_board ADD COLUMN order_num integer; UPDATE postit_bo...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 09, 2021 at 06:24 AM -- 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"; /*!40...
<gh_stars>0 CREATE DATABASE solorob_db; USE solorob_db; /* --CREATE USER 'admin'@'localhost'; --grant all privileges on solorob_db.* to 'admin'@'localhost' identified by 'adminadmin'; --drop database solorob_db; source /home/marcel/Documents/Berufsschule/AWP/htdocs/AWP/solorob/create_solorob_db.sql; source /home/marce...
<reponame>lgcarrier/AFW<filename>5.2.3/Database/Indexes/AFW_19_FONCT_DESCR_PK.sql SET DEFINE OFF; CREATE UNIQUE INDEX AFW_19_FONCT_DESCR_PK ON AFW_19_FONCT_LANG (SEQNC) LOGGING /
# Stocks schema # --- !Ups CREATE TABLE "stocks" ( "symbol" varchar(8) NOT NULL, "last_trade" decimal(10,4) NOT NULL DEFAULT '0.0000', "last_trade_time" bigint DEFAULT '0', "dbupdate_time" bigint DEFAULT '0', PRIMARY KEY ("symbol"), UNIQUE ("symbol") ); CREATE INDEX ON "stocks" ("last_trade"); CREATE IND...