sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 29, 2019 at 04:03 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
select id, title, created_at, duration from movie where id=:id
CREATE TABLE [dbo].[ExternalSystem] ( [ID] INT IDENTITY (-1, -1) NOT FOR REPLICATION NOT NULL, [SystemCode] UNIQUEIDENTIFIER NOT NULL, [SystemName] NVARCHAR (200) NULL, [OrganisationId] INT NULL, [OrganisationType] INT NULL, [...
<gh_stars>1-10 --- 22-03-2021 01:37:37 --- SQLite create table products( id INT NOT NULL, name STRING, price MONEY, PRIMARY KEY(id) ); --- 22-03-2021 01:39:22 --- SQLite /***** ERROR ****** near "VALUES": syntax error ----- insert INTO products VALUES(1, "Laptop", 40000) VALUES(2, "Mouse", 1000) VALUES(3,...
--SELECT * from Addresses; --SELECT * from Customers; --SELECT * from Orders; --Get all customers with this address city (RIGHT JOIN) SELECT FirstName, LastName, Addresses.City, Addresses.AddressLine1, Addresses.AddressLine2, Addresses.Addressid FROM Customers RIGHT JOIN Addresses ON Customers.AddressID = Addresses....
<gh_stars>0 CREATE TABLE match ( id UUID PRIMARY KEY, created_by UUID NOT NULL, userOne UUID, userTwo UUID, matchedOn TIMESTAMPTZ );
<reponame>samuelduann/seahub ALTER TABLE `Group` ADD type VARCHAR(32);
CREATE TABLE IF NOT EXISTS todojob ( id INTEGER PRIMARY KEY AUTOINCREMENT, -- "Primary key" name VARCHAR(255) NOT NULL, -- "Name or description of the todojob" is_done TINYINT NOT NULL, -- "1-true, 0-false" expected_end_date DATE NOT NULL, -- "the expected end date" actual_end_date DATE -- "the actu...
-- -- Copyright 2020 University of Oxford -- -- 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 -- -- Unless required by applicable law or a...
USE [MXMC_db] GO /****** Object: StoredProcedure [dbo].[sapc_mxp_xadd_link_audit] This stored procedure enables RT to write to link audit from toDB passes (for approval enhancement); since the original stored procedure mxp_xadd_link_audit has return value, it cannot be called directly ******/ SET ANSINULL ON GO ...
<gh_stars>10-100 -- Run this script as gwells owner (e.g. psql -h $DATABASE_SERVICE_NAME -d $DATABASE_NAME -U $DATABASE_USER) \echo 'Copying WellSearch static code tables from deployed image CSV files' -- Thu 15 Feb 08:16:45 2018 GW Where is LITHOLOGY MOISTURE? -- Thu 15 Feb 08:41:01 2018 GW Where is LITHOLOGY STRUC...
CREATE OR REPLACE FUNCTION __temp_check_uuid_ossp_extension_installation() RETURNS void AS $PROCEDURE$ BEGIN IF EXISTS (SELECT 1 from pg_available_extensions WHERE name = 'uuid-ossp' AND installed_version IS NULL) THEN RAISE EXCEPTION 'UUID generation function does not exist or is not valid, ...
<reponame>rohankumardubey/orioledb<filename>sql/btree_sys_check.sql<gh_stars>0 CREATE EXTENSION orioledb; CREATE TABLE o_test( id integer NOT NULL, val text NOT NULL, PRIMARY KEY(id), UNIQUE(id, val) ) USING orioledb; CREATE TABLE o_test_child( id integer NOT NULL, o_test_ID integer NOT NULL REFERENCES o_test (...
<filename>seguimiento_gabinete_.sql /* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : seguimiento_gabinete Target Server Type : MySQL Target Server Version : 5072...
-- MySQL dump 10.14 Distrib 5.5.37-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: tpzdbtest -- ------------------------------------------------------ -- Server version 5.5.40-MariaDB-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 25, 2020 at 01:36 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
use customerdb; go -- master key for encrypting data create master key encryption by password = N'<PASSWORD>!'; go -- create user and certificate to be used for service broker dialog security create user customerdbuser without login; go create certificate customerdbusercert authorization customerdbuser with ...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 11, 2017 at 09:09 PM -- Server version: 10.1.19-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 DATABASE youxgroup_system; USE youxgroup_system; CREATE TABLE usuarios ( id int unsigned not null auto_increment, nome varchar(150) not null, cpf varchar(100) not null, senha varchar(150) not null, cargo boolean, PRIMARY KEY (id) ); CREATE TABLE pacientes ( id int unsigned not null auto_i...
-- ================================================ -- Template generated from Template Explorer using: -- Create Procedure (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -- This block of comments will not be included in -- th...
-- 加入IP注册限制 INSERT INTO `config` VALUES ('57', 'register_ip_limit', 5);
/****** Object: Stored Procedure dbo.b4nGetOrderData Script Date: 23/06/2005 13:31:53 ******/ /********************************************************************************************************************* ** ** Procedure Name : b4nGetOrderData ** Author : <NAME> ** Date Cre...
CREATE TABLE [dbo].[odds]( [ID] [bigint] IDENTITY(1,1) NOT NULL, [Price] [real] NOT NULL, [Tick] [int] NOT NULL, [impliedProbability] [real] NOT NULL, CONSTRAINT [PK_odds_ID] PRIMARY KEY CLUSTERED ([ID] ASC))
<reponame>aliostad/deep-learning-lang-detection<filename>data/test/sql/e6b49172634c8877529547c0488671afed91ba3110 stp_RPT_ATR_HEAD_STATISTIC.sql GO USE [BHSDB]; GO CREATE PROCEDURE dbo.stp_RPT_OKC_ATR_HEAD_STATISTIC @DTFROM datetime , @DTTO datetime, @ATRUNIT varchar(20) AS BEGIN PRINT 'BAGTAG STORED P...
<filename>sql/rowdatum.sql -- \set VERBOSITY terse -- -- tests of operations on nested row values create type ntype1 as (fred integer, jim numeric); create type ntype2 as (thingy text[], wotsit ntype1); create type ntype3 as (foo text, bar ntype1, baz ntype2); create type ntype4 as (col0 text, col1 ntype1, col2 nty...
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 01, 2020 at 03:35 PM -- Server version: 10.3.23-MariaDB-log-cll-lve -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
<gh_stars>100-1000 CREATE TABLE list (id VARCHAR(2) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES ('af', 'afrikancha'); INSERT INTO "list" ("id", "value") VALUES ('af_ZA', 'afrikancha (Janubi-Afrika)'); INSERT INTO "list" ("id", "value") VALUES ('af_NA', 'afrikancha ...
<reponame>georgetown-cset/ai-definitions-for-policymaking<gh_stars>1-10 with wos_categories as ( select distinct(all_meta.id), wos.arxiv_coverage from oecd.en_2010_2020 all_meta inner join oecd.wos_arxiv_categories wos on wos.id = all_meta.id where all_meta.dataset = 'wos' ),...
<filename>sql/datadesign.sql ALTER DATABASE mromero308 CHARACTER SET utf8 COLLATE utf8_unicode_ci; DROP TABLE IF EXISTS comment; DROP TABLE IF EXISTS post; DROP TABLE IF EXISTS profile; CREATE TABLE profile ( profileId BINARY(16) NOT NULL, profileActivationToken CHAR(32), profileAtHandle VARC...
<reponame>bihe/mydms-java CREATE TABLE TAGS (id BIGINT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, CONSTRAINT PK_TAGS PRIMARY KEY (id)); ALTER TABLE TAGS ADD CONSTRAINT tag_name UNIQUE (name); CREATE TABLE SENDERS (id BIGINT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, CONSTRAINT PK_SENDERS PRIMARY ...
-- negative tests for group by and having clauses create table t1 (a int, b int, c int); create table t2 (a int, b int, c int); insert into t2 values (1,1,1), (2,2,2); -- group by position select * from t1 group by 1; -- column in group by list not in from list select a as d from t1 group by d; -- col...
alter table sec_user add COLUMN is_public boolean;
<reponame>SettersClub/setscan CREATE TABLE IF NOT EXISTS chain_info ( name TEXT, count NUMERIC(80,0) NOT NULL, PRIMARY KEY ( name ) ); INSERT INTO chain_info (name, count) VALUES ('blocks', 0), ('extrinsics', 0), ('events', 0), ('contracts', 0); -- ('transfers', 0), -- ('active_validator_count', 0)...
-- This file generated by generate.py. -- <yaml> -- DependsOn: {} -- </yaml> SELECT CAST(vs."_id" AS VARCHAR) AS "_id", vs."assignee" AS "assignee", vs."closed_date" AS "closed_date", vs."converted_date" AS "converted_date", vs."evg_projec...
CREATE TABLE `vehicleaddon_categories` ( `name` varchar(60) NOT NULL, `label` varchar(60) NOT NULL, PRIMARY KEY (`name`) ); INSERT INTO `vehicleaddon_categories` (name, label) VALUES ('addon','Addon') ; CREATE TABLE `vehiclesaddon` ( `name` varchar(60) NOT NULL, `model` varchar(60) NOT NULL, `price` int(11) N...
ALTER TABLE KV_RECORD ADD COlUMN NAME VARCHAR(200); ALTER TABLE KV_RECORD ADD COLUMN FORM_TEMPLATE_CODE VARCHAR(200);
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50723 Source Host : localhost:3306 Source Schema : egg_test Target Server Type : MySQL Target Server Version : 50723 File Encoding : 65001 Date: 16/01/2020 10:25:21...
<gh_stars>1-10 select * from ( select * from ( select * from {{ ref('noaa_gsod') }} where country_fips='US' ) match_recognize( partition by station_id, name order by date measures avg(temp) avg_temp, sum(rain) total_rain, min(rain) min_rain, count(*) rai...
-- 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. DO $$ DECLARE currentYear integer; current...
DROP TABLE IF EXISTS I12_L CASCADE; DROP TABLE IF EXISTS I12_O CASCADE; CREATE TABLE I12_L ( I12_L_ORDERKEY BIGINT, I12_L_SHIPMODE CHAR(10) ); CREATE TABLE I12_O ( I12_O_ORDERKEY BIGINT, I12_O_ORDERPRIORITY CHAR(15) );
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- SYNC1 Heap Part Table 1 -- CREATE TABLE sync1_heap_alter_part_drop_col1 (id int, name text,rank int, year date, gender char(1)) DISTRIBUTED BY (id, gender, year) partition by list (gender) subpartition by range (year) subpartition...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.2.2 -- Dumped by pg_dump version 9.2.2 -- Started on 2012-12-08 12:58:23 EET SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- T...
/* Script for Daily maintenance of Fidelis Endpoint management DB when deployed with MS SQL Express. This is not part of a Fidelis product and is provided as-is with no warranty!. Please have an experienced DBA review the script before implementing. */ SET QUOTED_IDENTIFIER ON; -- Set the DB name: USE [Fidelis]; ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-10-2021 a las 18:20:41 -- Versión del servidor: 10.4.21-MariaDB -- Versión de PHP: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
git remote add origin https://github.com/kozsoki/wiki.github.io.git git add . git commit -m "First commit" git push origin master git branch wiki-github git push origin wiki-github
<filename>l2j_datapack/dist/sql/game/clanhall_functions.sql CREATE TABLE IF NOT EXISTS `clanhall_functions` ( `hall_id` int(2) NOT NULL DEFAULT '0', `type` int(1) NOT NULL DEFAULT '0', `lvl` int(3) NOT NULL DEFAULT '0', `lease` int(10) NOT NULL DEFAULT '0', `rate` decimal(20,0) NOT NULL DEFAULT '0', `endTim...
<filename>db/migrations/20220104160112_create-database.sql<gh_stars>0 -- migrate:up CREATE TABLE channels ( id BIGSERIAL PRIMARY KEY, channel_id TEXT NOT NULL, name TEXT NOT NULL, thumbnail TEXT, site INTEGER DEFAULT 0 NOT NULL ); CREATE UNIQUE INDEX channels_channel_...
--@Autor: <NAME> y <NAME> --@Fecha creación: 16/06/2020 --@Descripción: Trigger para revisar el tipo de licencia set serveroutput on create or replace trigger tr_revisa_licencia before insert or update of tipo_licencia_requerida_id on transporte_publico for each row declare v_propietario_id vehiculo.propietario...
<reponame>khandy21yo/aplus<filename>CMC030/utl/open/utl_device.ddl<gh_stars>1-10 DEFINE RECORD CDD$TOP.UTL.UTL_DEVICE DESCRIPTION IS /*Utility Device File*/. UTL_DEVICE_CDD STRUCTURE. /* Element = Description = */ FILENAM DATATYPE IS TEXT SIZE IS 39. /...
select * from Animal select * from followed_by limit 1 create index KEY on obj ( _KEY ) select name from ( select expand( in('Eat') ) from Food where name = 'pea' ) UPDATE Make SET name = ? WHERE name = ? create index KEY on obj _KEY
DROP INDEX eg_drm_code_idx; CREATE INDEX idx_eg_drm_code ON eg_demand_reason_master (code);
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 20, 2018 at 03:46 PM -- Server version: 5.6.39 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
<reponame>SimpleContacts/mysql-simulator<filename>tests/29-rename-col-changes-fk.sql CREATE TABLE aaa (id INT PRIMARY KEY); CREATE TABLE bbb ( a INT, FOREIGN KEY (a) REFERENCES aaa (id) ); -- Now rename the `aaa.id` column. The FK reference in table `bbb` should now -- also change. ALTER TABLE aaa CHANGE COLUMN id...
<reponame>ashraf789/Hacker-rank-problem-solving /** * @author: <NAME> * year: 2019 * problem: https://www.hackerrank.com/challenges/revising-the-select-query/submissions/code/98708598 */ select *from city where population > 100000 and countrycode = 'USA'
version https://git-lfs.github.com/spec/v1 oid sha256:e160d5aff03912d87f7f0fbc77d69ddbaa35d40f3378699f75ec55196b7d9686 size 1847
UPDATE profession set name='I don''t know' where name = 'Other';
<filename>setup/create_catagories.sql INSERT INTO testing.catagory (title,meta_ref,color) VALUES ('Public','public','#123123'), ('Army','army','#123123'), ('Airforce','Airforce','#123123'), ('Marine Corps','marine-corps','#123123'), ('Medical','medical','#123123'), ('Education','education','#123123');
<gh_stars>10-100 ALTER TABLE `games` ADD `extra_info` TEXT NULL DEFAULT NULL AFTER `default_transaction_fee`;
-- file:insert.sql ln:128 expect:true insert into part_null values (null, 0)
CREATE TABLE comuna ( id integer PRIMARY KEY, region_iso varchar(64) references region(iso), name varchar(64) );
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5603 -- -------------------------------------------------------- /...
DROP TABLE "public"."default_auth_policy" CASCADE; DROP TABLE "public"."default_auth_role" CASCADE;
ALTER TABLE "identity_recovery_tokens" ALTER COLUMN "identity_id" TYPE UUID, ALTER COLUMN "identity_id" SET NOT NULL;
<filename>major_assignment.sql<gh_stars>1-10  -- The UK Dept of Transport AADT count points (CP) are on a slightly diffent geography to the OSM roads, -- this is possibly because they were georeferenced to the side of the road, pavement, or similar, -- so the points do not intersect with the OSM road segments exactl...
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- This table contains keys that can be used to access the Pixie API. CREATE TABLE api_keys ( -- The ID to use for this key. id UUID UNIQUE DEFAULT uuid_generate_v4(), -- org_id is the ID belonging to the org in which the API key is visible. org_id UUID NOT NULL, -...
DROP TABLE IF EXISTS buf_dest; DROP TABLE IF EXISTS buf; CREATE TABLE buf_dest (timestamp DateTime) ENGINE = MergeTree PARTITION BY toYYYYMMDD(timestamp) ORDER BY (timestamp); CREATE TABLE buf (timestamp DateTime) Engine = Buffer(currentDatabase(), buf_dest, 16, 86400, 86400, 2000000, 20000000, 100000000, 300000000);...
1 ( select 书名 from 传记 where 页数 > 400 ) intersect ( select 书名 from 传记 where 出版时间 > "1981-03-24" ) 人物传记 2 ( select 姓名 from 作者 where 作品数量 >= 50 ) except ( select 姓名 from 作者 order by 出生日期 desc limit 3 ) 小说 3 ( select 开源课程名称 from 学校的开源课程 order by 课时 desc limit 3 ) except ( select 开源课程名称 from 学校的开源课程 where 主讲教师 != "王建安" ) 在线...
-- @author prabhd -- @created 2012-12-05 12:00:00 -- @modified 2012-12-05 12:00:00 -- @tags dml -- @db_name dmldb -- @execute_all_plans True -- @description test12: Delete with join in using \echo --start_ignore set gp_enable_column_oriented_table=on; \echo --end_ignore SELECT COUNT(*) FROM dml_heap_r; DELETE FROM ...
-- @testpoint: opengauss关键字after(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists after_test; create table after_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists after; create synonym after for after_test; insert into after values (1,'ada'),(2, 'bob'); update after set after.name='cici' where afte...
create table if not exists user_videos ( id int auto_increment primary key, user_id int not null, name varchar(255) not null, thumbnail varchar(255) not null, length varchar(255) not null, size varchar(255) not null, path text not null, created datetime default CURRENT_TIMESTAMP ...
CREATE DATABASE `gocomic` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE gocomic; CREATE TABLE `comics` ( `id` int(11) NOT NULL AUTO_INCREMENT, `url` varchar(128) COLLATE utf8mb4_general_ci NOT NULL, `title` varch...
<gh_stars>0 -- add parse_config column to portti_wfs_template_model table -- this column is used for WFS path parser configuration setup ALTER TABLE portti_wfs_template_model ADD parse_config text;
# BASE TABLES # ----------------------------------------------------- CREATE TABLE awards( id INTEGER NOT NULL AUTO_INCREMENT, description TEXT, title VARCHAR(255) NOT NULL, amount FLOAT, public_access_mandate BOOLEAN NOT NULL DEFAULT 0, award_date DATETIME, offered_by INTEGER, source_id INTEGER NOT NUL...
CREATE DEFINER=`b<PASSWORD>`@`%` PROCEDURE `SP_SEL_JOBS_BY_CITY`( IN p_city_id INT , IN p_user_id VARCHAR(36) ) BEGIN SELECT A.idJob , A.dtJobCreation , A.dtJobStarts , A.hoursConclusion , A.qtyRooms , A.qtyBaths , A.qtyWindo...
<reponame>arifintajul4/keuangan<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 29 Nov 2019 pada 08.22 -- Versi server: 10.3.16-MariaDB -- Versi PHP: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET ti...
<filename>seed.sql USE employee_db; -- Employee's Table INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ("Eric", "LaFontsee", 1, 4); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ("Brendon", "Conatser", 3, 4); INSERT INTO employee (first_name, last_name, role_id, ma...
<reponame>LShun/holy-kmb-db INSERT INTO seat VALUES('GC3R1S1',1,3,'KMB205','KLTIC201907117684'); INSERT INTO seat VALUES('GC2R2S2',2,2,'KMB205','KLTIC201907277737'); INSERT INTO seat VALUES('GC3R3S1',1,3,'KMB205','KDHTIC201907304316'); INSERT INTO seat VALUES('GC2R4S4',4,2,'KMB206','SLGTIC201907273159'); INSERT INTO se...
drop function if exists loop_[%#payload.serviceId%](); create or replace function loop_[%#payload.serviceId%]() returns void as $$ try { plv8.find_function('process_nyse_nsdq_halts_[%#payload.serviceId%]')(); plv8.execute(`select pg_sleep([%#payload.interval%]);`); plv8.execute(`select dblink_connect('ppp...
DROP TABLE IF EXISTS sensordata; DROP TABLE IF EXISTS sensors; DROP TABLE IF EXISTS sensortypes; CREATE TABLE sensortypes ( id SERIAL PRIMARY KEY, sensortype_name VARCHAR(255) NOT NULL ); CREATE TABLE sensors ( id SERIAL PRIMARY KEY, sensor_name VARCHAR(255) NOT NULL, sensortype_id INTEGER NOT NUL...
<reponame>pyerbiz/re-exploring-python ------------------------------------- -- LinkedIn Learning ---------------- -- Advanced SQL - Query Processing -- -- <NAME> 2020 ------------------- -- .\Chapter 2\Video1.sql ----------- ------------------------------------- -- https://dbfiddle.uk/?rdbms=sqlserver_2019&fiddle=eeae...
--新建database(MS) DROP DATABASE IF EXISTS `MS`; CREATE DATABASE `MS` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `MS`; --用户表,信息包含id(主键自增长),用户名,密码,电话,邮箱,地址, --身份(管理员m,普通用户c,超级管理员s),是否登陆(登陆t,未登陆f) drop table IF EXISTS person; CREATE TABLE `person` ( `id` int(5) NOT NULL auto_increment, `name` varchar(50) NOT NULL, ...
<reponame>tushartushar/dbSmellsData select count(*) from (select * from #{table_name} where #{sanitized_rank_cond} group by user_id) t
<filename>prisma/migrations/20210409182011_/migration.sql /* Warnings: - You are about to drop the column `expires` on the `Redirect` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "Redirect" DROP COLUMN "expires";
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Type : MySQL Source Server Version : 50725 Source Host : localhost:3306 Source Schema : nonsense Target Server Type : MySQL Target Server Version : 50725 File Encoding : 65001 Date: 27/11/2020 15:...
\set ON_ERROR_STOP on \set ECHO all SET SEARCH_PATH TO public; SET DEFAULT_TABLESPACE = 'p2_studies'; CREATE TABLE :temp_cited_source_uid AS SELECT a.cited_source_uid, b.subject_classification_type, b.subject FROM (SELECT DISTINCT cited_source_uid FROM : subject_table) a INNER JOIN public.wos_publication_subj...
prompt --application/shared_components/navigation/lists/p8_subflow_row_action_menu begin -- Manifest -- LIST: P8_SUBFLOW_ROW_ACTION_MENU -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.03.31' ,p_release=>'20.1.0.00.13' ,p_default_workspace_id=>2400405578329584 ,p_default_application_...
{{ config(schema="domestic_heating", materialized="ephemeral") }} with epc_ppd_address_matches as ( select * from {{ ref('stg_epc_ppd_address_matching__matches') }} ), certificates as ( select * from {{ ref('stg_epc__england_wales_certificates') }} ), latest_building_certificates as ( select ...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Machine: 127.0.0.1 -- Gegenereerd op: 24 jun 2015 om 17:11 -- Serverversie: 5.6.21 -- PHP-versie: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
-- 2019-05-23T09:21:56.717 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE M_Attribute SET IsReadOnlyValues='Y',Updated=TO_TIMESTAMP('2019-05-23 09:21:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE M_Attribute_ID=540042 ; -- 2019-05-23T09:36:08.016 -- I forgot to set the DICTIONARY_ID_COMMEN...
/* * This is free and unencumbered software released into the public domain. */ create keyspace if not exists "dads_v1" with replication = { 'class' : 'NetworkTopologyStrategy' , 'DC1' : '2' -- We should probably fix this to 'datacenter1' for consistency. , 'datacenter2' : '...
INSERT INTO `person` (`id`, `address`, `first_name`, `gender`, `last_name`) VALUES (1,'<NAME>','Well','Male','Alvs');
<reponame>ottorokr/inundappBackend #----------------------------------------------------------------------------------- #Datos INSERT INTO afectacion VALUES ("Alambrado"); INSERT INTO afectacion VALUES ("Puente"); INSERT INTO afectacion VALUES ("Edificacion"); INSERT INTO afectacion VALUES ("Alcantarilla"); INSERT IN...
-- Configuration elements for Sheet1 INSERT INTO SECLORECONFIG VALUES(N'Sheet 1 key 1€ΩF',N'Sheet 1 Value 1'); INSERT INTO SECLORECONFIG VALUES(N'여보세요',N'Sheet 1 Value 2'); INSERT INTO SECLORECONFIG VALUES(N'Sheet 1 key 3',N'Sheet 1 Value 3'); INSERT INTO SECLORECONFIG VALUES(N'Sheet 1 key 4',N'Sheet 1 Value 4'); INS...
<filename>mysql/02_drop.sql -- -- Drop tables -- DROP TABLE IF EXISTS `jobs`; DROP TABLE IF EXISTS `activities`; DROP TABLE IF EXISTS `log_data`; -- Drop views DROP VIEW IF EXISTS `v_jobs`; -- Drop functions DROP FUNCTION IF EXISTS `every_sec`; -- Drop procedures DROP PROCEDURE IF EXISTS `clean_data`; -- mysq...
DROP TABLE IF EXISTS calendar_event; CREATE TABLE calendar_event ( uid varchar(50), event_date datetime, event_id varchar(50), event_text varchar(255), view_scope varchar(50), user_id varchar(50)); DROP TABLE IF EXISTS course; CREATE TABLE course ( course_id varchar(50), title varchar(100)); DROP TABLE IF EXISTS ...
ALTER TABLE {$NAMESPACE}_project.project ADD isMembershipLocked TINYINT(1) NOT NULL DEFAULT 0 AFTER joinPolicy;
-- Tags: race SELECT 'a}a' AS x, x LIKE (concat('%', x, '%') AS pat), materialize(x) LIKE pat; SELECT 'a}a' AS x, x LIKE (concat('%', x) AS pat), materialize(x) LIKE pat; SELECT 'a}a' AS x, x LIKE (concat(x, '%') AS pat), materialize(x) LIKE pat; SELECT 'a}a' AS x, x LIKE (x AS pat), materialize(x) LIKE pat; SELECT '...
SELECT s, parseDateTimeBestEffortOrNull(s, 'UTC') AS a, parseDateTimeBestEffortOrZero(s, 'UTC') AS b FROM ( SELECT arrayJoin([ '24.12.2018', '24-12-2018', '24.12.18', '24-12-18', '24-Dec-18', '24/DEC/18', '24/DEC/2018', '01-OCT-2015', '24.12.2018', '24-12-2018', '24.12.18', '24-12-18', '24-Dec-18', '24/...
CREATE TABLE "selfservice_errors" ( "id" UUID NOT NULL, PRIMARY KEY("id"), "errors" json NOT NULL, "seen_at" timestamp NOT NULL, "was_seen" bool NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL );
/* Copyright 2016 OpenMarket Ltd * * 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 * * Unless required by applicable law or agreed to i...