sql
stringlengths
6
1.05M
<reponame>antonix511/sga -- phpMyAdmin SQL Dump -- version 4.0.10.18 -- https://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Apr 08, 2017 at 07:52 PM -- Server version: 10.1.21-MariaDB-cll-lve -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @...
<reponame>SummerWindL/dataloader<filename>src/main/resources/sql/init.sql CREATE TABLE DR_SQL_LOADER_LOG( serialid varchar(32), sql_file_name varchar(500), sql_file_path varchar(4000), sql_file_charset varchar2(20), sql_file_execute_flag varchar(1), sql_file_execute_log clob ); COMMENT ON TABLE DR_SQL_LOADER_LOG IS '...
<filename>lab6task2.sql ---2a--- CREATE VIEW a AS SELECT date,count(distinct client_id), avg(amount), sum(amount) FROM sell1 GROUP BY date; SELECT * FROM a; DROP VIEW a; ---2b---- CREATE VIEW b AS SELECT date, sum(amount) FROM sell GROUP BY date ORDER BY sum(amount) DESC LIMIT 5; SELECT * FROM b; DROP ...
<gh_stars>1-10 TRUNCATE TABLE mb_materials_type; INSERT INTO mb_materials_type (MATERIALS_TYPE, MATERIALS_TYPE_DESC, COMPANY, TRAN_DATE, USER_ID, LAST_CHANGE_DATE, LAST_CHANGE_USER_ID) VALUES ('4', '其他物资类', 'DCITS', NULL, NULL, NULL, NULL); INSERT INTO mb_materials_type (MATERIALS_TYPE, MATERIALS_TYPE_DESC, COMPANY, TR...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2018 at 01:01 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>IODataBlock/IODataBlock.Database/dbo/StoredProcedures/usp_Dequeue.sql<gh_stars>1-10 CREATE PROCEDURE [dbo].[usp_Dequeue] @QueueName [nvarchar](36), @BatchSize int = 100, @Ttl int = 600 AS SET NOCOUNT ON; UPDATE [dbo].[QueueMeta] WITH (UPDLOCK, READPAST) SET [Status] = 0 WHERE [Status] = 1 AND [DequeueIte...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS public.osm_admin ( id integer NOT NULL, osm_id bigint NOT NULL, name character varying, type character varying, admin_level integer, geometry public.geometry(Geometry,4326), constraint osm_admin_pkey primary key (osm_id, id) ); -- -- Name: osm_admin...
-- Recipient table CREATE TABLE IF NOT EXISTS recipient ( id bigint(20) AUTO_INCREMENT PRIMARY KEY NOT NULL, name varchar(200) NOT NULL, status varchar(20) NOT NULL, email varchar(200) NOT NULL, created_time datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_time datetime(3) NULL ON UPDATE ...
<reponame>renuka-fernando/diabetes_data_warehouse INSERT INTO `diabetes_dwh`.`dim_junk_diagnosis` (`primary_diagnosis`, `secondary_diagnosis`, `additional_diagnosis`) SELECT DISTINCT `diag_1`, `diag_2`, `diag_3` FROM `diabetes_dwh_staging`.`dataset_modified`; SELECT COUNT(*) FROM `diabetes_dwh`.`dim_junk_diagnosis`;
<filename>airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/postgres/test_simple_streams/final/airbyte_ctes/test_normalization/dedup_cdc_excluded_ab4.sql create view "postgres"._airbyte_test_normalization."dedup_cdc_excluded_ab4__dbt_tmp" as ( -- SQL model to prepare for ...
<gh_stars>1000+ -- 2021-06-09T09:38:12.951Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSam...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 18, 2015 at 03:26 AM -- Server version: 5.6.21 -- PHP Version: 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 */; ...
<filename>Shuhari.Framework.IntegrationTests/Data/Scripts/create.sql use tempdb; if db_id('$(db)') is not null begin alter database $(db) set single_user with rollback immediate; drop database $(db); end go create database $(db); go alter database $(db) set recovery simple with no_wait; go use $(db); go create ta...
<filename>conf/evolutions/default/1.sql<gh_stars>0 # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table rewards ( id bigint not null, reward_name varchar(255), reward_detail varchar...
<reponame>ferdeldo153/Dashboard<filename>doc/sistema2.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 26-07-2016 a las 00:55:23 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"...
<reponame>netlify/dbt_greenhouse_source<filename>models/stg_greenhouse__user.sql<gh_stars>0 with base as ( select * from {{ ref('stg_greenhouse__user_tmp') }} ), fields as ( select {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relatio...
<filename>WIKI/maintenance/archives/patch-logging_user_text_type_time_index.sql CREATE INDEX /*i*/log_user_text_type_time ON /*_*/logging (log_user_text, log_type, log_timestamp);
/******************************************************************************** file-centric-snapshot-definition-valid conceptid Assertion: ConceptId value refers to valid concept identifier in DEFINITION snapshot. ********************************************************************************/ insert into q...
<reponame>InsightsDev-dev/tajo<gh_stars>100-1000 select 100.00 * sum(case when p_type like 'PROMO%' then l_extendedprice*(1-l_discount) else 0 end) / sum(l_extendedprice * (1 - l_discount)) as promo_revenue from lineitem, part where l_partkey = p_partkey and l_shipdate >= '1995-09-01' and l_shipdate < '...
#standardSQL # Pages that use Privacy Sandbox-related features (based on Blink features) SELECT DISTINCT client, feature, num_urls, total_urls, pct_urls AS pct_urls FROM `httparchive.blink_features.usage` WHERE yyyymmdd = '20210701' AND ( feature = 'InterestCohortAPI_interestCohort_Method' OR f...
-- +migrate Up -- only add data if an application does not exist yet. -- +migrate StatementBegin DO LANGUAGE plpgsql $$ begin -- TODO: seeding the database should not be a part of migration… -- if not exists (select id from application limit 1) then -- insert empty ARM channels insert into chann...
<reponame>parc-jason/mds INSERT INTO idir_membership ( idir_membership_name, import_users_ind, create_user, update_user ) VALUES ('CN=EMPR Mines Health\, Safety and Enforcement Division,OU=Distribution Lists,OU=Exchange Objects,OU=Energy Mines and Petroleum Resources,OU=BCGOV,DC=idir,DC=BCGOV', 'true'...
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. select owner, type_name, typecode, attributes, methods from dba_types where lower(type_name) like lower('&1') /
<gh_stars>0 ---------------------------------------- -- kafka_topic_id ALTER TABLE IF EXISTS kafka_topic ALTER COLUMN id TYPE BIGINT ; ALTER TABLE IF EXISTS namespace ALTER COLUMN kafka_topic_id TYPE BIGINT ; ALTER TABLE IF EXISTS sequencer ALTER COLUMN kafka_topic_id TYPE BIGINT ;...
create table nested_set_sync_log_offset( log_table_name text not null constraint nested_set_sync_log_offset_pkey primary key, log_table_offset bigint not null );
CREATE SCHEMA [unittests] AUTHORIZATION [dbo];
CREATE TABLE [dbo].[Customers] ( [CustomerId] UNIQUEIDENTIFIER NOT NULL, [FirstName] NVARCHAR (50) NOT NULL, [LastName] NVARCHAR (50) NOT NULL, [Email] VARCHAR (100) NOT NULL, [Password] VARCHAR (50) NOT NULL, [PhoneNumber] VARCHAR (50) NOT NULL...
INSERT INTO MANUFACTURER (CODE, NAME) VALUES (100, 'Audi'); INSERT INTO MANUFACTURER (CODE, NAME) VALUES (101, 'Chevrolet'); INSERT INTO MANUFACTURER (CODE, NAME) VALUES (102, 'Ford'); INSERT INTO MANUFACTURER (CODE, NAME) VALUES (103, 'BMW'); INSERT INTO MANUFACTURER (CODE, NAME) VALUES (104, 'Dodge'); INSERT INTO CA...
CREATE TABLE [dbo].[Affinity] ( [AffinityId] BIGINT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (100) NOT NULL, [Description] NVARCHAR (300) NOT NULL, [ts] ROWVERSION NOT NULL, PRIMARY KEY CLUSTERED ([AffinityId] ASC) )
<gh_stars>0 -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION chess_index" to load this file. \quit -- set client_min_messages=DEBUG5; /**************************************************************************** -- side : white or black ************************...
DROP TABLE IF EXISTS import.stedsnavn;
ALTER TABLE webpages ADD COLUMN rendering_hints JSONB;
<reponame>LinLeng/SQLMonitor USE [SQLMonitor] GO IF OBJECT_ID('[dbo].[SystemParams]') IS NOT NULL DROP TABLE [dbo].[SystemParams] GO CREATE TABLE [dbo].[SystemParams] ( [ParamID] [int] IDENTITY(1,1) NOT NULL, [ParamName] [nvarchar] (128) COLLATE Latin1_General_CI_AS NOT NULL, [ParamValue] [nvarc...
<gh_stars>10-100 -- file:rowtypes.sql ln:158 expect:true create temp table cc (f1 cantcompare)
SELECT 'Kadjaia' AS 'Surname' UNION SELECT 'Vladimir' AS 'Name' UNION SELECT 'Nikolaevich' AS 'Patronymic'
<gh_stars>0 /* [df:title] embedded variable of parameter comment [df:description] see you tomorrow9 */ -- #df:entity# -- !df:pmb! -- !!String schema!! -- !!String schemaDot!! select member.MEMBER_ID , member.MEMBER_NAME from /*$.pmb.schema*/PUBLIC.MEMBER member left outer join /*$$pmb.schemaDot*/MEMB...
<reponame>PNNL-Comp-Mass-Spec/DMS-Website PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE general_params ( "name" text, "value" text ); INSERT INTO "general_params" VALUES('list_report_data_table','V_Instrument_List_Report'); INSERT INTO "general_params" VALUES('list_report_data_sort_dir','DESC'); INSERT...
<filename>sql/2021/structured-data/classic_microformats_types.sql # standardSQL # Count Classic Microformats types CREATE TEMP FUNCTION getClassicMicroformatsTypes(rendered STRING) RETURNS ARRAY<STRUCT<name STRING, count NUMERIC>> LANGUAGE js AS """ try { rendered = JSON.parse(rendered); return rendered.micro...
<gh_stars>0 insert into tipo_vivienda (nombre, costo_diario) values ('Tipo A', 200000); insert into tipo_vivienda (nombre, costo_diario) values ('Tipo B', 100000); insert into vivienda (tipo_vivienda_id, ciudad, departamento, aire_acondicionado, mascotas, calefaccion, numero_banios, numero_personas, numero_habitacion...
<filename>database/animalorder/ddl/animalorder.sql CREATE SCHEMA `animalorder` ; GRANT ALL PRIVILEGES ON animalorder.* TO 'redhat'@'%';
<gh_stars>0 /* * Copyright (c) 2017-2019 LabKey Corporation * * 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 ...
<reponame>kyowill/derby-10.0.2.1<gh_stars>0 -- -- this test shows the current supported join functionality -- -- create some tables create table t1 (t1_c1 int, t1_c2 char(10)); create table t2 (t2_c1 int, t2_c2 char(10)); create table t3 (t3_c1 int, t3_c2 char(10)); create table t4 (t4_c1 int, t4_c2 char(10));...
<gh_stars>0 -- EN: all times in seconds (3600 = 1 hour, 5400 = 1.5 hours, 10800 = 3 hours, 14400 = 4 hours, 25200 = 7 hours, etc.) -- DE: Alle Zeitangaben in Sekunden (3600 = 1 Stunde, 5400 = 1.5 Stunden, 10800 = 3 Stunden, 14400 = 4 Stunden, 25200 = 7 Stunden, usw.) INSERT INTO Player (login, email, administrator, pas...
<reponame>PNNL-Comp-Mass-Spec/DMS-Website<filename>public/model_config/DMS_DB_Sql/cbdms/helper_analysis_processor_group.sql PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE general_params ( "name" text, "value" text ); INSERT INTO "general_params" VALUES('list_report_data_table','V_Analysis_Job_Processor_Gr...
/****** Object: StoredProcedure [dbo].[AddUpdateLCCartConfiguration] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[AddUpdateLCCartConfiguration] /**************************************************** ** ** Desc: Adds new or edits existing T_LC_Cart_Configuration entry ** ...
# --- articles テーブルの作成 # --- !Ups CREATE TABLE IF NOT EXISTS articles( id int(11) NOT NULL AUTO_INCREMENT, title varchar(255) NOT NULL, url varchar(255) NOT NULL, PRIMARY KEY(id), UNIQUE INDEX index_on_url (url) ) ENGINE InnoDB AUTO_INCREMENT 1 DEFAULT CHARSET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci; # -...
CREATE TABLE account ( id bigint not null primary key auto_increment, account_number int not null unique, active int not null ); CREATE TABLE balance ( id bigint not null primary key auto_increment, account_number int NOT NULL unique, amount ...
<reponame>jesperancinha/jeorg-spring-5-test-drives drop table if exists authorities; drop table if exists users; drop table if exists flash_users; create table flash_users ( id int auto_increment primary key, username varchar(255), password varchar(255), role varchar(255) ); create table users...
<gh_stars>10-100 ALTER TABLE dlms_device ADD COLUMN selective_access_supported boolean;
ALTER TABLE `selfservice_settings_flow_methods` RENAME TO `selfservice_settings_request_methods`
REVOKE ALL ON ALL FUNCTIONS IN SCHEMA SCHEMA_TAG FROM PUBLIC; REVOKE ALL ON ALL PROCEDURES IN SCHEMA SCHEMA_TAG FROM PUBLIC; REVOKE ALL ON ALL FUNCTIONS IN SCHEMA SCHEMA_CATALOG FROM PUBLIC; REVOKE ALL ON ALL PROCEDURES IN SCHEMA SCHEMA_CATALOG FROM PUBLIC; REVOKE ALL ON ALL FUNCTIONS IN SCHEMA SCHEMA_PROM FROM PUBLIC;...
<gh_stars>0 CREATE TABLE IF NOT EXISTS `contents` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(256) NOT NULL, `type` varchar(100) NOT NULL, `category` varchar(100) NOT NULL, `code` text NOT NULL, `author_id` int(50) NOT NULL, `active` tinyint(1) NOT NULL, `created_at` timestamp DEFAULT CURREN...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 02, 2020 at 08:49 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<reponame>fuadpuadun/bahan-ta -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 12, 2021 at 03:56 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.3.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
<gh_stars>0 INSERT INTO `Devices`( `Model`, `UserID`, `OS`) VALUES ('GT500',124,'firefox') on duplicate key update OS='firefox' create table te (id int not null); SELECT * FROM `RaportNew` AS r JOIN userRaport AS u ON r.Username = u.Username UPDATE RaportNew SET r.Email=u.Email FROM `RaportNew` AS r JOIN use...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 24, 2020 at 02:07 PM -- 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"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
\set ECHO none \i test/setup.sql -- test_role is set in test/deps.sql SET LOCAL ROLE :use_role; CREATE FUNCTION pg_temp.extra_types() RETURNS text[] LANGUAGE sql IMMUTABLE AS $$ SELECT '{}'::text[] || CASE WHEN pg_temp.major() < 905 THEN '{policy,transform}'::text[] END || CASE WHEN pg_temp.major() < 903 THEN '...
UPDATE command_blacklist SET command='again_play_now' WHERE command='queue_now_playing'; UPDATE command_blacklist SET command='playlist' WHERE command IN ( 'play_playlist', 'play_random_playlist', 'play_viewed_playlist', 'add_to_playlist', 'delete_from_playlist', 'create...
drop database if exists sql_bridge_test; create database sql_bridge_test; use sql_bridge_test; grant all on sql_bridge_test.* to 'sql_bridge_user'@'%' identified by 'sql_bridge_test_password'; create table fruit ( fruitid int auto_increment primary key, fruit varchar(50), description text, quantity integer, pictu...
create table `user` ( `id` int unsigned not null auto_increment, `name` varchar(16) not null default '', `age` int unsigned not null default 0, `time` timestamp not null default current_timestamp, primary key (`id`), key `idx_name` (`name`), key `idx_time` (`time`) ) ENGINE=InnoaDB AUTO_INCR...
<gh_stars>1-10 ALTER PROCEDURE dw.p_lataa_d_kieli AS MERGE dw.d_kieli AS target USING ( SELECT koodi, COALESCE(nimi, nimi_sv, nimi_en) AS nimi, COALESCE(nimi_sv, nimi, nimi_en) AS nimi_sv, COALESCE(nimi_en, nimi, nimi_sv) AS nimi_en, 'ETL: p_lataa_d_kieli' AS source FROM sa.sa_koodistot where ...
update tag set tag = "hearthstone" where id = '1119279665296945152'
<reponame>kurien92/kreBLog<filename>sql/content-sql.sql CREATE TABLE `kreContent` ( `contentNo` int unsigned NOT NULL AUTO_INCREMENT, `contentId` varchar(30) NOT NULL UNIQUE, `contentTitle` varchar(100) NOT NULL, `content` mediumtext NOT NULL, `contentView` tinyint(1) NOT NULL DEFAULT '0', `contentWriteTime...
<filename>src/mysql/upgrade/5.7.0-upgrade.sql -- -- -- Important : this update can only be done if you're login to the crm -- -- ALTER TABLE `user_usr` DROP COLUMN usr_Style; ALTER TABLE userconfig_ucfg MODIFY COLUMN ucfg_type ENUM('text','number','date','boolean','textarea','choice'); -- ---------------------------...
-- MySQL dump 10.13 Distrib 8.0.25, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: bancoDeSangue -- ------------------------------------------------------ -- Server version 8.0.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
<gh_stars>10-100 -- file:join.sql ln:259 expect:true SELECT * FROM (SELECT name, n as s1_n, 1 as s1_1 FROM t1) as s1 NATURAL INNER JOIN (SELECT name, n as s2_n, 2 as s2_2 FROM t2) as s2 NATURAL INNER JOIN (SELECT name, n as s3_n, 3 as s3_2 FROM t3) s3
-- file:create_table.sql ln:446 expect:false CREATE TABLE fail_part PARTITION OF list_parted FOR VALUES IN ()
<gh_stars>1-10 CREATE SEQUENCE IF NOT EXISTS public.seq_t_person_id; CREATE TABLE IF NOT EXISTS public.t_person(id BIGINT, full_name VARCHAR(255)); -- CREATE SCHEMA IF NOT EXISTS middle_school; CREATE SEQUENCE IF NOT EXISTS middle_school.seq_t_person_id; CREATE TABLE IF NOT EXISTS middle_school.t_person(id BIGINT, full...
<filename>DBADashDB/dbo/Stored Procedures/DatabaseDDLCompare_Get.sql CREATE PROC dbo.DatabaseDDLCompare_Get( @DBID_A INT, @DBID_B INT, @Date_A DATETIME2(3), @Date_B DATETIME2(3) ) AS WITH A AS ( SELECT s.ObjectID, s.DDLID, s.ObjectType, s.ObjectName, s.SchemaName, ...
<reponame>robsiera/bugnet CREATE PROCEDURE [dbo].[BugNet_RelatedIssue_DeleteParentIssue] @PrimaryIssueId Int, @SecondaryIssueId Int, @RelationType Int AS DELETE BugNet_RelatedIssues WHERE PrimaryIssueId = @SecondaryIssueId AND SecondaryIssueId = @PrimaryIssueId AND RelationType = @RelationType
DROP TABLE IF EXISTS IPattempts; CREATE TABLE IPattempts ( ip VARCHAR PRIMARY KEY, num_attempts INT NOT NULL DEFAULT 0 );
<reponame>BuildingBridge/biznet<filename>bitrix/modules/im/install/db/mssql/install.sql CREATE TABLE B_IM_STATUS ( USER_ID int not null, COLOR varchar(255) NULL, STATUS varchar(50), STATUS_TEXT varchar(255) null, IDLE datetime null, DESKTOP_LAST_DATE datetime null, MOBILE_LAST_DATE datetime null, EVENT_ID int n...
INSERT INTO CLASS VALUES('3','A'); INSERT INTO CLASS VALUES('3','B'); INSERT INTO CLASS VALUES('6','A'); INSERT INTO CLASS VALUES('6','B'); INSERT INTO CLASS VALUES('7','A'); INSERT INTO CLASS VALUES('7','B'); INSERT INTO CLASS VALUES('8','A'); INSERT INTO CLASS VALUES('8','B'); INSERT INTO CLASS VALUES('4','A'); INSER...
<gh_stars>1-10 -- --Copyright (C) 2016 Transaction Processing Performance Council (TPC) and/or --its contributors. -- --This file is part of a software package distributed by the TPC. -- --The contents of this file have been developed by the TPC, and/or have been --licensed to the TPC under one or more contributor lice...
ALTER TABLE mine_location ADD COLUMN mine_location_description character varying;
<filename>src/server/src/main/resources/db/cassandra/023_diagnostic_event_subscriptions.cql -- -- Copyright 2018-2019 The Last Pickle 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 ...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
<gh_stars>1000+ -- -- This is a comment -- insert into test_table values(1, 'hello'); insert into test_table values(2, 'hello'); --insert into test_table values(3, 'hello'); insert into test_table values(4, 'hello');
<reponame>mstriemer/zamboni -- Websites have no region exclusions and no devices at the moment. ALTER TABLE `websites_website` DROP COLUMN `region_exclusions`; ALTER TABLE `websites_website` DROP COLUMN `devices`; -- Websites do have the notion of "preferred regions". ALTER TABLE `websites_website` ADD CO...
<reponame>Zhaojia2019/cubrid-testcases<gh_stars>1-10 --add TIMESTAMPTZ columns, using alter ... add statement, hard default no set system parameters 'add_column_update_hard_default=no'; drop table if exists tz; create table tz(a int); insert into tz values(1); insert into tz values(2); insert into tz values(3); --t...
select field_id, value_text, t.id as ticket_id, t.create_time, ts.id as ticket_state_id, value_int, ticket_lock_id from dynamic_field_value as dfv inner join ticket as t on dfv.object_id = t.id inner join ticket_type as tt on t.type_id = tt.id inner join ticket_state as ts on ts.id = t.ticket_state_id where field_id in...
<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....
<filename>database/techvn.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th7 31, 2019 lúc 03:17 PM -- Phiên bản máy phục vụ: 10.1.37-MariaDB -- Phiên bản PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; S...
<reponame>llanterme/tooth_tycoon -- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 19, 2021 at 03:49 AM -- Server version: 5.6.47-cll-lve -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time...
-- 'serverless_test' というデータベースを作成 -- 'serverless_test_user' というユーザー名のユーザーを作成 -- データベース 'serverless_test' への権限を付与 CREATE DATABASE IF NOT EXISTS serverless_test CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; GRANT ALL ON serverless_test.* TO `serverless_test_user`@`%` IDENTIFIED BY 'Serverless_Test_User|8888'; GRANT ALL ON *...
<filename>server/src/db/seed.sql INSERT INTO "meetups" ( "createdon", "location", "images", "topic", "happeningon", "tags" ) VALUES ( '2019-01-01T22:48:05.633Z', '235 adeola adeku VI lagos', '{"googgle.com","msn.com"}', 'Introdu...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 05, 2022 at 04:31 PM -- 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...
<gh_stars>1-10 SELECT A.docid, B.docid, SUM(A.count * B.count) AS similarity FROM (SELECT * FROM frequency UNION SELECT 'q' as docid, 'washington' as term, 1 as count UNION SELECT 'q' as docid, 'taxes' as term, 1 as count UNION SELECT 'q' as docid, 'treasury' as term, 1 as count ) AS A, frequency AS B WHERE A.term =...
insert into `designer_content_heading`(`id`,`name`,`tag`,`sort_order`) values (1,'Page title','h1',1), (2,'Content heading 1','h2',2), (3,'Content heading 2','h3',3), (4,'Content heading 3','h4',4), (5,'Content heading 4','h5',5), (6,'Content heading 5','h6',6);
<gh_stars>1-10 IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dw].[v_st_harjoittelukoulut]')) EXEC dbo.sp_executesql @statement = N' CREATE view [dw].[v_st_harjoittelukoulut] as select [Tilastovuosi] = vuosi ,[Yliopisto] = d1.yo_nimi_fi --mittarit ,f.harjoittelukoulun_oppilaat_esiopetus ,f....
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 06, 2021 at 10:28 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...
<reponame>pascalgrimaud/replibyte -- CREATE USER postgres SUPERUSER; -- CREATE DATABASE postgres WITH OWNER postgres;
DELETE FROM script_texts WHERE entry BETWEEN -1000550 AND -1000543; INSERT INTO script_texts (entry,content_default,sound,type,language,emote,comment) VALUES (-1000543,'Why have you come here, outsider? You will only find pain! Our fate will be yours...',0,0,0,25,'restless app SAY_RAND_1'), (-1000544,'It was ... terrib...
-- Blazerunner SET @ENTRY := 9376; UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY; INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`even...
\COPY users(id, first_name, last_name, gender, min_age, max_age, likes, dislikes) FROM 'data/users.dat' WITH DELIMITER ',' NULL '' CSV \COPY userstat(user_id, level, points, likes, dislikes) FROM 'userstat/Beer.dat' WITH DELIMITER ',' NULL '' CSV \COPY ad(id, price_in_cents, category) FROM 'data/ad.dat' WITH DELIMITER ...
<reponame>JokerRun/flink-sql-cookbook ### Foundations 1. [Creating Tables](foundations/01/01_create_table.md) 2. [Inserting Into Tables](foundations/02/02_insert_into.md) 3. [Working with Temporary Tables](foundations/03/03_temporary_table.md) 4. [Filtering Data](foundations/04/04_where.md) 5. [Aggregating Data](foun...
<filename>migrations/20200402154554_uspGetBestProxy.up.sql create or alter proc uspGetBestProxy @returnCount int = null, @minSuccessRate int = null, @minCheckCount int = null as begin set nocount on; with top_stat as ( select top 50 proxy_id, avg(conn_time) avgTime, avg(conn_status * 1.0) successRate, c...
<gh_stars>0 -- 1 up create table if not exists user_permissions ( user_perm_id serial primary key, user_id foreign key(users.user_id), can_view_site boolean default true, can_add_post boolean default true, can_add_folder boolean default true, can_add_contact boolean default true, can_add_use...
<reponame>ILLKO/wlxjury<filename>conf/db/migration/default/V11__Alter_images_add_description.sql alter table images add COLUMN description text;
DELETE FROM USR_CAR; DELETE FROM USR_USERLOGINS; DELETE FROM USR; DELETE FROM CAR; DELETE FROM CARMANUFACTURER; DELETE FROM USERLOGINS; INSERT INTO USERLOGINS (id) VALUES (1); INSERT INTO CARMANUFACTURER (id) VALUES (1); INSERT INTO USR (id) VALUES (1); INSERT INTO CAR (id, manufacturer_id, licenseplate) VALUES (1, ...