sql
stringlengths
6
1.05M
alter table eg_citypreferences add column googleApiKey varchar(50), add column recaptchaPK varchar(64), add column recaptchaPub varchar(64); update eg_citypreferences set recaptchaPK=citi.recaptchaPK, recaptchaPub = citi.recaptchaPub from eg_city citi where citi.preferences=eg_citypreferences.id; alter table eg_ci...
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date, ,> -- Description: <Description, ,> -- ============================================= CREATE FUNCTION [dbo].[fn_PrefixName] ( @Param1 INT ) RETURNS INT AS BEGIN -- ...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-3_0-CLEAN/oracle/kcrelease/datasql/KC_DML_01_BUDGET_PERIOD_TYPE.sql<gh_stars>0 TRUNCATE TABLE BUDGET_PERIOD_TYPE DROP STORAGE / INSERT INTO BUDGET_PERIOD_TYPE (BUDGET_PERIOD_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDATE_T...
<filename>mobi.chouette.exchange.netex_stif/src/test/data/export_data.sql -- -- PostgreSQL database dump -- -- Dumped from database version 9.4.13 -- Dumped by pg_dump version 9.4.13 -- Started on 2017-08-21 11:11:38 CEST SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conf...
SET statement_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; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: runcases; Type: TABLE; Schema: public; Owner...
-- bholeConstruction downs DROP table if exists public.gwml2wc_bholeconstruction; drop SEQUENCE IF EXISTS public.gwml2wc_bholeconstruction_id_seq; Drop INDEX if EXISTS gwml2wc_bholeconstruction_id_uindex; Drop INDEX if EXISTS gwml2wc_bholeconstruction_gml_id_uindex; -- bholeCoreInterval downs DROP table...
<reponame>niclac/tooling-force.com<gh_stars>0 --#START: Simple query SELECT Id, Name, BillingCity FROM Account --#END --#START: WHERE SELECT Id FROM Contact WHERE Name LIKE 'A%' AND MailingCity = 'California' --#END --#START: ORDER BY SELECT Name FROM Account ORDER BY Name DESC NULLS LAST --#END --#START: LIMIT SE...
DROP TABLE IF EXISTS @writeDatabaseSchema.@cohortTable; DROP TABLE IF EXISTS @writeDatabaseSchema.@regimenTable; CREATE TABLE @writeDatabaseSchema.@regimenTable ( concept_name varchar(max), drug_era_id bigint, person_id bigint not null, rn bigint, drug_concept_id bigint, ...
<filename>catalog-service/src/main/resources/data.sql DELETE FROM products; insert into products(id, code, name, description, price) VALUES (1, 'P001', 'Product 1', 'Product 1 description', 25), (2, 'P002', 'Product 2', 'Product 2 description', 32), (3, 'P003', 'Product 3', 'Product 3 description', 50) ;
<filename>tests/queries/0_stateless/01802_rank_corr_mann_whitney_over_window.sql DROP TABLE IF EXISTS 01802_empsalary; SET allow_experimental_window_functions=1; CREATE TABLE 01802_empsalary ( `depname` LowCardinality(String), `empno` UInt64, `salary` Int32, `enroll_date` Date ) ENGINE = MergeTree ORD...
BEGIN; CREATE UNIQUE INDEX IF NOT EXISTS brokers_paging_sequence_uindex on brokers (paging_sequence); CREATE UNIQUE INDEX IF NOT EXISTS platforms_paging_sequence_uindex on platforms (paging_sequence); CREATE UNIQUE INDEX IF NOT EXISTS service_offerings_paging_sequence_uindex on service_offerings (paging_se...
<filename>project_examples/liquibase-cli/DB2/sample_changelogs/objects/function/RESIGN_EMPLOYEE.sql CREATE FUNCTION resign_employee (number CHAR(6)) RETURNS TABLE (empno CHAR(6), salary DOUBLE, dept CHAR(3)) MODIFIES SQL DATA LANGUAGE SQL BEGIN ATOMIC -- --------------------...
DROP TABLE IF EXISTS repository; DROP TABLE IF EXISTS user; CREATE TABLE user ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, username TEXT UNIQUE NOT NULL, email TEXT UNIQUE NOT NULL, password TEXT NOT NULL, image TEXT ); CREATE TABLE repository ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT ...
<filename>SQL_case_statement.sql<gh_stars>0 --- this is to find is customers year meets a specific condition --- ie if the year is greater than 2015 then get the age if not give nothing SELECT --- this gets the year labstart.year, --- this gets the customer age labstart.customer_age, --- this case statement analyse ...
-- INSERT INTO socks VALUES -- (1, 'red', 50), -- (1, 'green', 20), -- (1, 'green', 30), -- (2, 'gray', 20), -- (2, 'gray', 10);
<reponame>ouchaaou/testSymfony -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2017 at 06:35 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
delete from word_tbl; insert into word_tbl(id, word, lang_id, pos_id) values (nextval('pk_sequence'), 'bʰerɟʰ ', 10000, 1001), (nextval('pk_sequence'), 'bʰoːlos', 10000, 1001), (nextval('pk_sequence'), 'ɟʰeros', 10000, 1001), (nextval('pk_sequence'), 'ɟʰej', 10000, 1001), (nextval('pk_sequen...
SET DEFINE OFF; ALTER TABLE AFW_13_RESRC ADD ( CONSTRAINT AFW_13_RESRC_CK3 CHECK (type_resrc in ('COMPS', 'SIMPL')) ENABLE VALIDATE) /
<reponame>waterlink/kotlin-spring-boot-mvc-starter create table users ( "id" bigint not null unique primary key default nextval('serial'), "email" varchar(50) not null unique, "password" varchar(100) not null, "name" varchar(80) not null, "confirmed" boolean not null default false, "confirmation...
<filename>migrations/2018-05-26-182759_adjust_regex_functions/down.sql<gh_stars>1-10 -- This file should undo anything in `up.sql` CREATE OR REPLACE FUNCTION moment_service.moments_navigation_projects_tbl_refresh() RETURNS void LANGUAGE sql AS $function$ INSERT into moment_service.moments_navigation_projects_tbl SE...
/*REINICIO DE LAS TABLAS */ delete from MEDIODEPAGOENTITY_CLIENTEENTITY; delete from SierraEntity; delete from AcontecimientoEntity; delete from PublicacionEntity; delete from CalificacionEntity; delete from AdquisicionEntity; delete from ComprobanteEntity; delete from FacturaEntity; delete from MascotaAdoptadaEntity;...
-- 2021-05-25 alter table calevent add safetyplan int(1);
-- The following three queries return information about concept inactivations in last three releases SELECT * FROM delta_inactive_concepts; SELECT * FROM delta1_inactive_concepts; SELECT * FROM delta2_inactive_concepts; -- The following query return historical information about all inactive concepts in the current snap...
-- requete de création CREATE TABLE Etudiant ( nom VARCHAR (30), prenom VARCHAR (15), anneeNaissance NUMBER(4), INE VARCHAR (20), groupeTD NUMBER(1), groupeTP NUMBER (1), semestre NUMBER (1), genre VARCHAR (1), PRIMARY KEY (INE)); INSERT INTO Etudiant VALUES ('Dupont','Jean',2000,'1533128EJ', 1, 2, 2,'M' ); INSERT I...
<filename>src/test/resources/sql/_unknown/f9c98387.sql -- file:with.sql ln:432 expect:true WITH RECURSIVE x(n) AS (SELECT n FROM x UNION ALL SELECT 1) SELECT * FROM x
prompt --application/shared_components/user_interface/template_opt_groups begin -- Manifest -- THEME OPTION GROUPS: 700 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.10.01' ,p_release=>'20.2.0.00.20' ,p_default_workspace_id=>9526531750928358 ,p_default_application_id=>700 ,p_defaul...
ALTER TABLE [Lookup].[CompetentAuthority] ADD [IsTransitAuthority] BIT NULL; GO UPDATE [Lookup].[CompetentAuthority] SET [IsTransitAuthority] = 1 WHERE CODE IN ( 'FR999', 'BE004', 'DE 005' ); GO UPDATE [Lookup].[CompetentAuthority] SET [IsTransitAuthority] = 1 WHERE Name IN ( 'Ministero dell''Ambiente e della Tute...
<reponame>toricor/PlayScalaIntro # --- !Ups create table if not exists play_scala_intro.people( id INT not null primary key auto_increment, name VARCHAR(255) not null, age INT not null ); # --- create table "people" ( # --- "id" bigint generated by default as identity(start with 1) not null primary key, #...
<filename>MCResources/Assets/db/update_15_to_16.sql UPDATE message SET dirty=0; UPDATE activity SET type=200 where type=20; UPDATE activity SET type=201 where type=21;
<reponame>LonnyPeng/www.bl.com -- -- 表的结构 `sent_member` -- DROP TABLE IF EXISTS `t_member`; CREATE TABLE `t_member` ( `uid` int(10) UNSIGNED NOT NULL COMMENT '用户ID', `username` varchar(32) NOT NULL DEFAULT '' COMMENT '用户名', `password` varchar(64) NOT NULL DEFAULT '' COMMENT '用户密码', `nickname` char(16) NOT NULL...
with base as ( select * from {{ ref('stg_iterable__message_type_tmp') }} where not coalesce(_fivetran_deleted, false) ), fields as ( select /* The below macro is used to generate the correct SQL for package staging models. It takes a list of columns that are expected/neede...
<gh_stars>0 #standardSQL # page almanac metrics grouped by device and html dir # returns all the data we need from _almanac CREATE TEMPORARY FUNCTION get_almanac_html_dir(almanac_string STRING) RETURNS STRING LANGUAGE js AS ''' try { var almanac = JSON.parse(almanac_string); if (Array.isArray(almanac) || ty...
<reponame>burningmyself/Ysf<gh_stars>0 /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50719 Source Host : localhost:3306 Source Schema : ysf Target Server Type : MySQL Target Server Version : 50719 File Encoding ...
<filename>models/base/pg_user.sql select usesysid as user_id , usename as username from pg_catalog.pg_user
-- // CLOUD-840 Added new column for marking deleted credentials -- Migration SQL that makes the change goes here. ALTER TABLE credential ADD COLUMN archived boolean DEFAULT false; -- //@UNDO -- SQL to undo the change goes here. ALTER TABLE credential DROP COLUMN archived;
<reponame>artemkramov/help-micro<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 07, 2017 at 06:54 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET...
<filename>dumps/db_yii_vipdesign_articles.sql<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: localhost Database: db_yii_vipdesign -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; DROP TABLE IF EXISTS `aut...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2017-05-09 19:00:27 -- 服务器版本: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
<reponame>dieterbeelaert/Repcheckr<filename>spider/SQL/20150413_datadump.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Machine: localhost -- Genereertijd: 13 apr 2015 om 18:03 -- Serverversie: 5.5.41-0ubuntu0.14.04.1 -- PHP-versie: 5.5.9-1ubuntu4.7 SET SQL_MODE = "NO_AU...
-- This file was automatically generated from the `TUTORIAL.md` which -- contains a complete explanation of how this schema works and why certain -- decisions were made. If you are looking for a comprehensive tutorial, -- definitely check it out as this file is a little tough to read. -- -- If you want to contribute to...
USE pegaso_db; CALL process_models();
SELECT usuarios.nome AS `usuario`, IF(MAX(YEAR(historico_reproducoes.data_reproducao)) = '2021', 'Usuário ativo', 'Usuário inativo') AS `condicao_usuario` FROM SpotifyClone.historico_reproducoes AS `historico_reproducoes` INNER JOIN SpotifyClone.usuarios AS `usuarios` ON historico_reproducoes.usuario_id = usua...
CREATE TABLE [dbo].[BildTab] ( [HimmelskoerperID] INT IDENTITY (1, 1) NOT NULL, [Bilddaten] VARBINARY (MAX) NOT NULL, [Himmelskoerper_ID] INT NOT NULL, PRIMARY KEY CLUSTERED ([HimmelskoerperID] ASC), CONSTRAINT [HimmelskoerperBild] FOREIGN KEY ([Himmelskoerper_ID]) ...
<gh_stars>0 INSERT IGNORE INTO admin (email, roles, password, firstname, lastname) VALUES ('<EMAIL>', '["ROLE_ADMIN"]', '$2y$13$gVRZzm7g51VGln5afgqW5eUVKlrx7aiDJF1LTUo.GzOPKSunpjWC2', 'John', 'Doe'); -- The password is "<PASSWORD>" change i as soon as you can
<filename>schema/chatbot.sql -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 05, 2017 at 03:26 PM -- Server version: 10.1.19-MariaDB-1~xenial -- PHP Version: 7.0.8-0ubuntu0.16.04.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
<filename>database/Release01/Step24_Assistance_Programs.sql /* * Copyright (c) 2015, <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without lim...
delimiter // CREATE PROCEDURE `sp_relacion_estudio_cargo`(in fecha date) begin select count(id) as cantidad , descripcion from tb_nivel_estudio_cargo_trabajo -- where extract(year from fecha_creacion) = fecha group by descripcion ; end // delimiter //
<filename>modules/VideoImporter/sql/VideoImporter_output_VideoMetadata.sql<gh_stars>1-10 /* auto-generated header by CodeFromTemplate - Connected Vision - https://github.com/ConnectedVision */ /* CodeFromTemplate Version: 0.3 alpha */ /* VideoImporter_output_VideoMetadata.sql */ /* NEVER TOUCH this file! */ /* This SQ...
---actions Insert into EG_ACTION (id,name,url,queryparams,parentmodule,ordernumber,displayname,enabled,contextroot,version,createdby,createddate,lastmodifiedby,lastmodifieddate,application) values (nextval('SEQ_EG_ACTION'),'MarkUnderCourtCaseSearch','/search/searchproperty-markundercourtcase.action',null,(select id fro...
CREATE TABLE if not exists employee ( id int , name CHAR(32) NOT NULL, office CHAR(32) NOT NULL, age INT NOT NULL CHECK(age >= 0 AND age <= 100), primary key(id) ); CREATE TABLE if not exists book ( id int not null, name CHAR(32) NOT NULL, author CHAR(32) N...
-- Table: public.sstv_tx_log -- DROP TABLE public.sstv_tx_log; CREATE TABLE public.sstv_tx_log ( "ID" bigint NOT NULL DEFAULT nextval('sstv_tx_log_seq'::regclass), qr_data character varying(8) NOT NULL, start_time timestamp without time zone NOT NULL, start_lat numeric NOT NULL, start_long numeric NOT NULL...
<filename>Scripts/QueryPerformance/ExtendedEvents_Get_DeadLocksFromSystemHealth_SingleServer.sql -- -- Author: <NAME> -- Date: 20/04/2018 -- Purpose: Output deadlock information stored in the 'system_health' session. -- Attempts to get the filename from the 'live' session. If th...
<reponame>TihomirIvanovIvanov/SoftUni SELECT p.PeakName, m.MountainRange AS Moutain, c.CountryName, continents.ContinentName FROM Peaks AS p JOIN Mountains AS m ON m.Id = p.MountainId JOIN MountainsCountries AS mc ON m.Id = mc.MountainId JOIN Countries AS c ON mc.CountryCode = c.CountryCode JOIN Continents AS continent...
create or replace sequence ml_model_runs_sequence start = 1 increment = 1; create or replace table ml_model_runs(run_id integer, table_name varchar(256), algorithm varchar(100), training_parameters variant...
<reponame>flexsocialbox/una<filename>modules/boonex/timeline/updates/9.0.3_9.0.4/source/install/sql/disable.sql -- PAGES & BLOCKS DELETE FROM `sys_objects_page` WHERE `module` = 'bx_timeline'; DELETE FROM `sys_pages_blocks` WHERE `module` = 'bx_timeline'; -- MENU DELETE FROM `sys_objects_menu` WHERE `module` = 'bx_ti...
-- round(double precision, int) does not exist by default CREATE FUNCTION round(double precision, integer) RETURNS NUMERIC AS $$ SELECT round($1::numeric, $2) $$ LANGUAGE sql; CREATE TABLE customer_address ( ca_address_sk INTEGER NOT NULL, ca_address_id VARCHAR(16) ...
/* NOTE This SQL file contain the following tables: ServiceReceiver, Queue, SitsAt With data related to each tables */; /* NOTE Any testing data with DATETIME MUST use date range in year 2018 All DATETIME is in format of year-month-day hour:minute:seconds YYYY-MM-DD HH:MM:SS */; USE `zg6kbqpoxrbx4hox`; -- Situation...
<filename>Database/Stored Procedures/uspGetAllActiveToDoInitiatorType.sql<gh_stars>1-10 IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspGetAllActiveToDoInitiatorType') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE uspGetAllActiveToDoInitiatorType GO /* uspGetAllActiveToDoInitiatorType...
-- 2019-03-14T16:28:49.237 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvance...
<reponame>kccb-karp/IQCareMigration IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sp_PharmacyModule_GetPreviousDispense]') AND type in (N'P', N'PC')) DROP PROCEDURE [dbo].sp_PharmacyModule_GetPreviousDispense GO create proc sp_PharmacyModule_GetPreviousDispense(@patientId int) as begin wi...
<reponame>SuperM0use24/Project-Altis # Server: server-version TTPA-Alpha-1.2.0 min-access-level 100 shard-low-pop 50 shard-mid-pop 100 # DC File dc-file dependencies/config/toon.dc # Resources model-path resources # Core features: want-pets #t want-parties #f want-cogdominiums #t want-achievements #f # Chat: want-w...
with fct_trips as ( select * from {{ ref('fct_trips') }} ), final as ( select -- date details fct_trips.date_stamp ,fct_trips.day_name ,fct_trips.is_weekday ,fct_trips.rider_age -- daily trip stats ,count(distinct fct_trips.trip_id) as total_tr...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table intellecto_app_version ( version varchar(255) not null, `mandatory` integer, constraint pk_intellecto_app_version primary key (version) )...
<reponame>ofreivogel/wte4j -- -- Copyright (C) 2015 Born Informatik AG (www.born.ch) -- -- 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/LI...
/* SQLyog Professional v12.09 (64 bit) MySQL - 5.7.19 : Database - ucstagedb ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_...
CREATE TABLE `user` ( `username` VARCHAR(255) NOT NULL, `password` VARCHAR(255) NOT NULL, `password_salt` VARCHAR(255) NOT NULL ); CREATE TABLE `user_roles` ( `username` VARCHAR(255) NOT NULL, `role` VARCHAR(255) NOT NULL ); CREATE TABLE `roles_perms` ( `role` VARCHAR(255) NOT NULL, `perm` VARCHAR(255) ...
<gh_stars>100-1000 CREATE DATABASE IF NOT EXISTS clicktail
<reponame>adrianmahjour/db2-samples --**************************************************************************** -- (c) Copyright IBM Corp. 2017 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and i...
-- -- Insert user information into the temporary tables. To add users to the Oracle database, edit things here. -- INSERT INTO users_TEMP (username, password, enabled) VALUES ('admin','password',1); INSERT INTO users_TEMP (username, password, enabled) VALUES ('user','password',1); INSERT INTO authorities_TEMP (user...
{% import 'catalog/ppas/macros/catalogs.sql' as CATALOGS %} SELECT nsp.oid, nsp.nspname as name, has_schema_privilege(nsp.oid, 'CREATE') as can_create, has_schema_privilege(nsp.oid, 'USAGE') as has_usage FROM pg_namespace nsp WHERE nsp.nspparent = 0 AND {% if scid %} nsp.oid={{scid}}::oi...
<reponame>violet2016/gpdb<gh_stars>1-10 -- All GPDB-added functions are here, instead of pg_proc.h. pg_proc.h should -- kept as close as possible to the upstream version, to make merging easier. -- -- This file is translated into DATA rows by catullus.pl. See -- README.add_catalog_function for instructions on how to ru...
CREATE DATABASE IF NOT EXISTS ${DB}; USE ${DB}; DROP TABLE IF EXISTS kafka_temp_table_q13; SET spark.testing=${TESTING_ENABLE}; SET spark.sql.streaming.query.timeout.ms=${TESTING_TIMEOUT_MS}; SET streaming.query.name=job13; SET spark.sql.streaming.checkpointLocation.job13=${CHECKPOINT_ROOT}/job13; CREATE TABLE kafka...
<reponame>UMassMedIT/ProfilesRNS SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [User.Account].[Authenticate] ( @UserName NVARCHAR(50), @Password VARCHAR(128), @UserID INT = NULL OUTPUT, @PersonID INT = NULL OUTPUT ) AS BEGIN SET NOCOUNT ON BEGIN TRY SELECT @UserID = UserID, @PersonID = Per...
-- @testpoint: 自定义函数同义词在匿名块中调用 -- @modify at: 2020-11-25 --创建函数 drop function if exists SYN_FUN_001(ARRAY_C integer[]) cascade; create or replace function SYN_FUN_001(ARRAY_C integer[]) return integer[] as ARRAY_A integer[]; begin ARRAY_A:=ARRAY_C; return ARRAY_A; end; / --创建同义词 drop synonym if exists SYN_FUN_SYN_001...
ALTER TABLE DEPARTMENT ADD (EXTENSION_MANAGERS_ID NVARCHAR2(255) );
SELECT * FROM FOOD_NAME
<filename>assets/Backup Database/tes_sabun_cuci_mobil_v9-(if_exist_drop_table_n_truncate).sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 20, 2020 at 08:30 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 -- -- Author: @Gala...
CREATE TABLE [RegionalTransfers]( [RegionalTransferId] [int] NOT NULL IDENTITY(1,1), [ReprogrammingNumber] [nvarchar](255) NULL, [ProcessedDate] [datetime] NULL, [RPIO] [nvarchar](255) NULL, [AhCode] [nvarchar](255) NULL, [BFY] [nvarchar](255) NULL, [FundCode] [nvarchar](255) NULL, [OrgCode] [nvarchar](255) NUL...
-- AlterTable ALTER TABLE "Contract" ADD COLUMN "onchainId" TEXT;
<filename>DATA_BACKUP/BD5W6_424P_dbo_Langues.sql CREATE TABLE BD5W6_424P.dbo.Langues ( NoLangue int PRIMARY KEY NOT NULL, Langue nvarchar(10) NOT NULL ); INSERT INTO BD5W6_424P.dbo.Langues (NoLangue, Langue) VALUES (1, 'Français'); INSERT INTO BD5W6_424P.dbo.Langues (NoLangue, Langue) VALUES (2, 'Anglais'); INS...
<filename>docs/sql/migrations_campus_grenoble/20150712delete_idForum.sql ALTER TABLE `f_cd_comment` DROP `id_forum`;
/************************************************************* Sequence for generating sequential unique ids **************************************************************/ CREATE SEQUENCE dbo.WatermarkSequence AS BIGINT START WITH 1 INCREMENT BY 1 MINVALUE 1 NO CYCLE CACHE 1000000 CREATE...
<filename>module/implementation/package/pete_config_impl.pkb create or replace package body pete_config_impl as C_TRUE varchar2(10) := 'TRUE'; C_FALSE varchar2(10) := 'FALSE'; SHOW_ASSERTS varchar2(30) := 'SHOW_ASSERTS'; g_show_asserts number; SHOW_HOOK_METHODS varchar2(30) := 'SHOW_HOOK_MET...
<filename>web/src/main/resources/db/migration/v1/V1__Init_data.sql<gh_stars>1-10 SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for tenant -- ---------------------------- DROP TABLE IF EXISTS `tenant`; CREATE TABLE `tenant` ( `id` bigint ...
CREATE TABLE subdivision_DE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_DE" ("id", "name", "level") VALUES ('DE-BW', 'Baden-Wurtemberg', 'state'); INSERT INTO "subdivision_DE" ("id", "name", "level") VALUES ('DE-BY', 'Baviera', 'state'); INSERT INT...
<reponame>aliostad/deep-learning-lang-detection -------------------------------------------------------- -- DDL for Table VILLE -------------------------------------------------------- CREATE TABLE "G11_FLIGHT"."VILLE" ( "VILLE_NUM" NUMBER(5,0), "VILLE_NOM" VARCHAR2(50 BYTE), "PAYS_NUM" NUMBER(3,0) ) SEG...
declare @days_to_report int set @days_to_report = 30 select printer1_.display_name, user2_.user_name , user2_.full_name , sum(printerusa0_.total_pages) as total_pages, avg(printerusa0_.total_pages) as average_pages, sum(printerusa0_.usage_cost) as total_cost, avg(printerusa0_.usage_cost) as a...
<reponame>diamond95/LiveChat -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 10, 2018 at 10:47 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone =...
<reponame>dongzl/go-starter-kit<filename>migration/20200503143420_users.up.sql CREATE TABLE IF NOT EXISTS `users` ( `id` varchar(36) NOT NULL, `password` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL, `last_login` datetime(6) DEFAULT NULL, `is_superuser` tinyint(1) NOT NULL, ...
DROP TABLE IF EXISTS Kayttaja CASCADE; DROP TABLE IF EXISTS Tehtava CASCADE; DROP TABLE IF EXISTS Luokka CASCADE; DROP TABLE IF EXISTS Liitostaulukko CASCADE;
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50519 Source Host : localhost:3306 Source Database : ygb Target Server Type : MYSQL Target Server Version : 50519 File Encoding : 65001 Date: 2015-03-17 11:36:09 */ SET FOREIGN_KEY_CHEC...
<reponame>Topherhindman/basic-dbt select first_name || ' ' || last_name as full_name, email, gender, ip_address from {{ref('even_id_table')}}
CREATE OR REPLACE VIEW v_etf_tr40005_prtt AS SELECT prtt.rnk , prtt.item_code , prtt.trdd , prtt.trdd_no FROM ( SELECT RANK() OVER (PARTITION BY tr40005.item_code ORDER BY trd.trdd_no DESC) AS rnk , tr40005.item_code , tr40005.trdd , trd.trdd_no FROM t_etf_trdd trd , t_etf_tr40005 tr400...
<gh_stars>0 -- start query 1 in stream 0 using template query37.tpl and seed 301843662 select i_item_id ,i_item_desc ,i_current_price from item, inventory, date_dim, catalog_sales where i_current_price between 39 and 39 + 30 and inv_item_sk = i_item_sk and d_date_sk=inv_date_sk and d_date between ca...
COPY ( SELECT json_build_object( 'urs', urs, 'model_type', :'model_type', 'rna_type', :'rna_type', 'overlap_count', layout.overlap_count, 'sequence_length', rna.len, 'model_length', rfam.length ) FROM rnc_secondary_structure_layout layout JOIN rnc_secondary_structure_layout_models models ON ...
<reponame>jimjacobk/spring-maven-liquibase --TEACHERS INSERT INTO TEACHER(ID, FIRSTNAME, LASTNAME) VALUES('8559127c-84b4-11e9-bc42-526af7764f64', 'Helen', 'Keller'); INSERT INTO TEACHER(ID, FIRSTNAME, LASTNAME) VALUES('5100183d-b0a0-4728-a5ac-13fb6b3fee4d', 'Albert', 'Einstein'); --STUDENTS INSERT INTO STUDENT(ID, FIR...
select count(*) from movie_keyword AS mk join keyword AS k on (k.keyword IS NOT NULL AND k.keyword IN ('murder', 'murder-in-title', 'blood', 'violence') AND k.id = mk.keyword_id) join title AS t on (t.production_year > 2005 AND t.id = mk.movie_id) join kind_type AS kt on (kt.kind IN ('movie', 'episode') AND kt.id = t...
<reponame>skogard/nft.storage -- Auth key blocked status type is the type of blocking that has occurred on the api -- key. These are primarily used by the admin app. CREATE TYPE auth_key_blocked_status_type AS ENUM ( -- The api key is blocked. 'Blocked', -- The api key is unblocked. 'Unblocked' ); -- ...
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint: opengauss关键字like(保留),作为序列名 合理报错 --关键字不带引号-合理报错 drop sequence if exists like; create sequence like start 100 cache 50; --关键字带双引号-成功 drop sequence if exists "like"; create sequence "like" start 100 cache 50; --清理环境 drop sequence "like"; --关键字带单引号-合理报错 drop seq...