sql
stringlengths
6
1.05M
-- CreateTable CREATE TABLE "URL" ( "id" SERIAL NOT NULL, "fullURL" TEXT NOT NULL, "slug" TEXT NOT NULL, "views" INTEGER NOT NULL DEFAULT 0, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, CONSTRAINT "URL_pkey" PRIMARY KEY ("id") ); -- CreateIndex CREATE UNIQUE INDEX "URL_slug_key...
------------------------------------------------------------------------------ -- FILE: new_bbg_sv_1.sql -- AUTHOR: <NAME>. / <NAME> -- PURPOSE: Database modifications by new BBG ------------------------------------------------------------------------------ --==========================================================...
CREATE TABLE BOKMALclass ( `tid` VARCHAR(255) NOT NULL, `class` VARCHAR(255) NOT NULL, PRIMARY KEY (`tid`, `class`), KEY `topic` (`class`, `tid`) );
<reponame>franchais3226/coral START TRANSACTION; UPDATE cnx_logger_properties SET zone="Mid-lower" WHERE zone="Lower-mid"; UPDATE cnx_logger_properties SET zone="Mid-upper" WHERE zone="Upper-mid"; ROLLBACK; COMMIT;
drop schema if exists data cascade; create schema data; set search_path = data, public; -- import our application models \ir user.sql \ir todo.sql \ir todo_relay_id.sql
<reponame>dn-tr/UsingWords IF object_id('dbo.TextItemKinds') IS NOT NULL DROP TABLE dbo.TextItemKinds GO PRINT 'Creating dbo.TextItemKinds' -- Text kinds: words, numbers, punctuation marks, etc. CREATE TABLE dbo.TextItemKinds ( Id INT IDENTITY CONSTRAINT ITextItemKindsId PRIMARY KEY NONCLUSTERED , Name VARCHAR...
#--SHOW TABLES; #--SHOW DATABASES; DROP DATABASE Library; #--0. Creating the Database CREATE DATABASE Library; USE Library; #--1. Create the table publisher CREATE TABLE Publisher (`PID` INT PRIMARY KEY, `Name` VARCHAR(100), `Country` VARCHAR(100)); #--2. Inserting the values INSERT INTO Publisher VALUES (...
-- randexpr1.test -- -- db eval {SELECT coalesce((select max(e) from t1 where 11>=coalesce((select max(b) from t1 where (abs(13)/abs(coalesce((select max(11) from t1 where f not between t1.a and t1.d),t1.d)))=case when 11 in (select (11 | d)-coalesce((select t1.e | coalesce((select t1.e from t1 where t1.f in (select 1...
<reponame>frankgh/cassandra<filename>doc/modules/cassandra/examples/CQL/alter_table_spec_retry.cql ALTER TABLE users WITH speculative_retry = '10ms';
create table PEOPLE( FIRST VARCHAR , LAST VARCHAR , EMAIL VARCHAR );
<gh_stars>0 -- sqlite3 s4_rulebase_template.sqlite < create_db_s4_rulebase.sql -- drop indices DROP INDEX IF EXISTS idx_s4_site_s4_floc; DROP INDEX IF EXISTS idx_s4_function_s4_floc; DROP INDEX IF EXISTS idx_s4_process_group_s4_floc; DROP INDEX IF EXISTS idx_s4_process_s4_floc; DROP INDEX IF EXISTS idx_s4_system_s4_...
<gh_stars>0 DELETE FROM films WHERE kind <> 'Musical';
<filename>openGaussBase/testcase/KEYWORDS/routine_catalog/Opengauss_Function_Keyword_Routine_catalog_Case0026.sql -- @testpoint:opengauss关键字routine_catalog(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists routine_catalog; create schema routine_catalog; drop schema routine_catalog; --关键字带双引号-成功 drop schema if exists "r...
<filename>Homework/DBFundamentals/Databases Basics/07.Subqueries and JOINs/Exercises/Exercises/p04.EmployeeDepartments.sql<gh_stars>0 SELECT TOP(5) emp.EmployeeID, emp.FirstName, emp.Salary, dep.[Name] AS DepartmentName FROM Employees AS emp JOIN Departments AS dep ON dep.DepartmentID = emp.Departmen...
<reponame>linhcatcat/wcf -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Jul 29, 2020 at 12:42 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
<reponame>nabeelkhan/Oracle-DBA-Life ------------------------------------------------------------------------------- -- -- Script: session_times.sql -- Purpose: to report the time used and waiting for a session -- -- Copyright: (c) Ixora Pty Ltd -- Author: <NAME> -- -- Synopsis: @set_sid -- @session_times -- ---------...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 24 Des 2015 pada 03.10 -- Versi Server: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
<reponame>ruanpato/flaskRestfulAPI -- < Inserir Pessoas no Banco > -- <NAME> INSERT INTO "Person" ("name", "title", "email", "birthday") VALUES ('<NAME>', 'Dr.', '<EMAIL>', '04-03-1977'); INSERT INTO "Contact" ("id") VALUES (1); -- ID of <NAME> UPDATE "Person" SET "id_Contact" = 1 WHERE "Person"."id" = 1; -- Refre...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Dec 10, 2018 at 03:28 AM -- Server version: 5.6.35 -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<filename>Split.sql IF EXISTS (SELECT 1 FROM sys.objects where [object_id] = OBJECT_ID('Utility.Split')) DROP FUNCTION [Utility].[Split] GO CREATE FUNCTION [dbo].[Split] ( @String nvarchar(8000), @Delimiter char(1) ) RETURNS @SUBSTRINGS TABLE (Items nvarchar(8000)) as BEGIN IF LEN(@String) < 1 or @String...
create table test_normalization.simple_stream_with_namespace_resulting_into_long_names__dbt_tmp as with dbt__cte__simple_stream_with_namespace_resulting_into_long_names_ab1__ as ( -- SQL model to parse JSON blob stored in a single column and extract into separated field columns as described by the JSON ...
/* Formatted on 8/23/2012 1:51:46 PM (QP5 v5.215.12089.38647) */ CREATE TABLE PROTECT.CUSTOMATTRIBUTEGROUP_LOG AS SELECT * FROM PROTECT.CUSTOMATTRIBUTEGROUP WHERE 1 = 2; ALTER TABLE PROTECT.CUSTOMATTRIBUTEGROUP_LOG ADD (LOGTIME TIMESTAMP(6)); CREATE OR REPLACE TRIGGER PROTECT.CUSTOMATTRIBUTEGROUP_UPDATE ...
-- analyze3.test -- -- execsql { CREATE TABLE t2(d, e, f) } CREATE TABLE t2(d, e, f)
-- 2019-08-15T19:57:41.431Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Description='Actually delivered quantity', Name='Delivered catch', PrintName='Delivered catch',Updated=TO_TIMESTAMP('2019-08-15 21:57:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=576...
<reponame>iuri/tutortronics -- Uninstall content repository tables of the ArsDigita Community -- System -- Copyright (C) 1999-2000 ArsDigita Corporation -- Author: <NAME> (<EMAIL>) -- $Id: content-drop.sql,v 1.5 2015/12/04 13:49:57 cvs Exp $ -- This is free software distributed under the terms of the GNU Public -- L...
ALTER DATABASE dnakitare CHARACTER SET utf8 COLLATE utf8_unicode_ci; DROP TABLE IF EXISTS star; DROP TABLE IF EXISTS comment; DROP TABLE IF EXISTS articleTag; DROP TABLE IF EXISTS article; DROP TABLE IF EXISTS user; CREATE TABLE user ( userId BINARY (16) NOT NULL, userActivationToken CHAR (32), userEmail VARCHAR...
# Host: localhost (Version: 5.5.59) # Date: 2019-04-19 16:19:54 # Generator: MySQL-Front 5.3 (Build 4.186) /*!40101 SET NAMES latin1 */; # # Structure for table "category" # DROP TABLE IF EXISTS `category`; CREATE TABLE `category` ( `id` bigint(20) NOT NULL, `description` varchar(255) DEFAULT NULL, `end_date...
<filename>src/functions/UDF_HANDLE_OBJECT_NAMES.sql<gh_stars>0 CREATE OR REPLACE FUNCTION VC.UDF_HANDLE_OBJECT_NAMES("STRING" VARCHAR(16777216)) RETURNS VARCHAR(16777216) LANGUAGE JAVASCRIPT AS ' STRING = STRING.trim(); var SEARCHSTRING = ''\\"'' var indices = []; for(var i=0; i<STRING.length;i++) { if (STRING[i...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [AutoWho].[DataByTime] /* Copyright 2016 <NAME> 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/lic...
<gh_stars>1-10 create table dbo.Table5 ( a int not null , b int ) go create index IX_TABLE5_01 on dbo.Table5 (b) go CREATE view dbo.ViewWithDoubledBrackets AS SELECT 1 as a FROM dbo.Table5 WHERE 1=1 union all SELECT 1 as a FROM dbo.Table5 WHERE (1=1) union all SELECT 1 as a FROM dbo.Table5 WHER...
-- name: alter-table-add-repo-active ALTER TABLE repos ADD COLUMN repo_active BOOLEAN; -- name: update-table-set-repo-active UPDATE repos SET repo_active = true;
alter table REPORT_TEMPLATE add OUTPUT_NAME_PATTERN varchar(255);
<filename>files/mcollective/aggregate/nettest_mma.ddl metadata :name => "nettest_mma", :description => "Max, min, average aggregate function.", :author => "<NAME> <<EMAIL>>", :license => "BSD", :version => "4.0.3", :url => "https://github.com/choria-plugins/nettest-agent", ...
<reponame>yangqiufei/financial_data_pools CREATE TABLE `s_financial_profits` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `security_code` char(6) NOT NULL COMMENT 'SECURITY_CODE', `security_name_abbr` varchar(32) NOT NULL DEFAULT '' COMMENT 'SECURITY_NAME_ABBR', `parent_netprofit` double NOT NULL DEFAULT '0...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Ven 05 Mai 2017 à 18:39 -- Version du serveur : 5.6.17 -- Version de PHP : 5.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
<gh_stars>0 -- @testpoint: opengauss关键字specific_name(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists explain_test cascade; create table explain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor specific_name for select * from explain_test order by 1; close specific_name; end; --关键字带双引号-成功 start transact...
CREATE DATABASE IF NOT EXISTS API_REST_LARAVEL; USE API_REST_LARAVEL; CREATE TABLE USERS( id int(255) auto_increment not null, name varchar(50) not null, surname varchar(100) not null, role varchar(50) not null, email varchar(250) not null, ...
/* Right now start off with 1 table.. */ CREATE EXTENSION postgis; CREATE SCHEMA IF NOT EXISTS ${project_schema} CREATE TABLE IF NOT EXISTS ${project_schema}.columns( id serial PRIMARY KEY, project_id integer, col_id integer, col_name text, col_group text, location geometry );
<reponame>CeylinBrooks/book_app INSERT INTO book VALUES
/* * We decided we need more task states. Let's add them in version 2. */ INSERT INTO app.task_state (state, descr) VALUES ('ready', 'Task will be performed soon'), ('cancelled', 'Task will not be performed');
<filename>dumps/code.sql<gh_stars>0 -- MySQL dump 10.13 Distrib 8.0.26, for macos11 (x86_64) -- -- Host: localhost Database: code_interview -- ------------------------------------------------------ -- Server version 5.7.32 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTE...
ALTER TABLE library ADD COLUMN library_code VARCHAR(16) NOT NULL;
-- -- CzechIdM 10 Flyway script -- BCV solutions s.r.o. -- -- Add role guarantee type attribute -- type guarantee-identity ALTER TABLE idm_role_guarantee ADD guarantee_type nvarchar(255); CREATE INDEX idx_idm_role_guarantee_type ON idm_role_guarantee(guarantee_type); ALTER TABLE idm_role_guarantee_a ADD guarantee_t...
SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP TABLE IF EXISTS `companies`; CREATE TABLE `companies` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `guid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(4)...
<reponame>thyhero/alpha<filename>alpha-console/docs/db/alpha.sql DROP DATABASE IF EXISTS alpha; CREATE DATABASE alpha; USE alpha; SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for JOB_EXECUTION_LOG -- ---------------------------- DROP TABLE IF EXISTS `JOB_EXECUTION_LOG...
<gh_stars>10-100 /* Copyright 2021 Snowplow Analytics Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unl...
-- Deploy report_insert_update -- requires: reports -- requires: goiardi_schema BEGIN; CREATE OR REPLACE FUNCTION goiardi.merge_reports(m_run_id uuid, m_node_name text, m_start_time timestamp with time zone, m_end_time timestamp with time zone, m_total_res_count int, m_status goiardi.report_status, m_run_list text, m...
<gh_stars>100-1000 -- Assessment alter table o_as_entry add a_passed_original number; alter table o_as_entry add a_passed_mod_date date; alter table o_as_entry add fk_identity_passed_mod number(20); -- Quality management alter table o_qual_reminder modify (q_type varchar2(65));
<gh_stars>1000+ SET function_range_max_elements_in_block = 10; SELECT range(number % 3) FROM numbers(10); SELECT range(number % 3) FROM numbers(11); SELECT range(number % 3) FROM numbers(12); -- { serverError 69 } SET function_range_max_elements_in_block = 12; SELECT range(number % 3) FROM numbers(12);
<reponame>crazePhper/cut-image<gh_stars>0 CREATE TABLE `admin_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) unsigned NOT NULL, `type` int(11) NOT NULL COMMENT '1更新,2删除,3添加', `table_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT '表名称', `description` text COLLATE utf8_unicode_ci, ...
<filename>database-tools/create-database.sql create extension if not exists "uuid-ossp"; create table languages ( "code" varchar(3) primary key, "nameInFinnish" varchar(50) not null unique, "nameInEnglish" varchar(50) not null unique ); create type gender as enum ('female', 'male', 'other'); create table cogni...
CREATE TABLE examples ( first_name ENUM('john', 'albert') NOT NULL, user_id ENUM('one', 'two') NOT NULL, last_name ENUM('smith', 'frank') NOT NULL ) ENGINE=InnoDB;
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 30/11/2019 às 01:24 -- Versão do servidor: 10.4.8-MariaDB -- Versão do PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<reponame>Yudas21/pos<gh_stars>0 -- -------------------------------------------------------- -- Host: localhost -- Server version: 10.1.36-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.5.0.5196 -- ---------------...
<filename>pkk (7).sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 15, 2019 at 10:40 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00...
<reponame>anclaan/Plastico -- -------------------------------------------------------- -- Host: localhost -- Wersja serwera: 10.2.6-MariaDB-log - mariadb.org binary distribution -- Serwer OS: Win64 -- HeidiSQL Wersja: 9.4.0.5125 -- ------------------...
-- write sql to create member table CREATE TABLE member ( id MEDIUMINT NOT NULL AUTO_INCREMENT, first_name CHAR(30) NOT NULL, last_name CHAR(30) NOT NULL, age INT NOT NULL, gender CHAR(6) NOT NULL, balance INT NOT NULL, PRIMARY KEY (id) );
<filename>queries/stackoverflow/q13/18c94410f2ce0f4031fb9c8b2e9362916bb2400e.sql SELECT acc.location, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1, badge as b, account as acc WHERE s.site_id = q1.site_id AND s.site_id = u1.site_id AND s.site_id = a1.site_id AND s....
USE [IdSvr4] GO /****** Object: Table [dbo].[IdentityResources] Script Date: 7/4/2017 3:24:47 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[IdentityResources]( [Id] [int] IDENTITY(1,1) NOT NULL, [Description] [nvarchar](1000) NULL, [DisplayName] [nvarchar](200) NULL, [Emphas...
<filename>src/main/resources/db/migration/V185__Update_instructorCost_to_decimal.sql ALTER TABLE `InstructorCosts` CHANGE COLUMN `Cost` `Cost` decimal(30,2) NULL; ALTER TABLE `LineItems` CHANGE COLUMN `Amount` `Amount` decimal(30,2) NULL;
SELECT a.name, ARRAY_AGG( STRUCT( CAST(a.id AS INT64) AS id, a.minlevel AS level, CAST(b.reagent_0_ AS INT64) AS reagent) ORDER BY a.minlevel DESC, CAST(a.id AS INT64)) FROM ( SELECT DISTINCT n.id id, n.name_lang name, CAST(l.basele...
ALTER TABLE `invoices` MODIFY rate INT(11) DEFAULT NULL, MODIFY rate_daily tinyint(4) DEFAULT NULL
<filename>src/test/resources/func.test_108.sql -- func.test -- -- execsql { -- CREATE TABLE t4(x); -- INSERT INTO t4 VALUES(test_destructor('hello')); -- INSERT INTO t4 VALUES(test_destructor('world')); -- SELECT min(test_destructor(x)), max(test_destructor(x)) FROM t4; -- } CREATE TABLE t4(x); INSERT ...
<filename>src/test/resources/crash8.test_14.sql -- crash8.test -- -- execsql { -- BEGIN; -- UPDATE aux.ab SET b = 'def' WHERE a = 0; -- UPDATE main.ab SET b = 'def' WHERE a = 0; -- COMMIT; -- } BEGIN; UPDATE aux.ab SET b = 'def' WHERE a = 0; UPDATE main.ab SET b = 'def' WHERE a = 0; COMMIT;
-- file:portals.sql ln:87 expect:true FETCH 18 in foo18
<filename>CreateSchema.sql -- Cleanup existing tables and data DROP TABLE IF EXISTS Games, Countries, Cities, GamesIn, Teams, Athletes, TeamAthletes, Events, Results, TEMPEVENTS, Tempgames,TCities,tgamesin, TEMPATH,TempTeamAthletes; -- Create all tables, incl constraints CREATE TABLE TEMPEVENTS( TEKey SERIAL PRI...
version https://git-lfs.github.com/spec/v1 oid sha256:4ee94dfb370d2c37578197bf1a0068807a81de21a59101f76cf360b506c33c57 size 15865
DROP TABLE IF EXISTS #tract_adi; --GO CREATE TABLE #tract_adi ( census_tract varchar(255), block_group_count int, natrank_avg varchar(255), staterank_avg varchar(255) ); INSERT INTO #tract_adi VALUES (8001007801, 2, '64', '8.5'), (8001007802, 3, '84', '9.666666667'), (8001007900, 4, '75', '9.25'), (8001008000, ...
select count(1) from venta where idRepartidor = :idRepartidor;
<reponame>angelpaulml17/docker-assignment-1 CREATE DATABASE RSVP; use RSVP; CREATE TABLE IF NOT EXISTS rsvpdata ( _id int(100) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, email varchar(100) NOT NULL, PRIMARY KEY (_id) ) ; INSERT INTO rsvpdata (_id, name, email) VALUES (1, 'Angel', '<EMAIL>'), (2, '...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 01-04-2021 a las 07:43:45 -- Versión del servidor: 10.4.6-MariaDB -- Versión de PHP: 5.6.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
CREATE VIEW VIEW97 (C1) AS SELECT 1 FROM TABLE347 UNION SELECT 1 FROM TABLE268 UNION SELECT 1 FROM TABLE223 GO
<filename>src/main/resources/org/support/project/knowledge/dao/sql/MailLocaleTemplatesDao/MailLocaleTemplatesDao_select_count_all.sql SELECT COUNT(*) FROM MAIL_LOCALE_TEMPLATES WHERE DELETE_FLAG = 0;
<filename>yue-library-samples/yue-library-template-boot/src/main/resources/docs/数据库DDL脚本.sql<gh_stars>100-1000 /* Navicat Premium Data Transfer Source Server : yue-test Source Server Type : MySQL Source Server Version : 80026 Source Host : ylyue.cn:3306 Source Schema : yue_library_te...
\o elbadry_rix_load.out \copy catalogdb.elbadry_rix from '/uufs/chpc.utah.edu/common/home/sdss10/sdss5/target/catalogs/elbadry_rix/ElBadryRix2018_wide_binaries.csv' delimiter ','; \o
-- -- hpc_data_download.sql -- -- Copyright SVG, Inc. -- Copyright Leidos Biomedical Research, Inc -- -- Distributed under the OSI-approved BSD 3-Clause License. -- See http://ncip.github.com/HPC/LICENSE.txt for details. -- -- -- @author <a href="mailto:<EMAIL>"><NAME></a> -- DROP TABLE IF EXISTS public."HPC_DATA_OBJ...
UPDATE R_SPECIFIC_QUERY SET SQLSTR='SELECT R_USER_MAIN.user_name, R_USER_MAIN.user_id, R_OBJT_ACCESS.access_type_id, R_USER_MAIN.user_type_name, R_USER_MAIN.zone_name, R_COLL_MAIN.coll_name, R_DATA_MAIN.data_name, USER_GROUP_MAIN.user_name, R_DATA_MAIN.data_name, R_COLL_MAIN.coll_name FROM R_USER_MAIN USER_GROUP_MAIN J...
library CMS9v4_CDS version '1' using FHIR // version '1.4' valueset "Feeding Intention-Breast": 'urn:oid:2.16.840.1.113762.1.4.1045.29' valueset "Feeding Intention-Not-To-Breast": 'urn:oid:TBD' // Code '636111000124114' from "SNOMED-CT" display: 'Mother refuses to breastfeed (situation)' valueset "Galactosemia"...
-- @testpoint: range_list二级分区表:with_query insert字段相同/字段数目不符,部分测试点合理报错 --step1: 创建表空间; expect:成功 drop table if exists t_subpartition_0220; drop tablespace if exists ts_subpartition_0220; create tablespace ts_subpartition_0220 relative location 'subpartition_tablespace/subpartition_tablespace_0220'; drop tablespace if e...
-- post flags alter table flagged_post_details rename to post_flags; alter table post_flags add column updated_at timestamp; alter table post_flags rename column user_id to creator_id; alter table post_flags add column creator_ip_addr inet not null default '127.0.0.1'; alter table post_flags add column is_deletion boo...
ALTER TABLE PERSONNE_REFERENTE DROP conf_indicateur7Accueil; ALTER TABLE PERSONNE_REFERENTE DROP conf_indicateur8Accueil; ALTER TABLE CONFIG DROP vehicules_ct_delais_notif; ALTER TABLE CONFIG DROP vehicules_revision_delais_notif; ALTER TABLE CONFIG DROP vehicules_assurance_delais_notif; ALTER TABLE VEHICULES DROP ass...
--This query is to create a view of the match data. A SQL View is more or less a saved query, that will automatically populate a table of the desired information. --So MatchMaster has all of the raw data(each robot per each match has its own row) --And this View has a compiled result set of each robot(each team# has co...
<filename>data base/matriz riesgo db clean/on_air_status_on_air.sql -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: on_air -- ------------------------------------------------------ -- Server version 5.5.5-10.1.25-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
DO $$ -- An example for using the SendMail task. DECLARE v_mail_task_id bigint; v_log_task_id bigint; v_chain_id bigint; BEGIN -- Get the chain id INSERT INTO timetable.chain (chain_name, max_instances, live) VALUES ('Send Mail', 1, TRUE) RETURNING chain_id INTO v_chain_id; -- Add SendMail task IN...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : db_hris Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2016-10-04 21:16:15 */ SET FOREIGN_KEY_CHECKS=0; -- -...
<filename>simpledb1/create_definitions_table.sql DROP TABLE IF EXISTS Models_Branches_V_0000_0001; CREATE TABLE Models_Branches_V_0000_0001 ( branch uuid DEFAULT uuid_generate_v4(), label TEXT, description TEXT, tags TEXT[], created INTEGER, modified INTEGER, origin uuid, frozen BOOLEAN, PRIMARY KEY (branch) )...
<reponame>pschlump/Go-FTL<filename>server/midlib/SessionRedis/s_nvl.m4.sql drop FUNCTION s_nvl(p_x varchar); CREATE or REPLACE FUNCTION s_nvl(p_x varchar) RETURNS varchar AS $$ BEGIN if p_x is null then RETURN ''; else RETURN p_x; end if; END; $$ LANGUAGE plpgsql;
-- based on https://stackoverflow.com/questions/37305135/oracle-convert-unix-epoch-time-to-date -- tested through https://livesql.oracle.com/apex/f?p=590:1:100554990584212::NO:RP::# -- SELECT TO_TIMESTAMP('1970-01-01 00:00:00.0' ,'YYYY-MM-DD HH24:MI:SS.FF') + NUMTODSINTERVAL(1493963084212/1000, 'SECOND') FROM dual; C...
<reponame>Ryan-Menezes/CadastroNomes CREATE DATABASE IF NOT EXISTS cadastro DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE cadastro; CREATE TABLE IF NOT EXISTS clientes( cpf CHAR(11) PRIMARY KEY, nome_completo VARCHAR(100) NOT NULL )ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS co...
<gh_stars>10-100 -- For a single division /* select sd.school_id as team, lm.player_name as name, lm.matched_name as matched, lm.lev_distance as lev from ncaa_pbp.lev_mapping lm join ncaa.schools_divisions sd on (sd.school_id,sd.year)=(lm.team_id,2014) where lm.lev_distance>=4 and length(lm.player_name)>2 and sd.div...
<gh_stars>1-10 CREATE SCHEMA IF not EXISTS foo; CREATE SCHEMA AUTHORIZATION joe; CREATE SCHEMA hollywood CREATE TABLE films (title text, release date, awards text[]) CREATE VIEW winners AS SELECT title, release FROM films WHERE awards IS NOT NULL; drop schema boohoo;
<filename>tables.sql<gh_stars>1-10 --------------------- -- TABLES CREATION -- --------------------- -- Database CREATE DATABASE myimdb; -- Directors CREATE TABLE directors ( id serial NOT NULL, PRIMARY KEY (id), name character varying NOT NULL, last_name character varying NOT NULL ); -- Movies CREATE TABLE ...
-- drop Jobs and dependencies -- drop StoredProcedures and dependencies -- drop Views and dependencies -- drop Types and dependencies -- alter database structure --Create a locking mechanism for data tables CREATE TABLE [dbo].[TD_DATASET] ( [DTT_ID] [int] IDENTITY(1, 1) NOT NULL ,[DTT_MTR_CODE] NVARCHAR(20) NOT NULL...
<reponame>Shuttl-Tech/antlr_psql -- file:json.sql ln:187 expect:true SELECT test_json->'field2' FROM test_json WHERE json_type = 'object'
Banco de dados O melhor banco é aquele que supre as necessidades do cliente, do ramo. RELACIONAIS Db2 só da IBM Totsv usa sql server Tem um custo mais caro, exige um DBA, para otimizar o banco, hardware mais potente Exige amarrações internas Existe uma integridade NÃO RELACIONAL Não exige tantas amarrações internas E...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table group_message_valid ( id bigint auto_increment not null, messages_id bigint, users_username varchar(255), is_receiv...
<reponame>kevin-at-datical/liquibase-test-harness INVALID TEST -- Liquibase doesn't support disableTrigger changetype for MariaDB -- https://docs.liquibase.com/change-types/disable-trigger.html
SELECT COUNT(Name) FROM City WHERE Population > 100000;
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : tp5 Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-05-26 15:41:25 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
{% macro get_item_columns() %} {% set columns = [ {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "active", "datatype": "boolean"}, {"name": "asset_account_id", "datatype": dbt_utils.type_int()}, {"name": "created_at", "datatype": dbt_utils.type_timestamp()}, {"name":...