sql
stringlengths
6
1.05M
-- fkey2.test -- -- execsql { INSERT INTO short VALUES(1, 3, NULL) } INSERT INTO short VALUES(1, 3, NULL)
# kgAlias.sql was originally generated by the autoSql program, which also # generated kgAlias.c and kgAlias.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Link together a Known Gene ID and a gene alias CREATE TABLE kgAlias ( kgID var...
-- select * from pg_stat_all_indexes where schemaname <> 'pg_catalog' and indexrelname like 'idx_ref%'; -- select * from pg_indexes where schemaname <> 'pg_catalog' and indexname like 'idx_ref%'; select t.tablename, indexname, c.reltuples::bigint AS num_rows, pg_size_pretty(pg_relation_size(quote_ident(t.table...
<filename>microservicio/infraestructura/src/main/resources/sql/reserva/usuarioYaReservo.sql select count(1) from reserva where idUsuario = :idUsuario and idHorario = :idHorario
insert into users (username, email, user_image) values (${username}, ${email}, ${user_image}) returning *
-- Table: USER -- DROP TABLE IF EXISTS "user"; CREATE TABLE "user"( id SERIAL NOT NULL PRIMARY KEY, uid TEXT NOT NULL, username TEXT NOT NULL, admin BOOLEAN, manager BOOLEAN, email TEXT NOT NULL, status INTEGER, last_login_date timestamp, registered_date timestamp, activation_id ...
<gh_stars>1-10 database sysadmin; execute function admin ('modify chunk extendable', 1); execute function admin('STORAGEPOOL ADD', '$BASEDIR/data/spaces', 0,0,'64MB',1); execute function admin('create dbspace', 'twsdbs', '$BASEDIR/data/spaces/dbs1', '200M', '0', '8'); execute function admin('create sbspace', 'twssbsp...
-- oapth UP INSERT INTO author(id, first_name, last_name, email) VALUES ('1','Werner','Turcotte','<EMAIL>'), ('2','Issac','Schroeder','<EMAIL>'), ('3','Lorenzo','Grant','<EMAIL>'), ('4','Leopoldo','Cartwright','<EMAIL>'), ('5','Melyssa','Wilkinson','<EMAIL>'), ('6','Mack','Lubowitz','<EMAIL>'), ('7','Gladys','Corkery'...
<reponame>goldmansachs/obevo-kata CREATE FUNCTION func866() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE80);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE112);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE122...
START TRANSACTION ; ALTER TABLE branch_enis ADD COLUMN aws_security_groups_updated timestamp; COMMIT;
/* ----------------------------------------------------------------------------- Delete all data from the PIMS_PROPERTY_CLASSIFICATION_TYPE table and repopulate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Author Date Comment ------------ ----------- ---------------...
<filename>migrations/sqls/20190823181120-widget-support-0216-up.sql /* db-migrate create widget-support-0216 -e pg-staging */ -- DROP AFFECTED VIEWS -- DROP VIEW IF EXISTS view_mapped_permissions_production; DROP VIEW IF EXISTS view_mapped_permissions_staging; DROP VIEW IF EXISTS view_mapped_permissions; DROP VIEW IF ...
<filename>sql/_23_apricot_qa/_01_sql_extension3/_03_pseudocolumn_in_default_clause/_04_alter/_01_alter_add/cases/alter_add_012.sql --add columns with default value of SYSDATETIME set system parameters 'add_column_update_hard_default=yes'; create table a12(id short primary key auto_increment); insert into a12 values...
-- @testpoint:opengauss关键字message_octet_length(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists message_octet_length; create database message_octet_length; drop database message_octet_length; --关键字带双引号-成功 drop database if exists "message_octet_length"; create database "message_octet_length"; drop database "message_o...
<filename>openGaussBase/testcase/KEYWORDS/Domain/Opengauss_Function_Keyword_Domain_Case0034.sql -- @testpoint: opengauss关键字domain(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists domain_test cascade; create table domain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor domain for select * from domain_test...
<reponame>opengauss-mirror/openGauss-graph -- 1 init environment CREATE TABLE interval_sales ( prod_id NUMBER(6) , cust_id NUMBER , time_id DATE , channel_id CHAR(1) , promo_id NUMBER(6) , quantity_sold NUMBER(3) , amount_sold NUMBER(10,2) ) PARTITION BY RANGE (time_id) INTERVAL('1 MONTH') ( PAR...
<filename>base de datos/pensionados(3).sql -- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 06-06-2017 a las 16:05:29 -- Versión del servidor: 5.5.49-0+deb8u1 -- Versión de PHP: 5.6.27-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SE...
<gh_stars>0 SELECT rental_id,first_name,last_name FROM customer INNER JOIN rental ON rental.customer_id = customer.customer_id
-- Base de datos curso Introduccion a PHP platzi CREATE DATABASE IF NOT EXISTS finanzas_app DEFAULT CHARACTER SET utf8 COLLATE utf8_spanish2_ci; USE finanzas_app; -- Create the table in the specified schema CREATE TABLE IF NOT EXISTS tbl_users ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, -- primary key column ...
<filename>sql/update20201230.sql CREATE TABLE `t_lc_pre_call_task` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `case_no` varchar(255) DEFAULT NULL COMMENT '案件号', `import_batch_no` varchar(50) DEFAULT NULL COMMENT '案件导入批次编号', `org_id` varchar(30) DEFAULT NULL COMMENT '委托机构ID', `batch_no` int(20) DEF...
DROP DATABASE IF EXISTS snowbirds_db; CREATE DATABASE snowbirds_db;
with recursive deck_cards as ( select face_values.card, suits.i as suit from generate_series(1, 13) as face_values(card) cross join generate_series(1, 4) as suits(i) order by random() ), deck_cards_with_player_indices as ( select (row_number() over ()) % 2 as player_index, deck_cards,card ...
<gh_stars>0 USE `insp_v2_feedbackv2`; -- --------------------------------------------------------------------------------- ALTER TABLE `baftfeedback_feedback` ADD COLUMN `ref_subject_fieldset` VARCHAR(255) NULL AFTER `ref_baftfeedback_question_group_id` , ADD COLUMN `continuous` INT(1) NULL DEFAULT 0 AFTER `active`;...
USE company; SHOW TABLES; DESCRIBE Employee; SELECT * FROM Employee; DELIMITER // CREATE FUNCTION Emp_Details(dep_no INT) RETURNS INTEGER BEGIN DECLARE emp_count INT; SELECT COUNT(*) INTO emp_count FROM Employee WHERE Employee.Dept_no = dep_no ; RETURN emp_count; END //
<gh_stars>1-10 CREATE TABLE [dbo].[ProcedureWorkPackagedThing] ( [Id] INT IDENTITY (1, 1) NOT NULL, [TripleStoreId] NVARCHAR (16) NOT NULL, [WebLink] NVARCHAR (MAX) NULL, [ProcedureWorkPackageTripleStor...
<filename>Third year/Segundo Semestre/InventarisPro/README - Table Querys/Historial.sql -- Table: public.Historial -- DROP TABLE public."Historial"; CREATE TABLE IF NOT EXISTS public."Historial" ( "IdTrabajador" character varying(10) COLLATE pg_catalog."default" NOT NULL, "IdProducto" character varying(40) CO...
-- View: bloomlibrary_org.v_comprehension -- DROP VIEW bloomlibrary_org.v_comprehension; CREATE OR REPLACE VIEW bloomlibrary_org.v_comprehension AS -- CAREFUL! -- Any column changes here need to be reflected in bloomreader.v_comprehension -- and vice versa because they are unioned in mv_comprehension. SELECT comp.t...
CREATE TABLE auth_requests( id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), nonce VARCHAR NOT NULL, consumed_at TIMESTAMP WITH TIME ZONE NULL ); SELECT diesel_manage_updated_at('auth_req...
-- file:numeric.sql ln:480 expect:true INSERT INTO num_data VALUES (6, '93901.57763026')
<filename>src/hg/lib/itemConf.sql # itemConf.sql was originally generated by the autoSql program, which also # generated itemConf.c and itemConf.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Probability and false discovery rate (FDR) ...
CREATE DATABASE bug_example;
<filename>business/src/main/resources/data/ddl.sql<gh_stars>0 CREATE DATABASE `tahoedb` /*!40100 COLLATE 'utf8_general_ci' */ CREATE TABLE `demo_task` ( `ID` BIGINT(20) NOT NULL AUTO_INCREMENT, `CREATED_AT` DATETIME NULL DEFAULT NULL, `CREATED_BY` VARCHAR(100) NULL DEFAULT NULL, `UPDATED_AT` DATETIME NULL DEFAULT ...
<reponame>KeKangShui/drill_src<filename>exec/java-exec/src/test/resources/queries/tpch/06.sql -- tpch6 using 1395599672 as a seed to the RNG select sum(l_extendedprice * l_discount) as revenue from cp.`tpch/lineitem.parquet` where l_shipdate >= date '1997-01-01' and l_shipdate < date '1997-01-01' + interval '1...
<filename>server/app/service/sms/migrations/20210102234513_sms_coupon.up.sql CREATE TABLE `sms_coupon` ( `id` bigint(20) unsigned NOT NULL COMMENT 'id', `app_id` bigint(20) unsigned NULL DEFAULT NULL , `type` int DEFAULT NULL COMMENT '类型', `name` varchar(255) DEFAULT NULL COMMENT 'name', `platform` int DEFAUL...
ALTER TABLE public.steps DROP COLUMN prior_batches_processed;
-- Direcciones: -- Para registros sin datos de departamento, provincia, municipio se toma por defecto La Paz, Murillo 020101. Debería ser null? -- Definir valor por defecto si no existe campo nombre_zona o null -- Definir Valor por defecto si no existe campo calle_avenida o null -- Definir de donde obtener código para ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 03, 2016 at 04:11 AM -- Server version: 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_...
-- -- FOR ALL EMPLOYEES -- -- -- select = columns -- SELECT employee.id, employee.first_name, employee.last_name, roles.title, roles.salary, employee.roles_id, employee.manager_id, department.dept_name -- FROM department -- JOIN roles ON roles.department_id = department.id -- JOIN employee ON employee.roles_id = roles...
<filename>dbMaint/migrate/revert0_8_1-0_8_0.sql ALTER TABLE JobHarness drop index ix261; ALTER TABLE JobHarness drop description; ALTER TABLE JobHarness drop name; UPDATE DbRelease set status="REVERTED" where major="0" and minor="8" and patch="1";
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 09, 2018 at 08:49 PM -- Server version: 10.0.34-MariaDB-0ubuntu0.16.04.1 -- PHP Version: 7.0.28-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"...
<gh_stars>0 create database movieTicketBase; use movieticketbooking; CREATE TABLE userbase ( userID SMALLINT PRIMARY KEY NOT NULL AUTO_INCREMENT, name VARCHAR(25) NOT NULL, age SMALLINT UNSIGNED NOT NULL, gender CHAR(1) NOT NULL, phoneNumber VARCHAR(13), email VARCHAR(50), city VARCHAR(20) NO...
SELECT EmployeeID, FirstName, LastName, Salary, DENSE_RANK() OVER (PARTITION BY Salary ORDER BY EmployeeID) FROM Employees WHERE Salary BETWEEN 10000 AND 50000 ORDER BY Salary DESC
CREATE TABLE subdivision_UA (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_UA" ("id", "name", "level") VALUES (E'UA-71', E'Regiunea Cerkasî', E'region'); INSERT INTO "subdivision_UA" ("id", "name", "level") VALUES (E'UA-74', E'Regiunea Cernigău', E're...
<reponame>ryanmaclean/treasure-boxes<filename>analytics-box/weblog-analytics/queries/proc_2802_insert_trs_session_step2.sql -- set session distributed_join = 'true' SELECT t1.time -- start_timeの日付 , t1.td_uid , t1.first_access_time , t1.device_category , t1.device_detail , t1.device_browser , t2.${type}_s...
<filename>schema.sql DROP DATABASE IF EXISTS employeetracker_db; CREATE DATABASE employeetracker_db; USE employeetracker_db; CREATE TABLE employees( id INT AUTO_INCREMENT PRIMARY KEY, FIRST_NAME VARCHAR(30) NOT NULL, LAST_NAME VARCHAR(30) NOT NULL, ROLE_ID INT(10) NOT...
<gh_stars>0 CREATE VIRTUAL TABLE t1 USING fts5(x, tokenize = 'porter ascii'); CREATE VIRTUAL TABLE t2 USING fts5(x, tokenize = "porter ascii"); CREATE VIRTUAL TABLE t3 USING fts5(x, tokenize = "'porter' 'ascii'"); CREATE VIRTUAL TABLE t4 USING fts5(x, tokenize = '''porter'' ''ascii'''); -- But this will fail: --CREATE...
<reponame>jcalzadog/ASCIITeamERP<filename>3-Trimestre/Scripts o SQL/DataBaseEdit-ASCIITeam-Final.sql -------------------------------------------------------- -- Archivo creado - martes-febrero-19-2019 -------------------------------------------------------- DROP TABLE "CATEGORIES" cascade constraints; DROP TABLE "C...
<filename>sspx.infra/scripts/dev-20181211-cs2.sql -- *********************************************************************************************** -- script to populate SSPx with some test data (CS2 2018-11-14) -- (safe to run multiple times, will not create duplicates) -- -- SSPX_ProtocolGroupsMM: so we can see prot...
<reponame>BriacPi/BasePlay2<gh_stars>0 -- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: doctorstrange_BPCE -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
/****** Object: Table [T_Default_PSM_Job_Settings] ******/ /****** RowCount: 99 ******/ SET IDENTITY_INSERT [T_Default_PSM_Job_Settings] ON INSERT INTO [T_Default_PSM_Job_Settings] (Entry_ID, Tool_Name, Job_Type_Name, StatCysAlk, DynSTYPhos, Settings_File_Name, Enabled) VALUES (122,'MODa','High Res MS1',0,0,'IonTra...
IF OBJECT_ID('finance.financial_expense_selector_view') IS NOT NULL DROP VIEW finance.financial_expense_selector_view; GO CREATE VIEW finance.financial_expense_selector_view AS SELECT finance.account_scrud_view.account_id AS financial_expense_id, finance.account_scrud_view.account_name AS financial_expense_...
<filename>MODEL/migration/src/main/resources/game-score/migration/db/V0/V0.8/V0.8.2/V0.8.2.2__24062021_quizz_sitemap.sql<gh_stars>1-10 create or replace view v_sitemap_quizz_param as select 1 as score, -1 entity_id, 'quizz' business_entity_path, 'qui-a-gagne-le-jeu-de-la-saison' business_path, concat_ws('','?filter1We...
<filename>business/data/schema/migrations/202108201548_create_cloc_table.up.sql create table cloc ( app_id uuid not null constraint fk_cloc_app references apps on delete cascade, commit_id varchar(255) not null, file text not null, lines integer not null ); create index ...
# --- !Ups CREATE TABLE IF NOT EXISTS CHALLENGE_COMMENTS ( id SERIAL NOT NULL PRIMARY KEY, osm_id integer NOT NULL, created timestamp without time zone DEFAULT NOW(), comment character varying, challenge_id integer NOT NULL, project_id integer NOT NULL );; ALTER TABLE CHALLENGE_COMMENTS ADD CONSTRAINT c...
<filename>cmd/datax/postgres/init.sql create schema source; create schema destination; create table "source"."type_table"( "t_bigserial" bigserial not NULL, "t_serial" serial, "t_smallserial" smallserial, "t_boolean" boolean, "t_smallint" smallint, "t_integer" integer, "t_bigint" bigint, ...
BEGIN; CREATE OR REPLACE FUNCTION "jsonb_concatenate" ( "json" jsonb, "other" json ) RETURNS jsonb LANGUAGE sql IMMUTABLE STRICT AS $$ SELECT COALESCE(json_object_agg(key, value), '{}'::json)::jsonb FROM ( SELECT key, value FROM jsonb_each("json") UNION ALL SELECT key, value::jsonb FROM json_e...
<filename>migrations/disco_actors.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 02, 2022 at 03:40 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zon...
autocommit off; create class foo( a int ); insert into foo values (1); insert into foo values (2); insert into foo values (3); insert into foo values (4); select * from foo; create view fff( b foo, c int ) as select x, y.a from foo x, foo y where x.a < y.a; select * from fff; select b.a, c from fff; sel...
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 14, 2018 at 08:36 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Máy chủ: localhost -- Thời gian đã tạo: Th6 23, 2017 lúc 05:21 PM -- Phiên bản máy phục vụ: 5.7.17-0ubuntu0.16.04.1 -- Phiên bản PHP: 5.6.29-1+deb.sury.org~trusty+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
-- -- PostgreSQL database dump -- -- Dumped from database version 14.0 (Ubuntu 14.0-1.pgdg21.04+1) -- Dumped by pg_dump version 14.0 (Ubuntu 14.0-1.pgdg21.04+1) -- Started on 2021-10-23 14:27:03 -05 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'U...
<reponame>AlbertUlysses/HackerRankSolutions /* Query the names of all the Japanese cities in the CITY table. The COUNTRYCODE for Japan is JPN. The CITY table is described as follows: */ SELECT NAME FROM CITY WHERE COUNTRYCODE = 'JPN';
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 27, 2018 at 10:40 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
SELECT c.Name, COUNT(*) AS ReportsNumber FROM Reports AS r JOIN Categories AS c ON c.Id = r.CategoryId GROUP BY c.Name ORDER BY ReportsNumber DESC, c.Name
SELECT true FROM users WHERE id = %d AND id <> $u[id] AND blocked = 0 AND deleted = 0;
DROP TABLE identity_images;
INSERT INTO dbo.[facility] ([name], [organisation_id], [code], [created_by]) VALUES('Test Hospital', 1, 'TH1', 1); INSERT INTO dbo.[facility] ([name], [organisation_id], [code], [created_by]) VALUES('Test Hospital 2', 1, 'TH2', 1); INSERT INTO dbo.[facility] ([name], [organisation_id], [code], [created_by]) VALUES('T...
<filename>custom/sql/espacioasm.sql col TOTAL_MB format 999,999,999 col FREE_MB format 999,999,999 col PERC format 990.00 select NAME,TOTAL_MB,FREE_MB,FREE_MB/TOTAL_MB*100 PERC from v$asm_diskgroup;
<filename>dbtodos.sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 1172.16.17.32 -- Tiempo de generación: 22-03-2020 a las 18:32:12 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION;...
/* Copyright 2011 tSQLt 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 ...
--DROP TABLE IF EXISTS `#__helloworld_hello`; -- -------------------------------------------------------- -- -- Table structure for table `#__helloworld_hello` -- CREATE TABLE `#__helloworld_hello` ( `id` int(11) NOT NULL, `name` varchar(25) NOT NULL, `detail` varchar(255) NOT NULL ) ENGINE=Inno...
<reponame>Jefferlau/spring-boot-log-config INSERT INTO `user` (`userId`,`username`,`password`,`realName`,`idCard`,`avatar`,`status`,`createTime`,`updateTime`) VALUES ('93201214-3b98-11e7-8b90-efc0f68ee6d7','admin','$2a$04$xA.MDsq9QSAT5aGS32uWme2x/zCAD8mJvwMouFHl6uIuVkSF9Dolu','柳初雪','371082199006232567',NULL,0,'2017-05-...
<filename>backend/manager/dbscripts/upgrade/03_00_0500_modify_AsyncTaskZombieTaskLifeInMinutes.sql -- Increase AsyncTaskZombieTaskLifeInMinutes to 50 hours if it's the default 5 hours. UPDATE vdc_options SET option_value = '3000' WHERE option_name = 'AsyncTaskZombieTaskLifeInMinutes' AND option_value = '300';
<reponame>robotszhang/tpcms /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 100126 Source Host : localhost:3306 Source Schema : tpcms Target Server Type : MySQL Target Server Version : 100126 File Encoding :...
<gh_stars>100-1000 -- Table: public.total_count_record -- DROP TABLE public.total_count_record; CREATE TABLE public.total_count_record ( id integer NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 0 MAXVALUE 2147483647 CACHE 1 ), repo_id character(255) COLLATE pg_catalog."default" NOT NULL...
COMMENT ON TABLE public.authors IS 'A Test Remark'
<reponame>fraudbusters/fraudbusters CREATE DATABASE IF NOT EXISTS fraud; DROP TABLE IF EXISTS fraud.events_unique; create table fraud.events_unique ( timestamp Date, eventTimeHour UInt64, eventTime UInt64, partyId String, shopId String, ip String, email String, bin String, fingerprint String, re...
<gh_stars>1000+ use _skeema_tmp; CREATE TABLE bar (id int unsigned NOT NULL PRIMARY KEY); INSERT INTO bar (id) VALUES (1), (22), (333);
<filename>postgis-2.2.0/raster/test/regress/tickets.sql /****************************************************************************** #1485 ******************************************************************************/ SELECT '#1485', count(*) FROM geometry_columns WHERE f_table_name = 'raster_columns'; /********...
def Main = { header = Header; @n = header.track_num as? uint 64; tracks = Many n Track } def VarQ : int = { @lead = Many { @b = UInt8; Guard (getBit 7 b == 1); b as! uint 7 }; @last = UInt7; ^ (for (v = 0; l in lead) v <# l) <# last } def Chunk Ty P = { Block 4 (Only Ty); Block (...
CREATE TABLE `prototype_mess_cloud` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `foreign_id` int(4) unsigned NOT NULL, `mess_def_id` int(4) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `post_id` (`foreign_id`), KEY `tag_def_id` (`mess_def_id`) )
<filename>ashbooks.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 25, 2020 at 10:29 AM -- 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 @...
CREATE TABLE Account ( id int(11) NOT NULL AUTO_INCREMENT, website varchar(255) NOT NULL, username varchar(255) NOT NULL, password varchar(255) NOT NULL, year datetime NOT NULL, enabled tinyint NOT NULL, PRIMARY KEY (id)); CREATE TABLE AccountMessages ( id int(11) NOT NULL AUTO_...
<filename>Esra.Db/dbo/Tables/SalaryData_20140712.sql CREATE TABLE [dbo].[SalaryData_20140712] ( [TITLE_CODE] NVARCHAR (255) NULL, [TITLE_NAME] NVARCHAR (255) NULL, [LOCATION_1] NVARCHAR (255) NULL, [SUB_LOCATION] NVARCHAR (255) N...
--@Autor(es): <NAME>, <NAME> --@Fecha creación: 23/06/2020 --@Descripción: Procedimiento para hacer auditorías sobre tipos de paquetes. set serveroutput on; connect sys/system as sysdba; prompt creando directorio CREATE OR REPLACE DIRECTORY CTEST AS '/tmp/'; grant read, write on directory CTEST to em_proy_...
ALTER TABLE `fort` DROP `siegeDayOfWeek`, DROP `siegeHourOfDay`, ADD `lastOwnedTime` DECIMAL( 20, 0 ) DEFAULT '0' NOT NULL AFTER `siegeDate` ;
<reponame>anjumrizwi/episerver<filename>alloy/EPiServerAlloySite/packages/EPiServer.CMS.Core.9.7.3/tools/epiupdates/sql/9.1.1.sql --beginvalidatingquery if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_DatabaseVersion]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) begin declare...
<filename>init.sql -- MySQL dump 10.13 Distrib 5.7.19, for macos10.12 (x86_64) -- -- Host: 127.0.0.1 Database: jcimas -- ------------------------------------------------------ -- Server version 5.7.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
<reponame>stuart-xyz/rate-my-area-java # Users schema # --- !Ups ALTER TABLE users ADD salt varchar(255) NOT NULL; # --- !Downs ALTER TABLE users DROP salt;
<reponame>aibenStunner/HackerRank<gh_stars>1-10 /* Enter your query here. */ SELECT SUBMISSION_DATE, (SELECT COUNT(DISTINCT HACKER_ID) FROM SUBMISSIONS S2 WHERE S2.SUBMISSION_DATE = S1.SUBMISSION_DATE AND (SELECT COUNT(DISTINCT S3.SUBMISSION_DATE) FROM SUBMISSIONS S3 WHERE S3.HACKER_ID = ...
<gh_stars>1-10 CREATE TABLE [workflow].[Workflow] ( [id] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (500) NOT NULL, [Description] NVARCHAR (4000) NULL, [is_active] BIT CONSTRAINT [DF_Workflow_is_active] DEFAULT ((1)) NOT NULL, [Package_Biml] NVARCHA...
<filename>MS SQL/Homeworks/05.SubqueriesAndJoins-Exercises/13.CountMountainRanges.sql<gh_stars>1-10 SELECT c.CountryCode, COUNT(mc.MountainId) AS MountainRanges FROM Countries AS c LEFT JOIN MountainsCountries AS mc ON c.CountryCode = mc.CountryCode WHERE c.CountryCode IN ('BG', 'RU', 'US') GROUP BY c.CountryCode
<gh_stars>1-10 /* bi-8 */ SELECT t2.t_name AS "relatedTag.name" , count(*) AS count FROM tag t INNER JOIN message_tag pt ON (t.t_tagid = pt.mt_tagid) -- as an optimization, we don't need message here as it's ID is in message_tag pt -- so proceed to the comment directly INNE...
<reponame>HostVanyaD/SoftUni SELECT p.Id ,p.[Name] ,CONCAT(p.Size, 'KB') AS Size FROM Files AS p LEFT JOIN Files AS c ON p.Id = c.ParentId WHERE c.Id IS NULL ORDER BY c.Id, c.[Name], c.Size DESC
-- file:timestamptz.sql ln:100 expect:true INSERT INTO TIMESTAMPTZ_TBL VALUES ('19970210 173201 America/New_York')
<filename>db/schema.sql DROP DATABASE IF EXISTS employee_tracker; CREATE DATABASE employee_tracker; USE employee_tracker; CREATE TABLE employee ( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INT, manager_id INT, PRIMARY KEY (id), -- FOREIGN K...
/* Correct project_metadata.public value, should only be true or false, other invaild value will be rewrite to false */ UPDATE project_metadata SET value='false' WHERE name='public' AND value NOT IN('true', 'false'); /* System Artifact Manager Github proposal link : https://github.com/goharbor/community/pull/181 */ C...
<gh_stars>0 SET ROLE hugo; CREATE TYPE Category AS ENUM ('Novel', 'Novella', 'Novelette', 'ShortStory', 'RelatedWork', 'GraphicStory', 'DramaticLong', 'DramaticShort', 'EditorLong', 'EditorShort', 'ProArtist', 'Semiprozine', 'Fanzine', 'Fancast', 'FanWriter', 'FanArtist', 'Series', 'NewWriter', 'BestArtBoo...
CREATE TABLE IF NOT EXISTS forum ( id SERIAL NOT NULL, category_id INTEGER NOT NULL, parent_forum_id INTEGER DEFAULT NULL, name CHARACTER VARYING(64) NOT NULL, sort_key INTEGER NOT NULL DEFAULT ...
<reponame>ffis/compass<filename>install/tables/vectorialbody.sql CREATE TABLE [dbo].[vectorialbody]( [vectorialbodyid] [int] IDENTITY(1,1) NOT NULL, [nombre] [varchar](255) NOT NULL, [ruta] [varchar](255) NOT NULL, [genero] [varchar](255) NOT NULL, CONSTRAINT [PK_vectorialbody] PRIMARY KEY CLUSTERED ( [vectorial...