sql
stringlengths
6
1.05M
<reponame>carehart/dba-dash CREATE PROC dbo.DBConfig_Upd( @DBConfig dbo.DBConfig READONLY, @InstanceID INT, @SnapshotDate DATETIME2(2) ) AS DECLARE @Ref VARCHAR(30)='DBConfig' IF NOT EXISTS(SELECT 1 FROM dbo.CollectionDates WHERE SnapshotDate>=@SnapshotDate AND InstanceID = @InstanceID AND Refer...
INSERT INTO eg_action (ID,NAME,URL,QUERYPARAMS,QUERYPARAMREGEX,PARENTMODULE,ORDERNUMBER,DISPLAYNAME,ENABLED,CONTEXTROOT, VERSION,CREATEDBY,CREATEDDATE,LASTMODIFIEDBY,LASTMODIFIEDDATE,APPLICATION) values (NEXTVAL('SEQ_EG_ACTION'),'EMPLOYEE BY USERNAME','/user/employee-username-like/',null,'userName=(\w+( \w+)*)', ...
<gh_stars>0 set lines 220 set pages 1000 col backup_type for a4 heading "TYPE" col controlfile_included heading "CF?" col incremental_level heading "INCR LVL" col pieces for 999 heading "PCS" col elapsed_seconds heading "ELAPSED|SECONDS" col device_type for a10 trunc heading "DEVICE|TYPE" col compressed for a4 heading ...
<gh_stars>1-10 -- If PrimaryPlaceOfPerformanceCode is XX00000, PrimaryPlaceOfPerformanceZip4 must not be 'city-wide' SELECT row_number, place_of_performance_code, place_of_performance_zip4a FROM detached_award_financial_assistance WHERE submission_id = {0} AND UPPER(place_of_performance_code) ~ '^[A-Z][...
<reponame>janisbiz/cphalcon -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS ...
<reponame>Swarmops/Swarmops<gh_stars>10-100 CREATE TABLE `VolunteerPositions` ( `VolunteerPositionId` INT NOT NULL AUTO_INCREMENT, `VolunteerId` INT NOT NULL, `PositionId` INT NOT NULL, `GeographyId` INT NOT NULL, `Open` TINYINT NOT NULL DEFAULT '1', `Assigned` TINYINT NOT NULL DEFAULT '0', PRIMARY KEY (`...
<filename>microservicio/src/main/resources/db/migration/DDL/V1.0__schema.sql create table usuario ( id int(11) not null auto_increment, nombre varchar(100) not null, clave varchar(45) not null, fecha_creacion datetime null, primary key (id) ); create table configuracion_laboral( id varchar (20) not null, ...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50527 Source Host : localhost:3306 Source Database : gaps Target Server Type : MYSQL Target Server Version : 50527 File Encoding : 65001 Date: 2015-05-11 23:22:22 */ SET FOREIGN_KEY_CHE...
<reponame>chrystalcopeland/object-oriented-php<filename>sql/Author.sql Alter DATABASE canderson73 CHARACTER SET utf8_unicode_ci; DROP TABLE IF EXISTS author; create table author( authorId binary(16) not null, authorAvatarUrl varchar(255), authorActivationToken char(32), authorEmail varchar(128) not null, author...
ALTER TABLE credential ALTER COLUMN failed_attempts SET DEFAULT 0;
-- ---------------------------- -- Table structure for mac_actor -- ---------------------------- DROP TABLE IF EXISTS `mac_actor`; CREATE TABLE `mac_actor` ( `actor_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type_id` smallint(6) unsigned NOT NULL DEFAULT '0' , `type_id_1` smallint(6) unsigned NOT NULL DEFAULT...
<gh_stars>1-10 create table FLW_RU_BATCH ( ID_ NVARCHAR2(64) not null, REV_ INTEGER, TYPE_ NVARCHAR2(64) not null, SEARCH_KEY_ NVARCHAR2(255), SEARCH_KEY2_ NVARCHAR2(255), CREATE_TIME_ TIMESTAMP(6) not null, COMPLETE_TIME_ TIMESTAMP(6), STATUS_ NVARCHAR2(255), BATCH_DOC_ID_ NVARCHAR2...
<reponame>InsightsDev-dev/tajo SELECT col1, col2 FROM ( SELECT l_returnflag col1, l_linestatus col2, l_orderkey col3 FROM lineitem WHERE l_returnflag = 'N' UNION SELECT l_returnflag col2, l_linestatus col5, l_orderkey col6 FROM lineitem WHERE l_returnflag = 'R' ) T GROUP BY...
select count(1) from ALERT; select count(1) from ASSET; select count(1) from ASSET_BULK_ACTION; select count(1) from ASSET_BULK_ACTION_ATTCHMNT; select count(1) from ASSET_BULK_ACTION_CHILD; select count(1) from ASSET_BULK_ACTION_CLIENT; select count(1) from...
-- Activate AES 256 Bit CBC (wxSQLite3) encryption scheme SELECT wxsqlite3_config("cipher", "aes256cbc"); SELECT wxsqlite3_config("aes256cbc", "legacy", 0); SELECT wxsqlite3_config("aes256cbc", "kdf_iter", 4001);
<filename>resto.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 14, 2019 at 02:40 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
CREATE TABLE jobs ( id INTEGER NOT NULL, job_title VARCHAR(200) NOT NULL, job_type VARCHAR(100) NOT NULL, job_category VARCHAR(100) , tags VARCHAR(100), location VARCHAR(4000) , job_description VARCHAR(4000) , min_salary INTEGER, max_salary I...
CREATE TABLE tezos.delegators_by_cycle( account_id varchar NOT NULL, cycle integer NOT NULL, level integer NOT NULL, delegate_value varchar NOT NULL, balance numeric NOT NULL, PRIMARY KEY (account_id, cycle, delegate_value) ); CREATE TABLE tezos.baking_rewards ( baker varchar NOT NU...
<gh_stars>0 # LESSON 1. # Please DO try the following queries yourselves but most importantly try different variations and always ask yourself: "Why am I getting this back?". # SELECT is by far the most famous statement in SQL used to retrieve (aka query) data from a database. # It supports all relational operators, s...
<reponame>gabin205/myimmobilie<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Erstellungszeit: 23. Nov 2017 um 23:10 -- Server-Version: 10.1.28-MariaDB -- PHP-Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Mar 13, 2019 at 07:31 PM -- Server version: 5.7.24 -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
<reponame>yusufsiregar44/UoP<filename>CS2203/Week 8/Orders.sql -- default database creation CREATE TABLE tblCustomers ( CustomerID varchar(5) NOT NULL PRIMARY KEY, CompanyName varchar(40) NOT NULL, ContactName varchar(30) NULL, ContactTitle varchar(30) NULL, Address varchar(60) NULL, City var...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 04, 2020 at 06:22 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>0 -- DROP DATABASE IF EXISTS atm; -- CREATE DATABASE atm; -- USE atm; USE sql12386553; CREATE TABLE user ( acc_number BIGINT primary key, first_name varchar(30) not null, last_name varchar(30) not null, pin varchar(100) not null, email varchar(30) not null, created_at timestamp default no...
<filename>udacity_practice.sql -- ORDER BY -- display the order ID, account ID, and total dollar amount -- for all the orders SELECT id, account_id, total_amt_usd FROM orders -- sorted first by the account ID (in ascending order), -- and then by the total dollar amount (in descending order). ORDER BY account_id, tot...
INSERT INTO products ( item_id, product_name, department_name, price, stock_quantity) VALUES (101, "boots", "volleyball", 59.99, 15), (303, "jerseys", "soccer", 90.00, 18), (103, "helmet", "football", 90.00, 18), (203, "shoes", "basketball", 90.00, 18), (703, "pants", "baseball", 90.00, 18), ...
DELETE FROM session WHERE expire < strftime("%Y-%m-%dT%H:%M:%S.%fZ");
<filename>migrations/2018-04-02-153505_create_playlists_table/up.sql CREATE TABLE playlists ( id BIGSERIAL PRIMARY KEY, title VARCHAR(255) NOT NULL, user_id BIGINT NOT NULL REFERENCES users (id), editable BOOLEAN NOT NULL DEFAULT false, created_at TIMESTAMPTZ NOT NULL DEFAULT now(), updated_at ...
INSERT INTO `user_memos` (memo_time, body) VALUES (?,?);
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 11, 2019 at 12:36 AM -- Server version: 5.7.28-0ubuntu0.18.04.4 -- PHP Version: 7.2.24-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
<reponame>1Dimitri/AdventuresInSQLServer<filename>Collations/ChangeCollation.sql -- this is the script at: -- https://gallery.technet.microsoft.com/scriptcenter/Column-Collation-Changer-34321eaa IF OBJECT_ID('ChangeCollation_SP','P') IS NOT NULL DROP PROC ChangeCollation_SP GO CREATE PROCEDURE ChangeCollation_SP @...
<reponame>S1-AL/BetterBalancedGame<gh_stars>10-100 -- Created by iElden UPDATE Modifiers SET SubjectRequirementSetId='BBG_PLAYER_HAS_MOBILISATION_REQUIREMENTS' WHERE ModifierId='TRAIT_LAND_CORPS_COMBAT_STRENGTH'; UPDATE Modifiers SET SubjectRequirementSetId='BBG_PLAYER_HAS_MOBILISATION_REQUIREMENTS' WHERE ModifierId='...
USE [VipunenTK_lisatiedot] GO /****** Object: View [dbo].[v_tarkastelujakso] Script Date: 15.4.2018 17:49:31 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- Truncate table VipunenTK_DW.dbo.d_tarkastelujakso -- Insert into VipunenTK_DW.dbo.d_tarkastelujakso select * from [VipunenTK_lisatiedot].[dbo]...
<filename>Project/Jobs_DB_Project/SQL/nba1nf.sql use final6210; create table nba1nf( count int not null Auto_Increment, TwitterID varchar(255), Date varchar(255), Year varchar(255), Text varchar(255), City varchar(255), Country varchar(255), ScreenName varchar(45), Favorited int (45), Followers int(45), Tags varchar(25...
<reponame>chrisnaliu/Sakura-1 /* Warnings: - A unique constraint covering the columns `[guildId,code]` on the table `invite` will be added. If there are existing duplicate values, this will fail. - Changed the type of `code` on the `invite` table. No cast exists, the column would be dropped and recreated, which ...
<reponame>jermiy/services-core<gh_stars>10-100 -- This file should undo anything in `up.sql` DROP FUNCTION payment_service.canceling_transition_at(subscription payment_service.subscriptions);
CREATE PROCEDURE [jt].[WaitStatsAnalysis] @ResetWaitStats BIT = 0 AS BEGIN PRINT 'Requires VIEW SERVER STATE'; PRINT 'From Wait statistics, or please tell me where it hurts by <NAME> http://www.sqlskills.com/blogs/paul/wait-statistics-or-please-tell-me-where-it-hurts/'; PRINT ' and'; PRINT 'when were wait s...
<reponame>tdeboer-ilmn/hail<filename>batch/sql/add-user-resources-ready-cores-token.sql SET @n_tokens = 200; ALTER TABLE globals ADD COLUMN n_tokens INT NOT NULL; UPDATE globals SET n_tokens = @n_tokens; CREATE TABLE IF NOT EXISTS `batches_staging` ( `batch_id` BIGINT NOT NULL, `token` INT NOT NULL, `n_jobs` IN...
ALTER TABLE `<prefix>gallerytaglink` DROP FOREIGN KEY `<prefix>gallerytaglink_ibfk_1`, DROP FOREIGN KEY `<prefix>gallerytaglink_ibfk_2`; ALTER TABLE `<prefix>imagetaglink` DROP FOREIGN KEY `<prefix>imagetaglink_ibfk_1`, DROP FOREIGN KEY `<prefix>imagetaglink_ibfk_2`;
CREATE TABLE [dbo].[Consumer] ( [ConsumerId] INT IDENTITY (1, 1) NOT NULL, [ConsumerKey] NVARCHAR (255) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL, [ConsumerSecret] NVARCHAR (255) COLLATE SQL_Latin1_General_CP1_CS_AS NULL, [X509Certificate] IMAGE ...
SELECT @indexId as index_id, e.event_id FROM @eventTable E JOIN @cdm_database_schema.PERSON P ON P.PERSON_ID = E.PERSON_ID @whereClause GROUP BY e.event_id
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table coordinate ( id bigint not null, latitude float, longitude float, constraint pk_coordinate primary key (id)) ; create table...
ALTER TABLE `hotel`.`estadias` ADD COLUMN `desconto` DECIMAL(18,2) NULL AFTER `quarto_id`;
ALTER TABLE shared.digital_contract_api_user SET SCHEMA landlord;
-- 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. DROP VIEW IF EXISTS analytics.chrab_ChronicAbsent...
CREATE TABLE EDX_SHEDLOCK ( NAME VARCHAR(64), LOCK_UNTIL TIMESTAMP(3) NULL, LOCKED_AT TIMESTAMP(3) NULL, LOCKED_BY VARCHAR(255), CONSTRAINT EDX_PK PRIMARY KEY (NAME) ); COMMENT ON TABLE EDX_SHEDLOCK IS 'This table is used to achieve distributed lock between pods, for schedulers.';
CREATE TABLE `t01_compl_buyer` ( `id` varchar(128) NOT NULL COMMENT '系统主键', `create_by` varchar(64) NOT NULL COMMENT '创建人', `create_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_by` varchar(64) NOT NULL COMMENT '更新人', `update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON U...
SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `profiles`; CREATE TABLE `profiles` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(32) DEFAULT NULL, `alias` varchar(32) DEFAULT NULL, `is_default` tinyint(1) DEFAULT 0, `enabled` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=Inno...
<reponame>dinmiranda/flowable-engine create table ACT_RU_EVENT_SUBSCR ( ID_ nvarchar(64) not null, REV_ int, EVENT_TYPE_ nvarchar(255) not null, EVENT_NAME_ nvarchar(255), EXECUTION_ID_ nvarchar(64), PROC_INST_ID_ nvarchar(64), ACTIVITY_ID_ nvarchar(64), CONFIGURATION_ nvarchar(255), ...
-- Verify insert_cookbook_artifact_version BEGIN; SELECT has_function_privilege( 'insert_cookbook_artifact_version(varchar(255), bytea, bytea, timestamp without time zone, ...
-- -- IMPORTANT NOTE :: replace "jBPMClusteredScheduler" with your scheduler's configured name (lines 27 - 36) -- drop tables that are no longer used -- drop table qrtz_job_listeners; drop table qrtz_trigger_listeners; -- -- drop columns that are no longer used -- alter table qrtz_job_details drop column is_volatile; a...
-- phpMyAdmin SQL Dump -- version 4.6.1 -- http://www.phpmyadmin.net -- -- Host: 192.168.0.120 -- Generation Time: Feb 26, 2018 at 05:44 PM -- Server version: 5.6.28-log -- PHP Version: 5.6.4-4ubuntu6.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
<filename>src/model/model.sql CREATE DATABASE toshkent_yoshlari; CREATE TABLE admins ( admin_id bigserial, admin_name VARCHAR(250) NOT NULL, admin_password VARCHAR(250) NOT NULL, isAdmin VARCHAR(250) DEFAULT 'admin' ); CREATE TABLE Header ( header_id bigserial, header_mode BIGINT NOT NULL, ...
start transaction; select 'sql 2: sleeping 2 seconds ...'; select sleep(2); select 'sql 2', t.* from t_test_committed t; select 'sql 2: commit'; commit;
<filename>partials/mojolicious/abi/results/populate-table-1-abcd_stage1_entrance_exams_results_extra.sql -- -- populate-table-1-abcd_stage1_entrance_exams_results_extra.sql -- ============================================================================ -- Stage 1 Entrance Exams Results. -- Результаты вступительных испы...
<filename>src/main/java/com/webdiapp/db/db1_question_type_t.sql -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: db1 -- ------------------------------------------------------ -- Server version 5.6.38-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
insert into person (name, bloodgroup, age, id) values ('<NAME>', 'B-', '16', uuid_generate_v4()); insert into person (name, bloodgroup, age, id) values ('<NAME>', 'O+', '26', uuid_generate_v4()); insert into person (name, bloodgroup, age, id) values ('<NAME>', 'O+', '47', uuid_generate_v4()); insert into person (name, ...
 drop table Adress if exists; drop table Adress_ContactData if exists; drop table Client if exists; drop table Company if exists; drop table ContactData if exists; drop table Employee if exists; drop table Employee_IllTime if exists; drop table Employee_WorkedHours if exists; ...
--github.comm/imsunnyjha --Language:Oracle select country.continent,floor(avg(city.population)) from city inner join country on city.countrycode=country.code group by country.continent;
INSERT INTO department (name) VALUES ('Accounting'), ('Marketing'), ('HR'), ('Sales'); INSERT INTO roles (title, salary, department_id) VALUES ('sales person', 60.00, 4), ('hr person', 55.00, 3), ('marketing director', 90.00, 2), ('accountant', 75.00, 1); INSERT INTO employee...
<gh_stars>1-10 CREATE PROCEDURE [dbo].[dnn_Mobile_GetPreviewProfiles] @PortalId INT AS SELECT Id, PortalId, Name, Width, Height, UserAgent, SortOrder, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate FROM dbo.dnn_Mobile_PreviewProfiles WHERE PortalId = @PortalId ORDER BY Sor...
INSERT INTO EG_SCRIPT (ID,NAME,type,SCRIPT,version) VALUES(nextval('seq_eg_script'),'egf.bill.number.generator','python', 'from org.egov.infra.validation.exception import ValidationError from org.egov.infstr.utils.seqgen import DatabaseSequenceFirstTimeException def getBillNum(): try: result=sItem.getEgBillregisterm...
<reponame>WittierDinosaur/sqlfluff<gh_stars>100-1000 INSERT INTO table2 (column1, column2, column3) WITH mycte AS ( SELECT foo, bar FROM mytable1 ) SELECT foo, bar, baz FROM mycte;
<reponame>Bnei-Baruch/archive-my -- MDB generated migration file -- rambler up WITH data(name) AS (VALUES ('trim')) INSERT INTO operation_types (name) SELECT d.name FROM data AS d WHERE NOT EXISTS(SELECT ot.name FROM operation_types AS ot WHERE ot.name = d.name); -- rambler...
Use Master Go --- Create a Database for the ColumnStore Index Demos Drop Database ColumnStoreDemos_CCIWrite go Create Database ColumnStoreDemos_CCIWrite go Use ColumnStoreDemos_CCIwrite go CREATE TABLE dbo.SalesOrderDetail( [SalesOrderID] int , [SalesOrderDetailID] [int] NOT NULL, [CarrierTrackingNumber] [nvarc...
-- dd."schemas" source DROP VIEW dd."schemas"; CREATE VIEW dd."schemas" AS WITH s AS ( SELECT n.oid, n.nspname AS s_name, pg_get_userbyid(n.nspowner) AS owner, ms.data_source, ms.sensitive, obj_description(n.oid, 'pg_namespace'::name) AS descriptio...
CREATE TABLE IF NOT EXISTS user ( id INT(10) UNSIGNED NOT NULL, email VARCHAR(64) COLLATE latin1_general_ci NOT NULL, password VARCHAR(32) COLLATE latin1_general_ci NOT NULL, nick VARCHAR(16) COLLATE latin1_general_ci DEFAULT NULL, status ENUM('enabled', 'disabled') COL...
<filename>src/test/resources/sql/alter_server/cc843045.sql -- file:foreign_data.sql ln:495 expect:true ALTER SERVER s9 VERSION '1.2'
-- file:collate.linux.utf8.sql ln:350 expect:true CREATE COLLATION IF NOT EXISTS test0 FROM "C"
DROP FUNCTION IF EXISTS de_metas_material.retrieve_available_for_sales(integer, numeric, character varying, timestamptz, integer, integer); CREATE FUNCTION de_metas_material.retrieve_available_for_sales( IN p_QueryNo integer, IN p_M_Product_ID numeric, IN p_StorageAttributesKey character varying, IN p_P...
INSERT INTO TAGS ( TagLCId, TagText ) VALUES ( :lcid, :text );
<filename>docker_db/init/items.sql<gh_stars>0 CREATE TABLE items ( id INT AUTO_INCREMENT NOT NULL COMMENT 'ID', owner_user_id INT NOT NULL COMMENT '持ち主のユーザー ID', parent_id INT NOT NULL COMMENT '親の ID(なければ 0)', name VARCHAR(512) NOT NULL COMMENT '名称', url VARCHAR(512) COMMENT 'フォルダの場合は NULL', ord...
<reponame>maoyongjun/szglj /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50728 Source Host : localhost:3306 Source Schema : jeesite Target Server Type : MySQL Target Server Version : 50728 File Encoding : ...
{%- macro alliance_type(fulfillment_partner_name, fulfillment_partner) -%} CASE WHEN LOWER({{ fulfillment_partner_name }}) LIKE '%google%' THEN 'Google Cloud' WHEN LOWER({{ fulfillment_partner_name }}) LIKE ANY ('%aws%', '%amazon%') THEN 'Amazon Web Services' WHEN LOWER({{ fulfillment_partner_name }}) LI...
<reponame>Letractively/ada-awa<gh_stars>0 /* File generated automatically by dynamo */ /* The workspace controls the features available in the application for a set of users: the workspace members. A user could create several workspaces and be part of several workspaces that other users have created. */ CREATE TABLE a...
<gh_stars>0 /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; CREATE DATABASE /*!32312 IF NOT EXISTS*/`custpayments` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `custpayments`; /*Table structure for table `customers` */ DROP TABLE IF EXISTS `customers`; CREATE TABLE `customers` ( `custome...
<filename>chapter_006/src/main/java/ru/job4j/tracker/db/insert.sql -- Заполнение таблицы с заявками для Tracker SQL insert into items (name, description, created) values ('Реализовать панель для навигации по трекеру', 'Описание первой заявки', current_timestamp), ('Исправить ошибку с перемещением по дереву катал...
<filename>tests/queries/0_stateless/01951_distributed_push_down_limit.sql -- Tags: distributed set prefer_localhost_replica = 1; -- { echo } explain select * from remote('127.{1,2}', view(select * from numbers(1e6))) order by number limit 10 settings distributed_push_down_limit=0; explain select * from remote('127.{1...
create table ACT_RU_VARIABLE ( ID_ nvarchar(64) not null, REV_ int, TYPE_ nvarchar(255) not null, NAME_ nvarchar(255) not null, EXECUTION_ID_ nvarchar(64), PROC_INST_ID_ nvarchar(64), TASK_ID_ nvarchar(64), SCOPE_ID_ nvarchar(255), SUB_SCOPE_ID_ nvarchar(255), SCOPE_TYPE_ nvarcha...
/****** Object: StoredProcedure [dbo].[getContentStructure_v2] Script Date: 02/05/2009 15:30:54 ******/ IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[getContentStructure_v2]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1) BEGIN PRINT 'getContentStructure_v2 already exists which may mean that y...
/******************************************************************************** component-centric-snapshot-active-description-with-inactivation-reason.sql Assertion: Active descriptions do not have active inactivation indicators Note:Some inactivation indicators may be applied to active descriptions. See https://co...
<filename>dbt/include/presto/macros/adapters.sql<gh_stars>1-10 -- - get_catalog -- - list_relations_without_caching -- - get_columns_in_relation {% macro presto__get_columns_in_relation(relation) -%} {% call statement('get_columns_in_relation', fetch_result=True) %} select column_name, cas...
<filename>posda/posdatools/queries/sql/DciodvfyErrorIdsBySeriesAndScanInstance.sql -- Name: DciodvfyErrorIdsBySeriesAndScanInstance -- Schema: posda_phi_simple -- Columns: ['dciodvfy_error_id'] -- Args: ['dciodvfy_scan_instance_id', 'series_instance_uid'] -- Tags: ['tag_usage', 'dciodvfy'] -- Description: Show all the ...
<gh_stars>100-1000 SELECT * FROM TEMPLATE_MASTERS ORDER BY INSERT_DATETIME %s;
<reponame>lulzzz/tellma CREATE TABLE [dbo].[ResourceDefinitions] ( [Id] INT CONSTRAINT [PK_ResourceDefinitions] PRIMARY KEY IDENTITY, [Code] NVARCHAR (255) NOT NULL CONSTRAINT [UQ_ResourceDefinitions] UNIQUE, [TitleSingular] NVARCHAR (100), [TitleSingular2] NVARCHAR (100), [TitleSingular...
CREATE OR REPLACE FUNCTION public.lrm_get_wo_info(v_workorder_id text) RETURNS TABLE(t_workorder_id character varying, t_status_id character varying, t_target_qty character varying, t_skuno character varying, t_workorder_type character varying, t_sn_from character varying, t_sn_to character varying, t_order_type chara...
-- SQL dump generated using DBML (dbml-lang.org) -- Database: MySQL -- Generated at: 2019-08-26T11:00:50.221Z CREATE TABLE `country` ( `id` int PRIMARY KEY, `country` varchar(255), `last_update` timestamp ); CREATE TABLE `city` ( `id` int PRIMARY KEY, `city` varchar(255), `country_id` int, `last_update`...
<reponame>khuddlefish/gpdb -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- RESYNC TABLE resync_add_column_heap_default1 -- CREATE TABLE resync_add_column_heap_default1 (col000 int DEFAULT 1) distributed randomly; INSERT INTO resync_add_column_heap_default1 VALUES (generate_serie...
<reponame>epiphyllum/zeta drop table src_tbl ; create table src_tbl ( k1 int, k2 int, u1 int, u2 int, ts_u timestamp ); create unique index idx_src_tbl on src_tbl(k1, k2);
<gh_stars>1-10 create or replace function street_segment_overlaps(rid int) returns table (path ltree, id text) as $$ declare ss_temp text; ss_temp_idx text; begin ss_temp := 'street_segments_' || rid; ss_temp_idx := ss_temp || '_idx'; execute 'create temp table ' || ss_temp || ' on commit drop as select...
<filename>openGaussBase/testcase/KEYWORDS/inner/Opengauss_Function_Keyword_Inner_Case0019.sql -- @testpoint:opengauss关键字inner(保留),作为外部数据源名 --关键字不带引号-合理报错 create data source inner; --关键字带双引号-成功 drop data source if exists "inner"; create data source "inner"; drop data source "inner"; --关键字带单引号-合理报错 drop data source i...
<reponame>opengauss-mirror/Yat -- @testpoint: invalid_cursor异常捕获 调用函数异常 合理报错 --step1:创建表并插入数据; expect:成功 drop table if exists emp; create table emp(empno int,ename varchar(10),job varchar(10) ,sal integer); insert into emp values(1,'zhangsan','doctor1',10000),(2,'zhangsan2','doctor2',10000),(123,'zhangsan3','doctor3'...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 30, 2016 at 04:48 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
-- +migrate Up CREATE TABLE users ( id BIGSERIAL PRIMARY KEY, uuid UUID DEFAULT uuid_generate_v4(), email VARCHAR NOT NULL DEFAULT '' UNIQUE, is_banned BOOLEAN NOT NULL DEFAULT FALSE, created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), deleted_at TIMESTAMPTZ...
-- +micrate Up CREATE TABLE categories ( id SERIAL PRIMARY KEY, name TEXT NOT NULL ); -- +micrate Down DROP TABLE IF EXISTS categories;
# --- !Ups CREATE TABLE answer_user ( answer_id UUID PRIMARY KEY, user_id UUID NOT NULL ); CREATE TABLE question_answer ( question_id UUID NOT NULL, answer_id UUID NOT NULL, FOREIGN KEY (question_id) REFERENCES question_user (question_id) ON DELETE CASCADE, FOREIGN KEY (answer_id) REFERENCES answer_u...
<filename>db_siskupel.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 13, 2022 at 05:08 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
----------------------------------------- -- Load data into the MIMIC-IV schemas -- ----------------------------------------- -- To run from a terminal: -- psql "dbname=<DBNAME> user=<USER>" -v mimic_data_dir=<PATH TO DATA DIR> -f load.sql -- The script assumes the files are in the core, hosp, and icu subfolders of m...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Nov 2019 pada 13.40 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.2 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 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 20, 2021 at 06:19 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...