sql
stringlengths
6
1.05M
set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle user -- APEX_050100 or as the owner ...
-- DATABASE CREATION CREATE DATABASE 09feb2018; USE 09feb2018; -- COURSES TABLES CREATE TABLE Course( course_id CHAR(10) NOT NULL, -- COURSE ID Cannot be NULL, No default Value division ENUM('I', 'II', 'III', 'IV', 'NA') NOT NULL DEFAULT 'NA', ...
<reponame>DadosAbertosDeFeira/empacotador<filename>datasets/prefeitura/licitacoes/query.sql SELECT bid.id, bid.crawled_at, bid.crawled_from, bid.session_at, bid.public_agency, bid.description, bid.modality, bid.codes, json_agg( json_build_object( 'published_at', event.published_at, ...
<filename>tests/data/schema_v2/create_MOCK_DATA.sql create table MOCK_DATA ( id INT, guid VARCHAR(40), first_name VARCHAR(50), last_name VARCHAR(50), email VARCHAR(50), gender VARCHAR(50), ip_address VARCHAR(20), updated_at_sec INT, updated_at_ms INT, latitude VARCHAR(50), longitude VARCHAR(50), version INT...
--Generate a random integer between given lower and upper bounds Called from sudf_11_genRandomChar CREATE FUNCTION genRandomInt ( @lower INT, @upper INT, @rand FLOAT ) RETURNS INT AS BEGIN DECLARE @result INT; DECLARE @range int = @upper - @lower + 1; SET @result = FLOOR(@rand * @range + @...
<filename>monitoring/shrink-monitoring.sql ----------------------------------------------------------------- -- monitor a running shrink operation -- <EMAIL>, go ahead license ----------------------------------------------------------------- SELECT t.text, r.start_time, r.status, DB_NAME(r.database_id) as [db], r...
-- -- PostgreSQL database dump -- -- Dumped from database version 12.3 -- Dumped by pg_dump version 12.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
-- 2022-02-04T12:04:47.079Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,580548,0,TO_TIMESTAMP('2022-02-04 14:04:46','YYYY-MM-DD HH24:MI:SS'),10...
insert into tier2_Raw_DIMM(serial, mac, locator, source, doc_timestamp) values ('p_serial0', 'p_mac0', 'p_locator0', 'p_source0', 1000000); insert into tier2_Raw_DIMM(serial, mac, locator, source, doc_timestamp) values ('p_serial1', 'p_mac1', 'p_locator1', 'p_source1', 1000001); insert into tier2_Raw_DIMM(serial, mac...
<filename>1-DynamicPivotQuery/DataScript.sql USE [PracticeDB] GO /****** Object: Table [dbo].[Practice] Script Date: 2.08.2019 12:36:51 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Practice]( [Store] [nvarchar](max) NOT NULL, [Category] [nvarchar](max) NOT NULL, [Product] [nvarcha...
/* Navicat MySQL Data Transfer Source Server : CloudNET Source Server Version : 50626 Source Host : 127.0.0.1:3306 Source Database : iclouderp_3_4 Target Server Type : MYSQL Target Server Version : 50626 File Encoding : 65001 Date: 2017-08-25 19:37:26 */ SET FOREIGN_KEY_CHECKS=0; ...
<gh_stars>0 insert into person values('ruidong', 1), ('xiaohong', 2), ('zhan', 3), ('hua', 4), ('min', 5), ('jingwen', 6), ('qin', 7), ('huiwen', 8), ('wei', 9), ('aixia', 10);
select * from {{ var('feature_event') }}
<filename>sql_metadb/derived_tables/locations_libraries.sql<gh_stars>0 DROP TABLE IF EXISTS folio_derived.locations_libraries; CREATE TABLE folio_derived.locations_libraries AS SELECT cmp.id AS campus_id, cmp.name AS campus_name, loc.id AS location_id, loc.name AS location_name, loc.discovery_displ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generato il: Lug 15, 2014 alle 10:39 -- Versione del server: 5.5.37-0ubuntu0.14.04.1 -- Versione PHP: 5.5.9-1ubuntu4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
Use Sample SELECT * FROM tblEmployee SELECT * FROM tblEmployeeAudit CREATE TABLE tblEmployee ( Id int Primary Key, Name nvarchar(30), Salary int, Gender nvarchar(10), DepartmentId int ) Insert into tblEmployee values (1,'John', 5000, 'Male', 3) Insert into tblEmployee values (2,'Mike', 340...
<filename>fullstop-violation/fullstop-violation-persister-jpa/src/main/resources/db/migration/V14__add_columns_to_violations.sql ALTER TABLE fullstop_data.violation ADD COLUMN application_id BIGINT, ADD COLUMN application_version_id BIGINT; ALTER TABLE fullstop_data.application_version_entities ALTER COLUMN applicatio...
<reponame>evancole-untitled/dbt_quickbooks_source select * from {{ var('vendor') }}
BEGIN; ALTER TABLE graveler_staging_kv ALTER COLUMN identity SET NOT NULL; ALTER TABLE graveler_staging_kv RENAME TO kv_staging; COMMIT;
<reponame>harverywxu/erda<filename>.erda/migrations/cmdb/20210908-update-notify-item.sql UPDATE dice_notify_items SET label = 'workbench' WHERE `name`='git_delete_branch' OR `name` = 'git_delete_tag'
<filename>upgrade/2.1.7/mssql_2.1.6_to_2.1.7.sql DROP TABLE dbo.jforum_banlist GO CREATE TABLE dbo.jforum_banlist ( banlist_id bigint NOT NULL IDENTITY (1, 1), user_id bigint, banlist_ip varchar(15), banlist_email varchar(255), ) ON [PRIMARY] GO ALTER TABLE dbo.jforum_banlist ADD CONSTRAINT PK__jforum_banlist P...
<gh_stars>1-10 --/* \connect sduser_db \set ON_ERROR_STOP on --*/ -- email_topic = format('Proposal %d rejected',p_proposalid); -- email_text = format('Proposal %d is rejected. Reason: «%s»',p_proposalid,msg); -- email_hyperlink = format('/sensebyidview/%d',p_proposalid); -- queue_mail (оно должно упасть при о...
-- @testpoint: 自定义函数同义词作为入参与其他自定义函数同义词嵌套使用 -- @modify at: 2020-11-25 --创建函数 drop function if exists SYN_FUN_008_001(c bigint); create or replace function SYN_FUN_008_001(c bigint) return int as b int := c; begin for i in 1..c loop b:= b - 1; end loop; return b; end; / drop synonym if exists SYN_FUN_SYN_008_001; --...
<reponame>Loptt/northwind-dw --dimension Producto Insert into DWNorthwind.dbo.DimProduct SELECT p.productId, p.productName, c.categoryName FROM Lab0_NorthwindDB.dbo.products p, Lab0_NorthwindDB.dbo.categories c WHERE p.categoryID=c.categoryID; --dimension Empleado Insert into DWNorthwind.dbo.DimEmployee (EmployeeID...
<reponame>lionlone/htdocs -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 19, 2016 at 06:09 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
<filename>database/matakuliah.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 08, 2020 at 09:56 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.3.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*...
<gh_stars>0 DROP DATABASE IF EXISTS employeesDB; CREATE database employeesDB; USE employeesDB; CREATE TABLE department( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) ) CREATE TABLE role( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30), salary DECIMAL NOT NULL, depa...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : sam. 13 juin 2020 à 15:18 -- Version du serveur : 8.0.18 -- Version de PHP : 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
CREATE TABLE [dbo].[dnn_FolderPermission] ( [FolderPermissionID] INT IDENTITY (1, 1) NOT NULL, [FolderID] INT NOT NULL, [PermissionID] INT NOT NULL, [AllowAccess] BIT NOT NULL, [RoleID] INT NULL, [UserID] INT ...
--liquibase formatted sql --changeset eekovtun:1.0.0/ddl/forecasts_seq --rollback drop sequence geomagnetic.forecasts_seq; create sequence geomagnetic.forecasts_seq; --changeset eekovtun:1.0.0/ddl/forecasts --rollback drop table geomagnetic.forecasts; create table geomagnetic.forecasts ( id bigint ...
SELECT Round(avg(price),2) FROM products
/* Pre-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be executed before the build script. Use SQLCMD syntax to include a file in the pre-deployment script. Example: :r .\myfile.sql ...
<filename>database/data/ref.mst_wilayah18.sql INSERT INTO ref.mst_wilayah VALUES ('220104AF', 'Gesing', 4, '220104 ', 'ID', NULL, NULL, NULL, NULL, '2015-07-30 22:00:00', '2016-07-22 06:00:00', NULL, '1901-01-01 00:00:00'); INSERT INTO ref.mst_wilayah VALUES ('220104AG', 'Munduk', 4, '220104 ', 'ID', NULL, NULL, NULL...
create table #table1 (Q varchar(200), choice varchar(50)) insert into #table1 exec Exam_v2_generation 'C#', 1, 2 create table #table2 (q_id int, row_num int identity) insert into #table2 (q_id) select distinct Q_id from Questions where Question in (select Q from #table1) --select * from #table1 --select * from #tab...
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:plpgsql.sql ln:1845 expect:true select trap_foreign_key(1)
SET NAMES 'utf8'; ALTER TABLE `PREFIX_address` CHANGE `company` `company` VARCHAR(255) DEFAULT NULL;
<gh_stars>0 CREATE TABLE Users( id INTEGER PRIMARY KEY AUTOINCREMENT, username VARCHAR(255), passwd VARCHAR(255) ); INSERT INTO Users(username, passwd) VALUES("admin", "<PASSWORD>"); INSERT INTO Users(username, passwd) VALUES("jeanmithebest", "<PASSWORD>");
<filename>php_student/students_database.sql -- -------------------------------------------------------- -- 主机: 172.16.254.110 -- 服务器版本: 10.2.13-MariaDB-10.2.13+maria~jessie-log - mariadb.org binary distribution -- 服务器操作系统: debian-linux-gnu -- HeidiSQ...
<reponame>zlikun-learning/h2 CREATE TABLE TBL_USER ( ID INTEGER PRIMARY KEY AUTO_INCREMENT , NAME VARCHAR(64) NOT NULL COMMENT '用户姓名' , CTIME DATETIME NOT NULL COMMENT '创建时间' ) ;
<reponame>wadadones/tiscon4<filename>db/ddl/10_CREATE_INSURANCE_ORDER.sql CREATE TABLE PUBLIC.INSURANCE_ORDER ( RECEIPT_NO NUMBER(9) NOT NULL DEFAULT 0 AUTO_INCREMENT, INSURANCE_TYPE VARCHAR(9) NOT NULL, KANJI_NAME VARCHAR(120) NOT NULL, KANJI_FAMILY_NAME VARCHAR(120) NOT NULL, KANJI_FIRST_NAME VARCHAR(120) ...
<reponame>by-implication/Badger # --- !Ups CREATE EXTENSION ltree;; CREATE TABLE leafs( leaf_dpt_cd text, leaf_dpt_dsc text, leaf_agy_type text, leaf_owner_cd text, leaf_owner_dsc text, leaf_fpap_cd ltree, leaf_fpap_dsc text, leaf_area_cd text, leaf_area_dsc text, leaf_ps integer, leaf_mooe inte...
<gh_stars>1-10 /****** Object: Table [dbo].[T_Processor_Instrument] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_Processor_Instrument]( [Processor_Name] [varchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Instrument_Name] [varchar](64) COLLATE SQL_Latin1_General_CP1...
CREATE TABLE alfa(id integer not null);
--- --- CREATE_DOMAIN --- CREATE DOMAIN domainvarchar VARCHAR(5); CREATE DOMAIN japanese_postal_code AS TEXT CHECK( VALUE ~ '^\d{3}$' OR VALUE ~ '^\d{3}-\d{4}$' );
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2016-07-14 02:30:06 -- 服务器版本: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @O...
<filename>movie.sql -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Created the: Lug 07, 2017 , 01:25 -- Version of the server: 10.1.21-MariaDB -- Version PHP: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
<reponame>Koulinn/aux-backend CREATE TABLE IF NOT EXISTS "seniority_levels" ( "seniority_level" VARCHAR(40), PRIMARY KEY ("seniority_level") );
<reponame>volkerhehl/IDM-Vision<gh_stars>0 SELECT t1.TaskID, t1.TaskName, t1.TaskGroup, t3.Group_Name, t2.TaskRef FROM MXP_Tasks AS t1 WITH(nolock) LEFT JOIN MXP_TASKLNK AS t2 WITH(nolock) ON t1.TaskID = t2.TaskLnk LEFT JOIN mc_Group AS t3 WITH(nolock) ON t1.TaskGroup = t3.Group_Id
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 17-06-2020 a las 04:03:56 -- Versión del servidor: 5.7.30-0ubuntu0.18.04.1 -- Versión de PHP: 7.2.24-0ubuntu0.18.04.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*...
<reponame>wbs2A/oLivroDahora -- MySQL Script generated by MySQL Workbench -- Mon May 6 13:50:38 2019 -- Model: New Model Version: 1.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_...
<reponame>BillyCranston/CandyMarket CREATE TABLE UserCandies ( UserCandyId int identity(1,1), CandyId int not null, UserId int not null, DateReceived datetime not null, isConsumed bit not null, ); INSERT INTO UserCandies (CandyId, UserId, DateReceived, isConsumed) VALUES (3, 3,'2020-03-30', 0), (3, 4, '2020-04-...
-- -- PostgreSQL database dump -- -- Dumped from database version 12.5 (Debian 12.5-1.pgdg100+1) -- Dumped by pg_dump version 13.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_con...
DROP DATABASE IF EXISTS got_db; CREATE DATABASE got_db;
 SELECT DocumentForeignKeyValue, DocumentID, DocumentName, DocumentNamePath, DocumentNodeID FROM CMS_Document WHERE DocumentID in @IDs
update `posts` set `MasterId` = cast(uuid() as char);
<reponame>vaibhavpandeyvpz/databoss CREATE DATABASE "testdb"; \c testdb; CREATE TABLE "music" ( "id" BIGSERIAL PRIMARY KEY, "title" VARCHAR(255) NOT NULL, "artist" VARCHAR(255) NOT NULL, "duration" SMALLINT NOT NULL, "created_at" TIMESTAMP NULL );
-- +goose Up -- SQL in this section is executed when the migration is applied. CREATE TABLE IF NOT EXISTS candle ( ID uuid PRIMARY KEY DEFAULT gen_random_uuid(), exchange_id uuid REFERENCES exchange(id) NOT NULL, Base varchar(30) NOT NULL, Quote varchar(30) NOT NULL, Interval varchar(30) NOT NULL, ...
-- file:insert.sql ln:275 expect:true insert into mlparted5 (a, b, c) values (1, 40, 'a')
CREATE PROCEDURE [dbo].[RET_CHOFER_BY_RUTA_PR] @P_RUTA_ID INT AS SELECT tc.* FROM TBL_CHOFER as tc inner join TBL_LINEA tl on tl.EMPRESA_ID = tc.EMPRESA inner join TBL_RUTA tr on tr.LINEA_ID = tl.LINEA_ID where tr.RUTA_ID = @P_RUTA_ID return 0
/* [df:title] Simple Member Select [df:description] This SQL is the most basic example for outsideSql. It uses CustomizeEntity and ParameterBean. */ -- #df:entity# -- !df:pmb! -- !!Integer memberId!! -- !!String memberName:likePrefix!! -- !!Date birthdate!! select member.MEMBER_ID , member...
<reponame>erikrios/luas-segitiga DROP TABLE IF EXISTS districts;
<reponame>viswaratha12/dbwarden /****** Object: StoredProcedure [dbo].[SetManagerErrorCleanupMode] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE dbo.SetManagerErrorCleanupMode /**************************************************** ** ** Desc: ** Sets ManagerErrorCleanupMode to @Cl...
CREATE TABLE users ( id INTEGER PRIMARY KEY NOT NULL, email VARCHAR(1024) UNIQUE NOT NULL ); CREATE TABLE leases ( id SERIAL PRIMARY KEY NOT NULL, user_id INTEGER NOT NULL, last_notified TIMESTAMP with time zone, start_time TIMESTAMP with time zone NOT NULL, end_time TIMESTAMP with time zo...
------- -- Ret_02_IAM.sql ------- -- using IdP here in order to satisfy CDMC v1.0 Capability 1.2 Control 2 Test Criteria 3.1.1 -- IdP type is not important. what is important is the use of an authoritative source of users. use role accountadmin; create security integration CDMC_Retail_IdP type = saml2 enabled ...
INSERT INTO ${ohdsiSchema}.sec_permission(id, value, description) VALUES(58, 'cohortdefinition:*:put', 'Update cohort definition'); INSERT INTO ${ohdsiSchema}.SEC_ROLE_PERMISSION (ID, ROLE_ID, PERMISSION_ID) VALUES (${ohdsiSchema}.SEC_ROLE_PERMISSION_SEQUENCE.nextval, 5, 58); INSERT INTO ${ohdsiSchema}.sec_role(id, na...
<reponame>casamfiml/apuntes-De-MSSQL<filename>restar-fechas.sql --Calculo de la reducción de 8 semanas a una fecha ingresada en MSSQL Server SET DATEFORMAT YMD DECLARE @FECHA CHAR(10) = '2017-09-04' DECLARE @DIADELASEMANA VARCHAR(10) = DATENAME(DW,@FECHA) DECLARE @NUMERODELASEMANA INT = DATEPART(DW,@FECHA) --Se restan ...
/* Warnings: - You are about to drop the `User` table. If the table is not empty, all the data it contains will be lost. */ -- DropTable DROP TABLE "User"; -- CreateTable CREATE TABLE "Meter" ( "id" SERIAL NOT NULL, "meterNumber" INTEGER NOT NULL, "daysRemaining" INTEGER NOT NULL, "createdAt" TIM...
<gh_stars>0 -- CreateTable CREATE TABLE `Feature` ( `id` VARCHAR(191) NOT NULL, `name` VARCHAR(191) NOT NULL, `description` VARCHAR(191) NOT NULL, `fileURL` VARCHAR(191) NOT NULL, `sourceId` VARCHAR(191) NOT NULL, `versionId` VARCHAR(191) NOT NULL, `createdAt` DATETIME(3) NOT NULL DEFAULT CU...
<filename>web/sh/GestionSystem/miseEnPlace/sed_table_categorieFamilleLive.sql USE ipc_master1 SELECT id FROM t_categoriefamillelive WHERE designation = "Surchauffeur";
<filename>schema.sql DROP DATABASE IF EXISTS company_db; CREATE DATABASE company_db; USE company_db; CREATE TABLE department ( id INT NOT NULL, department_id VARCHAR (30) NOT NULL, PRIMARY KEY (id), ); CREATE TABLE role ( id INT NOT NULL, title VARCHAR (30) NOT NULL, salary INT NOT NULL, d...
CREATE TABLE `hwid_info` ( `HWID` varchar(32) NOT NULL default '', `HWIDSecond` varchar(32) NOT NULL default '', `WindowsCount` INT UNSIGNED NOT NULL DEFAULT 1, `Account` varchar(45) NOT NULL default '', `PlayerID` INT UNSIGNED NOT NULL DEFAULT 0, `LockType` enum('PLAYER_LOCK','ACCOUNT_LOCK','NONE') NOT NULL default 'N...
UPDATE public.search_servicearea SET text_cy = 'Rydym yn rheoli ceisiadau i ddiddymu partneriaeth sifil yn ein canolfan wasanaeth ganolog' WHERE slug = 'civil-partnership'; UPDATE public.search_servicearea SET text_cy = 'Rydym yn rheoli apeliadau budd-daliadau yn ein canolfan wasanaeth ganolog' WHERE slug = 'benefits'...
DROP TABLE IF EXISTS acs2008_1yr.tmp_seq0001; DROP TABLE IF EXISTS acs2008_1yr.tmp_seq0001_moe; DROP TABLE IF EXISTS acs2008_1yr.tmp_seq0002; DROP TABLE IF EXISTS acs2008_1yr.tmp_seq0002_moe; DROP TABLE IF EXISTS acs2008_1yr.tmp_seq0003; DROP TABLE IF EXISTS acs2008_1yr.tmp_seq0003_moe; DROP TABLE IF EXISTS acs2008_1yr...
<gh_stars>1-10 USE NPPES DROP TABLE [dbo].[npigeo]; GO CREATE TABLE [dbo].[npigeo] ( [NPI] numeric not null, [Matchflag] varchar(20) null, [Matchtype] varchar(20) null, [Longitude] float null, [Latitude] float null ); GO
<reponame>YPermitin/ClickHouseTools -- Прервать мутацию по идентификатору KILL MUTATION mutation_id = 'trx_id';
<reponame>dram/metasfresh -- 2020-02-10T13:14:12.879Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,I...
CREATE TABLE [dbo].[App_CodeType] ( [ID] TINYINT NOT NULL, [Description] VARCHAR (50) NOT NULL, CONSTRAINT [PK_App_CodeType] PRIMARY KEY CLUSTERED ([ID] ASC) WITH (DATA_COMPRESSION = PAGE) ); GO EXECUTE sp_addextendedproperty @name = N'Description', @value = N'Describe the code type to work...
SELECT book.title FROM book WHERE book.id NOT IN ( SELECT checkout_item.book_id FROM checkout_item, book, member WHERE checkout_item.book_id = book.id AND checkout_item.member_id = member.id ); SELECT movie.title FROM movie WHERE movie.id NOT IN ( SELECT checkout_item.movie_id FROM checkou...
-- DROP USER sec1; CREATE USER sec1 WITH LOGIN SUPERUSER NOINHERIT CREATEDB CREATEROLE NOREPLICATION; CREATE DATABASE app_security1 WITH OWNER = sec1 ENCODING = 'UTF8' LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United States.1252' TABLESPACE = pg...
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for article -- ---------------------------- DROP TABLE IF EXISTS `article`; CREATE TABLE `article` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` char(255) NOT NULL, `text` text NOT NULL, `date` datetime NOT NULL ON UPDATE CURRENT_T...
create type seat_type as enum ( 'hardseat', 'softseat', 'hardcoach_h', 'hardcoach_m', 'hardcoach_l', 'softcoach_h', 'softcoach_l' ); create type user_type as enum ( 'customer','admin' ); create type status_type as enum ( 'normal','canceled','expired' ); create table Train( T_ID varchar(5) not nul...
<gh_stars>100-1000 EXEC tSQLt.NewTestClass 'FailTests'; GO CREATE PROCEDURE FailTests.[InvalidateTransaction] AS BEGIN BEGIN TRY DECLARE @i INT ; SET @i = 'NAN'; END TRY BEGIN CATCH END CATCH; END; GO CREATE PROC FailTests.[test Fail rolls back transaction if transaction is unable to be...
<filename>e2e/testdata/select/between_in.sql SELECT * FROM Products WHERE Price BETWEEN 10 AND 20 AND NOT CategoryID IN (1,2,3);
<reponame>welliam/weather-charts<filename>schema.sql<gh_stars>0 drop table if exists WEATHER; create table WEATHER ( id integer primary key, created integer not null, temperature integer not null, humidity integer not null, location text not null );
drop schema "analytics" cascade;
DROP TABLE IF EXISTS contacts; CREATE TABLE contacts ( id serial, first_name varchar(255) NOT NULL, last_name varchar(255) NOT NULL );
<reponame>viacheslave/algo<filename>leetcode-subscription/sql/P0534.sql /* https://leetcode.com/problems/game-play-analysis-iii/ https://leetcode.com/submissions/detail/450967285/ GSN Games */ /* Write your T-SQL query statement below */ SELECT player_id, event_date, SUM(games_played) OVER (PARTITION ...
-- manage_delivery_statuses_permission -- INSERT INTO `phppos_modules_actions` (`action_id`, `module_id`, `action_name_key`, `sort`) VALUES ('manage_statuses', 'deliveries', 'deliveries_manage_statuses', 251); INSERT INTO phppos_permissions_actions (module_id, person_id, action_id) SELECT DISTINCT phppos_permissions.mo...
<reponame>christophanneser/Bao-for-Presto SELECT b1.name, count(*) FROM site AS s, so_user AS u1, tag AS t1, tag_question AS tq1, question AS q1, badge AS b1, account AS acc WHERE s.site_id = u1.site_id AND s.site_id = b1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1....
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 30, 2020 at 03:11 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
INSERT INTO burgers (burger_name, devoured) VALUES ('McDouble', FALSE); INSERT INTO burgers (burger_name, devoured) VALUES ('Big Mac', FALSE); INSERT INTO burgers (burger_name, devoured) VALUES ('Filet-O-Fish', FALSE);
-- ----------------------------------------------------------------------------- -- OCM 12C Exam Preparation Script: -- General Database and Network Administration, and Backup Strategy -- Create and manage users, roles, and privileges -- Create CDB No OMF -- -------------------------------------------------...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 23, 2021 at 05:54 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
create table installed_migrations ( id SERIAL, installation_time timestamp DEFAULT current_timestamp, migration_file_name varchar(255) NOT NULL, migration_file_checksum varchar(32) NOT NULL, success boolean, PRIMARY KEY (id) )
ALTER TABLE project ADD alert_chat varchar(10) DEFAULT '' AFTER alert;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 02, 2021 at 02:53 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- Übung 15: Wiederholung - Anlegen einer Procedure -- Musterlösungen für alle Teilaufgaben der Übung /*************************************************************/ --Lösungsvorschlag: CREATE OR REPLACE PROCEDURE PROC_BANKS ( IN iv_bic VARCHAR(11) DEFAULT 'RABODEFFTAR', OUT ot_result BANKS --Ty...
-- file:create_table_like.sql ln:135 expect:true DROP SEQUENCE ctlseq1
delete from employee; delete from department; INSERT INTO department VALUES (1,'ACCOUNTING'), (2,'CUSTOMER'), (3,'DEVELOPMENT'), (4,'LEGAL'); insert into employee values (1, 'Владимир', 'Костиков', '+7800569458...
-- Revert nz-buildings:buildings_common/schema_and_tables from pg BEGIN; DROP SCHEMA buildings_common CASCADE; COMMIT;