sql
stringlengths
6
1.05M
set timezone 'Asia/Shanghai'; drop table if exists t; create table t(i int auto_increment,j timestamp with time zone ,k varchar(20)) partition by range(date_format(j,'%H')) ( partition p0 values less than ('1'), partition p1 values less than ('2'), partition p2 values less than maxvalue ); insert into t(j)values(subda...
<reponame>opengauss-mirror/Yat -- @testpoint: opengauss关键字temp(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists temp; create function temp(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 drop function if exists "temp"; create function "temp"(i integer) returns i...
-- -- MERGE INTO -- -- \h help \h MERGE -- information_schema.sql_features SELECT * FROM information_schema.sql_features WHERE feature_name LIKE '%MERGE%' ORDER BY 1; CREATE SCHEMA mergeinto_misc; SET current_schema = mergeinto_misc; CREATE TABLE t1(c1 INT, c2 INT); CREATE TABLE t2(c1 INT, c2 INT); MERGE INTO t1 ...
<reponame>ggcoder19/carparts<filename>packages/kdg/lmanager/src/languages.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 10, 2019 at 06:01 AM -- Server version: 10.3.14-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZE...
-- UNDO script DELETE FROM LABELS WHERE CODE IN ( 'HTTP_400_BAD_REQUEST', 'HTTP_401_UNAUTHORIZED', 'HTTP_403_FORBIDDEN', 'HTTP_404_NOT_FOUND', 'HTTP_500_INTERNAL_SERVER_ERROR' );
<filename>public/skr_pemasaranproduk (2).sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 11, 2019 at 08:32 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; ...
<filename>yellow-taxi/ddl/views.sql -- materialize the view data create or replace table bqml.data_staging as select * from bqml.tlc_yellow_trips_2015_fields ; /* create or replace view bqml.data_stream as select * from mybqml.bqml.data_staging where ...
<reponame>18483629341/VueExpress<filename>server/db/data.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50703 Source Host : localhost:3306 Source Database : myigou Target Server Type : MYSQL Target Server Version : 50703 File Encoding : 65001 D...
<gh_stars>0 -------------------------------------------------------- -- Datei erstellt -Mittwoch-Dezember-19-2018 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Sequence HIBERNATE_SEQUENCE ---------------------------------------------------...
/* COM236 SQL - Knowledge Verification Labs 4 - JOIN Pre-configure database for lab 4 exercises. WARNING: this file will delete the `HandSanitiserLevels` database before recreating it. */ /*** Create database ***/ -- Create a new database called 'HandSanitiserLevels' -- Connect to the 'master' database to run ...
CREATE TABLE students (id INTEGER PRIMARY KEY, first_name TEXT, last_name TEXT, email TEXT, phone TEXT, birthdate TEXT); INSERT INTO students (first_name, last_name, email, phone, birthdate) VALUES ("Peter", "Rabbit", "<EMAIL>", "555-6666", "2002-06-24"); INSERT INTO students (first_name, last_...
CREATE TABLE IF NOT EXISTS photo.af_area_mode ( id SMALLSERIAL, name VARCHAR(40) NOT NULL, CONSTRAINT pk_photo_af_area_mode PRIMARY KEY (id), CONSTRAINT uq_photo_af_area_mode_name UNIQUE (name) ); GRANT SELECT ON photo.af_area_mode TO website;
-- phpMyAdmin SQL Dump -- version 4.4.11 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Сен 13 2016 г., 00:38 -- Версия сервера: 5.5.44-log -- Версия PHP: 5.4.41 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
<filename>data/schemaSeeds.sql USE sequelize_fable; INSERT INTO categories (catName) VALUES ("Fantasy"); INSERT INTO categories (catName) VALUES ("Sci-fi"); INSERT INTO categories (catName) VALUES ("Horror"); INSERT INTO categories (catName) VALUES ("Slice of life"); INSERT INTO categories (catName) VALUES ("Drama/Ro...
<filename>database/public_schema/functions/type_ext.sql CREATE OR REPLACE FUNCTION jsonb_arr2text_arr(_js jsonb) RETURNS text[] AS $$ SELECT ARRAY(SELECT jsonb_array_elements_text(_js)) $$ LANGUAGE sql IMMUTABLE; CREATE OR REPLACE FUNCTION array_distinct(anyarray) RETURNS anyarray AS $$ SELECT array_agg(DISTINCT x...
<filename>conf/evolutions/default/69.sql<gh_stars>10-100 # --- !Ups INSERT INTO version VALUES ('6.6.6', now(), 'Adds validation support to /labelmap.'); # --- !Downs DELETE FROM version WHERE version_id = '6.6.6';
<gh_stars>0 CREATE TABLE "to_do_list" ( "id" SERIAL PRIMARY KEY, "task" VARCHAR(200) NOT NULL, "complete" BOOLEAN ); INSERT INTO "to_do_list" ("task", "complete") VALUES ('Laundry', 'false'), ('Wash the car', 'false'), ('Feed the animals', 'false'), ('Get groceries', 'false'), ('Mow the lawn', 'false'), ('Walk dog...
/* 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/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
INSERT INTO user (active, defaultProfile, email, password) VALUES (true, "administrator", "<EMAIL>", "<PASSWORD>"); INSERT INTO user (active, defaultProfile, email, password) VALUES (true, "manager", "<EMAIL>", "<PASSWORD>"); INSERT INTO user (active, defaultProfile, email, password) VALUES (true, "reviser", "<EMAIL>",...
<filename>sql/datawarehouse/sakila_dw_schema.sql<gh_stars>1-10 CREATE TABLE dimDate ( date_key integer NOT NULL, `date` date NOT NULL, `year` smallint NOT NULL, `quarter` tinyint NOT NULL, `month` tinyint NOT NULL, `day` tinyint NOT NULL, `week` tinyint NOT NULL, is_weekend boolean, ...
ALTER TABLE "public"."EventVonageSession" DROP COLUMN "eventId";
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mar. 21 août 2018 à 23:47 -- Version du serveur : 10.1.34-MariaDB -- Version de PHP : 7.1.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 30, 2020 at 02:09 PM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
<reponame>kartaggen/tailoringCompany<gh_stars>0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_...
CREATE DATABASE IF NOT EXISTS `voyagur`; CREATE TABLE `voyagur`.`users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; INSERT INTO `voyagur`.`users` (`id`, `user...
CREATE TABLE "courses" ( "id" SERIAL PRIMARY KEY, "department" varchar(8) NOT NULL, "number" integer NOT NULL CHECK ("number" >= 0), "title" varchar(200) NOT NULL, "hours" integer NOT NULL CHECK ("hours" >= 0), "slug" varchar(200) NOT NULL UNIQUE, unique ("department", "number", "title", "ho...
/* USE/TEST: SELECT dblink_disconnect('sosdb'); select proc_ILM0102VH04(2015, 1, false); select proc_ILM0102VH04(2015, 1, cast('http://wiki.aireas.com/index.php/airbox_pm1' as character varying), false ); select proc_ILM0102VH04(2015, 1, cast('http://wiki.aireas.com/index.php/airbox_pm25' as character varying...
<filename>documents/dml_audit-test.sql -- -- set up tables and a trigger in schema public for -- testing dml_audit -- SET LOG_MIN_MESSAGES TO DEBUG; SET ROLE edarling; -- remove all test ddl (the test makes permanent changes to your events-tabel!) DROP TRIGGER IF EXISTS dml_audit_test_before ON public.dml_audit_te...
-- this is a very simplified version of what we have in init-database.sql. I've also been more restrictive on some of the character limits CREATE TABLE public.access_codes ( code VARCHAR(97), sin VARCHAR(97), date_of_birth VARCHAR(97), login_count NUMERIC NOT NULL, first_name VARCHAR(30), locked BOOLEAN NOT...
create or replace view operation_groups as select network, hash, max(status) as status, max(source) as source, max(expiration_level) as expiration_level, max(level) as level, max(branch) as branch, sum(fee) as fee, max(counter) as max_counter, sum(storage_limit) as storage_limit, sum(gas_limit) as gas_limit, count(*) ...
INSERT INTO SOURCES.TWITTER VALUES(123,'NAME', 'ADDR');
<reponame>betagouv/signalement-api \o ./stats.txt select current_timestamp "Date de l'extraction"; -- Nb utilisateurs DGCCRF select count(*) "Nb utilisateurs DGCCRF" from users where role = 'DGCCRF'; -- Nb utilisateurs DGCCRF actifs select count(*) "Nb utilisateurs DGCCRF actifs" from users where role = 'DGCCRF' and...
CREATE TABLE IF NOT EXISTS Locality ( _id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT , createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, updatedAt datetime DEFAULT NULL, name VARCHAR(255) NOT NULL, decimalLatitude DECIMAL(10, 8) NOT NULL, decimalLongitude DECIMAL(11, 8) NOT NULL, accuracy INT(11...
-- file:truncate.sql ln:175 expect:true SELECT count(*) as "Row count in test table" FROM trunc_trigger_test
INSERT INTO service_params(id, service_id, service_item_param_key_id, created_at, updated_at) VALUES ('089bdef0-7924-4eb0-9439-b4353f80eaf1', (SELECT id from re_services WHERE code = 'DUPK'), (SELECT id FROM service_item_param_keys WHERE key = 'ContractCode'), now(), now());
<reponame>TaitoUnited/taito-cli -- used by: create SET @s = CONCAT("CREATE DATABASE ", @database); PREPARE stmt FROM @s; EXECUTE stmt; -- app user -- TODO do not grant all for app user SET @s = CONCAT("GRANT ALL PRIVILEGES ON ", @database, ".* TO '", @dbuserapp, "'@'%'"); PREPARE stmt FROM @s; EXECUTE stmt; -- vie...
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; SET NOCOUNT ON; SET ANSI_NULLS ON; SET QUOTED_IDENTIFIER ON; USE AP; SELECT * FROM Terms WHERE TermsId IN (1, 3, 4); SELECT VendorState FROM Vendors WHERE VendorState NOT IN ('CA', 'NV', 'OR') ORDER BY VendorState; SELECT * FROM Invoices WHERE VendorId IN (SELE...
<reponame>gavinjackson/junkcode<filename>eco_scrapy/resort_capacity.sql select p.property_name, d.day, d.date, d.type from eco_day d, eco_property p, eco_month m where p.eid = m.eid and m.pid = p.pid and m.mid = d.mid and m.eid = (select max(eid) from eco_execution_run) and date between "2016-07-01" and "2016-07-31" o...
DROP TABLE IF EXISTS `geo_points`; CREATE TABLE `geo_points` ( `id` BIGINT(20) NOT NULL, `point_name` varchar(32) NOT NULL COMMENT '点的名称', `map_lat_lng` POINT SRID 0 NOT NULL COMMENT '地图坐标系经纬度' NOT NULL, `gps_lat_lng` POINT SRID 0 NOT NULL COMMENT 'GPS 坐标系经纬度' NOT NULL, `h3_cell_re3` bigint(20) NOT NULL, `h3_cell_re...
<filename>sql/voxadmin_ereg.sql -- phpMyAdmin SQL Dump -- version 3.5.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 02, 2013 at 01:40 AM -- Server version: 5.1.66-cll -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
<reponame>OpenTouryoProject/OpenTouryo<gh_stars>10-100 USE [Northwind] GO /****** Object: Table [dbo].[Orders2] Script Date: 09/18/2012 20:02:26 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Orders2]( [OrderID] [int] NOT NULL, [CustomerID] [nchar](5) NULL, [EmployeeID] [int] NUL...
/*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ DROP TABLE ZSTG_PID_MACROPROCESS_TYPE CASCADE CONSTRAINTS PURGE / -- -- ZSTG_PID_MACROPROCESS_TYPE (Table) -- CREATE TABLE ZSTG_PID_MACROPROCESS_TYPE ( INTERACTION_ID N...
<filename>openGaussBase/testcase/SQL/DDL/case_sensitive/Opengauss_Function_DDL_Case_Sensitive_Case0004.sql -- @testpoint: --insert验证字段大小写 drop table if EXISTS false_1 CASCADE; create table false_1(A int,b CHAR(10)); insert into false_1(a) values(3); insert into false_1(A) values(5); insert into false_1(b) values('xx'...
CREATE TABLE IF NOT EXISTS main."item_in_order"( id INTEGER PRIMARY KEY, item_id INTEGER, order_id INTEGER, status INTEGER, created_at INTEGER );
<reponame>shroukshalaby/Elsaraf -- MySQL dump 10.13 Distrib 8.0.23, for Linux (x86_64) -- -- Host: localhost Database: elsaraf_dashboard -- ------------------------------------------------------ -- Server version 8.0.23-0ubuntu0.20.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
<filename>database/data/machinelog.sql /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50505 Source Host : localhost:3306 Source Database : lara53 Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-02-08 1...
users users_tipo tratamento especialidade instrutores id_instrutor nome_instrutor nome_guerra_instrutor cpf_instrutor instrucoes cursos alunos respostas pre_curso pos_curso ava_final certificados_env posto quadro om status
<reponame>antoniocruces/expofinder SELECT p.ID AS id, SUBSTRING_INDEX( SUBSTRING_INDEX( m.meta_value, ",", 1 ), ",", -1 ) AS latitude, SUBSTRING_INDEX( SUBSTRING_INDEX( m.meta_value, ",", 2 ), ",", -1 ) AS longitude, REPLACE(QUOTE(REPLACE(p.post_title, ",", "&#44;")),"'","") AS name, d.d_exh_date, ...
<reponame>SergeiMol/CATSdesigner USE LMPlatform ALTER TABLE AssignedCourseProjects ADD LecturerName NVARCHAR(MAX) NULL GO ALTER TABLE AssignedCourseProjects ADD Comment NVARCHAR(MAX) NULL GO ALTER TABLE AssignedCourseProjects ADD MarkDate DATE NULL GO
<reponame>calian-pace/QuikRide<gh_stars>0 CREATE TABLE [dbo].[FeedbackInitiatorType] ( [FeedbackInitiatorTypeId] INT NOT NULL, [LanguageTypeId] INT NOT NULL, [Code] VARCHAR (50) NOT NULL, [DisplayText] NVARCHAR (128) NOT NULL, [Dis...
<gh_stars>0 CREATE TABLE `join_subjects` ( `id` int(11) NOT NULL, `publications_id` int(11) NOT NULL, `subject_id` int(11) NOT NULL ); INSERT INTO `join_subjects` (`id`, `publications_id`, `subject_id`) VALUES (3, 10, 2), (13, 11, 1), (14, 11, 2), (15, 11, 3), (16, 11, 4), (18, 2, 2), (19, 2, 5); CREATE TABLE `p...
-- MySQL SELECT Salary as SecondHighestSalary FROM Employee ORDER BY Salary DESC LIMIT 1 OFFSET 1;
--Problem 6 --6.1 CREATE TRIGGER tr_RestrictItems ON UserGameItems INSTEAD OF INSERT AS DECLARE @ItemId INT = (SELECT ItemId FROM inserted) DECLARE @userGameId INT = (SELECT UserGameId FROM inserted) DECLARE @itemLevel INT = (SELECT MinLevel FROM Items WHERE Id = @ItemId) DECLARE @userGameLevel INT = (SELECT [Level] F...
CREATE TABLE albums ( id INTEGER PRIMARY KEY, artist_id INTEGER );
update ad_role set isactive = 'Y' where ad_role_id = 0 and isactive = 'N' ;
CREATE TABLE `mdl_elp_progress_data` (`userid` bigint(10), `courseid` bigint(10), `categoryid` bigint(10), `category_type` varchar(255), `course_contribution` decimal(48,2), `category_raw` decimal(30,2), `category_mark` decimal(49,2), `category_percent` decimal(43,2), `category_items` bigint(21), `items_taken` bigint(2...
SELECT COUNT(id) FROM legacy_organizations WHERE name NOT LIKE 'Local Admin%';
{{ config(materialized='table') }} select 1 as fun
/*Connect to database*/ \connect mobydq /*Create table session*/ CREATE TABLE base.session ( id SERIAL PRIMARY KEY , status TEXT NOT NULL , alert_operator TEXT NULL , alert_threshold FLOAT NULL , nb_records INTEGER NULL , nb_records_alert INTEGER NULL , nb_records_no_alert INTEGER NULL , created_da...
DELETE FROM Respuesta; DELETE FROM PreguntaOpcion; DELETE FROM Opcion; DELETE FROM SeccionPregunta; DELETE FROM Pregunta; DELETE FROM TipoPregunta; DELETE FROM Respuesta; DELETE FROM Seccion; DELETE FROM PreguntaGeneradora; DBCC CHECKIDENT ('Opcion', RESEED, 0); DBCC CHECKIDENT ('Seccion', RESEED, 0); DBCC CHECKIDENT ...
-- @testpoint: opengauss关键字descriptor(非保留),作为存储过程名,部分测试点合理报错 --关键字不带引号-成功 drop procedure if exists descriptor; create procedure descriptor( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = ...
/* *SQL DATABASE */ CREATE DATABASE tuningcarmanagement; USE tuningcarmanagement; /* * TABLES */ /* * CAR TABLE */ CREATE TABLE tuningcar(registrationNumber VARCHAR(50) PRIMARY KEY, brand VARCHAR(50), model VARCHAR(50), price DOUBLE); /* * CLIENT TABLE */ CREATE TABLE client(CIN VARCHAR(50) PRIMARY KEY, fir...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.13-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.1.0.6116 -- -----------------------------------------------...
-- MySQL dump 10.13 Distrib 5.5.55, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: aka -- ------------------------------------------------------ -- Server version 5.5.55-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
<reponame>Mynor-Briones/Software_Distribidora_De_Libreria<filename>Base_de_Dato_y_Script_SQL/DBClinica.sql CREATE DATABASE DBClinica; GO USE DBClinica; GO
CREATE TABLE IF NOT EXISTS Institutions ( id UUID NOT NULL DEFAULT gen_random_uuid(), name VARCHAR NOT NULL, address VARCHAR NOT NULL, ip_address VARCHAR NOT NULL, port_number INT2 NOT NULL, PRIMARY KEY (id), UNIQUE (name), CHECK (length(btrim(name)) > 0), ...
<gh_stars>0 USE [BD16185] GO /****** Object: StoredProcedure [BD16185].[linkProjectTeacher] Script Date: 22/03/2018 11:18:24 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Descripti...
<gh_stars>1-10 #01. Records' Count SELECT COUNT(`id`) AS 'count' FROM wizzard_deposits; #02. Longest Magic Wand SELECT MAX(`magic_wand_size`) AS 'longest_magic_wand' FROM `wizzard_deposits`; #03. Longest Magic Wand per Deposit Groups SELECT `deposit_group`, MAX(`magic_wand_size`) AS 'longest_magic_wand' FROM `wi...
SET FOREIGN_KEY_CHECKS = 0; TRUNCATE agent_state; TRUNCATE application_descriptors; TRUNCATE applications; TRUNCATE codebase_fingerprints; TRUNCATE customers; TRUNCATE environments; TRUNCATE facts; TRUNCATE heroku_details; TRUNCATE invocations; TRUNCATE jvms; TRUNCATE method_locations; TRUNCATE methods; TRUNCATE packag...
CREATE TABLE IF NOT EXISTS sensor_metadata ( id SERIAL, daq VARCHAR(20) NOT NULL, bias_level VARCHAR(20), floor_number VARCHAR(2), orientation VARCHAR(2), sensitivity VARCHAR(10), serial VARCHAR(20), x FLOAT(12), y FLOAT(12), z FLOAT(12), PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS sensor_data ( id SERIA...
<gh_stars>0 with application_gateway_subnet as ( select distinct (split_part(c -> 'properties' -> 'subnet' ->> 'id', '/', 9)) as vn_name from azure_application_gateway as ag, jsonb_array_elements(gateway_ip_configurations) as c ) select -- Required Columns a.name as resource, case when b.vn_na...
<filename>models/stg_stripe_payment_method_card.sql {{ config(enabled=var('using_payment_method', True)) }} with payment_method_card as ( select * from {{ var('payment_method_card') }} ), fields as ( select payment_method_id, brand, funding from payment_method_card ) select * fr...
<gh_stars>0 INSERT INTO article (article_number, description, price, stock_amount) VALUES ('1010a', 'Aus-/Einbau"A"', 30, NULL) , ('1010b', 'Aus-/Einbau"B"', 35, NULL) , ('1010c', 'Aus-/Einbau"C"', 40, NULL) , ('1020.a', 'Reifenservice Alurad', 13.66, NULL) , ('1020.e', 'Reifenservice Entsorgung...
<filename>src/main/resources/db/migration/V001__brands.sql create table brands ( id bigint not null auto_increment, brand_id bigint, name varchar(255) not null, inventory_sum bigint, primary key (id) ); create index brands_brand_id on brands(brand_id);
<filename>actions_admin/Count Organizations Per Incident.sql SELECT COUNT(DISTINCT(legacy_organization_id)) FROM legacy_organization_events WHERE legacy_organization_id IN ( SELECT id FROM legacy_organizations WHERE name NOT LIKE 'Local Admin%' AND is_active = 't') AND legacy_event_id = ***;
<reponame>SteveyCoops/ProteanCMS CREATE FUNCTION dbo.fxn_getStatus ( @id as integer, @dateNow as datetime ) RETURNS integer AS BEGIN DECLARE @value int SET @value = ( SELECT nStatus from tblAudit a where nAuditKey = @id AND (dPublishDate is null or dPublishDate = 0 or dPublishDate <= @dateNow ) AN...
<reponame>kuro-channel/knowledge-1 DELETE FROM STOCKS WHERE STOCK_ID = ? ;
<gh_stars>1-10 INSERT INTO ame_transaction (ame_order_id,ame_transaction_id,amount,status,operation_type) VALUES ('[AME_ORDER_ID]','[AME_TRANSACTION_ID]',[AMOUNT],'[STATUS]','[OPERATION_TYPE]')
<reponame>Falcon22/db-forum<filename>sql/init.sql CREATE EXTENSION IF NOT EXISTS citext; CREATE TABLE IF NOT EXISTS users ( id SERIAL NOT NULL CONSTRAINT users_pkey PRIMARY KEY, nickname CITEXT NOT NULL, fullname TEXT NOT NULL, about TEXT, email CITEXT NOT NULL ); CREATE TABLE IF NOT E...
<filename>db-impl/src/main/resources/sql/schema-h2.sql CREATE TABLE IF NOT EXISTS `account` ( `address` varchar(40) NOT NULL, `create_time` bigint(14) NOT NULL, `alias` varchar(100) DEFAULT NULL, `version` int(11) NOT NULL, `pub_key` varbinary(100) DEFAULT NULL, `pri_key` varbinary(100) DEFAULT NULL, `pr...
<reponame>daotientu-devops/php_laravel_cms_5nn -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: localhost -- Thời gian đã tạo: Th10 01, 2019 lúc 09:19 AM -- Phiên bản máy phục vụ: 10.3.18-MariaDB -- Phiên bản PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; ...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 13-12-2018 a las 17:37:37 -- Versión del servidor: 5.7.21 -- Versión de PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
<reponame>wedderm/training-petclinic<gh_stars>0 -- begin CLINIC_OWNER create unique index IDX_CLINIC_OWNER_UNIQ_EMAIL on CLINIC_OWNER (EMAIL) ^ create unique index IDX_CLINIC_OWNER_UNIQ_PHONE_NUMBER on CLINIC_OWNER (PHONE_NUMBER) ^ -- end CLINIC_OWNER -- begin CLINIC_VETERINARIAN alter table CLINIC_VETERINARIAN add con...
-- MySQL dump 10.13 Distrib 5.6.41-84.1, for Linux (x86_64) -- -- Host: localhost Database: aytisbet_brain_storming -- ------------------------------------------------------ -- Server version 5.6.41-84.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u2 -- http://www.phpmyadmin.net -- -- Host: blu-ray.student.bth.se -- Generation Time: Oct 30, 2016 at 04:18 PM -- Server version: 5.5.52-0+deb8u1-log -- PHP Version: 5.6.27-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
<reponame>xiaobxiaWarehouse/superman-base /*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2017-04-07 10:43:13 */ /*==============================================================*/ DROP TABL...
INSERT INTO `manufacturers` (`id`, `name`, `description`, `logo`) VALUES (1, 'Chicco', 'Chicco description', '/storage/manufacturer/chicco.png'), (2, 'Barbie', 'Barbie description', '/storage/manufacturer/barbie.png'), (3, 'Benneton', 'Benneton description', '/storage/manufacturer/benneton.png'), (4, 'Gap', 'Gap descri...
Insert into EG_ACTION (ID,NAME,URL,QUERYPARAMS,PARENTMODULE,ORDERNUMBER,DISPLAYNAME,ENABLED,CONTEXTROOT,VERSION,CREATEDBY,CREATEDDATE,LASTMODIFIEDBY,LASTMODIFIEDDATE,APPLICATION) values (NEXTVAL('SEQ_EG_ACTION'),'WorksSearchEstimateUsersByDepartmentAjax','/estimate/ajaxEstimate-usersInExecutingDepartment.action',null,(...
create table binance_wallet ( id bigserial primary key, balance float not null, timestamp timestamp not null ); create table binance_transactions ( id bigserial primary key, ticker varchar(20) not null, price float not null, qty float not null, side boolean not null, timestamp time...
<filename>database/laravel_ecommerce.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 31, 2020 at 04:09 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRA...
-- !Ups ALTER TABLE application ADD personal_data_wiped boolean DEFAULT false NOT NULL; ALTER TABLE mandat ADD personal_data_wiped boolean DEFAULT false NOT NULL; -- !Downs ALTER TABLE mandat DROP personal_data_wiped; ALTER TABLE application DROP personal_data_wiped;
<gh_stars>1-10 -- TODO: This can be used as reference or possibly split into separate files -- if needed individually. /* A profile is repeated for each category it is in. Includes profiles which do not have categories. */ SELECT category.name, profile.screen_name FROM profile LEFT OUTER JOIN profile_...
CREATE DATABASE IF NOT EXISTS `chinook` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `chinook`; -- MySQL dump 10.13 Distrib 5.7.12, for Win32 (AMD64) -- -- Host: 192.168.0.3 Database: chinook -- ------------------------------------------------------ -...
<reponame>FiatAccompli/Civ6Mods -- ============================= -- -- Copyright 2018 FiatAccompli -- -- ============================= -- INSERT INTO LocalizedText (Language, Tag, Text) VALUES ('en_US', 'LOC_CHY_GOVERNOR_PROMOTION_RESOURCE_MANAGER_SUPPLY_CHAIN_MANAGEMENT_NAME', 'Supply Chain Manager'), ('en_US...
-- select7.test -- -- execsql { SELECT a=0, typeof(a) FROM t4 } SELECT a=0, typeof(a) FROM t4
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:rowsecurity.sql ln:1113 expect:true SELECT * FROM t4
<filename>src/test/resources/sql/select/ec218c56.sql<gh_stars>10-100 -- file:numeric.sql ln:917 expect:true select exp(-123.456)
/* I figured out all the tables to update via select R.TABLE_NAME, 'UPDATE ' || R.TABLE_NAME || ' SET EntityType=''de.metas.contracts'' WHERE EntityType=''de.metas.contracts.subscription'';' from INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE u inner join INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS FK on U.CONSTRAINT_...
USE SOCCER_DB GO -- 6. Write a query in SQL to find the date when did Football EURO cup 2016 begin.(match_mast) /* SELECT play_date 'Beginning Date' FROM match_mast WHERE match_no=1; */ SELECT MIN(play_date) AS 'Beginning Date' FROM match_mast;
CREATE TABLE [dbo].[EElectrificationChanges] ( --From MergedXSDs XSD --From 'genericRailML' Namespace [EElectrificationChangesId] BIGINT NOT NULL, [ElectrificationChange] SMALLINT NOT NULL, CONSTRAINT [PK_EElectrificationChangesId] PRIMARY KEY CLUSTERED ([EElectrificationChangesId] ASC), CONSTRAINT [FK_EElectr...