sql
stringlengths
6
1.05M
<gh_stars>0 -- example sql query SELECT * FROM EXAMPLE;
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 09, 2018 at 09:45 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>SQL Files & Scripts/script.sql source /home/eric/PycharmProjects/ir_standings_analyzer/SQL Files & Scripts/table_deletion.sql; source /home/eric/PycharmProjects/ir_standings_analyzer/SQL Files & Scripts/table_creation.sql; source /home/eric/PycharmProjects/ir_standings_analyzer/SQL Files & Scripts/table_datal...
<filename>pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/schemas/templates/schemas/ppas/9.1_plus/sql/update.sql {% import 'macros/security.macros' as SECLABEL %} {% import 'macros/privilege.macros' as PRIVILEGE %} {% import 'macros/default_privilege.macros' as DEFAULT_PRIVILEGE %} {% if data %} {#...
<reponame>manifest/conferences<filename>migrations/2020-03-30-225756_add_room_time_constraint/up.sql ALTER TABLE room ADD CONSTRAINT room_time_presence CHECK (time <> 'empty');
<reponame>MasayukiOzawa/SQLServer-Util SELECT * FROM sys.dm_exec_query_optimizer_info
<filename>EmployeeSQL/queries.sql --List the following details of each employee: employee number, last name, first name, sex, and salary. Select employees.emp_no, employees.last_name, employees.first_name, employees.sex, salaries.salary From employees Join salaries On employees.emp_no = salaries.emp_no; --List first ...
<filename>FiscalCalendar/vwFiscalCalBase.sql ---- create dummy view if it doesnt exist if not exists (select * from sysobjects where id = object_id('dbo.vwFiscalCalBase')) begin exec ('CREATE view vwFiscalCalBase as select 0 as x') end GO ALTER VIEW vwFiscalCalBase AS Select CALENDAR_DAY AS CalDate, ...
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; ALTER TABLE ONLY public.auth_user_user_permissions DROP CO...
<gh_stars>0 -- MySQL dump 10.13 Distrib 8.0.14, for Win64 (x86_64) -- -- Host: localhost Database: datarepresentation -- ------------------------------------------------------ -- Server version 8.0.14 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
<gh_stars>0 WITH banana_urls AS ( SELECT 'https://www.banana.com/landing-page/subpage?query=thing' AS url UNION ALL SELECT 'https://www.hotdog.com/landing-page/subpage?query=thing' AS url UNION ALL SELECT 'https://www.banana.com?query=thing' AS url UNION ALL SELECT ...
/****** Object: StoredProcedure [dbo].[AddNewMSTerms] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[AddNewMSTerms] /**************************************************** ** ** Desc: ** Adds new PSI-MS terms to T_CV_MS ** ** The source table must have columns: ...
<filename>src/Application/Migrations/__2018-04-20_refactor_names_and_improve_performance.sql BEGIN; SET ROLE TO postgres; CREATE INDEX tbl_ticket_parent_id_idx ON tbl_ticket USING hash(parent_id); CREATE INDEX tbl_ticket_view_servicable_idx ON tbl_ticket USING btree(failed, service_executable, ticket_type); COMMIT; ...
<filename>posda/posdatools/queries/sql/GetSeriesWithSignatureIntake.sql -- Name: GetSeriesWithSignatureIntake -- Schema: intake -- Columns: ['series_instance_uid', 'signature'] -- Args: ['collection', 'site'] -- Tags: ['signature'] -- Description: Get a list of Series with Signatures by Collection Intake -- select ...
<filename>goci-core/goci-db-binding/src/main/resources/db/migration/V2.2.0_029__Create_CountryXref_Tables.sql /* ################################################################################ Migration script to create ANCESTRY_COUNTRY_OF_ORIGIN and ANCESTRY_COUNTRY_OF_RECRUITMENT tables Designed for execution with ...
insert into author (age, name, genre, id) values (23, "<NAME>", "Anthology", 1) ^; insert into author (age, name, genre, id) values (43, "<NAME>", "Horror", 2) ^; insert into author (age, name, genre, id) values (51, "<NAME>", "Anthology", 3) ^; insert into author (age, name, genre, id) values (34, "<NAME>", "History",...
alter table "public"."pinned_items" add constraint "pinned_items_user_id_fkey" foreign key ("user_id") references "public"."users" ("id") on update cascade on delete cascade;
<reponame>qiuwenhuifx/postgresql.builtin_pool<gh_stars>10-100 -- -- ALTER TABLE ADD COLUMN DEFAULT test -- SET search_path = fast_default; CREATE SCHEMA fast_default; CREATE TABLE m(id OID); INSERT INTO m VALUES (NULL::OID); CREATE FUNCTION set(tabname name) RETURNS VOID AS $$ BEGIN UPDATE m SET id = (SELECT c.re...
<filename>medium/_01_fixed/cases/clshar.sql autocommit off; create class cc class attribute(ca int default 10) (a int, b int shared 123, class cb int default 20); insert into cc values( 99, 123 ); select class cc.ca, b from cc; select ca, cb from class cc; update class cc set ca = 70, cb = 77 where ca = 10 and cb = 20...
<filename>siremis/modules/system/mod.install.sql /*Table structure for table `acl_action` */ DROP TABLE IF EXISTS `acl_action`; CREATE TABLE `acl_action` ( `id` int(10) unsigned NOT NULL auto_increment, `module` varchar(64) NOT NULL default '', `resource` varchar(64) NOT NULL default '', `action` varchar(64) ...
set system parameters 'create_table_reuseoid=no'; autocommit off; drop if exists bar,foo; CREATE TABLE foo ( id INT PRIMARY KEY, phone VARCHAR(10)); insert into foo values (1, '111-1111'); CREATE TABLE bar ( ID INT, f_col foo ); insert into bar values (1, NULL); commit; alter table bar add CONSTRAINT fk_id FOREIGN ...
<reponame>carloswilliamy/PDM<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 14-Out-2019 às 13:59 -- Versão do servidor: 10.3.16-MariaDB -- versão do PHP: 7.3.6 CREATE DATABASE saude; USE saude; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET A...
<reponame>sonroyaalmerol/urc-management-system /* Warnings: - You are about to drop the column `image` on the `User` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "Profile" ADD COLUMN "photo_id" TEXT; -- AlterTable ALTER TABLE "User" DROP COLUMN "image"; -- AddForeignKey ALTER...
-- CreateTable CREATE TABLE "messages" ( "id" TEXT NOT NULL PRIMARY KEY, "text" TEXT NOT NULL, "created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "userId" TEXT NOT NULL, CONSTRAINT "messages_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users" ("id") ON DELETE RESTRICT ON UPDATE CASCADE );
<reponame>PVOBrien/cf301lLabWork<gh_stars>0 INSERT INTO books (image, title, authors, description, isbn) VALUES ('https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Space_Needle_2011-07-04.jpg/1200px-Space_Needle_2011-07-04.jpg', 'a book', 'someone', 'you read it, with words', '1234567890'); INSERT INTO books (...
<filename>db_scripts/views/vw_items.sql --------------------------------------------------------------- -- view: vw_items --------------------------------------------------------------- -- drop view vw_items; create or replace view vw_items as select c.flexible_key as catalogue_flex_key, i.catalogue_key, ...
-- begin SIMIIAM_ROLE create table SIMIIAM_ROLE ( ID uuid, UPDATE_TS timestamp, UPDATED_BY varchar(50), CREATE_TS timestamp, CREATED_BY varchar(50), VERSION integer not null, -- NAME varchar(100) not null, REMARKS text, -- primary key (ID) )^ -- end SIMIIAM_ROLE -- begin SIMI...
<gh_stars>0 /* Compose and test 10 queries that answer the questions below. */ -- Exercise 8 /* 1. Write a select statement that generates a random number, the square root, as well as the the floor and the ceiling values of for the discount amount from the row in the order items table that has an order_id of 1. For t...
<filename>db/apms_sys_table.sql --------------- 系统表 ----------------- ------------------- -- 字典表 -- ------------------- -- CREATE TABLE CREATE TABLE APMS_SYS_DICT ( DICT_ID NUMBER(9) NOT NULL, DICT_PARENT_ID NUMBER(9), DICT_NATURE VARCHAR2(30) NOT NULL, DICT_CODE VARCHAR2(50) NOT NULL,...
CREATE TABLE RATINGS ( userId varchar(255), movieId varchar(255), rating float, PRIMARY KEY (userId, movieId), FOREIGN KEY (movieId) REFERENCES MOVIES(id) );
<filename>src/test/resources/e_fkey.test_81.sql -- e_fkey.test -- -- execsql { -- BEGIN; -- INSERT INTO t1 VALUES(4, 4); -- SAVEPOINT one; -- INSERT INTO t1 VALUES(5, 6); -- SELECT * FROM t1; -- } BEGIN; INSERT INTO t1 VALUES(4, 4); SAVEPOINT one; INSERT INTO t1 VALUES(5, 6); SELECT * F...
ALTER TABLE IACUC_PROTOCOL_EXCEPTIONS ADD CONSTRAINT FK_IACUC_PROTO_EXCEPTION_CAT FOREIGN KEY (EXCEPTION_CATEGORY_CODE) REFERENCES IACUC_EXCEPTION_CATEGORY (EXCEPTION_CATEGORY_CODE) / ALTER TABLE IACUC_PROTOCOL_EXCEPTIONS ADD CONSTRAINT FK_IACUC_EXPCEPTION_SPECIES FOREIGN KEY (SPECIES_CODE) REFERENCES IACUC_SPEC...
<reponame>MrP29/LeetCode<gh_stars>0 # Write your MySQL query statement below #NOT IN SELECT Name AS Customers FROM Customers WHERE Id NOT IN(SELECT CustomerId FROM Orders); #LEFT JOIN SELECT Name AS CUstomers FROM Customers C LEFT JOIN Orders O ON C.Id = O.CustomerId WHERE O.CustomerId IS NULL
-- -- Table structure for table `pm` -- CREATE TABLE `pm` ( `id` bigint(20) NOT NULL, `id2` int(11) NOT NULL, `title` varchar(256) NOT NULL, `user1` bigint(20) NOT NULL, `user2` bigint(20) NOT NULL, `message` text NOT NULL, `timestamp` int(10) NOT NULL, `user1read` varchar(3) NOT NULL, `user2read` ...
create table T_CITY ( _id integer primary key autoincrement, NAME TEXT not null, COUNTRY TEXT not null, LONGITUDE REAL not null, LATITUDE REAL not null ); insert into T_CITY(_id, NAME, COUNTRY, LONGITUDE, LATITUDE) values (null,'Tokyo','Japan', 139.7513889, 35.685); insert into T_CITY(_id, NAME, COUNTRY, LONGITUD...
DROP TABLE cart; CREATE TABLE cart( id INT, custid CHAR(5), itemid INT, num INT, regdate DATE ); ALTER TABLE cart ADD PRIMARY KEY (id); ALTER TABLE cart MODIFY id INT AUTO_INCREMENT; ALTER TABLE cart AUTO_INCREMENT = 1000; ALTER TABLE cart ADD CONSTRAINT FOREIGN KEY (custid) REFERENCES cust(id); ALTER TABLE cart ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-12-2017 a las 06:51:57 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
DROP TABLE Item IF EXISTS; DROP TABLE Invoice IF EXISTS; DROP TABLE Product IF EXISTS; DROP TABLE Customer IF EXISTS; CREATE TABLE Customer(ID INTEGER PRIMARY KEY,FirstName VARCHAR(20),LastName VARCHAR(30),Street VARCHAR(50),City VARCHAR(25)); CREATE TABLE Product(ID INTEGER PRIMARY KEY,Name VARCHAR(30),Price DE...
CREATE TABLE SPAM ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), );
<gh_stars>1-10 /* @author: <NAME> @description: Common terminologies and functions used in FHIR-based CQL artifacts */ library FHIRCommon version '4.0.1' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' codesystem "LOINC": 'http://loinc.org' codesystem "SNOMEDCT": 'http://snomed.info/sct' codesystem "A...
select title, akas from gcp.gcp_compute_router where name = '{{ resourceName }}'
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. ------------------------------------------------------------------------------------------- -- SCRIPT: DF.SQL -- PURPOSE: Show Oracle tab...
<gh_stars>0 UPDATE `#__cck_core_fields` SET `storage_table` = "#__users", `storage_field` = "password2" WHERE `id` = 312;
<filename>migrations/sqls/20180410204352-reserved-application-definitions-down.sql DROP VIEW IF EXISTS view_mapped_permissions_production; DROP VIEW IF EXISTS view_mapped_permissions_staging; DROP VIEW IF EXISTS view_mapped_permissions; DROP VIEW IF EXISTS view_function_group_info; ALTER TABLE function_group_info DROP...
<filename>sql/_31_cherry/issue_22705_parallel_online_index/_007_desc_index_scan/cases/_17_like.sql --+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t1 (id int, v varchar(20), c char(20), s string); create index i_t1_all on t1(v,c,s) with online; create index i_t1_v on t1(v) with online par...
<gh_stars>0 -- @testpoint:opengauss关键字enable(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists enable; create database enable; drop database enable; --关键字带双引号-成功 drop database if exists "enable"; create database "enable"; drop database "enable"; --关键字带单引号-合理报错 drop database if exists 'enable'; create database 'enabl...
-- 2013-12-14T15:45:28+01:00 - mysql:dbname=abc;host=localhost -- Table structure for table `organization` DROP TABLE IF EXISTS `organization`; CREATE TABLE `organization` ( `id` int(12) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `street_address` varchar(255) NOT NULL, `zip_code` varchar(32) NOT N...
-- migrate:up CREATE TABLE comments ( tenant_id UUID NOT NULL, id BIGSERIAL NOT NULL, user_id UUID NOT NULL, comment TEXT NOT NULL, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), CHECK( EXTRACT( TIMEZONE FROM created_at ) = '0' ) , CONSTRAI...
<filename>database/tests.sql INSERT INTO T_utilisateur VALUES('<EMAIL>', <PASSWORD>', 'Ecureuil', 'Volant', 'Ecureuil', default); INSERT INTO T_annonce VALUES (default, '<NAME>', 500, 120, 'individuel', 90, 'La légende raconte que des sardines danses en faisant tourner des serviettes toute les nuits.', '<NAME>', 'Salo...
<reponame>h4rshit-d4rk/hotshot create database login_sample_db; use login_sample_db; create table users (id bigint primary key AUTO_INCREMENT, user_id int not null, user_name varchar(20), password varchar(20), date timestamp );
<filename>C#/Exercicio Banco de Dados/Create_Table_Notas.sql CREATE TABLE [dbo].[Notas] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Aluno] INT NOT NULL, [Nota1] INT NOT NULL, [Nota2] INT NOT NULL, [Nota3] INT NOT NULL, [Nota4] INT NOT NULL, PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_...
/* DESCRIPTION: Use this procedure to get records in a column of a table that contain all the written words (delimited by space) in any given order. Each word may be equal or contain each of the input words depending on the 4th boolean parameter (see the examples for further explanation). Search is Case-insensitive. Ea...
-- Drops the burgers_db if it already exists -- DROP DATABASE IF EXISTS burgers_db; -- Create the database burgers_db and specified it for use. CREATE DATABASE burgers_db; USE burgers_db; -- Create the burger table CREATE TABLE burgers ( id INT NOT NULL AUTO_INCREMENT, -- burger_name (string) burger_name VA...
<reponame>enriqueescobar-askida/SqlServerProfiler<filename>Sql/DB-Function_count-Valued.sql SELECT COUNT(*) FROM dbo.sysobjects WHERE [type] IN ( 'TF' -- table-valued functions ) ;
SET DEFINE OFF; create or replace package afw_12_group_stat_pkg as procedure creer_group_stat (pva_code in varchar2 ,pva_nom in varchar2 ,pva_descr in varchar2 ,pva_code_prodt in varchar2); function cre...
-- This script will generate a bash script to move files from their old location to the new one. -- This script should be used on the old DB. And the generated bash script might be manually tweaked -- and executed at a later time, most likely just before/right after the switch to production of the new app. -- -- Typica...
<gh_stars>1-10 CREATE TABLE [dbo].[tbl_stg_Jira_Issue_Sprint] ( [Sprint_Id] [int] NOT NULL, [Issue_Id] [int] NOT NULL, [Refresh_Id] [int] NOT NULL CONSTRAINT [DF_tbl_stg_Jira_Issue_Sprint_Refresh_Id] DEFAULT ((0)) ) ON [PRIMARY] GO ALTER TABLE [dbo].[tbl_stg_Jira_Issue_Sprint] ADD CONSTRAINT [PK_tbl_Jira_Issue_S...
<reponame>Emmyn5600/SQLZOO-Database<gh_stars>1-10 -- SQL tasks from https://sqlzoo.net/wiki/SQL_Tutorial /* =============================================================== ** ** ***** ***** TUTORIAL - 2 - SELECT from World ***** ***** ** ** ...
<reponame>ashraf789/Hacker-rank-problem-solving /* Higher Than 75 Marks Query the Name of any student in STUDENTS who scored higher than Marks. Order your output by the last three characters of each name. If two or more students both have names ending in the same last three characters (i.e.: Bobby...
<filename>01-basic-query/07-subquery/subquery-pagination.sql select EMPLOYEE_ID, FIRST_NAME, SALARY, JOB_ID from ( select row_number() over (order by ROWNUM) as no, empl.* from EMPLOYEES empl order by EMPLOYEE_ID ) where no between (:start + 1) and (:page * :limit);
-- CREATE DATABASE tutorcare_core OWNER tutorcare_admin; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE users(user_id uuid DEFAULT uuid_generate_v4() NOT NULL, first_name varChar(255), last_name varChar(255), email varChar(255), password varChar(255), date_joined TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP, status ...
-- MySQL dump 10.13 Distrib 5.7.31, for Linux (x86_64) -- -- Host: localhost Database: syscpa -- ------------------------------------------------------ -- Server version 5.7.31-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-03-2022 a las 03:26:14 -- Versión del servidor: 10.4.21-MariaDB -- Versión de PHP: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
/*----------------------------------------------------------------------- Copyright (c) Microsoft Corporation. Licensed under the MIT license. -----------------------------------------------------------------------*/ CREATE TABLE [dbo].[ExecutionEngine] ( [EngineId] BIGINT IDENTITY (1, ...
CREATE TABLE IF NOT EXISTS `demoTable` ( `demoID` int(11) NOT NULL AUTO_INCREMENT, `demoVarchar` varchar(36) DEFAULT NULL, `demoChar` char(16) DEFAULT NULL, `demoTimeStamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`demoID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 A...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-3_2-SCRIPT/oracle/constraints/KC_FK_NEGOTIATION_ACTIVITY.sql<gh_stars>0 ALTER TABLE NEGOTIATION_ACTIVITY ADD CONSTRAINT NEGOTIATION_ACTIVITY_FK1 FOREIGN KEY (NEGOTIATION_ID) REFERENCES NEGOTIATION (NEGOTIATION_ID)...
/*Врачи*/ INSERT INTO doctor(id, firstname, lastname, patronymic, specialization) VALUES (0, 'Иван', 'Иванов', '', 'therapist'); INSERT INTO doctor(id, firstname, lastname, patronymic, specialization) VALUES (1, 'Евгений', 'Петросян', 'Ваганович', 'okulist'); INSERT INTO doctor(id, firstname, lastname, patronymic, spec...
<reponame>sergiomt/bulkmailer<filename>src/main/resources/com/knowgate/bulkmailer/hipergate/datamodel/data/k_lu_status.sql INSERT INTO k_lu_status (id_status,tr_en,tr_es,tr_de,tr_it,tr_fr,tr_pt,tr_ca,tr_eu,tr_ja,tr_cn,tr_tw,tr_ru,tr_u1,tr_u2,tr_u3,tr_u4) VALUES (-2,'Retired','Retirado','Ausgeschieden','Pensionato' ,'R...
INSERT INTO discount (id, discount, shop_id) VALUES (1, 30, 124), (2, 30, 110), (3, 20, 150), (4, 30, 46), (5, 20, 256), (6, 30, 26), (7, 20, 127), (8, 10, 227), (9, 10, 333), (10, 10, 391), (11, 10, 52), (12, 10, 357), (13, 30, 481), (14, 10, 99), (15, 30, 21...
<filename>ita_install_package/ITA/ita-sqlscripts/ja_JP_mysql_ita_model-n.sql -- ***************************************************************************** -- *** ***** CreateParameterMenu Tables *** -- *****************************************************************************...
SELECT tab0.v1 AS v1 , tab6.v7 AS v7 , tab4.v5 AS v5 , tab5.v6 AS v6 , tab3.v4 AS v4 , tab2.v3 AS v3 , tab7.v8 AS v8 , tab1.v2 AS v2 FROM (SELECT obj AS v1 FROM gr__offers$$1$$ WHERE sub = 'wsdbm:Retailer6970' ) tab0 JOIN (SELECT sub AS v1 , obj AS v2 FROM gr__includes$$2$$ ) tab1 ON(tab0.v1=tab1.v...
<gh_stars>100-1000 -- -- Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA -- -- 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 --...
<filename>persistence/sql/migrations/20200521071434000000_consent.postgres.down.sql<gh_stars>1000+ DROP INDEX hydra_oauth2_consent_request_client_id_subject_idx;
DROP FUNCTION sum_int32_be; DROP FUNCTION sum_int32_le; DROP FUNCTION sum_int64_be; DROP FUNCTION sum_int64_le; DROP FUNCTION sum_u_int32_be; DROP FUNCTION sum_u_int32_le; DROP FUNCTION sum_u_int64_be; DROP FUNCTION sum_u_int64_le; DROP FUNCTION sum_float_be; DROP FUNCTION sum_float_le; DROP FUNCTION sum_double_be; DRO...
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Хост: localhost:3306 -- Время создания: Янв 29 2018 г., 09:53 -- Версия сервера: 5.7.20-0ubuntu0.17.04.1 -- Версия PHP: 7.0.22-0ubuntu0.17.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 16, 2015 at 11:40 PM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `theBlue` -- -- -----------------------...
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字breadth(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists breadth_test cascade; --关键字不带引号-合理报错 create table breadth_test(id int,name breadth); --关键字带双引号-合理报错 create table breadth_test(id int,name "breadth"); --关键字带单引号-合理报错 create table breadth_test(id int,name ...
<filename>openGaussBase/testcase/KEYWORDS/access/Opengauss_Function_Keyword_Access_Case0029.sql -- @testpoint:opengauss关键字access(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists access; CREATE TABLESPACE access RELATIVE LOCATION 'tablespace/tablespace_1'; --清理环境 drop tablespace access; --关键字带双引号,创建成功 drop tablesp...
------------------------------------- ---------- hash index part2---------- ------------------------------------- set enable_seqscan = off; set enable_indexscan = off; -- continue to hash_index_001 explain (costs off) select * from hash_table_7 where id = 80; drop table hash_table_7 cascade; -- low maintenance_work_...
ALTER TABLE test_run DROP CONSTRAINT test_run_test_run_command_id_fkey; -- -- Drop old Foreign Keys -- ALTER TABLE test_run_y2006_m11_wk1 DROP CONSTRAINT test_run_y2006_m11_wk1_test_run_command_id_fkey; ALTER TABLE test_run_y2006_m11_wk2 DROP CONSTRAINT test_run_y2006_m11_wk2_test_run_command_id_fkey; ALTER TABLE...
<reponame>mrscaper/EmployeeRegister CREATE TABLE [dbo].[Employee] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Deleted] BIT NULL, [Name] NVARCHAR (255) NOT NULL, [Email] NVARCHAR (255) NULL, [EmployerId] INT NULL, PRIMARY KEY CLUSTERED ([Id] ASC), CONS...
-- ================================================ -- Template generated from Template Explorer using: -- Create Trigger (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -- See additional Create Trigger templates for more -- ex...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 19, 2019 at 05:10 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<reponame>daihuynh2010/BedShop -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 16, 2018 at 09:05 AM -- Server version: 10.1.24-MariaDB -- PHP Version: 7.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
<filename>src/main/project/mysql.database.schema.sql -- MySQL Script generated by MySQL Workbench -- 12/30/14 11:31:21 -- 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...
<reponame>kirisetsz/DidiTech2016<filename>src/init.sql -- 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'; -- ------------------...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Okt 2019 pada 04.27 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
/****** Object: Stored Procedure dbo.h3giGetOrderDispatchDate Script Date: 23/06/2005 13:35:20 ******/ CREATE PROC dbo.h3giGetOrderDispatchDate @OrderRef int AS DECLARE @SQL varchar(1000) DECLARE @GMDB varchar(25) select @GMDB = idValue from config where idName = 'OFS4GMDatabase' SET @SQL = ...
INSERT INTO OFFENDER_PROFILE_DETAILS (OFFENDER_BOOK_ID, PROFILE_SEQ, PROFILE_TYPE, PROFILE_CODE, LIST_SEQ, COMMENT_TEXT, CASELOAD_TYPE) VALUES (-1, 1, 'R_EYE_C', 'BLUE', 1, null, 'INST'); INSERT INTO OFFENDER_PROFILE_DETAILS (OFFENDER_BOOK_ID, PROFILE_SEQ, PROFILE_TYPE, PROFILE_CODE, LIST_SEQ, COMMENT_TEXT, CASELOAD_TY...
<filename>src/test/resources/sql/select/b974ac6b.sql -- file:tstypes.sql ln:12 expect:true SELECT E'''1 \\''2'' '' 3'' 4 '::tsvector
create view "postgres"._airbyte_test_normalization."conflict_stream_name_ab3__dbt_tmp" as ( -- SQL model to build a hash column based on the values of this record select md5(cast(coalesce(cast("id" as varchar ), '') || '-' || coalesce(cast(conflict_stream_name as varchar ), '') as varchar )) ...
Insert into eg_roleaction (roleid, actionid) values ((select id from eg_role where name = 'CITIZEN'), (select id from eg_action where name = 'SewerageCitizenOnlinePayment'));
<gh_stars>1-10 -- First, we identify all conditions used in the database. -- We don't use a TEMP TABLE because they cannot be used twice in a same query CREATE TABLE tempSafeToDropCondUsed (PRIMARY KEY(conditionId)) SELECT DISTINCT t1.conditionId FROM cond AS t1 LEFT OUTER JOIN estLibrary AS t2 ON t1.conditionId = t2.c...
-- This file is automatically generated using maintenance/generateSchemaSql.php. -- Source: maintenance/tables.json -- Do not modify this file directly. -- See https://www.mediawiki.org/wiki/Manual:Schema_changes CREATE TABLE /*_*/site_identifiers ( si_type BLOB NOT NULL, si_key BLOB NOT NULL, si_site INTEGER UNS...
<reponame>sziszo/fantasy-f1 INSERT INTO FANTASY_SERIES(ID, NAME) VALUES ('f1', 'Formula 1'); INSERT INTO FANTASY_SERIES(ID, NAME) VALUES ('fe', 'Formula E'); INSERT INTO FANTASY_DEFINITIONS(SERIES, SEASON, NEXT_RACE, INITIAL_MONEY, INITIAL_DRIVER_PRICE, INITIAL_CONSTRUCTOR_PRICE) VALUES ('f1', 2019, 1, 100000000, 1500...
<gh_stars>0 DROP FUNCTION psql_regex_capi_win(text, text); DROP FUNCTION psql_regex_capi(text, text, int);
-- @required(hanaMinimumVersion,2.0.40) -- ================================================================ connect USER_APL password <PASSWORD>; SET SESSION 'APL_CACHE_SCHEMA' = 'APL_CACHE'; drop type FORECAST_OUT_T; create type FORECAST_OUT_T as table ( "Date" DAYDATE, "Cash" DOUBLE, "kts_1" DOUBLE ); drop table...
<reponame>dserkowski/mots --liquibase formatted sql --changeset pmuchowski:1511024378665-1 ALTER TABLE module ADD ivr_group VARCHAR(255) NULL;
<reponame>jorgemhtdev/rogerthat-ios-client -- Add a last_resend_timestamp to the Backlog table ALTER TABLE friend ADD COLUMN existence INTEGER DEFAULT 0;
CREATE TABLE phabricator_file.file_proxyimage ( id int unsigned not null primary key auto_increment, uri varchar(255) binary not null, unique key(uri), filePHID varchar(64) binary not null ) ENGINE=InnoDB;