sql
stringlengths
6
1.05M
<gh_stars>0 select 'FAST_START_SERVERS' CNAME, to_char(systimestamp, 'yyyy-mm-dd"T"hh24:mi:ss.ff') CTIMESTAMP, v$fast_start_servers.* from v$fast_start_servers /
{Source_to_Standard} SELECT distinct SOURCE_CODE, TARGET_CONCEPT_ID FROM CTE_VOCAB_MAP WHERE lower(SOURCE_VOCABULARY_ID) IN ('jnj_optum_ehr_route') AND (TARGET_STANDARD_CONCEPT IS NOT NULL or TARGET_STANDARD_CONCEPT != '') AND (TARGET_INVALID_REASON IS NULL or TARGET_INVALID_REASON = '')
-- --- -- Globals -- --- -- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- SET FOREIGN_KEY_CHECKS=0; -- --- -- Table 'docker_machine' -- schema of docker machine -- --- DROP TABLE IF EXISTS `docker_machine`; CREATE TABLE `docker_machine` ( `id` INTEGER NOT NULL AUTO_INCREMENT DEFAULT NULL, `hostname...
<filename>sql/_14_mysql_compatibility_2/_04_table_related/_02_alter_change_column/_27_type_time/cases/1272.sql --+ holdcas on; ---- ALTER TABLE ... CHANGE COLUMN , type change -- constraints : not NULL -- ordering : no order defined -- name : same name -- type : TIME -- adding 'not null' : strict mode set system p...
-- @testpoint:opengauss关键字encoding(非保留),作为用户组名 --关键字不带引号-成功 drop group if exists encoding; create group encoding with password '<PASSWORD>'; drop group encoding; --关键字带双引号-成功 drop group if exists "encoding"; create group "encoding" with password '<PASSWORD>'; drop group "encoding"; --关键字带单引号-合理报错 drop group if exi...
CREATE TABLE `maintenanceschedule`.`interval` ( `id` INT NOT NULL AUTO_INCREMENT, `description` VARCHAR(45) NULL, PRIMARY KEY (`id`)); /*** SEED ***/ INSERT INTO `maintenanceschedule`.`interval` (`id`, `description`) VALUES (1, 'DI (Daily)'), (2, 'WI (Weekly)'), (3, 'MI (Monthly)'), (4, 'YI (Yearly)');
-- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 10, 2020 at 08:10 AM -- Server version: 5.5.20 -- PHP Version: 5.3.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
use master go if not exists(select * from sys.databases where name = 'DockerCourseDb') begin CREATE DATABASE [DockerCourseDb];-- ON PRIMARY --( NAME = N'DockerCourseDb', FILENAME = N'/folder_for_dbs/DockerCourseDb.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) --LOG ON ...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 08, 2016 at 07:20 AM -- 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 @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
CREATE TABLE "estimations" ( "estimation_id" TEXT NOT NULL, "project_id" TEXT NOT NULL, "estimated_on" TEXT NOT NULL, "estimated_budget" NUMERIC NOT NULL DEFAULT 0.00, "estimated_notes" TEXT NOT NULL, PRIMARY KEY("estimation_id"), FOREIGN KEY(project_id) REFERENCES projects(project_id) ON DELETE CASCAD...
DELIMITER $$ CREATE PROCEDURE udp_send_message(user_id INT(11), chat_id INT(11), content VARCHAR(200)) BEGIN IF (SELECT COUNT(*) FROM users_chats us WHERE us.chat_id = chat_id AND us.user_id = user_id) = 0 THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'There is no chat with that user!'; ELSE INSERT I...
-- 2018-10-17 19:43:44 : create membership table CREATE TABLE public."Membership" ( "Id" uuid NOT NULL, "StartedDate" timestamp NOT NULL, "UserId" varchar(255) NOT NULL, "TeamId" uuid NOT NULL, "Type" varchar(255) NOT NULL, CONSTRAINT membership_pk PRIMARY KEY ("Id"), CONSTRAINT membership_...
<filename>src/questions/leetcode185/DepartmentTopThreeSalaries.sql<gh_stars>0 SELECT D.Name AS Department, E.Name AS Employee, E.Salary FROM Department AS D, Employee AS E WHERE ( SELECT COUNT(DISTINCT(Salary)) FROM Employee WHERE DepartmentId = D.Id AND Salary > E.salary) < 3 AND E.DepartmentId = D...
<reponame>statisticspoland/VTL-Processing CREATE TABLE [Simmetric_difference].[DS_1] ( [Id_1] INT NOT NULL, [Id_2] VARCHAR(32) NOT NULL, [Id_3] VARCHAR(32) NOT NULL, [Id_4] VARCHAR(32) NOT NULL, [Me_1] INT CONSTRAINT [PK_Simmetric_difference_DS_1] PRIMARY KEY CLUSTERED ([Id_1], [Id_2], [Id_3], [Id_4]) )
<reponame>TerraTex-Community/TerraTex-Twitch-Bot create table songrequest_settings ( ID int auto_increment primary key, channelID int null, enabled int(1) default '0' null, autoPlay int(1) default '1' null, minViewTime int default '0' null, pointCosts int default '0' null, showMessageInChat int(1) default '1' ...
-- UPDATE `cat_genre` SET title='foreign cartoons' WHERE title='foreign' and category_alias='animation'; UPDATE `cat_genre` SET title='our cartoons' WHERE title='ours' and category_alias='animation'; UPDATE `cat_genre` SET title='cartoon series' WHERE title='series' and category_alias='animation'; --//@UNDO
create database python_example; use python_example; create table class ( id bigint(20) unsigned primary key auto_increment, class_name varchar(50) not null unique, is_delete tinyint default 0 )engine=innodb auto_increment=1 default charset=utf8; insert into class(id, class_name) values(1, "火箭班"); insert i...
<reponame>mindis/Big_Data_Analysis<filename>a01_PySpark/f01_Pyspark_Solution_to_SQL57ProblemsBook/resources/57-sql-problems/020.sql<gh_stars>0 SELECT c.categoryname, count(p.productid) as nb_products FROM categories c INNER JOIN products p on c.categoryid = p.categoryid GROUP BY c.categoryname ORDER BY nb_p...
<filename>old_tests/ut_matchers/common/ut.expect.common.be_between.sql<gh_stars>0 --Arrange declare l_value1 &&1 := &&2; l_value_lower &&1 := &&3; l_value_upper &&1 := &&4; begin --Act ut.expect(l_value1).&&6.to_be_between(l_value_lower,l_value_upper); --Assert if ut_expectation_processor.get_status = &&5 the...
DROP TABLE Roles IF EXISTS; DROP TABLE Applications IF EXISTS; CREATE TABLE Application ( ID varchar(64) PRIMARY KEY, Name varchar(255), Secret varchar(255) default null, AvailableOrgNames varchar(255) default null, DefaultRoleName varchar(150) default null, DefaultOrgName varchar(150) default null ); CR...
-- @testpoint: cidr类型网络地址/子网掩码/主机地址组合测试取最小值--ipv6 --step1:创建表; expect:成功 drop table if exists t_min_case0008; create table t_min_case0008(id int, c cidr); --step2:主机地址不同; expect:::fe:c0A8:1 insert into t_min_case0008 values(1,'::fe:192.168.0.1/128'),(2,'::fe:c0A8:0002/128'); select min(c) from t_min_case0008; --ste...
<gh_stars>0 declare @dbname Nvarchar(50)='EDWStaging' declare @version int declare @sql Nvarchar(max)='select @cnt=max(change_number) from ' + @dbname + '.dbo.changelog' execute sp_executesql @sql, N'@cnt int OUTPUT', @cnt=@version OUTPUT declare @dbSnapshotName Nvarchar(100)= @dbname +'_Snapshot_V'+convert(...
<gh_stars>0 SELECT Purchases.*, Allocations.Amount FROM Allocations LEFT JOIN Purchases ON (Allocations.RcCode = Purchases.RcCode) AND (Allocations.BocCode = Purchases.BocCode) AND (Allocations.AccountCode = Purchases.AccountCode) AND (Allocations.FundCode = Purchases.FundCode) AND (Allocations.BFY = Purchases.BF...
<filename>mynotescode.sql -- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 08, 2017 at 03:09 -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 28 Mar 2020 pada 12.02 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<filename>robotic.sql -- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 03, 2018 at 01:25 -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 ...
<filename>server/test.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 18, 2021 at 02:49 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
REPLACE INTO ?:product_prices (`product_id`, `price`, `percentage_discount`, `lower_limit`, `usergroup_id`) VALUES (278, 75.00, 0, 1, 0); REPLACE INTO ?:product_prices (`product_id`, `price`, `percentage_discount`, `lower_limit`, `usergroup_id`) VALUES (279, 75.00, 0, 1, 0); REPLACE INTO ?:product_prices (`product_id`,...
<filename>Scripts/s-13-p-registra-vehiculo.sql --@Autor: <NAME> y <NAME> --@Fecha creación: 17/06/2020 --@Descripción: Procedimiento para registrar vehículos set serveroutput on create or replace procedure sp_registra_vehiculo( p_vehiculo_id in out number, p_anio varchar2, p_es_transporte_publico number, p_es...
CREATE TABLE users( id INT PRIMARY KEY AUTO_INCREMENT, username VARCHAR(100) NOT NULL UNIQUE, password VARCHAR(100) NOT NULL, email VARCHAR(100) ) CREATE TABLE books( id INT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(100) NOT NULL, author VARCHAR(100) NOT NULL, price DOUBLE(11,2) NOT NUL...
-- ================================================ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [bib].[Sp_DEL_dias_prestamo] @_iDiasPrestamoId INTEGER AS BEGIN SET NOCOUNT ON; DELETE FROM bib.dias_prestamo WHERE iDiasPrestamoId=@_iDiasPrestamoId IF @@ROWCOUNT>0 BEGIN SELECT 1 iResult ...
<reponame>navikt/yrkesskade-kodeverk<gh_stars>0 -- Ny type INSERT INTO type (type_id, navn, beskrivelse) VALUES (6, 'harSkadelidtHattFravaer', 'Har den skadelidte hatt fravær'); -- Kategori Arbeidstaker / Type 'Har den skadelidte hatt fravær' INSERT INTO kategori_type (kategori_id, type_id) VALUES (0, 6); -- Kategori ...
@&&run_dir package
<filename>src/database/entities/apparel/triggers.sql -- On Addition DROP TRIGGER IF EXISTS newApparel_log; DELIMITER $$ CREATE TRIGGER newApparel_log AFTER INSERT ON apparel FOR EACH ROW BEGIN CALL log( 'add_apparel', NEW.id, NEW.employee ); END; $$ DELIMITER ; -- On Delete DROP TRIGGER I...
<gh_stars>1-10 SELECT COUNT(*) FROM treemap_tree WHERE SELECT COUNT(*) FROM treemap_mapfeature
<gh_stars>10-100 {% macro synapse__create_schema(relation) -%} {% call statement('create_schema') -%} IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = '{{ relation.without_identifier().schema }}') BEGIN EXEC('CREATE SCHEMA {{ relation.without_identifier().schema }}') END {% endcall %} {% endmac...
-- Deploy ovid:data/politics-in-programming to sqlite BEGIN; INSERT INTO articles (title, slug, description, article_type_id, sort_order) VALUES ( 'Politics in Programming', 'politics-in-programming', 'Designing the Corinna OO system for Perl has been as much a political ...
<reponame>nikhilnayak98/CSE3151 /* Name: <NAME> Regd No: 1641012040 Desc: Assignment 1 */ /* Schema */ create table INSTRUCTOR(id number, name varchar(30), dept_name varchar(20), salary number); create table COURSE(course_id varchar(10), title varchar(30), dept_name varchar(20), credits number); create table PREREQ(co...
<reponame>DjordjeVucinac82/crunchbutton ALTER TABLE `community` ADD COLUMN `amount_per_order` float DEFAULT NULL;
<filename>deploy/pgcrypto.sql -- Deploy pgcrypto BEGIN; CREATE EXTENSION pgcrypto; COMMIT;
CREATE PROC usp_AssignEmployeeToReport(@EmployeeId INT, @ReportId INT) AS BEGIN DECLARE @EmployeeDepartmentId INT = ( SELECT DepartmentId FROM Employees WHERE Id = @EmployeeId) IF( EXISTS( SELECT * FROM Reports r JOIN Categories c ON c.Id = r.CategoryId WHERE r.Id = @ReportId AND c.DepartmentId = @Employ...
create table `admin_app`( `id` int(11) unsigned not null auto_increment, `app_id` varchar(50) not null default '' comment '应用id', `app_secret` varchar(50) not null default '' comment '应用密钥', `app_name` varchar(50) not null default '' comment '应用名称', `app_status` tinyint(2) not null default 1 comment '可用状态:1...
<filename>DMS5/Legacy/DeleteAnalysisJobProcessorGroup.sql<gh_stars>1-10 /****** Object: StoredProcedure [dbo].[DeleteAnalysisJobProcessorGroup] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO create Procedure dbo.DeleteAnalysisJobProcessorGroup /**************************************************** ** ...
<gh_stars>10-100 -- migrate:up alter table `sessions` add `client_id` VARCHAR(255) after `user_id`; -- migrate:down alter table `sessions` drop column `client_id`;
CREATE INDEX X_RXNCONSO_STR ON rxnorm.RXNCONSO(STR); CREATE INDEX X_RXNCONSO_RXCUI ON rxnorm.RXNCONSO(RXCUI); CREATE INDEX X_RXNCONSO_TTY ON rxnorm.RXNCONSO(TTY); CREATE INDEX X_RXNCONSO_CODE ON rxnorm.RXNCONSO(CODE); CREATE INDEX X_RXNSAT_RXCUI ON rxnorm.RXNSAT(RXCUI); CREATE INDEX X_RXNSAT_ATV ON rxnorm.RXNSAT(ATV);...
<filename>updates/pg_jobmon--0.3.2--0.3.3.sql<gh_stars>100-1000 -- Turn off the dump of table data for the log tables. pg_dump isn't handling this properly and will dump all the data out for these tables even in a --schema-only dump. -- Data for other tables is minimal, and more critical, so not removing their dump set...
INSERT INTO workshop.kr_student (id, created_at, created_by, updated_at, updated_by, deleted_at, deleted_by, user_id, block_id, total, description, weight) VALUES (1, 1601235080, 101, null, null, null, null, 250, 1, 0, '<p>Участник подключен к обучению 28.09.2020</p>', 10); INSERT INTO workshop.kr_student (id, created_...
<gh_stars>0 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_cars` AS select distinct `catalog`.`family` AS `family`,'hyundai' AS `marka` from `catalog` order by `catalog`.`family`; -- CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_catalogs` AS sel...
<reponame>joshbenner/imbi SET search_path=v1; CREATE TYPE entity_type AS ENUM ('internal', 'ldap'); COMMENT ON TYPE entity_type IS 'Used to track the type of authentication entity is record';
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 07-07-2018 a las 12:24:25 -- Versión del servidor: 5.7.19 -- Versión de PHP: 7.1.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 09, 2020 at 04:08 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
with product as ( select * from {{ source('subscription', 'product') }} ) select * from product
<filename>src/main/java/com/example/db/insertEmployees.sql<gh_stars>0 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: Pali * Created: Nov 20, 2020 */ insert into Em...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-05-2018 a las 12:28:32 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
drop database if exists `portal_labs`; create database `portal_labs`; use `portal_labs`; grant usage on portal_labs.* to portal_labs@localhost identified by '@portal_labs#'; grant select, insert, update, delete, drop, alter, create temporary tables on portal_labs.* to portal_labs@localhost; flush privileges; CREATE ...
<filename>projeto.sql INSERT INTO tb_projeto (Nome_Projeto,Numero_Projeto,Local_Projeto,Numero_Departamento) VALUES ('Reorganização','20','São Paulo','1'), ('Produto Y','2','Itu','5'), ('Novos Benefícios','30','Mauá','4'), ('Produto X','1','Santo André','4'), ('Informatização','10','Mauá','4'), ('Produto Z','3','São Pa...
<reponame>dsalunga/mPortal<filename>Portal/Binaries/Database/Procedures/IncidentCategory_Del.create.sql -- Procedure IncidentCategory_Del SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE dbo.IncidentCategory_Del ( @Id int ) AS SET NOCOUNT ON IF(@Id > 0) DELETE FROM IncidentCategory WHERE Id...
delimiter // -- function to return station name corresponding to a station code create or replace function station_code_name(station_code varchar(5)) returns varchar(50) reads sql data begin return (select station_name from station as T where T.station_code = station_code); end // -- func...
------------------START------------------ ALTER TABLE egpt_vacancy_remission ADD COLUMN source character varying(20); ALTER TABLE egpt_property ADD COLUMN source character varying(20); ALTER TABLE egpt_property_mutation ADD COLUMN source character varying(20); -------------------END-------------------
create table preference ( id serial not null, name varchar(100) not null, key varchar(200) not null, description text default null, created timestamp not null default now(), constraint pk_preference primary key (id), constraint uk1_preference unique (name), constraint uk2_preference unique (key) ); cr...
<reponame>marodev/iotedge<filename>tools/IoTEdgeDevOps/VstsPipelineSync/db/dbo.VstsBug.sql /****** Object: Table [dbo].[VstsBuildRun] Script Date: 2/12/2020 4:56:48 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[VstsBug]( [Title] [varchar](200) NOT NULL, [AreaPath] [varchar](200...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Sep 2020 pada 13.27 -- Versi server: 10.1.35-MariaDB -- Versi PHP: 7.1.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
-- This script duplicates the nurse charting table, making the following changes: -- "major" vital signs -> pivoted_vital -- "minor" vital signs -> pivoted_vital_other DROP TABLE IF EXISTS pivoted_vital CASCADE; CREATE TABLE pivoted_vital as -- create columns with only numeric data with nc as ( select patientunit...
-- use self join three times (if month is not dense) -- name table e, e1, e2, e3; cummulatively sum e1, e2, e3 SELECT e.Id ,e.Month ,IFNULL(e.Salary, 0) + IFNULL(e1.Salary, 0) + IFNULL(e2.Salary, 0) AS Salary FROM Employee e LEFT JOIN Employee e1 ON e.Id = e1.Id AND e.Month = e1.Month + 1 LEFT JOIN Employee e2 ON...
/* drop table tbl_DB_Mapping_application_Owners create table tbl_DB_Mapping_application_Owners( Server_Name varchar(200), Database_Name varchar(200), Create_Date varchar(200),Application_Name varchar(max), Business_Owner varchar(max), Comments varchar(200), Site_Name varchar(20),load_date datetime default getdate()) ...
DROP FUNCTION IF EXISTS shipmentDispositionExcelDownload(TIMESTAMP With Time Zone, numeric, numeric); CREATE OR REPLACE FUNCTION shipmentDispositionExcelDownload(IN p_C_ShipmentSchedule_Deliverydate TIMESTAMP With Time Zone, IN p_C_BPartner_ID numeric, ...
<gh_stars>0 -- -- Copyright 2004-2014 The Kuali Foundation -- -- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php -- -- ...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.3.4 -- Dumped by pg_dump version 9.3.4 -- Started on 2015-06-08 23:18:54 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 =...
<reponame>Jeremy1401/tax # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: localhost (MySQL 5.6.35) # Database: tp5 # Generation Time: 2017-08-15 13:41:06 +0000 # ****************...
<gh_stars>100-1000 -- // CB-7808 set from datahub, datalake stack type to stacks in structured events -- Migration SQL that makes the change goes here. -- //@UNDO -- SQL to undo the change goes here. update structuredevent set resourcetype = 'stacks' where resourcetype = 'datahub' OR resourcetype = 'datalake';
<reponame>demidenko05/beige-acc<filename>src/main/resources/ws/ordGdChk.sql select :TORLN.IID as IID, :TORLN.NME as NME, GOOD, OWNR, PRI, TOT, TOTX, UOM112.NME as UOM112NME, UOM112.IID as UOM112IID, case when AVQUAN is null or QUAN>AVQUAN then 0 else QUAN end as QUAN from :TORLN left join UOM as UOM112 on :TORLN.UOM=UO...
<reponame>abhikedia/Consent-Management_Tezos CREATE TABLE `Bookings` ( `id` INT NOT NULL AUTO_INCREMENT, `user_address` varchar(255) NOT NULL, `airline_address` varchar(255) NOT NULL, `to_` varchar(3) NOT NULL, `from_` varchar(3) NOT NULL, `time` varchar(10) NOT NULL, `date` varchar(10) NOT NULL, `name` varchar...
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table mille as select 0 as i from table({1,2,3,4,5,6,7,8,9,0}) t1, table({1,2,3,4,5,6,7,8,9,0}) t2, table({1,2,3,4,5,6,7,8,9,0}) t3, table({0,1,2,3}) t4; create table t (i int, j int, k int, l int); insert into t(i,j,k,l) select i+2, 2*((rownum-...
<reponame>opengauss-mirror/Yat -- @testpoint: 表达式的输入,合理报错 select coalesce(2<3,1,null,2); select coalesce(1,2<3,null,2);
SELECT act.TripId AS Id, a.FirstName + ' ' + ISNULL(MiddleName + ' ', '') + LastName AS [Full Name], c.[Name] AS [From], hc.[Name] AS [To], CASE WHEN CancelDate IS NULL THEN CONVERT(NVARCHAR(MAX), DATEDIFF(DAY, ArrivalDate, ReturnDate)) + ' days' ELSE 'Canceled' END AS Duration FROM AccountsTri...
select OgrNumara,OgrAd from ogr
<gh_stars>0 -- case_action_audit table CREATE TABLE case_action_audit ( case_action_id SERIAL PRIMARY KEY, user_id VARCHAR(64) NOT NULL, case_action VARCHAR(16) CHECK (case_action in ('VIEW','UPDATE','CREATE')) NOT NULL, case_ref VARCHAR(16) NOT NULL, case_jurisdiction_id VARCHAR(70) NOT NULL, ca...
-- ==================== ==================== -- DROP FUNCTION IF EXISTS create_customer CASCADE; -- ==================== ==================== -- DROP TABLE IF EXISTS customers CASCADE; DROP SEQUENCE IF EXISTS customer_id_seq CASCADE; -- ==================== ==================== --
CREATE TABLE [dbo].[ErrorLog] ( [dateCreated] DATETIME NOT NULL, [errorNumber] INT NOT NULL, [userId] INT NULL, [message] NVARCHAR (MAX) NULL, [stackTrace] NVARCHAR(MAX) NULL, CONSTRAINT [PK_ErrorLog] PRIMARY KEY ([dateCreated]) ); GO CREATE INDEX [index...
<gh_stars>1-10 insert into role values(1, 'TEACHER'); insert into role values(2, 'ADMIN'); insert into role values(3, 'STUDENT');
<filename>eqkillboard-database/verify/0004_dispel_slots_involved_stats.sql -- Verify eqkillboard-database:0004_dispel_slots_involved_stats on pg BEGIN; -- XXX Add verifications here. SELECT dispel_slots, * FROM killmail_involved; SELECT * FROM character_ranked_kill_death; SELECT * FROM guild_ranked_kill_death; ROLL...
ALTER TABLE envelopes DROP CONSTRAINT envelopes_container_file_name_key;
/* code of this procedure is managed in the dhw repository. Do not modify manually. Use [uspgenerator].[GeneratorUsp], [uspgenerator].[GeneratorUspParameter], [uspgenerator].[GeneratorUspStep], [uspgenerator].[GeneratorUsp_SqlUsp] */ CREATE PROCEDURE [repo].[usp_Index_finish] ----keep the code between logging parame...
<reponame>jdkoren/sqlite-parser -- pagerfault.test -- -- execsql { -- PRAGMA page_size = 1024; -- PRAGMA auto_vacuum = 0; -- CREATE TABLE t1(a); -- CREATE INDEX i1 ON t1(a); -- INSERT INTO t1 VALUES(a_string(3000)); -- CREATE TABLE t2(a); -- INSERT INTO t2 VALUES(1); -- } PRAGMA page_size =...
-- rollback.test -- -- execsql { -- BEGIN; -- INSERT INTO t3 VALUES('hello world'); -- } BEGIN; INSERT INTO t3 VALUES('hello world');
-- TABLES CREATE TABLE IF NOT EXISTS `bx_antispam_disposable_email_domains` ( `id` int(11) NOT NULL AUTO_INCREMENT, `domain` varchar(255) NOT NULL, `list` enum('blacklist','custom_blacklist','whitelist','custom_whitelist') NOT NULL DEFAULT 'custom_blacklist', PRIMARY KEY (`id`), UNIQUE KEY `domain` (`domain`)...
CREATE Procedure Integration.IngestMovementData AS BEGIN DECLARE @SQL nvarchar(max) = N'' DECLARE @timestamp char(8) = convert(char(8), getdate(), 112) --This should match Staging table layout EXCEPT do NOT include identity and change dates to nvarchar SET @SQL = ' IF OBJECT_ID(''[Integration].[FactMovement_exte...
ALTER TABLE cuecards RENAME TO cuecards_drop; CREATE TABLE cuecards ( id INTEGER NOT NULL PRIMARY KEY, uuid TEXT NOT NULL UNIQUE, phase TEXT NOT NULL, rhythm TEXT NOT NULL, title TEXT NOT NULL, steplevel TEXT NOT NULL, difficulty TEXT NOT NULL, choreographer TEXT NOT NULL, meta TEXT NOT NULL, content TEXT NO...
<reponame>wangdingfeng/J2EEFAST /* Navicat Premium Data Transfer Source Server : 本地虚拟机ROOT Source Server Type : MySQL Source Server Version : 50730 Source Host : 192.168.20.110:3306 Source Schema : fastdb1 Target Server Type : MySQL Target Server Version : 50799 File Encoding ...
<reponame>yuebo/docker-images use mysql; update user set host='%' where user='root' and host='localhost'; FLUSH PRIVILEGES;
CREATE TABLE IF NOT EXISTS `UserEntity` ( `userId` TEXT PRIMARY KEY, `userFirstName` TEXT, `userLastName` TEXT, `lastVisitDate` INTEGER, `role` INTEGER REFERENCES `RoleEntity` (`roleId`), `accountStatus` INTEGER, `comments` BLOB, `age` INTEGER NOT NULL) {Params: []}
-- Created by <NAME> -- Last modification date: 2021-05-08 18:55:03.182 -- tables -- Table: matches insert into `matches` (id, tournament_playing_category_id, first_registration_id, second_registration_id, round) values (1, 1, 1, 2, 1); insert into `matches` (id, tournament_playing_category_id, first_registration_id, s...
-- ---------------------------- -- Table structure for tblvideos -- ---------------------------- DROP TABLE IF EXISTS tblvideos; CREATE TABLE tblvideos ( videoId int auto_increment primary key, title varchar(200) not null, director varchar(100) not null, duration integer, synopsis text, genre varchar(50) n...
<filename>backend/mysql/schemas/heart_beat/artists.sql CREATE TABLE `artists` ( `id` int NOT NULL AUTO_INCREMENT, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `name` varchar(256) NOT NULL, `view_count` int DEFAULT NULL, `url` varchar(256) DEFA...
CREATE OR REPLACE FUNCTION tim_gfx_netobj(netobj TEXT, geomtype TEXT) RETURNS JSON AS $$ DECLARE fields TEXT; geojson JSON; BEGIN fields := tim_netobjids(netobj); EXECUTE(FORMAT(' SELECT row_to_json(featurecollection) FROM ( SELECT ''FeatureCollection'' AS type, a...
<filename>skeqi-system/src/main/resources/sql/mes-init.sql<gh_stars>0 /* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 80019 Source Host : localhost:3306 Source Schema : qihang1 Target Server Type : MySQL Target Server Versi...
CREATE DATABASE IF NOT EXISTS `algernon_cloud` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `algernon_cloud`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 172.16.17.32 Database: algernon_cloud -- ------------------------------------------------------ -- Server version 5.6.27-log /*!...
<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.18-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 9.3.0.4984 -- ------------------------------------...
<filename>AthenaQueries/cost_by_service.sql SELECT IF (MAX(product_service_name) IS NOT NULL AND MAX(product_service_name) != '', MAX(product_service_name), line_item_product_code) AS Service, SUM(line_item_unblended_cost) AS Cost FROM "billingdata"."cur_formatted" WHERE line_item_usage_start_date >= from_is...
<gh_stars>0 CREATE TABLE t1(x INT NOT NULL, y VARCHAR(7), z DECIMAL); CREATE table t2(w CHAR(1) NOT NULL); CREATE VIEW v1(x,y) AS SELECT y,z FROM t1 WHERE y IS NOT NULL;